/* Progress Bar Component */

/* Registration Progress Container */
.registration-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) 0;
}

/* Step Indicator Container */
.step-indicators {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

/* Individual Step Indicator */
.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* Step Circle */
.step-indicator .step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-medium);
  margin-bottom: var(--spacing-xs);
  transition: all 0.3s ease;
  border: 3px solid var(--gray-light);
  background-color: var(--white);
  color: var(--gray-light);
}

/* Step Label */
.step-indicator .step-label {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-small);
  color: var(--gray-light);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 80px;
}

/* Step States */

/* Current Step */
.step-indicator.current .step-circle {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(85, 152, 233, 0.2);
}

.step-indicator.current .step-label {
  color: var(--primary-blue);
  font-weight: var(--font-weight-semibold);
}

/* Completed Step */
.step-indicator.completed .step-circle {
  background-color: var(--success-green);
  border-color: var(--success-green);
  color: var(--white);
}

.step-indicator.completed .step-circle::after {
  content: "✓";
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.step-indicator.completed .step-label {
  color: var(--success-green);
  font-weight: var(--font-weight-medium);
}

/* Upcoming Step (default styling already applied above) */
.step-indicator.upcoming .step-circle {
  border-color: var(--gray-light);
  background-color: var(--white);
  color: var(--gray-light);
}

.step-indicator.upcoming .step-label {
  color: var(--gray-light);
}

/* Hover Effects */
.step-indicator.current:hover .step-circle,
.step-indicator.completed:hover .step-circle {
  transform: scale(1.05);
}

.step-indicator.upcoming:hover .step-circle {
  border-color: #aaa;
  background-color: #f5f5f5;
}

/* Connection Lines Between Steps */
.step-indicator:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: calc(100% + 10px);
  width: var(--spacing-lg);
  height: 3px;
  background-color: var(--gray-light);
  transition: all 0.3s ease;
}

.step-indicator.completed:not(:last-child)::after {
  background-color: var(--success-green);
}

/* Alternative Horizontal Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
  margin: var(--spacing-md) 0;
}

.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--success-green) 100%);
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Progress percentage classes for JavaScript */
.progress-fill.step-1 { width: 33.33%; }
.progress-fill.step-2 { width: 66.66%; }
.progress-fill.step-3 { width: 100%; }

/* Compact Progress Indicator for Mobile */
.progress-compact {
  display: none;
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--form-bg);
  border-radius: var(--border-radius-sm);
  margin: var(--spacing-md) 0;
}

.progress-compact .current-step {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--primary-blue);
}

.progress-compact .step-count {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-small);
  color: var(--gray-light);
  margin-left: var(--spacing-xs);
}

/* Loading States */
.step-indicator.loading .step-circle {
  background-color: var(--gray-light);
  border-color: var(--gray-light);
  color: var(--white);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Error State */
.step-indicator.error .step-circle {
  background-color: #dc3545;
  border-color: #dc3545;
  color: var(--white);
}

.step-indicator.error .step-circle::after {
  content: "✕";
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.step-indicator.error .step-label {
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
  .registration-progress {
    margin: var(--spacing-md) 0;
  }
  
  .step-indicators {
    gap: var(--spacing-md);
  }
  
  .step-indicator .step-circle {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-small);
  }
  
  .step-indicator .step-label {
    font-size: 12px;
    min-width: 60px;
  }
  
  .step-indicator:not(:last-child)::after {
    width: var(--spacing-md);
    left: calc(100% + 5px);
  }
}

@media (max-width: 480px) {
  /* Hide detailed progress, show compact version */
  /* .registration-progress {
    display: none;
  } */
  
  .progress-compact {
    display: block;
  }
  
  .progress-bar {
    display: block;
  }
}
