/* =========================================
   CARPROSAVINGS – STYLES.CSS
   ========================================= */

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

:root {
  --blue: #2748D4;
  --blue-dark: #1a36b0;
  --blue-light: #EEF2FF;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #ffffff;
  --bg-light: #F0F4FF;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 48px rgba(0,0,0,0.13);
  --font: 'Manrope', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon { width: 38px; height: auto; }
.logo-text { font-size: 18px; font-weight: 700; }
.logo-black { color: var(--text); }
.logo-blue { color: var(--blue); }

/* Pill-shaped call button */
.btn-call-nav {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 11px 28px;
  border-radius: 999px;
  transition: background 0.2s;
}
.btn-call-nav:hover { background: var(--blue-dark); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 600px;
  padding-top: 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.88) 0%,
    rgba(255,255,255,0.65) 42%,
    rgba(255,255,255,0.1) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: start;
}

/* Hero Copy */
.badge {
  display: inline-block;
  background: rgba(255,255,255,0.7);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title .blue { color: var(--blue); }

.hero-sub {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 420px;
}

.hero-trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* =========================================
   FORM CARD — frosted glass
   ========================================= */
.form-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 28px 28px 26px;
  min-height: 340px;
}

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeSlideIn 0.3s ease; }

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.step-label.finish { color: var(--blue); }
.step-pct {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-bar {
  height: 4px;
  background: #DDE3F0;
  border-radius: 4px;
  margin-bottom: 22px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.step-question {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}
.congrats-title { text-align: center; }

/* Step 1: Yes / No buttons */
.answer-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.answer-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  transition: border-color 0.2s, background 0.2s;
}
.answer-btn:hover { border-color: var(--blue); background: var(--blue-light); }
.arr { color: var(--blue); font-size: 20px; font-weight: 400; }

/* Step 2: age range — 2-col grid on desktop */
.age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
/* 65+ spans full width */
.age-last {
  grid-column: 1 / -1;
}
.answer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  transition: border-color 0.2s, background 0.2s;
}
.answer-row:hover { border-color: var(--blue); background: var(--blue-light); }

.step-hint {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}
.back-btn {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--blue); }
.secure-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
}

/* =========================================
   STEP 3: LOADING ITEMS
   ========================================= */
.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}

.load-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

/* Square icon box */
.load-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, opacity 0.3s;
}

/* States via data-state attribute */
.load-item[data-state="done"] .load-icon-box {
  background: rgba(39,72,212,0.12);
  opacity: 1;
}
.load-item[data-state="active"] .load-icon-box {
  background: rgba(39,72,212,0.15);
  border: 1.5px solid var(--blue);
  opacity: 1;
}
.load-item[data-state="pending"] .load-icon-box {
  background: #F3F4F6;
  opacity: 0.5;
}

.load-item[data-state="done"] .load-img { opacity: 0.7; }
.load-item[data-state="active"] .load-img { opacity: 1; }
.load-item[data-state="pending"] .load-img { opacity: 0.35; }

.load-text { flex: 1; }
.load-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}
.load-item[data-state="done"] .load-title { color: var(--text-muted); }
.load-item[data-state="active"] .load-title { color: var(--blue); }
.load-item[data-state="pending"] .load-title { color: var(--text-light); }
.load-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.encryption-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  margin-top: 4px;
}

/* =========================================
   STEP 4: CONGRATS
   ========================================= */
.congrats-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.65;
  margin-bottom: 22px;
}
.savings-amt { color: var(--blue); font-weight: 800; }

.btn-call-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 17px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: background 0.2s, transform 0.15s;
}
.btn-call-big:hover { background: var(--blue-dark); transform: translateY(-1px); }

.agents-online {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 18px;
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.trust-badges {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.tb-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
}
.tb-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* =========================================
   SECTION: COMPARE RATES + PRIVACY
   ========================================= */
.section-compare {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 40px 56px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: stretch;
}

.compare-top-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}
.compare-text { flex: 1; }

.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.section-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 14px;
}
.section-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 380px;
}

.suv-img {
  width: 240px;
  flex-shrink: 0;
  object-fit: contain;
  align-self: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}
.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Privacy card (right column) */
.privacy-card {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.shield-bg {
  position: absolute;
  top: 0; right: -30px;
  width: 260px;
  pointer-events: none;
}
.shield-svg { width: 100%; height: auto; }
.privacy-content { position: relative; z-index: 1; }
.privacy-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.privacy-body {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

/* =========================================
   SECTION: CLAIM + CONCIERGE
   ========================================= */
.section-bottom {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 40px 48px;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: stretch;
}

.claim-card {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}
.piggy-wrap {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 90px;
  height: 90px;
  opacity: 0.35;
}
.piggy-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.claim-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.claim-body {
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.concierge-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.concierge-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}
.concierge-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.btn-expert {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 12px 26px;
  border: 1.5px solid var(--text);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  transition: background 0.2s, color 0.2s;
}
.btn-expert:hover { background: var(--text); color: #fff; }

.concierge-agent {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  position: relative;
  align-self: stretch;
  justify-content: flex-end;
}
.agent-img {
  width: 180px;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  display: block;
}
.quick-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  width: 220px;
}
.quick-tip strong { font-weight: 700; display: inline; }
.tip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  filter: brightness(0) invert(1);
}

/* =========================================
   STICKY BAR
   ========================================= */
.sticky-bar {
  position: sticky;
  bottom: 16px;
  left: 0; right: 0;
  z-index: 50;
  padding: 0 40px;
  pointer-events: none;
}
.sticky-inner {
  max-width: 560px;
  margin: 0 auto;
  pointer-events: all;
}
.sticky-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sticky-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sticky-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.sticky-step {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.sticky-progress-wrap { flex: 1; }
.sticky-progress-bar {
  height: 6px;
  background: #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
}
.sticky-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 6px;
  transition: width 0.6s ease;
}
.btn-call-sticky {
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-call-sticky:hover { background: var(--blue-dark); }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
}
.footer-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 40px 20px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.footer-logo .logo-icon { width: 32px; }
.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--blue); }

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.footer-legal {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.65;
  max-width: 460px;
}
.footer-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.footer-tagline {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-light);
  padding: 16px 40px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* =========================================
   MOBILE RESPONSIVE — 900px
   ========================================= */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 36px 24px 48px;
    gap: 28px;
  }
  .hero-title { font-size: 36px; }

  .section-compare {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
  }
  .compare-top-row { flex-direction: row; }
  .suv-img { width: 200px; }
  .privacy-card { min-height: 220px; order: 2; }

  .section-bottom {
    grid-template-columns: 1fr;
    padding: 0 24px 48px;
  }
  .concierge-card { grid-template-columns: 1fr; }
  .concierge-agent {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
  }
  .agent-img { width: 140px; }
  .quick-tip { width: auto; flex: 1; }

  .sticky-bar { padding: 0 24px; }

  .footer-body { padding: 28px 24px 16px; }
  .footer-top { flex-wrap: wrap; gap: 16px; }
}

/* =========================================
   MOBILE RESPONSIVE — 600px
   ========================================= */
@media (max-width: 600px) {
  .navbar { padding: 0 16px; height: 56px; }
  .logo-text { font-size: 16px; }
  .logo-icon { width: 30px; }
  .btn-call-nav { padding: 9px 18px; font-size: 11px; }

  .hero { min-height: auto; }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(255,255,255,0.96) 0%,
      rgba(255,255,255,0.88) 55%,
      rgba(255,255,255,0.5) 100%
    );
  }
  .hero-inner { padding: 20px 16px 32px; gap: 20px; }
  .hero-title { font-size: 28px; }
  .hero-body { display: none; }

  .form-card { padding: 20px 16px; }
  .step-question { font-size: 19px; }

  /* Step 2 age: single column on small mobile */
  .age-grid { grid-template-columns: 1fr; }
  .age-last { grid-column: 1; }

  .trust-badges {
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
  }

  .section-compare { padding: 36px 16px; }
  .compare-top-row { flex-direction: column; }
  .suv-img { width: 100%; max-width: 280px; margin: 0 auto; }
  .section-title { font-size: 24px; }
  .stats-grid { gap: 8px; }

  .section-bottom { padding: 0 16px 36px; gap: 16px; }
  .claim-card { min-height: 220px; }
  .concierge-card { padding: 20px 16px; grid-template-columns: 1fr; }
  .concierge-agent { flex-direction: column; align-items: flex-start; }
  .agent-img { width: 100%; max-width: 200px; }
  .quick-tip { width: 100%; }

  .sticky-bar { bottom: 10px; padding: 0 12px; }
  .sticky-progress-wrap { display: none; }

  .footer-body { padding: 20px 16px 12px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-nav { gap: 14px; flex-wrap: wrap; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-icons { justify-content: flex-start; }
  .footer-tagline { padding: 12px 16px; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 24px; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .answer-grid.two-col { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
