/* ==========================================================================
   DYNAMIC MULTI-STEP FORM WIZARD STYLES
   Tailored for High-Conversion Corporate Leads
   ========================================================================== */

.wizard-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--sci-border);
  box-shadow: var(--sci-shadow-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #d32026 0%, #ffdf14 100%);
}

.wizard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.wizard-header h3 {
  font-size: 1.8rem;
  color: var(--sci-navy);
  margin-bottom: 0.5rem;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 2.5rem 0 3rem;
  padding: 0 1rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 3rem;
  right: 3rem;
  height: 3px;
  background: #E2E8F0;
  transform: translateY(-50%);
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 3rem;
  height: 4px;
  background: linear-gradient(90deg, #d32026 0%, #ffdf14 100%);
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

.step-indicator {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  padding: 0 0.5rem;
}

.step-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #CBD5E1;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--sci-transition);
}

.step-indicator.active .step-bubble {
  border-color: #d32026;
  background: #d32026;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(211, 32, 38, 0.2);
}

.step-indicator.completed .step-bubble {
  border-color: #ffdf14;
  background: #ffdf14;
  color: #071120;
  font-weight: 800;
}

.step-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
}

.step-indicator.active .step-name {
  color: #d32026;
  font-weight: 800;
}

/* Step Content Sections */
.step-pane {
  display: none;
  animation: fadeIn 0.35s ease;
}

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

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sci-navy);
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  border: 1px solid var(--sci-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sci-text-main);
  transition: var(--sci-transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--sci-navy-light);
  box-shadow: 0 0 0 3px rgba(30, 62, 98, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* Choice Option Tiles */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.choice-tile {
  border: 1.5px solid var(--sci-border);
  border-radius: 12px;
  padding: 1.2rem;
  cursor: pointer;
  transition: var(--sci-transition);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  background: #ffffff;
}

.choice-tile:hover {
  border-color: var(--sci-navy-light);
  background: var(--sci-bg-alt);
}

.choice-tile input[type="radio"],
.choice-tile input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #d32026;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.choice-tile.selected {
  border-color: #d32026;
  background: rgba(211, 32, 38, 0.05);
  box-shadow: 0 0 0 2px #d32026;
}

.choice-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sci-navy);
  margin-bottom: 0.2rem;
}

.choice-desc {
  font-size: 0.8rem;
  color: var(--sci-text-muted);
  line-height: 1.4;
}

/* Wizard Navigation Controls */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sci-border);
}

/* Success Confirmation Panel */
.wizard-success-panel {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 1.5rem;
}

.ticket-badge {
  display: inline-block;
  background: #F1F5F9;
  border: 1px dashed #CBD5E1;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sci-navy);
  margin: 1rem 0 1.5rem;
}

@media (max-width: 768px) {
  .wizard-card {
    padding: 1.6rem 1.1rem;
    border-radius: 14px;
  }
  .wizard-progress {
    margin: 1.5rem 0 2rem;
    padding: 0 0.2rem;
  }
  .wizard-progress::before {
    left: 1.5rem;
    right: 1.5rem;
  }
  .wizard-progress-bar {
    left: 1.5rem;
  }
  .step-bubble {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .step-indicator {
    padding: 0 0.2rem;
  }
  .step-name {
    display: none;
  }
  .form-row, .choice-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .choice-tile {
    padding: 0.9rem 1rem;
  }
  .choice-title {
    font-size: 0.9rem;
  }
  .choice-desc {
    font-size: 0.78rem;
  }
  .wizard-nav {
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    gap: 0.8rem;
  }
  .wizard-nav .btn {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    justify-content: center;
  }
  .wizard-review-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .wizard-card {
    padding: 1.3rem 0.85rem;
  }
  .step-bubble {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }
  .ticket-badge {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    word-break: break-all;
  }
}

