/* ============================================================
   LoanSpace.ai — Lead Funnel Wizard Styles
   ============================================================ */

:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --primary-bg: #eef2ff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Header ---- */
.funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.funnel-logo {
  text-decoration: none;
}

.funnel-logo img {
  height: 80px;
}

.skip-to-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}

.skip-to-chat:hover {
  background: var(--primary-bg);
}

/* ---- Desktop header nav ---- */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-auth, .header-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-auth-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

.header-auth-link:hover {
  color: var(--text);
  background: var(--bg);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-register:hover {
  background: var(--primary-dark);
}

.header-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* ---- Mobile header controls (hidden on desktop) ---- */
.mobile-header-controls {
  display: none;
  align-items: center;
  gap: 4px;
}

.mobile-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-light);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-dark-toggle:hover {
  background: var(--bg);
  color: var(--primary);
}

[data-theme="dark"] .mobile-dark-toggle {
  color: #fbbf24;
}

[data-theme="dark"] .mobile-dark-toggle:hover {
  color: #f59e0b;
}

/* ---- Hamburger (mobile only) ---- */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger-btn:hover {
  background: var(--bg);
}

/* ---- Mobile dropdown menu ---- */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  z-index: 101;
}

.mobile-menu.open {
  max-height: 300px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.mobile-menu-item:hover {
  background: var(--bg);
}

.mobile-menu-item i {
  width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.mobile-menu-signup {
  color: var(--primary);
  font-weight: 600;
}

.mobile-menu-signup i {
  color: var(--primary);
}

/* ---- Progress Bar ---- */
.progress-container {
  position: sticky;
  top: 113px;
  z-index: 99;
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--border);
  margin-top: -1px;
}

.progress-bar {
  height: 4px;
  background: var(--primary);
  transition: width 0.5s ease;
  width: 0%;
}

.progress-steps {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.progress-step.active {
  color: var(--primary);
}

.progress-step.completed {
  color: var(--success);
}

.progress-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: var(--transition);
}

.progress-step.active .step-dot {
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.progress-step.completed .step-dot {
  background: var(--success);
}

/* ---- Hero Banner ---- */
.funnel-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #4f46e5 50%, #7c3aed 100%);
  padding: 44px 24px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.funnel-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.funnel-hero-inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.funnel-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 24px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.funnel-hero-badge i {
  color: #a5f3fc;
}

.funnel-hero-title {
  font-size: 36px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.funnel-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

/* Hide hero after first step */
.funnel-hero.hidden {
  display: none;
}

@media (max-width: 640px) {
  .funnel-hero {
    padding: 32px 20px 28px;
  }

  .funnel-hero-title {
    font-size: 24px;
  }

  .funnel-hero-subtitle {
    font-size: 15px;
  }

  .funnel-hero-badge {
    font-size: 12px;
    padding: 5px 14px;
  }
}

/* ---- Wizard Container ---- */
.wizard-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* When hero is visible (step 1), don't vertically center — pull content up */
.funnel-hero:not(.hidden) ~ .wizard-container,
.funnel-hero:not(.hidden) + .progress-container + .wizard-container {
  justify-content: flex-start;
  min-height: auto;
  padding-top: 28px;
}

/* ---- Step ---- */
.wizard-step {
  animation: fadeSlideIn 0.4s ease;
}

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

.step-header {
  text-align: center;
  margin-bottom: 36px;
}

.step-header h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.step-header p {
  font-size: 16px;
  color: var(--text-light);
}

/* ---- Option Cards ---- */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.option-card.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.option-card .option-icon {
  font-size: 28px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--primary-bg);
  color: var(--primary);
  transition: var(--transition);
}

.option-card.selected .option-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.option-card .option-label {
  font-weight: 600;
  font-size: 15px;
}

.option-card .option-desc {
  font-size: 13px;
  color: var(--text-light);
}

/* ---- Card Color Themes ---- */
/* Blue — Buy a Home */
.option-card.card-blue .option-icon {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.option-card.card-blue:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}
.option-card.card-blue.selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Green — Refinance */
.option-card.card-green .option-icon {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}
.option-card.card-green:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15);
}
.option-card.card-green.selected {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Purple — Cash-Out Refi */
.option-card.card-purple .option-icon {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}
.option-card.card-purple:hover {
  border-color: #a855f7;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.15);
}
.option-card.card-purple.selected {
  border-color: #7c3aed;
  background: #faf5ff;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

/* Amber — HELOC */
.option-card.card-amber .option-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.option-card.card-amber:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}
.option-card.card-amber.selected {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Teal — Investment Property */
.option-card.card-teal .option-icon {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}
.option-card.card-teal:hover {
  border-color: #14b8a6;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.15);
}
.option-card.card-teal.selected {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Slate — Just Exploring */
.option-card.card-slate .option-icon {
  background: linear-gradient(135deg, #64748b, #475569);
  color: #fff;
  box-shadow: 0 4px 14px rgba(100, 116, 139, 0.35);
}
.option-card.card-slate:hover {
  border-color: #64748b;
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.15);
}
.option-card.card-slate.selected {
  border-color: #475569;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2);
}

/* ---- Input Fields ---- */
.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-group .input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Currency input wrapper */
.currency-input {
  position: relative;
}

.currency-input::before {
  content: '$';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.currency-input input {
  padding-left: 32px;
}

/* Select arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
  width: 100%;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 12px;
  font-family: inherit;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--primary);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
}

.step-nav .spacer {
  flex: 1;
}

/* ---- Trust Bar ---- */
.funnel-trust-bar {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 24px;
  text-align: center;
}

.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

.trust-badge i {
  color: #10b981;
  font-size: 14px;
}

.trust-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.trust-stars {
  display: flex;
  gap: 2px;
}

.trust-stars i {
  color: #f59e0b;
  font-size: 13px;
}

.trust-proof-text {
  font-size: 13px;
  color: var(--text-light);
}

.trust-proof-text strong {
  color: var(--text);
  font-weight: 700;
}

/* Hide trust bar when score screen is visible */
.funnel-trust-bar.hidden {
  display: none;
}

@media (max-width: 600px) {
  .trust-badges {
    gap: 12px 16px;
  }
  .trust-badge {
    font-size: 12px;
  }
  .trust-badge i {
    font-size: 13px;
  }
  .trust-social-proof {
    flex-direction: column;
    gap: 4px;
  }
  .trust-proof-text {
    font-size: 12px;
  }
}

/* ---- Score Screen ---- */
.score-screen {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.score-reveal {
  text-align: center;
  margin-bottom: 40px;
}

.score-reveal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

.score-gauge-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px;
}

.score-gauge {
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 10;
}

.gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.5s ease, stroke 0.5s ease;
}

.score-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
}

.score-rating {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 40%);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

.score-message {
  font-size: 16px;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}

/* Score breakdown */
.score-breakdown {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.breakdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.breakdown-info {
  flex: 1;
}

.breakdown-info .breakdown-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.breakdown-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.breakdown-score {
  font-size: 14px;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

/* Recommendations */
.score-recommendations {
  margin-bottom: 40px;
}

.score-recommendations h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.recommendation-card {
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  font-size: 14px;
  line-height: 1.6;
}

/* Connect with a Lender Section */
.lender-connect-section {
  text-align: center;
  padding: 40px 36px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(79, 70, 229, 0.12);
  position: relative;
  overflow: hidden;
}

.lender-connect-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--success));
}

.lender-connect-header {
  margin-bottom: 28px;
}

.lender-connect-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lender-connect-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.lender-connect-header p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.lender-connect-form {
  max-width: 560px;
  margin: 0 auto;
}

.lender-connect-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.lender-connect-form .form-group {
  text-align: left;
  margin-bottom: 0;
}

.lender-connect-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.label-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.btn-lender {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  font-size: 17px;
  letter-spacing: 0.2px;
}

.btn-lender:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.lender-form-disclaimer {
  font-size: 13px;
  color: #64748b;
  margin-top: 16px;
  margin-bottom: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.lender-form-disclaimer i {
  color: #10b981;
  font-size: 14px;
}

/* Legacy lead-form fallback */
.lead-form {
  max-width: 400px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 12px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Confirmation */
.lead-confirmed {
  text-align: center;
  padding: 40px;
}

.confirm-icon {
  font-size: 56px;
  color: var(--success);
  margin-bottom: 16px;
}

.lead-confirmed h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lead-confirmed p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.lead-confirmed .btn-primary {
  display: inline-flex;
  width: auto;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .funnel-header {
    padding: 8px 16px;
    border-bottom: none;
    box-shadow: none;
  }

  .funnel-logo img {
    height: 40px;
  }

  /* Hide desktop nav, show mobile controls */
  .header-desktop {
    display: none !important;
  }

  .mobile-header-controls {
    display: flex;
  }

  .hamburger-btn {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }

  .progress-container {
    position: relative;
    top: auto;
    margin-top: 0;
    border-top: none;
  }

  .progress-steps {
    gap: 12px;
    font-size: 11px;
  }

  .wizard-container {
    padding: 24px 16px 60px;
  }

  .step-header h2 {
    font-size: 22px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .score-reveal h2 {
    font-size: 20px;
  }

  .lender-connect-section {
    padding: 28px 16px;
  }

  .lender-connect-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
  }

  .lender-connect-header h3 {
    font-size: 20px;
  }
}
