/* Accident Info Center. Palette carried over from The Accident Office (requirements doc 2.1). */
:root {
  --navy: #1e376d;
  --navy-dark: #172b56;
  --red: #b4232a;
  --red-dark: #951b21;
  --red-tint: #fbefef;
  --cyan: #26a0cd;
  --teal-muted: #3e6b74;
  --text: #666666;
  --heading: #1e376d;
  --bg-alt: #f6f6f6;
  --white: #ffffff;
  --border: #dfe3ea;
  --error: #b4232a;
  --radius: 8px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }
.eyebrow { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: .4em; }
.lead { font-size: 1.05rem; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); margin-right: auto; }
.logo img { width: 36px; height: auto; flex: none; }
.logo-word { font-weight: 800; letter-spacing: .04em; font-size: clamp(.8rem, 3.2vw, 1.05rem); line-height: 1.1; }
.main-nav { display: none; gap: 28px; }
.main-nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { text-decoration: underline; }
.phone-btn { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--white); border: 2px solid var(--white); border-radius: var(--radius); padding: 6px 12px; line-height: 1.2; white-space: nowrap; }
.phone-num { font-weight: 700; font-size: .9rem; }
.phone-cta { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 860px) { .main-nav { display: flex; } }

/* Buttons */
.btn { display: block; width: 100%; text-align: center; text-decoration: none; font-weight: 700; font-size: 1.05rem; border: 0; border-radius: var(--radius); padding: 15px 22px; cursor: pointer; font-family: inherit; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-inline { display: inline-block; width: auto; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-link { background: none; border: 0; color: var(--teal-muted); font-weight: 700; letter-spacing: .06em; cursor: pointer; padding: 12px 8px; font-family: inherit; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 28px 0 40px; }
.hero h1 { color: var(--white); }
.hero-sub { font-size: 1.05rem; color: #e6ebf5; }
.secure { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: #e6ebf5; margin: 0; }
.hero-grid { display: grid; gap: 24px; }
.cta-card { background: var(--white); border-radius: 12px; padding: 22px 18px; display: grid; gap: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.cta-card h2 { font-size: 1.15rem; text-align: center; margin: 0 0 4px; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; }
  .cta-card { padding: 30px 26px; }
}

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.sub-h { margin-top: 44px; }
.cols { display: grid; gap: 24px; margin-top: 24px; }
.cols .col img { margin-bottom: 10px; }
.cards .col { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.cards .col img { height: 56px; width: auto; }
.damages .col { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: start; }
.damages .col img { grid-row: span 2; margin: 2px 0 0; }
.damages .col h3 { margin-bottom: .2em; }
.damages .col p { margin: 0; }
@media (min-width: 700px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .section { padding: 72px 0; } }

.band { background: var(--navy); color: var(--white); text-align: center; padding: 44px 0; }
.band h2 { color: var(--white); }

/* FAQ */
.faq { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--cyan); }
.faq[open] summary::after { content: "–"; }

/* Disclaimer + footer */
.disclaimer { background: var(--bg-alt); padding: 28px 0; font-size: .78rem; line-height: 1.55; }
.disclaimer a { word-break: break-all; }
.site-footer { background: var(--navy-dark); color: #d7deee; padding: 28px 0 36px; font-size: .88rem; text-align: center; }
.site-footer a { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-contact, .footer-copy { margin-bottom: .6em; }

/* Legal pages */
.legal { padding: 36px 0 56px; }
.legal .wrap { max-width: 860px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal h4 { margin-top: 1.4em; }
.legal table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px; text-align: left; vertical-align: top; }

/* Funnel */
.funnel-page { background: var(--bg-alt); padding: 22px 0 48px; min-height: 70vh; }
.funnel-title { font-size: 1.5rem; text-align: center; margin-bottom: .2em; }
.funnel-sub { text-align: center; font-size: .92rem; margin-bottom: 14px; }
.funnel { background: var(--white); border-radius: 12px; padding: 18px 16px 22px; box-shadow: 0 4px 18px rgba(30, 55, 109, .08); }
.loading { text-align: center; margin: 24px 0; }
.progress { position: relative; height: 22px; background: #e6eaf2; border-radius: 11px; overflow: hidden; margin-bottom: 18px; }
.progress-bar { height: 100%; width: 0; background: var(--navy); border-radius: 11px; transition: width .3s ease; }
.progress-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--white); mix-blend-mode: difference; }
.fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.question, legend.question { display: block; width: 100%; font-size: 1.2rem; font-weight: 700; color: var(--heading); text-align: center; margin: 4px 0 16px; padding: 0; line-height: 1.3; }
.answers { display: grid; gap: 10px; }
.answer { display: block; cursor: pointer; }
.answer input { position: absolute; opacity: 0; pointer-events: none; }
.answer span { display: block; background: var(--red-tint); color: var(--red); border: 2px solid var(--red); border-radius: var(--radius); padding: 14px 16px; font-weight: 700; text-align: center; transition: background .12s, color .12s; }
.answer:hover span, .answer input:checked + span { background: var(--red); color: var(--white); }
.answer input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.field label { display: block; font-weight: 600; color: var(--heading); font-size: .9rem; margin-bottom: 4px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea,
.simple-form input {
  width: 100%; font: inherit; color: #222; padding: 12px; border: 1px solid #b9c0cf; border-radius: var(--radius); background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.error { color: var(--error); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.html-block { text-align: center; }
.html-block h2 { font-size: 1.15rem; margin-bottom: .3em; }
.html-block p { margin-bottom: .8em; }
.html-block .reveal { font-size: 1.6rem; font-weight: 800; color: var(--red); letter-spacing: .02em; }
.consent-text { font-size: .72rem; line-height: 1.5; color: #777; margin: 0 0 .7em; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.step-nav .btn { width: auto; min-width: 150px; margin-left: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 620px) {
  .funnel { padding: 28px 32px 30px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field { grid-column: 1 / -1; }
  .field.half { grid-column: auto; }
}

/* Simple forms (unsubscribe, opt-out) */
.simple-form { display: grid; gap: 8px; max-width: 460px; }
.simple-form label { font-weight: 600; color: var(--heading); font-size: .9rem; margin-top: 6px; }
.simple-form .btn { margin-top: 12px; }
.form-msg { font-weight: 600; color: var(--teal-muted); min-height: 1.5em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-bar { transition: none; }
}

/* Post-submit offers page (Twyne embed) */
.offers-page { background: var(--bg-alt); padding: 22px 0 48px; min-height: 70vh; }
#twyne-embed { min-height: 320px; }
