/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --background: #f4f6f9;
  --foreground: #1a2332;
  --card: #ffffff;
  --card-foreground: #1a2332;
  --primary: #1c2a3d;
  --primary-fg: #ffffff;
  --secondary: #eef1f5;
  --muted: #e2e7ed;
  --muted-fg: #6b7a8d;
  --accent: #e8940a;
  --accent-hover: #f0a820;
  --accent-light: rgba(232,148,10,0.10);
  --accent-ring: rgba(232,148,10,0.25);
  --border: #dce1e8;
  --check: #22c55e;
  --check-bg: #dcfce7;
  --destructive: #ef4444;
  --hero-bg: #060141;
  --hero-fg: #ffffff;
  --hero-muted: #9ca3af;
  --final-bg: #f4f6f9;
  --final-fg: #1a2332;
  --star: #f59e0b;
  --badge-bg: rgba(255,255,255,0.08);
  --badge-fg: #FFFF01;
  --success-bg: #dcfce7;
  --success-fg: #16a34a;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-accent: 0 6px 24px rgba(6,1,65,0.30);
}

/* ===== FORM CONTAINER ===== */
#hero-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.form-steps-sizer {
  overflow: hidden;
  transition: min-height 0.3s ease;
}

/* ===== FORM HEADER ===== */
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--foreground);
  font-family: 'Sora', system-ui, sans-serif;
}

.form-step-label {
  font-size: 12px;
  color: var(--muted-fg);
  font-weight: 600;
}

/* ===== PROGRESS BAR ===== */
.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}

.form-progress-bar {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: var(--muted);
  transition: background 0.4s ease;
}

.form-progress-bar.active {
  background: #FFFF01;
}

/* ===== FORM GROUPS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-fg);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== CHOICE BUTTONS (RADIO BASED) ===== */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
#form1-success{
	display: flex;
    align-items: center;  /* Vertical centering */
    justify-content: center; /* Optional: horizontal centering */
    min-height: 50vh; /* Or a specific height, e.g., 400px */
}
.form-success {
    text-align: center; /* Keeps text/icon centered horizontally */
}
@media (max-width: 639px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* hide radio */
.choice-grid input[type="radio"] {
  display: none;
}

.choice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s ease;
}

/* hover */
.choice-btn:hover {
  border-color: #FFFF01;
  background: rgba(255,255,1,0.08);
}

/* ✅ selected */
.choice-grid input[type="radio"]:checked + .choice-btn {
  border-color: #FFFF01;
  background: rgba(255,255,1,0.10);
  box-shadow: 0 0 0 3px rgba(255,255,1,0.20);
}
/* ===== SLIDER INPUT ===== */
.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-value-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-value-tag {
  background: #FFFF01;
  color: #1a1000;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  min-width: 80px;
  text-align: center;
}

.slider-hint {
  font-size: 11px;
  color: var(--muted-fg);
}

input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: var(--muted);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 2px 8px rgba(56,189,248,0.4);
  cursor: pointer;
  border: 3px solid #fff;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ===== FORM INPUTS ===== */
.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #FFFF01;
  box-shadow: 0 0 0 3px rgba(255,255,1,0.20);
}

.form-input.error {
  border-color: var(--destructive);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

.form-input::placeholder {
  color: var(--muted-fg);
  font-weight: 400;
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* ===== FIELD ERROR MESSAGE ===== */
.field-error {
  font-size: 11px;
  color: var(--destructive);
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
}

.field-error.visible {
  display: flex;
}

/* ===== CTA BUTTON ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #060141;
  color: #ffffff;
  box-shadow: var(--shadow-accent);
  padding: 15px 28px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.cta-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(6,1,65,0.40);
}

.cta-button-blue:hover {
  background: #38bdf8 !important;
  color: #060141 !important;
  box-shadow: 0 10px 32px rgba(56,189,248,0.42) !important;
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.loading {
  pointer-events: none;
  opacity: 0.85;
}

.cta-button:disabled {
  cursor: not-allowed;
}

.cta-button .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.cta-button.loading .btn-spinner {
  display: block;
}

.cta-button.loading .btn-text {
  opacity: 0.6;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== BACK BUTTON ===== */
.form-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-fg);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 10px;
  padding: 11px;
  font-family: 'DM Sans', system-ui, sans-serif;
  transition: all 0.18s;
}

.form-back:hover {
  color: var(--foreground);
  border-color: var(--foreground);
}

/* ===== TRUST MICRO TEXT ===== */
.form-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted-fg);
  margin-top: 10px;
}

/* ===== SUCCESS STATE ===== */
.form-success {
  text-align: center;
  padding: 32px 16px;
}

.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: successPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes successPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success h3 {
  font-size: 18px;
  font-family: 'Sora', system-ui, sans-serif;
  margin-bottom: 6px;
}

.form-success p {
  font-size: 14px;
  color: var(--muted-fg);
}

/* ===== STEP TRANSITIONS ===== */
.hidden {
  display: none !important;
}

.step-slide-in {
  animation: slideIn 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-slide-back {
  animation: slideBack 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideBack {
  0% {
    opacity: 0;
    transform: translateX(-24px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 359px) {
  #hero-form {
    padding: 0 14px;
  }
  
  .form-container {
    padding: 16px;
    border-radius: 12px;
  }
  
  .form-title {
    font-size: 13px;
  }
  
  .choice-btn {
    padding: 10px 6px;
    min-height: 48px;
    font-size: 11px;
  }
  
  .choice-btn .choice-icon {
    font-size: 16px;
  }
  
  .cta-button {
    font-size: 13px;
    padding: 14px 20px;
  }
  
  .form-input {
    font-size: 14px;
    padding: 12px 13px;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  .form-container {
    padding: 24px;
  }
  
  .choice-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .choice-btn {
    padding: 11px 6px;
    font-size: 11px;
    min-height: 54px;
  }
  
  .choice-btn .choice-icon {
    font-size: 18px;
  }
}

@media (min-width: 640px) {
  .form-container {
    padding: 28px;
  }
  
  .choice-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .choice-btn {
    padding: 13px 8px;
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .form-container {
    padding: 32px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

/* ===== PRINT / REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}