/* the client's year-end form: phone first, the same greens as the rest of Chiral */
:root { --dark:#003607; --mid:#0d5a22; --accent:#00a651; --bg:#f3f5f3; --line:#dfe5df; --muted:#5f6a5f; --text:#1b231b; --red:#b3261e; --red-bg:#fdecea; --amber-bg:#fff6e0; --green-bg:#e8f5ec; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; }
button, input, select, textarea { font:inherit; color:inherit; }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.bar { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:10px; padding:10px 16px; background:#fff; border-bottom:1px solid var(--line); font-weight:600; color:var(--dark); }
.bar img { border-radius:6px; object-fit:contain; } .bar img.gone { display:none; }
.save { margin-left:auto; font-size:13px; font-weight:400; color:var(--muted); white-space:nowrap; } .save.bad { color:var(--red); font-weight:600; }
#app { max-width:760px; margin:0 auto; padding:16px 16px 40px; outline:none; }
.foot { max-width:760px; margin:0 auto; padding:0 16px 30px; font-size:12.5px; color:var(--muted); }

.hero { background:linear-gradient(135deg,#003607 0%,#0d5a22 62%,#127a33 100%); color:#fff; border-radius:14px; padding:20px 20px 18px; margin-bottom:14px; }
.hero .sub { font-size:13px; color:#ffffffc4; } .hero h1 { margin:2px 0 0; font-size:24px; line-height:1.2; overflow-wrap:anywhere; }
.hero .meta { margin-top:10px; font-size:13px; color:#ffffffd0; }
.steps { display:flex; gap:4px; margin-top:14px; } .steps i { flex:1; height:5px; border-radius:3px; background:#ffffff38; } .steps i.done { background:#9fe0b5; } .steps i.cur { background:#fff; }

.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:14px; }
.card.center { text-align:center; padding:34px 18px; }
h2 { margin:0 0 4px; font-size:20px; color:var(--dark); }
.lead { margin:0 0 14px; color:var(--muted); font-size:14.5px; }
.q { padding:14px 0; border-top:1px solid var(--line); } .q:first-of-type { border-top:0; padding-top:4px; }
.q.follow { border-top:0; margin:-6px 0 0; padding:12px 14px; background:#f7faf7; border-left:3px solid var(--accent); border-radius:0 8px 8px 0; }
.qlabel { display:block; font-weight:600; margin-bottom:8px; } .hint { display:block; font-size:13.5px; color:var(--muted); margin:-4px 0 8px; font-weight:400; }
.req::after { content:" *"; color:var(--red); }
.notep { margin:0; color:var(--muted); font-size:14.5px; }
fieldset { border:0; margin:0; padding:0; min-width:0; } legend { padding:0; }

input[type=text], input[type=number], input[type=date], input[inputmode], textarea, select { width:100%; padding:11px 12px; border:1px solid #bfc9bf; border-radius:9px; background:#fff; font-size:16px; }
textarea { min-height:96px; resize:vertical; }
.affix { display:flex; align-items:stretch; max-width:260px; } .affix span { display:flex; align-items:center; padding:0 11px; background:#eef2ee; border:1px solid #bfc9bf; color:var(--muted); }
.affix span:first-child { border-right:0; border-radius:9px 0 0 9px; } .affix span:last-child { border-left:0; border-radius:0 9px 9px 0; }
.affix input { border-radius:0; } .affix span:first-child + input { border-radius:0 9px 9px 0; } .affix input:first-child { border-radius:9px 0 0 9px; }
.short { max-width:260px; }

.pills { display:flex; gap:8px; flex-wrap:wrap; }
.pill { position:relative; } .pill input { position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.pill span { display:inline-flex; align-items:center; min-height:44px; min-width:84px; justify-content:center; padding:8px 16px; border:1.5px solid #bfc9bf; border-radius:999px; background:#fff; font-weight:500; }
.pill input:checked + span { background:var(--dark); border-color:var(--dark); color:#fff; }
.pill input:focus-visible + span { outline:3px solid var(--accent); outline-offset:2px; }
.choices { display:grid; gap:8px; } .choices .pill span { width:100%; justify-content:flex-start; border-radius:10px; text-align:left; }

.tbl { display:grid; gap:10px; }
.trow { border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; display:grid; gap:8px; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); align-items:end; }
.trow label { font-size:13px; color:var(--muted); display:grid; gap:3px; }
.trow .rm { justify-self:end; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:9px 18px; border-radius:10px; border:1.5px solid var(--dark); background:var(--dark); color:#fff; font-weight:600; cursor:pointer; text-decoration:none; }
.btn:hover { filter:brightness(1.15); } .btn:disabled { opacity:.55; cursor:default; filter:none; }
.btn.ghost { background:#fff; color:var(--dark); } .btn.ghost:hover { background:#eef2ee; filter:none; }
.btn.sm { min-height:36px; padding:5px 12px; font-size:14px; } .btn.link { border:0; background:none; color:var(--dark); text-decoration:underline; padding:4px; min-height:0; font-weight:500; }
.btn.danger { color:var(--red); border-color:#e6b1ac; background:#fff; }

.files { margin-top:10px; } .files ul { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:6px; }
.files li { display:flex; align-items:center; gap:8px; padding:7px 10px; background:#f4f7f4; border-radius:8px; font-size:14px; } .files li .n { flex:1; min-width:0; overflow-wrap:anywhere; }
.files li.up { color:var(--muted); } .files .err { color:var(--red); font-size:13.5px; margin-top:6px; }
.drop { border:1.5px dashed #b5c3b5; border-radius:10px; padding:12px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.drop.over { background:var(--green-bg); border-color:var(--accent); }

.nav { display:flex; gap:10px; justify-content:space-between; align-items:center; margin-top:4px; flex-wrap:wrap; }
.nav .right { margin-left:auto; }
.toc { list-style:none; padding:0; margin:10px 0 0; display:grid; gap:6px; }
.toc button { width:100%; text-align:left; display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer; }
.toc button:hover { background:#f5f8f5; } .toc .tick { width:22px; height:22px; border-radius:50%; border:1.5px solid #bfc9bf; flex:none; display:grid; place-items:center; font-size:13px; }
.toc .done .tick { background:var(--accent); border-color:var(--accent); color:#fff; }

.review h3 { margin:18px 0 6px; font-size:16px; color:var(--dark); display:flex; justify-content:space-between; gap:10px; align-items:baseline; }
.review dl { margin:0; display:grid; gap:2px; } .review dt { font-size:13.5px; color:var(--muted); margin-top:8px; } .review dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.review dd.none { color:#9aa59a; } .review table { width:100%; border-collapse:collapse; font-size:14px; margin-top:4px; } .review th, .review td { text-align:left; padding:5px 6px; border-bottom:1px solid var(--line); }
.warn { background:var(--amber-bg); border:1px solid #f0d29a; border-radius:10px; padding:10px 12px; font-size:14.5px; margin:12px 0; }
.warn.bad { background:var(--red-bg); border-color:#f0b4ae; color:#7d1a14; }
.decl { display:grid; gap:12px; margin-top:8px; } .decl .check { display:flex; gap:10px; align-items:flex-start; } .decl .check input { width:22px; height:22px; margin-top:2px; flex:none; accent-color:var(--dark); }
.big { font-size:42px; color:var(--accent); line-height:1; }
@media (max-width:520px) { .hero h1 { font-size:21px; } .nav .btn { flex:1; } .nav .right { margin-left:0; } }
.hint.m0 { margin:0; } .nav.gap { margin-top:16px; }

/* tick lists: "tick any that happened" */
.ticks { display:grid; gap:8px; }
.tk { display:flex; gap:12px; align-items:flex-start; padding:11px 12px; border:1.5px solid #cfd8cf; border-radius:10px; background:#fff; cursor:pointer; font-weight:400; }
.tk input { width:22px; height:22px; margin:1px 0 0; flex:none; accent-color:var(--dark); cursor:pointer; }
.tk:has(input:checked) { border-color:var(--dark); background:var(--green-bg); }
.tk.none { border-style:dashed; } .tk.none:has(input:checked) { border-style:solid; }
/* wide tables on the review page scroll sideways on a phone rather than squashing their headings */
.review dd:has(table) { overflow-x:auto; } .review th { white-space:nowrap; }

/* your note to the client, at the top of the form */
.from-us { display:grid; gap:2px; background:var(--green-bg); border:1px solid #b7dcc2; border-left:4px solid var(--accent); border-radius:8px; padding:10px 12px; margin:6px 0 12px; white-space:pre-wrap; }
.from-us b { color:var(--dark); }
