:root {
  --blue: #0077c8;
  --green: #6ec72d;
  --text-dark: #1e1e1e;
  --text-light: #555;
  --bg-light: #ffffff;
}

* { box-sizing: border-box; }

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ===== Shared header brand (used on home and quote) ===== */
.logo-stack, .q-brand { display: flex; align-items: center; gap: 0.9rem; }
.logo-img   { width: 150px; height: auto; }
.brand-stack { display: flex; flex-direction: column; line-height: 1; }
.line1 { color: var(--blue);  font-size: 2.2rem; font-weight: 800; }
.line2 { color: var(--green); font-size: 2.2rem; font-weight: 800; }

/* ===== Homepage hero ===== */
.hero { text-align: center; padding: 1.25rem 1rem 2rem; background: linear-gradient(to bottom, #f7faff 0%, #ffffff 100%); }
.quote-cta {
  background: #fff; border: 1px solid #e9eef5; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.07); max-width: 900px;
  margin: 1.25rem auto 1.5rem; padding: 2.25rem 1.75rem 2.5rem;
}
.badge { display: inline-block; padding: .5rem .95rem; font-size: 1rem; font-weight: 700; border-radius: 999px; background: rgba(0,119,200,0.10); color: var(--blue); margin-bottom: .65rem; }
.hero-title { font-size: 2.6rem; font-weight: 800; margin: 0 0 1.35rem; }
.quote-form { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0.75rem auto 0.6rem; }
.quote-form input {
  width: 380px; max-width: 92%; font-size: 1.6rem; padding: 1.05rem 1.3rem; border-radius: 12px; border: 2px solid var(--blue);
  text-align: center; outline: none;
}
.quote-form button {
  font-size: 1.6rem; padding: 1.05rem 2.2rem; border-radius: 12px; border: none; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; transition: background .25s, transform .2s;
}
.quote-form button:hover { background: var(--blue); transform: translateY(-2px); }
.microcopy { margin-top: .6rem; font-size: .95rem; color: var(--text-light); }

.partner-logos {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 2rem; margin: 1.25rem auto 1.75rem; max-width: 900px;
}
.partner-logos img {
  width: 120px; height: 50px; object-fit: contain; opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
}
.partner-logos img:hover { transform: scale(1.05); opacity: 1; }

.fold-divider { width: 88%; max-width: 1000px; margin: 0 auto; border: none; border-top: 2px solid #eef2f7; }

section { margin: 2.25rem auto; max-width: 1000px; padding: 0 1rem; }
.how-it-works h2, .coverage h2, .testimonials h2, .faq h2 { text-align: center; margin-bottom: 1.1rem; }
.how-it-works .steps { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.step { background: #f7f9fb; border: 1px solid #eef2f7; border-radius: 12px; padding: 1rem; text-align: center; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: .5rem; }

.coverage .cards { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.coverage .card { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 1rem; }
.coverage .card h3 { color: var(--blue); margin: 0 0 .4rem; }

.testimonials .quotes { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.testimonials blockquote { background: #fff; border: 1px solid #eef2f7; border-radius: 12px; padding: 1rem; margin: 0; }
.testimonials footer { color: var(--text-light); margin-top: .4rem; }

/* === Secondary ZIP banner restored layout === */
.zip-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blue);
  color: #fff;
  padding: 2rem 1.5rem;
  flex-wrap: wrap;
  text-align: left;
}

.zip-banner p {
  flex: 1;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  min-width: 260px;
}

/* Right side: input stacked neatly above button */
.zip-form-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 260px;
}

.zip-form-inline input[type="text"] {
  width: 260px;
  max-width: 100%;
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 2px solid #ffffffcc;
  background: #fff;
  color: var(--text-dark);
  text-align: center;
  font-weight: 700;
  outline: none;
}

.zip-form-inline .btn-primary {
  width: 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  box-shadow: none;
  background: var(--green);
  color: #fff;
  transition: background 0.25s ease, transform 0.15s ease;
}
.zip-form-inline .btn-primary:hover {
  background: #58b526;
  transform: translateY(-1px);
}

/* Mobile: stack everything cleanly */
@media (max-width: 700px) {
  .zip-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    padding: 1.75rem 1rem;
  }
  .zip-form-inline {
    width: 100%;
  }
  .zip-form-inline input[type="text"],
  .zip-form-inline .btn-primary {
    width: 100%;
    max-width: 320px;
  }
}


/* ===== Footer ===== */
footer { display: flex; justify-content: center; align-items: center; text-align: center; color: var(--text-light); font-size: 0.9rem; padding: 1.5rem 0; background: var(--bg-light); }

/* ===== QUOTE PAGE HEADER / PROGRESS ===== */
.q-header { position: static; background: #fff; box-shadow: none; }
.q-header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0.9rem 1rem 0.4rem;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem;
}
.q-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.q-cta .agent-text { font-weight: 700; color: var(--blue); }
.q-cta .cta-phone  { color: var(--text-dark); text-decoration: none; font-weight: 700; }
.q-cta .cta-phone:hover { color: var(--blue); }
.q-brand { display: flex; align-items: center; gap: 0rem; }
.q-brand .brand-stack { line-height: 1; margin-top: -2px; }

.cta-progress-box {
  background: #f8fbff; border: 1px solid #e4e9f1; border-radius: 16px;
  padding: 0.8rem 1.25rem 1rem;
  max-width: 600px; margin: 0.4rem auto 0.55rem;
  text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.cta-headline { font-size: 1.75rem; font-weight: 800; color: var(--blue); margin: 0 0 0.35rem; }
@keyframes fadeInSwap { from { opacity: .25; filter: blur(1px); } to { opacity:1; filter: blur(0);} }
.cta-headline.fade-in { animation: fadeInSwap 450ms ease forwards; }

.progress--quote { width: 100%; max-width: 360px; margin: 0.25rem auto 0; }
.progress-bar { position: relative; height: 28px; background: #e6e6e6; border-radius: 999px; overflow: hidden; }
.progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--green); border-radius: 999px; z-index: 1; }
.progress-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; color: #fff; z-index: 2; pointer-events: none; }

/* ===== QUOTE CONTENT ===== */
.quote-content { padding-top: 16px; text-align: center; padding-left: 1rem; padding-right: 1rem; }
.q-subtitle { margin: 0.25rem 0 0.65rem; font-weight: 800; font-size: 1.6rem; line-height: 1.2; }
.step-note { margin: 0.5rem 0 1rem; color: var(--text-light); }
.playful { color: var(--text-dark); }

/* ===== BIG Primary Buttons (RESTORED) ===== */
.btn-primary, .btn-secondary {
  display: inline-block;
  width: 100%;
  max-width: 340px;
  padding: 1rem 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}
.btn-primary:hover { background: var(--green); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: #f2f6fb; color: var(--text-dark); }
.btn-secondary:hover { background: #e8eef7; }

/* Center button groups under questions */
.btn-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  max-width: 720px;
  margin: 0.75rem auto 1rem;

  justify-items: center;    /* centers buttons within each column */
  justify-content: center;  /* centers the whole grid under the question */
}

.btn-grid .btn-primary { width: 100%; }   /* ensure full width inside grid cells */

/* YES/NO groups: centered; stack on mobile and slightly bigger */
.btn-grid.yesno {
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  justify-content: center;
}
@media (max-width: 640px) {
  .btn-grid.yesno { grid-template-columns: 1fr; }
  .btn-grid.yesno .btn-primary { font-size: 1.2rem; padding: 1.05rem; }
}

/* Inputs + stacks */
.input-text, select {
  width: 100%; max-width: 520px; padding: 0.8rem 0.9rem; border: 1.5px solid #e3e9f2; border-radius: 10px; font-size: 1rem; margin: 0.3rem auto; display: block;
}
.center-bold { text-align: center; font-weight: 700; }
.stack { max-width: 520px; margin: 0 auto; display: grid; gap: 0.6rem; }

/* Quote address grid (2x2 desktop → stacked mobile) */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-width: 520px;
  margin: 0 auto;
}
.address-grid input {
  width: 100%; text-align: center; font-weight: 700;
}
@media (max-width: 640px) {
  .address-grid { grid-template-columns: 1fr; }
}

/* Legal disclaimer under final submit */
.legal-disclaimer {
  font-size: 0.72rem;
  line-height: 1.25;
  color: #666;
  max-width: 560px;
  margin: 0.75rem auto 0;
  text-align: left;
}

/* Year grid */
.year-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 0.8rem; max-width: 600px; margin: 0.5rem auto 1rem;
}
.year-grid button { background: var(--blue); color: #fff; border: none; padding: 0.8rem; border-radius: 8px; font-weight: 600; cursor: pointer; }
.year-grid button:hover { background: var(--green); }

/* Get Quotes button with iOS-style notification bubble */
.btn-get-quotes { position: relative; padding-right: 2.5rem; }
.btn-get-quotes::after {
  content: "4"; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 999px;
  background: #ff3b30; color: #fff; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,0.25); pointer-events: none;
}

/* Logo divider below steps */
.logo-divider-section { margin-top: 1rem; padding-top: 0.5rem; text-align: center; }
.logo-divider { width: 80%; max-width: 700px; margin: 0.25rem auto 1.5rem; border: none; border-top: 2px solid #e0e0e0; opacity: 0.8; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .q-header-inner { grid-template-columns: 1fr 1fr; }
  .logo-img { width: 110px; }
  .line1, .line2 { font-size: 1.7rem; }

  .q-cta .agent-text, .q-cta .cta-phone { font-size: 0.95rem; }

  .cta-headline { font-size: 1.45rem; }
  .q-subtitle   { font-size: 1.35rem; }

  .progress--quote { max-width: 280px; }
  .progress-bar { height: 24px; }
  .progress-label { font-size: 0.85rem; }

  .partner-logos { gap: 1.5rem; }
  .partner-logos img { width: 90px; height: 40px; }
}

@media (max-width: 360px) {
  .logo-img { width: 98px; }
  .line1, .line2 { font-size: 1.5rem; }

  .cta-headline { font-size: 1.32rem; }
  .q-subtitle   { font-size: 1.22rem; }

  .progress--quote { max-width: 260px; }
  .progress-bar { height: 22px; }
  .progress-label { font-size: 0.78rem; }

  .btn-get-quotes::after { top: -5px; right: -5px; width: 20px; height: 20px; font-size: 11px; box-shadow: 0 0 0 2.5px #fff, 0 2px 5px rgba(0,0,0,0.25); }
}

/* ===== Results Page ===== */
.results-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.results-hero { text-align: center; margin: 0.75rem auto 1.25rem; }
.results-title { margin: 0.4rem 0 0.25rem; font-size: 1.9rem; font-weight: 800; color: var(--blue); }
.results-sub { margin: 0; color: var(--text-light); font-size: 1.05rem; }

.offers-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; margin-top: 1rem; }
.offer-card { grid-column: span 12; background: #fff; border: 1px solid #e4e9f1; border-radius: 16px; padding: 1rem; box-shadow: 0 8px 18px rgba(0,0,0,0.04); }
.offer-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.5rem; }
.offer-logo { width: 140px; height: 56px; object-fit: contain; }
.offer-copy { margin: 0.4rem 0 0.7rem; color: var(--text-dark); }
.offer-cta-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.offer-cta { min-width: 220px; }
.offer-fineprint { color: var(--text-light); }

.offer-card--featured {
  grid-column: span 12;
  border: 2px solid var(--green);
  box-shadow: 0 14px 28px rgba(0, 119, 200, 0.10), 0 8px 18px rgba(0,0,0,0.05);
  position: relative;
  background: linear-gradient(180deg, #f6fff2 0%, #ffffff 42%);
}
.offer-featured-badge {
  position: absolute; top: -10px; left: 16px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 0.75rem;
  padding: 0.28rem 0.55rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.btn-cta-feature { transform: translateZ(0); box-shadow: 0 8px 18px rgba(110, 199, 45, 0.35); }

/* Mobile coverage carousel on home */
@media (max-width: 768px) {
  .coverage .cards {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 1rem; padding-bottom: 1rem;
  }
  .coverage .card {
    flex: 0 0 80%; min-width: 260px; scroll-snap-align: start; border-radius: 12px; background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08); padding: 1.25rem;
  }
  .coverage .cards::-webkit-scrollbar { display: none; }
  .coverage .cards { -ms-overflow-style: none; scrollbar-width: none; }
}
/* === Center ALL buttons (safe drop-in overrides) === */

/* 1) Standalone buttons center themselves */
.btn-primary,
.btn-secondary,
.quote-form button,
.cta-band .cta-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

/* 2) Button groups (yes/no, choices, etc.) */
.btn-grid {
  /* keep your existing grid settings, just center content */
  justify-content: center;   /* centers the grid as a whole */
  justify-items: center;     /* centers each button in its cell */
}

/* 3) Year grid buttons */
.year-grid {
  justify-content: center;
  justify-items: center;
}

/* 4) Buttons inside stacked form steps */
.stack .btn-primary,
.stack button[type="button"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 5) Any flex rows that hold buttons */
.step-buttons,
.offer-cta-row,
.quote-form,
.zip-form-inline {
  justify-content: center;
}
/* === FAQ: carded accordion === */
.faq {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.faq h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .faq-grid { grid-template-columns: 1fr 1fr; }
}

/* Each item looks like a card */
.faq details {
  border: 1.5px solid #e6ecf4;
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.faq details:hover {
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  border-color: #5aa6de; /* subtle lighten on hover */
}

/* Summary row with caret and better hit area */
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1rem 1rem 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.faq summary::-webkit-details-marker { display: none; }

/* Caret icon */
.faq summary::before {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
  transition: transform .2s ease;
  margin-right: .2rem;
}

/* Open state rotates caret */
.faq details[open] summary::before {
  transform: rotate(45deg);
}

/* Answer body */
.faq details > p {
  padding: 0 1.15rem 1rem 2.05rem; /* indented under caret */
  margin: 0;
  color: var(--text-light);
  line-height: 1.55;
  border-top: 1px dashed #e9eef5;
}

/* Optional: light accent background when open */
.faq details[open] {
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 45%);
}
/* === Force tighter spacing + centering for the PRIMARY hero ZIP form === */
.hero .quote-cta .badge {
  margin-bottom: 0.35rem !important;
}

/* Shrink space between badge → headline, and headline → form */
.hero .quote-cta .badge + .hero-title {
  margin-top: 0.35rem !important;
  margin-bottom: 0.45rem !important; /* was larger */
}

.hero .quote-cta .hero-title + .quote-form {
  margin-top: 0.25rem !important;   /* was 0.75rem */
  margin-bottom: 0.4rem !important; /* was 0.6rem */
}

/* Keep input + button close together and perfectly centered */
.hero .quote-cta .quote-form {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.45rem !important;           /* was ~1rem */
  flex-wrap: wrap !important;
}

/* Make sure both controls center and align nicely */
.hero .quote-cta .quote-form input,
.hero .quote-cta .quote-form button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  margin: 0 !important;              /* kill any stray margins */
}

/* Slightly tighter on small screens */
@media (max-width: 600px) {
  .hero .quote-cta .quote-form { gap: 0.35rem !important; }
}
/* === Reduce gap between badge and ZIP input (hero section only) === */
.hero .quote-cta .badge {
  margin-bottom: 0.2rem !important;  /* tighter spacing */
}

.hero .quote-cta .hero-title {
  margin-top: 0.1rem !important;    /* pull headline closer */
  margin-bottom: 0.6rem !important;  /* keep small breathing room before input */
}

.hero .quote-cta .quote-form {
  margin-top: 0.2rem !important;     /* reduce top margin before input */
}
/* === Compliance / Disclaimer (Centered & smaller) === */
.compliance {
  text-align: center !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  color: var(--text-light);
  max-width: 900px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}
/* === Remove hero border and shadow on mobile === */
@media (max-width: 700px) {
  .hero .quote-cta {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}
/* === Mobile: remove hero border/shadow and collapse all gaps === */
@media (max-width: 700px) {
  /* Pull the whole hero up */
  .hero {
    padding-top: 0.25rem !important;        /* was 1.25rem */
    padding-bottom: 1.25rem !important;
  }

  /* Make the card seamless and tighter */
  .hero .quote-cta {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0.25rem auto 0.75rem !important; /* was 1.25rem auto 1.5rem */
    padding: 1rem 1rem 1.25rem !important;   /* was 2.25rem top */
  }

  /* Remove the “Free Quotes • No Spam” gap */
  .hero .quote-cta .badge {
    margin-bottom: 0 !important;
  }

  /* Tighten headline + form spacing */
  .hero .quote-cta .hero-title {
    margin-top: 0.2rem !important;
    margin-bottom: 0.4rem !important;
  }

  .hero .quote-cta .quote-form {
    margin-top: 0.2rem !important;   /* was 0.75rem */
    margin-bottom: 0.35rem !important;
    gap: 0.35rem !important;         /* was ~1rem */
    justify-content: center !important;
    align-items: center !important;
  }
}
/* === Mobile carousels for How-It-Works and Testimonials (like Coverage) === */
@media (max-width: 768px) {
  /* Turn grids into horizontal carousels */
  .how-it-works .steps,
  .testimonials .quotes {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  /* Card sizing + snap behavior */
  .how-it-works .step,
  .testimonials blockquote {
    flex: 0 0 80%;
    min-width: 260px;
    scroll-snap-align: start;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    padding: 1.25rem;
  }

  /* Hide the scrollbar for a cleaner look */
  .how-it-works .steps::-webkit-scrollbar,
  .testimonials .quotes::-webkit-scrollbar {
    display: none;
  }
  .how-it-works .steps,
  .testimonials .quotes {
    -ms-overflow-style: none;      /* IE/Edge */
    scrollbar-width: none;         /* Firefox */
  }
}
/* === Add scroll hint arrows to carousels on mobile === */
@media (max-width: 768px) {
  /* Base positioning for the hint arrow */
  .how-it-works,
  .testimonials {
    position: relative;
  }

  .how-it-works::after,
  .testimonials::after {
    content: "→";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.25);
    animation: scrollHint 1.5s infinite ease-in-out;
    pointer-events: none;
  }

  /* Subtle pulse animation */
  @keyframes scrollHint {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-50%) translateX(6px); opacity: 0.6; }
  }

  /* Only show if overflow is likely */
  .how-it-works .steps,
  .testimonials .quotes {
    padding-right: 2rem; /* leave room for arrow */
  }
}
/* Remove mobile tap highlight and touch focus glow */
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Keep outline for keyboard, but not for touch */
button:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* On coarse pointers (phones), kill button focus ring entirely */
@media (hover: none) and (pointer: coarse) {
  button:focus,
  button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}
/* Kill sticky focus + hover glow on mobile */
button, .btn-primary, .btn-secondary { -webkit-tap-highlight-color: transparent; }
button:focus, .btn-primary:focus, .btn-secondary:focus { outline: none !important; box-shadow: none !important; }

/* On touch devices, disable :hover changes so they don't “stick” */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover, .btn-secondary:hover { 
    transform: none !important;
    /* keep the same color as default so it doesn't look “selected” */
    filter: none !important;
  }
}
/* Kill only the gap between the badge and the "Great success!" heading */
.results-hero .badge { 
  margin-bottom: 0 !important; 
}

.results-hero .badge + .great-success,
.results-hero .badge + .results-heading,
.results-hero .badge + .cta-headline,
.results-hero .badge + h1,
.results-hero .badge + h2 {
  margin-top: 0 !important;
}
/* Mobile-only: make header CTA much smaller and change text */
@media (max-width: 600px) {
  /* shrink the whole CTA cluster */
  .q-cta { gap: 0.1rem; }

  /* lighter, smaller phone pill */
  .q-cta .cta-phone {
    font-size: 0.85rem !important;
    padding: 0.28rem 0.5rem !important;
    border-radius: 999px;
    border-width: 1px;
    box-shadow: none;
  }

  /* hide original copy and inject "Agents Available!" */
  .q-cta .agent-text {
    font-size: 0 !important;              /* hide existing text "Agents Available Now!" */
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  /* small live dot, subtler on mobile */
  .q-cta .agent-text::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(110,199,45,0.28);
    animation: pulseDot 2.6s ease-out infinite;
  }

  /* replace text with shorter version */
  .q-cta .agent-text::after {
    content: "Agents Available!";
    font-size: 0.85rem;                    /* visible size */
    font-weight: 600;
    color: var(--text-dark);
  }
}

/* keep the phone emoji hidden everywhere */
.phone-icon { display: none !important; }

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(110,199,45,0.28); }
  70%  { box-shadow: 0 0 0 8px rgba(110,199,45,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,199,45,0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .q-cta .agent-text::before { animation: none; }
}
/* --- Footer nav (non-intrusive, uses existing variables) --- */
.site-footer {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 1.75rem 1rem;
  border-top: 1px solid #eef2f7;
}

.footer-nav { max-width: 1100px; margin: 0 auto 0.6rem; }
.footer-links {
  display: flex; flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none; margin: 0; padding: 0;
  justify-content: center;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

.footer-copy {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

/* Stack tighter on very small screens */
@media (max-width: 420px) {
  .footer-links { gap: 0.4rem 0.9rem; }
  .footer-links a { font-size: 0.9rem; }
}
/* Footer container */
.site-footer {
  background: var(--bg-light);
  color: var(--text-dark);
  border-top: 1px solid #eef2f7;
  padding: 1.25rem 1rem 1.5rem;
}

/* Nav row */
.footer-nav { max-width: 1100px; margin: 0 auto 0.75rem; }
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.65rem 1.25rem;
}
.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

/* Compliance blurb (centered, muted) */
.footer-legal { max-width: 900px; margin: 0.25rem auto 1rem; }
.compliance-text {
  margin: 0;
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

/* Bottom line */
.footer-bottom {
  border-top: 1px solid #eef2f7;
  padding-top: 0.8rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Tighten on very small screens */
@media (max-width: 420px) {
  .footer-links a { font-size: 0.9rem; }
  .compliance-text { font-size: 0.9rem; }
}
/* ==== Footer: stack everything vertically ==== */
.site-footer {
  padding: 1.25rem 1rem 1.25rem; /* tidy, even spacing */
}

/* 1) Nav links stacked (one per line, centered) */
.site-footer .footer-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.35rem !important;
  justify-items: center !important;
}

.site-footer .footer-links li {
  list-style: none;
}

.site-footer .footer-links a {
  display: block;
  text-align: center;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

/* 2) Compliance blurb directly under nav */
.site-footer .footer-legal {
  max-width: 900px;
  margin: 0.6rem auto 0.6rem !important; /* close to nav & copyright */
}

.site-footer .compliance-text {
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* 3) Copyright at the very bottom */
.site-footer .footer-bottom {
  border-top: 1px solid #eef2f7;
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Optional: tighten on very small screens */
@media (max-width: 420px) {
  .site-footer .footer-links a { font-size: 0.9rem; }
  .site-footer .compliance-text { font-size: 0.9rem; }
}
/* ==== FOOTER: horizontal links → compliance → copyright ==== */
.site-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.6rem !important;        /* tidy vertical spacing */
  padding-top: 1.25rem !important;
}

/* Row of links, centered, wraps on small screens */
.site-footer .footer-nav { 
  width: 100% !important; 
  order: 1; 
}
.site-footer .footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0.65rem 1.25rem !important; /* row + column gaps */
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.site-footer .footer-links li { list-style: none !important; }
.site-footer .footer-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  white-space: nowrap;             /* keeps each item tidy */
}
.site-footer .footer-links a:hover { color: var(--blue); text-decoration: underline; }

/* Compliance text under links */
.site-footer .footer-legal { 
  order: 2;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0.35rem auto 0.35rem !important;
}
.site-footer .compliance-text {
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.5 !important;
  color: var(--text-light);
  font-size: 0.92rem;
}

/* Copyright on its own bottom line */
.site-footer .footer-bottom {
  order: 3;
  width: 100% !important;
  border-top: 1px solid #eef2f7;
  margin-top: 0.4rem !important;
  padding-top: 0.75rem !important;
  text-align: center !important;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Small-screen polish */
@media (max-width: 480px) {
  .site-footer .footer-links a { font-size: 0.9rem; }
  .site-footer { gap: 0.5rem !important; }
}
/* === California Privacy Choices (clean layout) === */
.cp-wrap {
  max-width: 900px;
  margin: 1.25rem auto 2rem;
  padding: 0 1rem;
}

.cp-title {
  text-align: center;
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  margin: 0 0 .35rem;
}

.cp-sub {
  text-align: center;
  color: var(--text-light);
  margin: 0 0 1rem;
}

.pref-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  padding: 1rem 1rem 1.1rem;
  margin: 1rem 0;
}

.pref-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}

.pref-card p {
  margin: 0 0 .9rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.pref-actions {
  display: grid;
  grid-template-columns: 1fr auto; /* buttons left, status right */
  gap: .75rem 1rem;
  align-items: center;
}

.pref-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pref-buttons .btn-primary {
  min-width: 230px;
}

.pref-buttons .btn-secondary {
  min-width: 180px;
  background: #f2f6fb;
  color: var(--text-dark);
}
.pref-buttons .btn-secondary:hover { background: #e8eef7; }

.pref-status {
  justify-self: end;
  font-weight: 700;
  white-space: nowrap;
  color: #b07a00; /* golden hint */
}

.pref-note {
  margin: .55rem 0 0;
  font-size: .93rem;
  color: var(--text-light);
}

/* Mobile: stack status under buttons, full-width controls */
@media (max-width: 680px) {
  .pref-actions { grid-template-columns: 1fr; }
  .pref-status { justify-self: start; }
  .pref-buttons .btn-primary,
  .pref-buttons .btn-secondary { width: 100%; min-width: 0; }
}
/* === FINAL FOOTER HARD-RESET (put LAST in style.css) === */
.site-footer{display:flex!important;flex-direction:column!important;align-items:center!important;gap:.6rem!important}

/* Nav row: horizontal, wraps neatly */
.site-footer nav.footer-nav{width:100%!important}
.site-footer nav.footer-nav ul.footer-links{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:.65rem 1.25rem!important;
}
.site-footer nav.footer-nav ul.footer-links li{list-style:none!important;margin:0!important}
.site-footer nav.footer-nav ul.footer-links a{
  text-decoration:none;
  color:var(--text-light);
  font-size:.95rem;
  white-space:nowrap;
}
.site-footer nav.footer-nav ul.footer-links a:hover{color:var(--blue);text-decoration:underline}

/* Compliance blurb directly under nav */
.site-footer .footer-legal{
  width:100%!important;
  max-width:900px!important;
  margin:.35rem auto!important;
}
.site-footer .compliance-text{
  margin:0!important;
  text-align:center!important;
  line-height:1.5!important;
  color:var(--text-light)
}

/* Copyright at bottom */
.site-footer .footer-bottom{
  width:100%!important;
  border-top:1px solid #eef2f7;
  margin-top:.4rem!important;
  padding-top:.75rem!important;
  text-align:center!important;
  color:var(--text-light);
  font-size:.9rem
}

/* Small-screen polish */
@media (max-width:480px){
  .site-footer{gap:.5rem!important}
  .site-footer nav.footer-nav ul.footer-links a{font-size:.9rem}
}
/* ==== INSUREGEEKS FOOTER – HARD RESET ==== */

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 2rem;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;

  text-align: center;
}

/* Top nav */
.site-footer .footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.site-footer .footer-links li {
  list-style: none !important;
  margin: 0 !important;
}

.site-footer .footer-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

/* Middle legal blurb */
.site-footer .footer-legal {
  max-width: 960px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
}

/* Bottom copyright line */
.site-footer .footer-bottom {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .site-footer {
    padding: 2rem 1.25rem 1.75rem;
    gap: 1rem;
  }

  .site-footer .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .site-footer .footer-links a {
    font-size: 0.9rem;
  }

  .site-footer .footer-legal {
    font-size: 0.9rem;
  }
}
/* ============================
   RESULTS PAGE – AD CARDS v2
   ============================ */

.results-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.results-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.results-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.results-sub {
  font-size: 1.05rem;
  color: #555;
}

/* Outer frame (green outline) */
.results-offers {
  margin-top: 0;
}

.offers-frame {
  border: 3px solid var(--green, #35c36b);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Blue "Recommended for you" bar */
.offers-frame-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.75rem;
  background: var(--blue, #1f5fa1);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
}

.offers-frame-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #27c46b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.offers-frame-text {
  letter-spacing: 0.02em;
}

/* Loading / error states */
.offers-loading,
.offers-error {
  padding: 1.75rem;
  text-align: center;
  font-size: 0.98rem;
}

.offers-loading {
  color: #555;
}

.offers-error {
  color: #c0392b;
  background: #fff4f3;
}

/* List of offer cards */
.offers-list {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* keeps gaps tight on mobile too */
}

/* Offer card base */
.offer-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e7edf5;
  box-shadow: 0 8px 18px rgba(15, 35, 52, 0.04);
  padding: 1.5rem 1.75rem;
  position: relative;
}

.offer-card-inner {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1.8fr) minmax(170px, 0.9fr);
  align-items: center;
  column-gap: 1.75rem;
}

/* Top match styling (position #1) */
.offer-card--top {
  border: 2px solid var(--green, #35c36b);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.offer-card--top::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  border: 2px solid rgba(53, 195, 107, 0.3);
  pointer-events: none;
}

/* Left column: logo + stars */
.offer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.offer-logo {
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

.offer-stars {
  font-size: 0.9rem;
  color: #f4b400;
}

.offer-stars-text {
  letter-spacing: 0.12em;
}

/* Middle column: text */
.offer-main {
  align-self: stretch;
}

.offer-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7a8fa8;
  margin-bottom: 0.35rem;
}

.offer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #283549;
  margin-bottom: 0.75rem;
}

.offer-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 0.9rem 0;
}

.offer-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: #3a4b62;
  margin-bottom: 0.25rem;
}

.offer-bullet-icon {
  color: var(--green, #35c36b);
  font-size: 1.1rem;
  line-height: 1.2;
  margin-top: 0.05rem;
}

.offer-domain {
  font-size: 0.85rem;
  color: #7a8fa8;
}

/* Right column: CTA */
.offer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  justify-self: flex-end;
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 180px;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  background: var(--green, #35c36b);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 10px 22px rgba(53, 195, 107, 0.45);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.offer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(53, 195, 107, 0.5);
}

.offer-btn-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.offer-rank-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ff7b31;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* "Top Match" label for rank 1 */
.offer-top-label {
  margin-top: 0.1rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(53, 195, 107, 0.12);
  color: var(--green, #35c36b);
}

/* Tighten spacing between cards on small screens */
@media (max-width: 900px) {
  .offer-card-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.15rem;
  }

  .offer-left {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }

  .offer-logo {
    max-width: 150px;
  }

  .offer-cta {
    align-items: flex-start;
  }

  .offer-btn {
    width: 100%;
  }

  .offers-list {
    gap: 1rem; /* smaller gaps */
  }

  .offer-card {
    padding: 1.25rem 1.3rem;
  }
}

@media (max-width: 600px) {
  .results-wrap {
    padding: 2.2rem 1.1rem 3rem;
  }

  .offers-frame {
    border-radius: 22px;
  }

  .offers-frame-header {
    padding-inline: 1.25rem;
  }

  .offers-list {
    padding: 1.25rem;
    gap: 0.85rem;  /* really tighten vertical gap between advertisers */
  }

  .offer-card {
    border-radius: 16px;
  }

  .offer-card--top::before {
    border-radius: 18px;
  }
}
/* === UNIVERSAL INSUREGEEKS FOOTER (MATCH ABOUT PAGE) === */
/* Paste this at the very bottom of style.css */

.site-footer {
  margin-top: 3rem !important;
  padding: 2.5rem 1.5rem 2rem !important;
  background: #fff !important;
  border-top: 1px solid rgba(0,0,0,0.06) !important;
  text-align: center !important;
}

/* Nav row */
.footer-nav {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto 0.75rem !important;
}

/* HORIZONTAL LINKS – NEVER STACK VERTICALLY */
.footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex !important;
  flex-direction: row !important;   /* always a row */
  flex-wrap: wrap !important;       /* wrap to 2nd line as needed */
  justify-content: center !important;
  align-items: center !important;
  gap: 0.65rem 1.5rem !important;
}

.footer-links li {
  list-style: none !important;
  margin: 0 !important;
}

.footer-links a {
  color: #555 !important;
  text-decoration: none !important;
  font-size: 0.95rem !important;
  white-space: nowrap !important;
}

.footer-links a:hover {
  color: var(--blue) !important;
  text-decoration: underline !important;
}

/* Compliance blurb */
.footer-legal {
  width: 100% !important;
  max-width: 960px !important;
  margin: 0 auto 0.75rem !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  color: #555 !important;
  text-align: center !important;
}

/* Copyright line */
.footer-bottom {
  width: 100% !important;
  border-top: 1px solid #eef2f7 !important;
  padding-top: 0.75rem !important;
  margin-top: 0.4rem !important;
  font-size: 0.9rem !important;
  color: #777 !important;
  text-align: center !important;
}
/* ========= RESULTS PAGE SPACING TWEAKS ========= */

/* Pull the results content closer to the header and footer */
.results-wrap {
  padding: 1.75rem 1.25rem 1.75rem !important; /* was much larger */
}

/* Tighten the gap between "Great Success" and the first ad card */
.results-hero {
  margin-bottom: 1.4rem !important;
}

/* Reduce gap between carrier logos and footer */
.results-wrap .logo-divider-section {
  margin: 1.25rem auto 0.75rem !important; /* less bottom margin */
}

/* ========= HEADER: CENTER LOGO WHEN PHONE IS HIDDEN ========= */
/* When JS adds .closed (outside call hours), hide the CTA and center the brand */

.q-header-inner.closed .q-cta {
  display: none !important;
}

.q-header-inner.closed {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

.q-header-inner.closed .q-brand {
  justify-content: center !important;
}
/* ============================================================
   RESULTS PAGE – FINAL SPACING + CENTERED HEADER FIXES
   ============================================================ */

/* 1) CENTER LOGO when CTA is closed */
.results-header .q-header-inner.closed,
.q-header-inner.results-closed {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  text-align: center !important;
}

.results-header .q-header-inner.closed .q-cta,
.q-header-inner.results-closed .q-cta {
  display: none !important;
}

.results-header .q-header-inner.closed .q-brand,
.q-header-inner.results-closed .q-brand {
  justify-content: center !important;
  margin: 0 auto !important;
}

/* 2) Reduce GAP between logo and “Great Success!” */
.results-hero {
  margin-top: 0.5rem !important;   /* was much larger */
  margin-bottom: 1.25rem !important;
}

/* 3) Reduce space before the first advertiser card */
.results-wrap {
  padding-top: 0.5rem !important;
}

/* 4) Tighten space between partner logos and footer */
.logo-divider-section {
  margin: 0.75rem auto 0.5rem !important;
}

.partner-logos {
  margin: 0.5rem auto 0.75rem !important;
}

/* 5) Reduce extra whitespace under partner logos on mobile */
@media (max-width: 680px) {
  .partner-logos {
    margin-bottom: 0.35rem !important;
  }
  .logo-divider {
    margin-bottom: 0.5rem !important;
  }
  .site-footer {
    margin-top: 1.25rem !important;
  }
}
/* === CENTER INSUREGEEKS LOGO WHEN CALL CTA IS CLOSED === */

/* When .closed is on the header (set by JS schedule), make it 1 column */
.q-header-inner.closed {
  grid-template-columns: 1fr !important;
  justify-items: center !important;
}

/* Hide the phone CTA entirely in "closed" state */
.q-header-inner.closed .q-cta {
  display: none !important;
}

/* Center the logo row itself */
.q-header-inner.closed .q-brand {
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ==== HEADER CLOSED STATE – MATCH HOME PAGE ==== */
/* When the schedule is closed, center the InsureGeeks logo
   and hide the phone CTA on ALL pages (home, quote, results). */

.q-header-inner.closed {
  grid-template-columns: 1fr !important;   /* single centered column */
  justify-items: center !important;        /* center grid content */
}

.q-header-inner.closed .q-brand {
  justify-content: center !important;      /* center logo + text in its row */
}

.q-header-inner.closed .q-cta {
  display: none !important;                /* hide phone row completely */
}
/* === RESULTS PAGE: FINAL HEADER + SPACING OVERRIDES === */

/* 1) When header is "closed", turn it into a centered flex row */
header.q-header .q-header-inner.closed {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  max-width: 1100px;
  margin: 0 auto;
}

/* hide phone CTA in closed state */
header.q-header .q-header-inner.closed .q-cta {
  display: none !important;
}

/* make sure the logo block itself is centered */
header.q-header .q-header-inner.closed .q-brand {
  margin: 0 auto !important;
}

/* 2) Tighten gap between logo and "Great Success!" */
.results-wrap {
  padding-top: 0.3rem !important;  /* pull content up */
}

.results-hero {
  margin-top: 0.25rem !important;  /* reduce space under logo */
  margin-bottom: 1.1rem !important;
}

/* 3) Tighten gap between partner logos and footer */
.logo-divider-section {
  margin: 0.5rem auto 0.4rem !important;
}

.partner-logos {
  margin: 0.4rem auto 0.4rem !important;
}

@media (max-width: 680px) {
  .partner-logos {
    margin-bottom: 0.25rem !important;
  }
  .logo-divider {
    margin-bottom: 0.35rem !important;
  }
  .site-footer {
    margin-top: 1rem !important;
  }
}
