/* ==========================================================================
   SolarMortgageGuide.com — Design System
   Mobile-first. Brand: navy #152E63, white, black, subtle green solar accent.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #152E63;
  --navy-dark: #0E2047;
  --navy-light: #24417F;
  --white: #FFFFFF;
  --black: #000000;
  --ink: #1A1D24;
  --ink-soft: #4B5266;

  /* Derived light-blue tints from navy */
  --blue-50: #F4F7FC;
  --blue-100: #E8EEF8;
  --blue-200: #D2DEF0;
  --blue-300: #AFC3E2;

  /* Subtle solar/green accent — supporting only */
  --sun: #E8A93B;
  --sun-soft: #FBF1DC;
  --leaf: #3E8E5A;
  --leaf-soft: #E7F3EC;

  /* Semantic */
  --success: #2E7D4F;
  --error: #B3261E;
  --border: #DFE5F0;
  --shadow-sm: 0 1px 3px rgba(21,46,99,0.08), 0 1px 2px rgba(21,46,99,0.06);
  --shadow-md: 0 6px 20px rgba(21,46,99,0.10), 0 2px 6px rgba(21,46,99,0.06);
  --shadow-lg: 0 16px 40px rgba(21,46,99,0.16), 0 4px 12px rgba(21,46,99,0.08);

  /* Type */
  --font-body: "Avenir Next LT Pro", "Avenir Next", "Avenir", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Avenir Next LT Pro", "Avenir Next", "Avenir", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Layout */
  --container-max: 1180px;
  --header-h: 72px;
  --mobile-bar-h: 64px;
}


/* ---------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--mobile-bar-h);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, select, textarea { font-family: inherit; font-size: 16px; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-6); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------- Typography ------------------------------- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.18;
  color: var(--navy);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.3;
  color: var(--navy);
}
h4, .h4 {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}
.lede {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
}
.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head p { margin-top: var(--space-3); }
.text-center { text-align: center; }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  min-height: 52px;
  line-height: 1.2;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--sun);
  color: var(--navy-dark);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #DE9A22; box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--blue-50); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--blue-300);
}
.btn-ghost:hover { background: var(--blue-50); }
.btn-phone {
  background: var(--navy);
  color: var(--white);
}
.btn-phone:hover { background: var(--navy-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 1.08rem; }
.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.cta-row.center { justify-content: center; }

/* ---------------------------------- Cards --------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}
.card-elevated { box-shadow: var(--shadow-md); }

/* --------------------------------- Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  white-space: nowrap;
}
.brand .brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand .brand-mark svg { width: 20px; height: 20px; }
/* SolarMortgageGuide.com is a long wordmark - step it down on narrow screens
   so it can't collide with the header button. */
@media (max-width: 600px) {
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand .brand-mark svg { width: 17px; height: 17px; }
}
@media (max-width: 430px) {
  .brand { font-size: 0.86rem; }
  .brand .brand-mark { width: 27px; height: 27px; border-radius: 7px; }
  .brand .brand-mark svg { width: 15px; height: 15px; }
  /* keep the header CTA on a single line next to the longer wordmark */
  .site-header .btn-sm { padding: 9px 12px; font-size: 0.82rem; white-space: nowrap; }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
  font-weight: 600;
  font-size: 0.95rem;
}
.primary-nav a { color: var(--ink); padding: 6px 2px; border-bottom: 2px solid transparent; }
.primary-nav a:hover { color: var(--navy); border-bottom-color: var(--sun); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.header-call {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  white-space: nowrap;
}
.header-call svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .header-call { display: inline-flex; }
}

/* ------------------------------ Mobile sticky bar -------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  height: var(--mobile-bar-h);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(21,46,99,0.10);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px;
  padding: 8px 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
@media (min-width: 1024px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}
.mobile-bar .btn { min-height: 48px; padding: 10px 12px; font-size: 0.92rem; }

/* ---------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding: var(--space-7) 0 var(--space-8);
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--blue-100) 0%, rgba(244,247,252,0) 60%),
    linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-copy h1 { margin-bottom: var(--space-4); }
.hero-copy .lede { margin-bottom: var(--space-5); }

.audience-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}
.audience-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.audience-card:hover { border-color: var(--navy-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.audience-card[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--blue-50);
  box-shadow: var(--shadow-md);
}
.audience-card .ac-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.audience-card .ac-icon svg { width: 22px; height: 22px; color: var(--navy); }
.audience-card strong { color: var(--navy); font-size: 1rem; }
.audience-card span { font-size: 0.86rem; color: var(--ink-soft); }

.hero-phone {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
}
.hero-phone svg { width: 22px; height: 22px; }
.hero-phone a { border-bottom: 2px solid var(--sun); }

.hero-disclosure {
  margin-top: var(--space-4);
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.5;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.1;
  background: linear-gradient(160deg, var(--blue-200), var(--blue-100));
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .media-badge {
  position: absolute;
  left: var(--space-4); bottom: var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}
.hero-media .media-badge svg { width: 20px; height: 20px; color: var(--leaf); }

/* --------------------------------- Sections -------------------------------- */
.section { padding: var(--space-8) 0; }
.section-alt { background: var(--blue-50); }
.section-navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .lede { color: #C9D6EC; }
.section-tight { padding: var(--space-6) 0; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

/* ------------------------------ Benefit grid -------------------------------- */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.benefit-card .bc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.benefit-card .bc-icon.sun-icon { background: var(--sun-soft); }
.benefit-card .bc-icon.leaf-icon { background: var(--leaf-soft); }
.benefit-card .bc-icon svg { width: 26px; height: 26px; color: var(--navy); }
.benefit-card .bc-icon.leaf-icon svg { color: var(--leaf); }
.benefit-card h3 { margin-bottom: var(--space-2); }
.benefit-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ------------------------------ Compensation -------------------------------- */
.comp-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  border: 1px solid var(--border);
  position: relative;
}
.comp-figure {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-4) 0;
}
.comp-figure .num {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.comp-figure .cap {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.comp-list { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.comp-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink);
}
.comp-list li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--leaf); margin-top: 2px; }
.comp-uses {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px dashed var(--border);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.tag {
  background: var(--blue-100);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}
.disclosure-box {
  margin-top: var(--space-5);
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-size: 0.83rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------- Checklists -------------------------------- */
.check-list { display: grid; gap: var(--space-3); }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.check-list.eligible li .ic { color: var(--leaf); }
.check-list.ineligible li .ic { color: var(--ink-soft); }
.check-list li .ic { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; }
.check-list li p { color: var(--ink); font-size: 0.95rem; }
.check-list li strong { display: block; color: var(--navy); margin-bottom: 2px; font-size: 0.97rem; }

/* --------------------------------- Steps -------------------------------- */
.steps-list {
  display: grid;
  gap: var(--space-4);
  counter-reset: step-counter;
}
@media (min-width: 900px) {
  .steps-list { grid-template-columns: 1fr 1fr; }
}
.step-item {
  display: flex;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.step-item h3 { margin-bottom: 4px; }
.step-item p { color: var(--ink-soft); font-size: 0.94rem; }

/* --------------------------------- Comparison table -------------------------------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
}
table.compare th, table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.compare thead th {
  background: var(--blue-50);
  color: var(--navy);
  font-weight: 700;
  position: sticky;
  top: 0;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td:first-child, table.compare th:first-child {
  font-weight: 700;
  color: var(--navy);
  min-width: 190px;
}

/* --------------------------------- Trust / Testimonials -------------------------------- */
.trust-grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: 0.85fr 1.15fr; }
}
.trust-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--blue-200), var(--blue-100));
}
.credential-list { display: grid; gap: 10px; margin-top: var(--space-4); }
.credential-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  align-items: flex-start;
}
.credential-list li svg { width: 18px; height: 18px; color: var(--navy); flex-shrink: 0; margin-top: 3px; }
.logo-row { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-5); flex-wrap: wrap; }
.logo-row .logo-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
  background: var(--blue-50); border: 1px solid var(--blue-200);
  padding: 10px 14px; border-radius: var(--radius-sm);
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stars { color: var(--sun); font-size: 1rem; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--ink); font-size: 0.96rem; font-style: italic; flex-grow: 1; }
.testimonial-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.83rem; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: var(--space-3); }
.testimonial-meta strong { color: var(--navy); }

/* --------------------------------- FAQ -------------------------------- */
.faq-list { display: grid; gap: var(--space-3); max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy);
}
.faq-q .chev { flex-shrink: 0; width: 20px; height: 20px; transition: transform .2s ease; color: var(--ink-soft); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 var(--space-5) var(--space-5); color: var(--ink-soft); font-size: 0.94rem; line-height: 1.65; }
.faq-item summary { list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }

/* --------------------------------- Forms -------------------------------- */
.form-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: var(--space-5);
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .form-panel { padding: var(--space-6); }
}
.form-progress { margin-bottom: var(--space-5); }
.form-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; font-weight: 700; color: var(--navy);
  margin-bottom: 8px;
}
.form-progress-track {
  height: 8px; background: var(--blue-100); border-radius: var(--radius-pill); overflow: hidden;
}
.form-progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--sun), #F2C069);
  border-radius: var(--radius-pill);
  transition: width .35s ease;
  width: 25%;
}
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }

.field { margin-bottom: var(--space-4); }
.field label {
  display: block; font-weight: 700; font-size: 0.92rem; color: var(--navy); margin-bottom: 8px;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; display: block; margin-top: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  min-height: 52px;
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus { border-color: var(--navy); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field-error {
  color: var(--error); font-size: 0.82rem; margin-top: 6px; display: none;
}
.field-error.visible { display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-grid.single-col { grid-template-columns: 1fr; }
.choice-btn {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.choice-btn[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--blue-50);
  color: var(--navy);
}

.consent-block {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.consent-block input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.form-callnote {
  margin-top: var(--space-4);
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.form-callnote a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.form-success { text-align: center; padding: var(--space-5) 0; }
.form-success .success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--leaf-soft); color: var(--leaf);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-4);
}
.form-success .success-icon svg { width: 34px; height: 34px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* --------------------------------- Final CTA -------------------------------- */
.final-cta { text-align: center; }
.final-cta .cta-row { justify-content: center; margin-top: var(--space-5); }
.final-cta .fine-print { margin-top: var(--space-4); font-size: 0.82rem; color: #C9D6EC; max-width: 640px; margin-inline: auto; }

/* --------------------------------- Footer -------------------------------- */
.site-footer {
  background: var(--navy-dark);
  color: #C9D6EC;
  padding: var(--space-8) 0 var(--space-6);
  font-size: 0.87rem;
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: var(--space-3); }
.site-footer h4 { color: var(--white); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.site-footer a { color: #C9D6EC; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links { display: grid; gap: 8px; }
.footer-badges { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-3); }
.footer-badge {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  display: flex; align-items: center; gap: 6px;
}
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-5);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #9FB1D4;
}
.footer-disclaimer p + p { margin-top: var(--space-3); }
.footer-bottom {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  color: #8FA2C8;
  font-size: 0.78rem;
}

/* --------------------------------- Breadcrumb / simple page hero --------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--blue-50), var(--white));
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
}
.legal-content { padding: var(--space-7) 0; }
.legal-content h2 { margin-top: var(--space-6); margin-bottom: var(--space-3); }
.legal-content h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.7; }
.legal-content li { margin-bottom: 6px; }
.legal-content ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--space-4); }
.legal-content a { color: var(--navy); text-decoration: underline; }
.legal-content .updated { color: var(--ink-soft); font-size: 0.85rem; margin-top: var(--space-2); }

.badge-note {
  display: inline-block;
  background: var(--sun-soft);
  border: 1px solid #F0DBA6;
  color: #7A5A12;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

/* --------------------------------- Prep checklist (thank you) --------------------------------- */
.prep-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.prep-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--blue-50); border-radius: var(--radius-sm); padding: var(--space-4);
}
.prep-list li svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }

/* --------------------------------- Utility --------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--ink-soft); }
.text-sm { font-size: 0.88rem; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
