/* ============================================
   MULTI-STEP CONTACT FORM
   Modern funnel-style form for lead qualification
   ============================================ */

.multistep-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-8);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  position: relative;
  opacity: 1;
}

/* Progress Bar */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-12);
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-200);
  z-index: 0;
}

.form-progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  height: 3px;
  background: var(--coral);
  transition: width 0.4s ease;
  z-index: 1;
}

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

.progress-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
  font-weight: 700;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.progress-step.active .progress-circle {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.progress-step.completed .progress-circle {
  border-color: var(--coral);
  background: var(--coral);
  color: white;
}

.progress-step.completed .progress-circle::before {
  content: '✓';
  font-size: 18px;
}

.progress-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

.progress-step.active .progress-label {
  color: var(--primary-600);
  font-weight: 700;
}

/* Form Steps Container */
.form-steps {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

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

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

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-size: var(--text-3xl);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  text-align: center;
}

.step-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  text-align: center;
  margin-bottom: var(--space-10);
}

/* Option Cards (Step 1 & 2) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.option-card {
  position: relative;
  padding: var(--space-6);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  text-align: center;
}

.option-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card input:checked ~ .option-content {
  color: var(--primary-600);
}

.option-card input:checked ~ .option-content::before {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.option-card input:checked {
  border-color: var(--coral);
  background: rgba(255, 107, 107, 0.05);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.option-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-icon img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-normal);
}

.option-card:hover .option-icon img {
  transform: scale(1.1);
}

.option-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.option-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* Budget Slider (Step 3) */
.budget-slider-container {
  padding: var(--space-8);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-8);
}

.budget-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary-600);
  text-align: center;
  margin-bottom: var(--space-6);
}

.budget-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  outline: none;
}

.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease;
}

.budget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.budget-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-lg);
}

.budget-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

/* Form Fields (Step 4) */
.form-field {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
  color: var(--gray-800);
  font-size: var(--text-base);
}

.form-input {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input.error {
  border-color: #ef4444;
}

.form-select {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.btn-prev,
.btn-next {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-primary);
}

.btn-prev {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-prev:hover {
  background: var(--gray-200);
}

.btn-prev:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-next {
  background: var(--coral);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12);
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: var(--text-5xl);
  color: white;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.success-message {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-bottom: var(--space-8);
}

/* Responsive */
@media (max-width: 640px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
  
  .multistep-form-wrapper {
    padding: var(--space-6);
  }
  
  .form-progress {
    margin-bottom: var(--space-8);
  }
  
  .progress-label {
    font-size: 11px;
  }
  
  .progress-circle {
    width: 32px;
    height: 32px;
    font-size: var(--text-sm);
  }
  
  .step-title {
    font-size: var(--text-2xl);
  }
  
  .budget-value {
    font-size: var(--text-3xl);
  }
}
