/* Multi-Step Form Component - Professional Design */
.multi-step-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

/* Progress Bar */
.progress-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 24px 32px;
  border-bottom: 1px solid #e9ecef;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 16px;
}

.progress-line {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #dee2e6;
  z-index: 1;
}

.progress-line-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d5c2e 0%, #27ae60 100%);
  transition: width 0.4s ease;
  width: 0%;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #dee2e6;
  color: #6c757d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.step-item.active .step-number {
  background: linear-gradient(135deg, #0d5c2e 0%, #27ae60 100%);
  border-color: #27ae60;
  color: #fff;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.step-item.completed .step-number {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  border-color: #27ae60;
  color: #fff;
}

.step-title {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
  line-height: 1.4;
}

.step-item.active .step-title {
  color: #27ae60;
  font-weight: 600;
}

.step-item.completed .step-title {
  color: #27ae60;
}

/* Form Steps */
.form-steps {
  padding: 32px;
  min-height: 400px;
}

.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Groups */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required {
  color: #e74c3c;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
}

.form-control:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
  outline: none;
}

.form-control.is-invalid {
  border-color: #e74c3c;
  background: #fff5f5;
}

.form-control.is-valid {
  border-color: #27ae60;
  background: #f0fff4;
}

/* Error Messages */
.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
  animation: slideDown 0.3s ease;
}

.error-message.show {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Validation Icons */
.validation-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  display: none;
}

.validation-icon.valid {
  color: #27ae60;
  display: block;
}

.validation-icon.invalid {
  color: #e74c3c;
  display: block;
}

/* Form Actions */
.form-actions {
  padding: 24px 32px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.btn-step {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  justify-content: center;
}

.btn-prev {
  background: #6c757d;
  color: #fff;
}

.btn-prev:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-next {
  background: linear-gradient(135deg, #0d5c2e 0%, #27ae60 100%);
  color: #fff;
}

.btn-next:hover {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-submit {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: #fff;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-step:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Step Summary */
.step-summary {
  background: linear-gradient(135deg, #f0fff4 0%, #e8f8f5 100%);
  border: 1px solid #27ae60;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.step-summary h6 {
  color: #27ae60;
  font-weight: 600;
  margin-bottom: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(39, 174, 96, 0.1);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: #6c757d;
  font-size: 13px;
}

.summary-value {
  color: #2c3e50;
  font-weight: 500;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .progress-container {
    padding: 16px 20px;
  }
  
  .form-steps {
    padding: 20px;
  }
  
  .form-actions {
    padding: 16px 20px;
    flex-direction: column;
  }
  
  .btn-step {
    width: 100%;
  }
  
  .step-title {
    font-size: 11px;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
