/* Brand values come from the mailer (navy / blue / tint) so the page matches the letter in hand.
   Sized for phones first and for readers over 55: large type, large tap targets, strong contrast. */
:root {
  --navy: #212d65;
  --blue: #385dab;
  --blue-dark: #2c4a8a;
  --tint: #e8edf7;
  --tint-soft: #f3f6fb;
  --line: #c9d3ea;
  --ink: #151515;
  --muted: #4a4f5c;
  --paper: #ffffff;
  --error: #a4161a;
  --error-bg: #fdecec;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  --gutter: 20px;
  --tap: 58px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tint-soft);
  color: var(--ink);
  font: 19px/1.5 var(--sans);
}
a { color: var(--blue-dark); }
h1, h2 { font-family: var(--serif); color: var(--navy); margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.18; }
h2 { font-size: 22px; line-height: 1.25; }
p { margin: 0 0 14px; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

/* header: logo and a tap-to-call number, always in reach */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.top img { height: 46px; width: auto; display: block; }
.call-link { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1.2; color: var(--navy); }
.call-link small { font-size: 13px; color: var(--muted); }
.call-link b { font-size: 19px; white-space: nowrap; }

/* main fills at least one full screen, so the footer disclosures always start below the fold */
main { padding: 22px 0 36px; min-height: 100vh; min-height: 100svh; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px var(--gutter); }
.card + .card { margin-top: 16px; }
.lede { font-size: 20px; color: var(--muted); margin: 10px 0 0; }

/* the estimate, as printed on the letter */
.estimate { background: var(--tint); border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); margin: 18px calc(var(--gutter) * -1); padding: 16px var(--gutter); }
.estimate .label { font-size: 16px; color: var(--navy); font-weight: 600; }
.estimate .amount { font: 800 46px/1.1 var(--sans); color: var(--navy); letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.estimate .note { font-size: 15px; color: var(--muted); margin: 6px 0 0; }

.facts { list-style: none; margin: 16px 0 0; padding: 0; }
.facts li { position: relative; padding: 0 0 10px 32px; }
.facts li::before { content: "\2713"; position: absolute; left: 0; top: -2px; font-weight: 700; font-size: 22px; color: var(--blue); }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); padding: 12px 18px; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: #fff; font: 700 21px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.btn:active { background: var(--blue-dark); }
.btn.secondary { background: var(--paper); color: var(--navy); }
.btn-row { margin-top: 20px; display: grid; gap: 12px; }
.linkish { background: none; border: 0; padding: 12px 0; font: inherit; font-size: 17px; color: var(--blue-dark); text-decoration: underline; cursor: pointer; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* steps */
.progress { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: var(--muted); margin-bottom: 12px; }
.progress a { text-decoration: none; font-weight: 600; padding: 8px 0; }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.bar span { display: block; height: 100%; background: var(--blue); }
.help { font-size: 17px; color: var(--muted); margin: 8px 0 0; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .field > label { display: block; padding: 0; margin: 0 0 8px; font-weight: 700; font-size: 19px; color: var(--navy); }
.field { margin-top: 20px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field select {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border: 2px solid #6b7693; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: 22px/1.2 var(--sans); -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #8a90a0; font-size: 18px; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid var(--tint); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* radio choices as full-width cards */
.choices { display: grid; gap: 10px; margin: 0; padding: 0; }
.choices.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices.inline label { padding: 12px 8px; gap: 7px; font-size: 18px; }
.choices label { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 12px 14px; border: 2px solid #6b7693; border-radius: var(--radius); background: var(--paper); font-size: 20px; font-weight: 600; color: var(--navy); cursor: pointer; }
.choices input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--navy); }
.choices label:has(input:checked) { border-color: var(--navy); background: var(--tint); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 16px; color: var(--muted); line-height: 1.4; }
.check input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--navy); }
.fine { font-size: 15px; color: var(--muted); line-height: 1.4; margin-top: 14px; }

.errorlist { list-style: none; margin: 8px 0 0; padding: 10px 12px; background: var(--error-bg); border-left: 4px solid var(--error); color: var(--error); font-weight: 600; font-size: 17px; border-radius: 4px; }
.notice { background: var(--tint); border-left: 4px solid var(--blue); padding: 12px 14px; border-radius: 4px; font-size: 17px; margin-top: 14px; }

.summary { margin: 16px 0 0; padding: 0; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* footer disclosures */
footer { background: var(--paper); border-top: 1px solid var(--line); padding: 22px 0 40px; }
.legal { font-size: 14px; line-height: 1.5; color: var(--muted); }
.legal p { margin: 0 0 12px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 14px; }
.legal-links a { font-size: 16px; font-weight: 600; padding: 8px 0; }
.legal details { margin: 0 0 12px; }
.legal summary { cursor: pointer; padding: 8px 0; color: var(--blue-dark); text-decoration: underline; }
.legal .eho { display: inline-block; border: 1px solid var(--muted); padding: 3px 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 11px; margin: 0; }

/* local QR sheet */
.qr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 16px; }
.qr-grid .card { margin: 0; text-align: center; font-size: 15px; }
.qr-grid svg { width: 190px; height: 190px; }
.qr-grid code { display: block; font-size: 11px; overflow-wrap: anywhere; color: var(--muted); }
.wide { max-width: 1000px; }

@media (min-width: 600px) {
  main { padding-top: 34px; }
  .card { padding: 30px 32px; }
  .estimate { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
  h1 { font-size: 34px; }
}
