/* Clear Choice Services — site stylesheet */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --hero: #0f172a;
  --hero-soft: #1e293b;
  --max: 1200px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --header-logo-width: 218px;
  --header-logo-width-mobile: 187px;
  --header-subtitle-size: 17px;
  --header-subtitle-size-mobile: 16px;
  --header-nav-size: 15px;
  --header-nav-size-mobile: 14px;
  --header-nav-gap: 20px;
  --header-nav-gap-mobile: 16px;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.form-honeypot {
  display: none !important;
}

.container {
  width: min(calc(100% - clamp(16px, 4vw, 32px)), var(--max));
  margin: 0 auto;
}

/* ── Header (logo — scrolls away) ── */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  text-align: center;
}

.site-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.brand img {
  width: var(--header-logo-width);
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.brand-subtitle {
  display: block;
  font-size: clamp(0.8rem, 1.2vw + 0.55rem, var(--header-subtitle-size));
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
  max-width: min(92vw, 34ch);
}

/* ── Nav bar (sticky — follows scroll) ── */

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-bar .container {
  position: relative;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-label {
  line-height: 1;
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--header-nav-gap);
  overflow-x: auto;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  padding: 10px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.nav a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: var(--header-nav-size);
  font-weight: 600;
  line-height: 1.2;
  color: #334155;
  padding: 6px 2px;
  scroll-snap-align: center;
}

.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); }

.nav-toggle:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Layout ── */

main { padding: 36px 0 64px; }

/* ── Slideshow ── */

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto 40px auto;
  touch-action: pan-y;
  user-select: none;
}

.slides {
  display: flex;
  width: 100%;
  background: #0b1220;
  transform: translateX(0);
  transition: transform 0.7s ease;
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  box-sizing: border-box;
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.slide.active {
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0b1220;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0.12));
  font-size: 15px;
  font-weight: 500;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.slide-btn:hover { background: #fff; }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }

.slide-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.32);
  backdrop-filter: blur(6px);
}

.slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}

.slide-dots button.active { background: #fff; transform: scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .slides { transition: none; }
}

/* ── Hero ── */

.hero {
  background: linear-gradient(135deg, var(--hero), var(--hero-soft));
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  border-radius: 14px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 span { color: #60a5fa; }

.hero p {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(17px, 2vw, 20px);
  color: #dbeafe;
  font-weight: 500;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.is-loading {
  cursor: wait;
  opacity: 0.88;
  pointer-events: none;
  transform: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
}

/* ── Sections ── */

.section { margin-bottom: 54px; }

.section-center {
  text-align: center;
  padding: 0 20px;
}

.section-center .quote {
  font-size: 22px;
  color: #1e293b;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-center .sub {
  color: var(--muted);
  font-size: 16px;
}

.section-title {
  text-align: center;
  font-size: 30px;
  margin: 0 0 26px;
  color: #0f172a;
}

/* ── Service cards ── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
}

.card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #1e293b;
}

.card p { margin: 0; color: #475569; }

/* ── Offer banner ── */

.offer {
  background: #eff6ff;
  border: 2px dashed #3b82f6;
  border-radius: 14px;
  padding: 30px 24px;
  text-align: center;
}

.offer h3 {
  margin: 0;
  font-size: 26px;
  color: #1e40af;
}

.offer p {
  margin: 10px 0 0;
  font-size: 18px;
  color: #1e3a8a;
}

/* ── Testimonial ── */

.testimonial {
  text-align: center;
  padding: 0 20px;
}

.stars {
  font-size: 24px;
  color: #fbbf24;
  margin-bottom: 10px;
}

.testimonial blockquote {
  margin: 0 auto 14px;
  max-width: 760px;
  font-size: 18px;
  color: #334155;
  font-style: italic;
}

.testimonial .author {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

/* ── Contact / Form ── */

.contact-intro {
  text-align: center;
  margin-bottom: 26px;
}

.contact-intro h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
}

.form-shell {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.form-shell iframe {
  width: 100%;
  height: 3800px;
  border: 0;
  display: block;
}

/* ── Terms ── */

.terms {
  background: var(--panel);
  border-top: 4px solid #cbd5e1;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 14px;
}

.terms h2 {
  text-align: center;
  color: #334155;
  margin: 0 0 24px;
}

.terms .lead {
  text-align: center;
  margin-bottom: 24px;
}

.terms details {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}

.terms summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 700;
}

.terms .terms-body { margin-top: 16px; color: #475569; }

/* ── Footer ── */

.site-footer {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #94a3b8;
  font-size: 14px;
}

.site-footer p { margin: 0 0 10px; }

/* ── Form availability states ── */

.form-status-checking {
  text-align: center;
  color: var(--muted);
  padding: 28px 0;
  font-size: 15px;
}

.form-fallback-box {
  text-align: center;
  padding: 36px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.form-fallback-box p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

/* ── Multi-step form shell ── */

.form-ms {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Progress bar ── */

.step-progress {
  padding: 20px 28px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.step-progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.step-progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.35s ease;
  width: 20%;
}

.step-progress-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ── Individual steps ── */

.form-step {
  display: none;
  padding: 28px 28px 10px;
}

.form-step.active {
  display: block;
  view-transition-name: estimate-form-step;
}

::view-transition-old(estimate-form-step),
::view-transition-new(estimate-form-step) {
  animation-duration: 0.18s;
}

.step-title {
  margin: 0 0 20px;
  font-size: 20px;
  color: #1e293b;
}

.step-subtitle {
  margin: -12px 0 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Privacy box ── */

.privacy-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 20px;
  line-height: 1.65;
}

.privacy-box strong { color: #334155; }

/* ── Form fields ── */

.form-field {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-label .req { color: #dc2626; margin-left: 2px; }

.form-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-input.input-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.form-input.input-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}

.form-address-status {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

#property_address_manual {
  margin-top: 14px;
}

/* ── Checkboxes & radios ── */

.check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  color: #334155;
  cursor: pointer;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.check-item:hover {
  background: #f8fbff;
  border-color: rgba(37,99,235,0.24);
}

.check-item:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.check-item input[type=checkbox],
.check-item input[type=radio] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.check-item span:last-child {
  flex: 1;
}

@supports selector(.check-item:has(input:checked)) {
  .check-item:has(input:checked) {
    border-color: rgba(37,99,235,0.45);
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
  }
}

/* ── Other text input (shown when "Other" radio selected) ── */

.other-input-wrap {
  margin-top: 8px;
  margin-left: 27px;
}

.other-input-wrap input {
  width: 100%;
  max-width: 360px;
}

/* ── Validation errors ── */

.field-error,
.group-error,
.radio-error {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: #dc2626;
}

/* ── Step navigation ── */

.step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.step-nav .btn-secondary {
  background: var(--panel);
  color: #334155;
  border: 1px solid var(--line);
}

.step-nav .btn-secondary:hover { background: var(--line); }

/* ── Rate limit message ── */

.form-rate-limit-msg {
  margin: 0 28px 16px;
  padding: 12px 16px;
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 8px;
  font-size: 14px;
  color: #713f12;
}

.form-rate-limit-msg a { color: #1d4ed8; }

/* ── Success state ── */

.form-success-box {
  text-align: center;
  padding: 56px 28px;
}

.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-success-box h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #0f172a;
}

.form-success-box p { color: var(--muted); margin: 0; }

/* ── Responsive ── */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 54px 20px; }
  .slide-btn { width: 40px; height: 40px; }
}

@media (max-width: 820px) {
  :root {
    --header-logo-width-mobile: 178px;
    --header-subtitle-size-mobile: 15px;
    --header-nav-size-mobile: 13px;
    --header-nav-gap-mobile: 14px;
  }

  .container { width: min(100% - 24px, var(--max)); }
  .nav {
    justify-content: flex-start;
    padding: 9px 10px;
  }
}

@media (max-width: 640px) {
  main { padding-top: 26px; }
  .container { width: min(100% - 20px, var(--max)); }
  .site-header { padding: 12px 0; }
  .brand { gap: 6px; }
  .brand img { width: var(--header-logo-width-mobile); }
  .brand-subtitle { font-size: var(--header-subtitle-size-mobile); }
  .nav { gap: var(--header-nav-gap-mobile); padding: 8px 4px; }
  .nav a { font-size: var(--header-nav-size-mobile); }
  .slide { aspect-ratio: 4 / 5; }
  .slide img { object-fit: cover; }
  .slide-caption { font-size: 14px; padding: 12px 14px 48px; }
  .slide-dots { bottom: 10px; }
}

@media (max-width: 768px) {
  .nav-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding: 6px 0 2px;
    overflow: visible;
    white-space: normal;
    scroll-snap-type: none;
  }

  .nav-bar.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    border-top: 1px solid var(--line);
  }

  .nav a.active {
    color: var(--blue);
    background: rgba(37, 99, 235, 0.06);
  }

  .nav-bar.is-open .nav-toggle-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-bar.is-open .nav-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .nav-bar.is-open .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (max-width: 480px) {
  :root {
    --header-logo-width-mobile: 164px;
    --header-subtitle-size-mobile: 13px;
    --header-nav-size-mobile: 12px;
    --header-nav-gap-mobile: 10px;
  }

  .container { width: min(100% - 18px, var(--max)); }
  .site-header { padding: 10px 0; }
  .brand-subtitle { max-width: 24ch; }
  .nav {
    padding: 7px 8px;
    gap: var(--header-nav-gap-mobile);
  }
  .nav a { padding: 5px 1px; }
}

@media (max-width: 360px) {
  :root {
    --header-logo-width-mobile: 150px;
    --header-subtitle-size-mobile: 12px;
    --header-nav-size-mobile: 11px;
    --header-nav-gap-mobile: 8px;
  }

  .container { width: min(100% - 16px, var(--max)); }
  .nav { padding: 6px 6px; }
}

/* ════════════════════════════════════════════════════════════════
   Severe Accessibility Patch — Estimate Form
   Target: 80+ users with macular degeneration and hand tremors.
   All rules scoped to contact/form elements.
   No submission, API, proxy, or validation logic is changed.
   ════════════════════════════════════════════════════════════════ */

/* ── Contact intro — dominant heading, phone as visible CTA ── */

.contact-intro {
  margin-bottom: 44px;
}

.contact-intro h2 {
  font-size: 46px;
  color: #0f172a;
  line-height: 1.1;
}

.contact-intro p {
  font-size: 21px;
  color: #1e293b;
  line-height: 1.6;
}

.contact-intro p strong {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  border: 2px solid #93c5fd;
  border-radius: 8px;
  padding: 6px 16px;
  white-space: nowrap;
}

/* ── Progress bar — 24px thick, readable label ── */

.step-progress {
  padding: 24px 28px 18px;
}

.step-progress-track {
  height: 24px;
  border-radius: 12px;
}

.step-progress-fill {
  border-radius: 12px;
}

.step-progress-label {
  font-size: 18px;
  color: #1e293b;
  font-weight: 700;
  margin-top: 10px;
}

/* ── Step titles and subtitles ── */

.step-title {
  font-size: 32px;
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-subtitle {
  font-size: 20px;
  color: #334155;
  line-height: 1.5;
}

/* ── Form fields — 22px labels, 20px inputs ── */

.form-field {
  margin-bottom: 30px;
}

.form-label {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
}

.form-input {
  font-size: 20px;
  padding: 18px 20px;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  line-height: 1.4;
}

select.form-input {
  min-height: 62px;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.form-input:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 2px;
}

.form-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-address-status {
  font-size: 18px;
  color: #334155;
  margin-top: 8px;
}

/* ── Other-option text input ── */

.other-input-wrap {
  margin-top: 12px;
  margin-left: 0;
}

.other-input-wrap input {
  max-width: 100%;
}

/* ── Check/radio rows — 34px controls, large card targets ── */

.check-group {
  gap: 16px;
}

.check-item {
  padding: 24px 28px;
  font-size: 20px;
  line-height: 1.6;
  gap: 22px;
  border-width: 3px;
  border-radius: 14px;
  align-items: center;
}

.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: 34px;
  height: 34px;
  margin-top: 0;
  flex-shrink: 0;
}

.check-item:hover {
  border-color: var(--blue);
  background: #f0f7ff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}

.check-item:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.22);
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

@supports selector(.check-item:has(input:checked)) {
  .check-item:has(input:checked) {
    border-color: var(--blue);
    background: #dbeafe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  }
}

/* ── Validation errors — very visible ── */

.field-error,
.radio-error,
.group-error {
  font-size: 18px;
  font-weight: 700;
  color: #b91c1c;
  margin-top: 12px;
}

/* ── Step navigation — very large buttons ── */

.step-nav {
  padding: 28px 28px 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.step-nav .btn {
  min-height: 68px;
  padding: 20px 44px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 12px;
}

.step-nav .btn-secondary {
  color: #1e293b;
  border-width: 2px;
}

.btn:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

/* ── Privacy box — readable at a glance ── */

.privacy-box {
  font-size: 18px;
  padding: 28px 32px;
  line-height: 1.8;
  border-width: 2px;
}

/* ── Form status / fallback / success ── */

.form-status-checking {
  font-size: 21px;
  color: #334155;
  padding: 44px 0;
}

.form-fallback-box {
  padding: 64px 36px;
  border-width: 3px;
}

.form-fallback-box p {
  font-size: 22px;
  color: #1e293b;
  margin-bottom: 28px;
}

.form-fallback-box .btn {
  min-height: 64px;
  padding: 18px 40px;
  font-size: 21px;
}

.form-success-icon {
  width: 96px;
  height: 96px;
  font-size: 48px;
}

.form-success-box h3 {
  font-size: 36px;
}

.form-success-box p {
  font-size: 22px;
  color: #1e293b;
}

/* ── Calculator prefill banner — large, high-contrast ── */

#calc-prefill-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #dbeafe;
  border: 3px solid #3b82f6;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

#calc-prefill-banner > div > strong:first-child {
  display: block;
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

#calc-prefill-banner > div > span:first-of-type {
  display: block;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 600;
  margin-top: 0;
}

#calc-banner-est {
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 800;
}

#calc-banner-detail {
  display: block;
  color: #1e293b;
  font-size: 16px;
  margin-top: 8px;
  line-height: 1.5;
}

/* Dismiss button — 60px min target, obvious affordance */
#calc-banner-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: 8px 18px;
  background: #fff;
  border: 3px solid #3b82f6;
  border-radius: 10px;
  color: #1e3a8a;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#calc-banner-clear:hover {
  background: #bfdbfe;
  border-color: #1d4ed8;
  color: #1e3a8a;
}

#calc-banner-clear:active {
  background: #93c5fd;
  border-color: #1d4ed8;
}

#calc-banner-clear:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}

/* ── Custom address suggestion dropdown ── */

.addr-suggestions {
  position: fixed;
  z-index: 9999;
  background: #fff;
  border: 3px solid var(--blue);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  max-height: 340px;
  overflow-y: auto;
}

.addr-suggestion-item {
  display: block;
  width: 100%;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  border: none;
  border-bottom: 2px solid #f1f5f9;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.1s ease, color 0.1s ease;
}

.addr-suggestion-item:last-child {
  border-bottom: none;
}

.addr-suggestion-item:hover,
.addr-suggestion-item:focus {
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

.addr-suggestion-item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

/* ── Steps 4–6 scoped overrides ── */

/* Frequency step: four visible rows, no explanatory pricing text.
   Hidden rows use [hidden] display:none so they are fully inert.
   The four visible labels are plain and scannable. */
.form-step[data-step="5"] .check-item {
  font-size: 22px;
  font-weight: 600;
}

/* Privacy box: simplified single-paragraph version.
   Remove any inline margin that was set on the old multi-paragraph layout. */
.form-step[data-step="6"] .privacy-box {
  font-size: 20px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.7;
  padding: 24px 28px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
}

.form-step[data-step="6"] .privacy-box p {
  margin: 0;
}

/* Consent row: visually distinct from the privacy box above it.
   Extra border weight and blue tint make the checkbox unmissable. */
.consent-row {
  font-size: 22px;
  font-weight: 700;
  border: 3px solid var(--blue);
  background: #eff6ff;
  border-radius: 14px;
  margin-top: 8px;
}

.consent-row:hover {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.consent-row:focus-within {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

@supports selector(.consent-row:has(input:checked)) {
  .consent-row:has(input:checked) {
    background: #dbeafe;
    border-color: #1d4ed8;
  }
}
