/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-primary:      #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-bg-tint:      #EFF6FF;
  --color-text-dark:    #1E293B;
  --color-text-muted:   #64748B;
  --color-white:        #FFFFFF;
  --color-border:       #E2E8F0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ============================================================
   HEADER — mobile first
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.625rem 1.25rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Phone number: hidden on mobile, shown on desktop */
.phone-number {
  display: none;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-primary);
  white-space: nowrap;
}

.btn-header-cta {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-header-cta:hover {
  background: var(--color-primary-dark);
}

/* ============================================================
   TRUST BAR — mobile first
   ============================================================ */
.trust-bar {
  background: var(--color-bg-tint);
  padding: 1.125rem 1.25rem 0.5rem;
  display: flex;
  justify-content: center;
}

.carriers-logo {
  max-width: 450px;
  width: 90%;
  height: auto;
  margin: 0 auto;
}

/* ============================================================
   HERO — mobile first
   ============================================================ */
.hero {
  background: var(--color-bg-tint);
  padding: 1rem 1.25rem 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: oklch(37.9% 0.146 265.522);
  margin-bottom: 1.125rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* CTA card */
.cta-card {
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* ZIP input */
.zip-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: left;
}

.zip-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.zip-input:focus {
  border-color: var(--color-primary);
}

.zip-location {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0.25rem 0 0;
  text-align: left;
}

/* Full-width CTA button within the card */
.cta-card .btn-primary {
  width: 100%;
  text-align: center;
  padding: 0.9375rem 1rem;
}

/* ============================================================
   WHY CHOOSE US — mobile first
   ============================================================ */
.why-us {
  background: var(--color-bg-tint);
  padding: 4rem 1.25rem;
}

.why-us-inner {
  max-width: 960px;
  margin: 0 auto;
}

.why-us-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.why-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.why-card-icon {
  display: flex;
  color: var(--color-primary);
}

.why-card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
}

.why-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   HOW IT WORKS — mobile first
   ============================================================ */
.how-it-works {
  background: var(--color-bg-tint);
  padding: 4rem 1.25rem;
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

.how-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.how-card {
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.how-card-image-wrap {
  position: relative;
}

.how-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.how-card-badge {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.how-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.how-card-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.how-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   LEAD FORM SECTION — white background (explicit exception to bg-tint rule)
   ============================================================ */
.lead-form-section {
  background: var(--color-white);
  padding: 4rem 1.25rem;
}

.lead-form-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lead-form-card {
  background: linear-gradient(135deg, var(--color-bg-tint), var(--color-white));
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.lead-form-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lead-form-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
}

.lead-form-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.lead-form-benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lead-form-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.lead-form-benefit-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--color-primary);
}

.lead-form-form-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.lead-form-form-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
}

.form-consent {
  margin-bottom: 1.25rem;
}

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
}

.form-consent-check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-consent-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-consent-link {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-consent-error {
  font-size: 0.85rem;
  color: #DC2626;
  margin-top: 0.375rem;
  margin-bottom: 0;
}

.btn-lead-form-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.btn-lead-form-submit:hover {
  background: var(--color-primary-dark);
}

.lead-form-success {
  text-align: center;
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.lead-form-error {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #DC2626;
  text-align: center;
}

.lead-form-error a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================================
   FAQ ACCORDION — mobile first
   ============================================================ */
.faq {
  background: var(--color-bg-tint);
  padding: 4rem 1.25rem;
}

.faq-inner {
  max-width: 740px;
  margin: 0 auto;
}

.faq-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   DESKTOP — min-width: 768px
   ============================================================ */
@media (min-width: 768px) {

  /* Header */
  .header-inner {
    padding: 0.875rem 2rem;
  }

  .logo-img {
    height: 48px;
  }

  .phone-number {
    display: block;
  }

  .btn-header-cta {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }

  /* Trust bar */
  .trust-bar {
    padding: 1.125rem 2rem 0.5rem;
  }

  .carriers-logo {
    max-width: 700px;
    width: 100%;
  }

  /* Hero */
  .hero {
    padding: 1rem 2rem 5.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-sub {
    font-size: 1.2rem;
  }

  .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
  }

  .cta-card {
    padding: 2.5rem;
  }

  /* How It Works */
  .how-it-works {
    padding: 5rem 2rem;
  }

  .how-heading {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .how-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  /* Lead Form Section */
  .lead-form-section {
    padding: 5rem 2rem;
  }

  .lead-form-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
    padding: 52px;
  }

  .lead-form-left {
    flex: 0 0 45%;
  }

  .lead-form-heading {
    font-size: 2rem;
  }

  .lead-form-right {
    flex: 1;
  }

  .lead-form-form-card {
    padding: 32px;
  }

  /* FAQ */
  .faq {
    padding: 5rem 2rem;
  }

  .faq-heading {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .faq-question {
    padding: 1.25rem 1.5rem;
  }

  .faq-answer p {
    padding: 0 1.5rem 1.25rem;
  }

  /* Why Us */
  .why-us {
    padding: 5rem 2rem;
  }

  .why-us-heading {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .why-us-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ============================================================
   ZIP ERROR — inline validation message (hero + step pages)
   ============================================================ */
.zip-error {
  font-size: 0.875rem;
  color: #DC2626;
  margin: 0.25rem 0 0;
  text-align: left;
}

/* ============================================================
   QUOTE STEP PAGES — shared layout and card
   ============================================================ */
.quote-step-page {
  min-height: 100vh;
  background: var(--color-bg-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 1.25rem 0;
}

/* Full-bleed header inside the padded flex column */
.quote-step-page .site-header {
  align-self: stretch;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
}

.quote-step-card {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 36px 32px;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

/* Push footer to viewport bottom when page content is short */
.quote-step-page .site-footer {
  margin-top: auto;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 1.75rem;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.step-dots {
  display: flex;
  gap: 6px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

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

.step-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.step-subtext {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Gender selector — radio inputs styled as clickable card buttons */
.gender-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.gender-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: center;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.gender-option:hover {
  border-color: var(--color-primary);
}

/* Visually hide the native radio input while keeping it accessible */
.gender-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.gender-option--selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  color: var(--color-primary);
}

.step-error {
  font-size: 0.875rem;
  color: #DC2626;
  margin: 0.25rem 0 0.75rem;
}

/* Step card top row — back button left, step indicator right */
.step-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.step-card-top .step-indicator {
  margin-bottom: 0;
}

.btn-step-back {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  font-family: inherit;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-step-back:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Native select styled to match .form-input */
.form-select {
  appearance: auto;
  background-color: var(--color-white);
  cursor: pointer;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  width: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.25rem;
  /* stretch across the full width even inside column-flex body containers */
  align-self: stretch;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-dark);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.footer-col--legal {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-legal-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-legal-link {
  font-size: 0.9rem;
  color: var(--color-primary);
  text-decoration: none;
}

.footer-legal-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 3rem 2rem;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-col--brand {
    flex: 1;
    max-width: 420px;
  }
}
