/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-primary: #3b4fe4;
  --blue-dark: #1a2db8;
  --blue-deep: #0E2DAE;
  --blue-selected: #2c3bc7;
  --gold: #f5a623;
  --white: #ffffff;
  --text-dark: #1a2035;
  --text-body: #333;
  --bg-hero: linear-gradient(160deg, #dce7ff 0%, #e8eeff 40%, #c8d8ff 100%);
  --bg-light: #f5f7ff;
  --border-r: 10px;
  --shadow: 0 4px 24px rgba(59, 79, 228, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== HERO ===== */
#hero {
  background: var(--bg-hero);
  padding: 28px 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Trustpilot bar */
.trustpilot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-dark);
  font-family: Arial, sans-serif;
}
.trustpilot .stars { display: flex; align-items: center; }
.trust-text strong { font-weight: 700; }

/* Headline */
.hero-headline {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 42px);
  color: var(--blue-primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

/* Visual area */
.hero-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  position: relative;
  margin-top: 8px;
}

.hero-car {
  width: clamp(200px, 45%, 440px);
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 24px rgba(14, 45, 174, 0.25));
}

.hero-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 30px;
  position: relative;
  z-index: 2;
}

.price-line {
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.dollar {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(30px, 5vw, 55px);
  color: var(--gold);
  margin-top: 8px;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
}

.big-num {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(90px, 15vw, 160px);
  color: var(--blue-deep);
  text-shadow: 3px 3px 0 #fff, -2px -2px 0 #fff, 3px -2px 0 #fff, -2px 3px 0 #fff;
  line-height: 0.9;
  letter-spacing: -5px;
}

.cents {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 5vw, 58px);
  color: var(--gold);
  margin-top: 10px;
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
}

.per-mo {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 4.5vw, 52px);
  color: var(--blue-deep);
  text-shadow: 2px 2px 0 #fff, -1px -1px 0 #fff;
  margin-top: -8px;
}

/* CTA text */
.hero-cta-text {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  font-size: clamp(16px, 3vw, 26px);
  color: var(--blue-primary);
  text-shadow: 2px 2px 0 rgba(255,255,255,0.8), -1px -1px 0 rgba(255,255,255,0.6);
  -webkit-text-stroke: 0.5px rgba(0,80,200,0.3);
  letter-spacing: 0.5px;
  margin-top: 8px;
  padding-bottom: 28px;
  animation: pulse-cta 2.2s ease-in-out infinite;
}

@keyframes pulse-cta {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ===== QUIZ ===== */
.quiz-section {
  background: #fff;
  padding: 48px 20px 52px;
  text-align: center;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.quiz-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 32px);
  color: var(--text-dark);
  margin-bottom: 28px;
}

.age-grid {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.age-btn {
  flex: 1 1 160px;
  max-width: 210px;
  min-width: 120px;
  padding: 28px 10px;
  background: var(--blue-primary);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
  border: none;
  border-radius: var(--border-r);
  cursor: pointer;
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(59, 79, 228, 0.2);
  outline: none;
}

.age-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 79, 228, 0.35);
}

.age-btn:active {
  transform: translateY(0);
}

.age-btn.selected {
  background: var(--blue-selected);
  box-shadow: 0 4px 18px rgba(44, 59, 199, 0.4);
}

/* ===== STEPS WRAPPER ===== */
.steps-wrapper { position: relative; }

.step-panel { width: 100%; }

.step-panel.hidden { display: none !important; }

/* ===== CONGRATS ===== */
.congrats-section {
  background: #fff;
  padding: 48px 20px 60px;
  text-align: center;
}

.congrats-inner {
  max-width: 700px;
}

.congrats-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  color: var(--text-dark);
  margin-bottom: 18px;
}

.congrats-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-body);
  margin-bottom: 6px;
  font-family: Arial, Helvetica, sans-serif;
}

.savings-amount {
  color: var(--blue-primary);
  font-weight: 700;
}

.congrats-sub2 {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-body);
  font-family: Arial, Helvetica, sans-serif;
  margin-bottom: 30px;
}

.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 56px;
  background: var(--blue-primary);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 24px);
  border-radius: var(--border-r);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
  margin-bottom: 14px;
}

.call-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 79, 228, 0.38);
}

.agents-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 32px;
}

.dot {
  width: 9px;
  height: 9px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(46,204,113,0.3);
  animation: blink-dot 1.8s ease-in-out infinite;
}

@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-sub {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #666;
}

/* ===== FOOTER ===== */
#footer {
  background: #f0f2f8;
  padding: 28px 24px 24px;
  border-top: 1px solid #dde2f0;
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.logo-car { color: var(--text-dark); }
.logo-pro { color: var(--blue-primary); }
.logo-savings { color: var(--text-dark); }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--blue-primary);
  text-decoration: none;
  transition: opacity 0.15s;
}

.footer-nav a:hover { opacity: 0.7; }

.footer-copy {
  max-width: 1100px;
  margin: 0 auto 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #444;
}

.footer-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-disclaimer p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11.5px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ===== ANIMATIONS ===== */
.congrats-section:not(.hidden) {
  animation: fadeInUp 0.5s ease both;
}

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

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  #hero {
    padding: 20px 16px 0;
  }

  .hero-visual {
    flex-direction: column;
    align-items: center;
  }

  .hero-car {
    width: 85%;
    max-width: 320px;
  }

  .hero-price {
    padding-bottom: 0;
    align-items: flex-start;
    margin-top: -10px;
  }

  .big-num {
    letter-spacing: -2px;
  }

  .age-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .age-btn {
    max-width: 100%;
    width: 100%;
    flex: none;
    padding: 18px 10px;
    font-size: 16px;
    border-radius: 8px;
  }

  .trust-badges {
    flex-direction: column;
    align-items: flex-start;
    max-width: 260px;
    margin: 0 auto;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }

  .call-btn {
    width: 100%;
    padding: 18px 20px;
  }
}

@media (max-width: 480px) {
  .hero-headline br { display: none; }
}
