/* Coast Strong — intake pages (form layer).
   Loads AFTER /coastal.css, which carries the shared design system
   (tokens, nav, hero, buttons, cards, footer) from the homepage.
   This file holds only intake-specific layout + the form/ICC styling.
   Light-locked: no dark-mode variant anywhere. */
.backhome{margin-left:auto;font-weight:600;font-size:15px}
main{padding:40px 0 64px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);max-width:820px;margin:0 auto}
/* The form card stays put: the homepage's card hover-lift is for link
   cards, not for a form you are filling in. */
.card:hover{transform:none;box-shadow:var(--shadow)}
.safety{background:#fdeeda;border:1px solid #f0d3ac;border-radius:10px;padding:12px 14px;font-size:15.5px;margin-bottom:18px}
form{display:block}
.f{margin-bottom:16px}
.f label,.f legend{display:block;font-weight:600;margin-bottom:6px;font-size:16px}
.f .hint{font-size:14px;color:var(--muted);margin:4px 0 0}
.f input[type="text"],.f input[type="email"],.f input[type="tel"],.f input[type="number"],.f input[type="date"],.f select,.f textarea{
  width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);
  transition:border-color .18s ease,box-shadow .18s ease}
.f input:hover,.f select:hover,.f textarea:hover{border-color:#9FC3CC}
.f input:focus,.f select:focus,.f textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,110,138,.18);outline:none}
.f textarea{min-height:96px;resize:vertical}
fieldset.f{border:0;padding:0;margin:0 0 16px}
.check{display:flex;align-items:flex-start;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;margin-bottom:8px;cursor:pointer;font-weight:500;transition:background-color .18s ease,border-color .18s ease}
.check:hover{background:#E0F2F1;border-color:#9FC3CC}
.check input{width:20px;height:20px;margin-top:2px;accent-color:var(--green)}
.check input:focus-visible{outline:3px solid rgba(0,110,138,.4);outline-offset:2px}
.req{color:#a6192e}
.err{display:none;background:#fbe9ec;border:1px solid #eec3cb;color:#7c1223;border-radius:10px;padding:12px 14px;margin-bottom:16px;font-size:15.5px}
.err.show{display:block}
.btn{display:inline-block;font-weight:700;font-size:16px;padding:13px 22px;border-radius:10px;text-decoration:none;border:1.5px solid transparent;cursor:pointer;font-family:inherit}
.btn:focus-visible{outline:3px solid rgba(193,144,31,.55);outline-offset:2px}
.btn:active{transform:translateY(0);box-shadow:none}
.btn-solid{background:var(--gold);color:var(--on-gold)}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:var(--green-dark)}
.btn-ghost2{background:var(--surface);color:var(--green-dark);border-color:var(--green)}
.btn-ghost2:hover{background:var(--surface2)}
#ticketSection{display:none;margin-top:26px}
#ticketSection.show{display:block}
#ticketText{width:100%;min-height:260px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;line-height:1.5;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);color:var(--ink);transition:border-color .18s ease,box-shadow .18s ease}
#ticketText:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,110,138,.18);outline:none}
.ticket-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.dest{font-size:14.5px;color:var(--muted);margin-top:10px}
.hidden{display:none!important}

/* Intake hero: same bayou-marsh hero as the homepage (shared .hero rules
   come from coastal.css). Only the intake-specific lines live here. */
.hero h1{text-wrap:balance}
.hero .glory{max-width:720px;color:#D6E8EC;font-style:italic;font-size:17px;line-height:1.6;margin:0}
.hero .cleanswell{max-width:760px;margin:0 0 18px;box-shadow:0 12px 28px rgba(0,43,54,.25)}

/* ICC data card (Nov 10, 2026 — International Coastal Cleanup data card) */
.cleanswell{background:#E0F2F1;border:1px solid #B9D3DA;color:var(--ink);border-radius:10px;padding:12px 14px;font-size:15.5px;margin-bottom:18px}
.cleanswell a{font-weight:700}
.icc{border:1px solid var(--line);border-radius:12px;padding:18px;margin:26px 0 8px;background:#fff}
.icc h2{font-family:"Zilla Slab",serif;font-size:24px;line-height:1.2;letter-spacing:-.01em;margin:0 0 8px;color:var(--ink);position:relative;padding-bottom:14px}
.icc h2::after{content:"";position:absolute;left:2px;bottom:0;width:76px;height:4px;border-radius:2px;background:linear-gradient(90deg,var(--crimson),var(--gold))}
.icc-intro{font-size:15.5px;color:var(--muted);margin:0 0 16px}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
@media(max-width:640px){.frow{grid-template-columns:1fr}}
.icc-group{border:1px solid var(--line);border-radius:10px;padding:14px;margin:0 0 18px}
.icc-group legend{font-weight:700;padding:0 6px;font-size:16px}
.counts{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:6px 16px}
.count{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:500;font-size:15.5px}
.count input[type="number"]{width:88px;flex:none;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:16px;background:#fff;color:var(--ink);transition:border-color .18s ease,box-shadow .18s ease}
.count input[type="number"]:hover{border-color:#9FC3CC}
.count input[type="number"]:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,110,138,.18);outline:none}
.other-row{display:grid;grid-template-columns:1fr 100px;gap:10px;margin-bottom:8px}
.other-row input{width:100%;font:inherit;font-size:16px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);transition:border-color .18s ease,box-shadow .18s ease}
.other-row input:hover{border-color:#9FC3CC}
.other-row input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,110,138,.18);outline:none}

/* Cleanup resources (Nov 10, 2026 — links Sarah Weller shared) */
.resources{border:1px solid var(--line);border-radius:12px;padding:18px;margin:26px 0 8px;background:#fff}
.resources h2{font-family:"Zilla Slab",serif;font-size:24px;line-height:1.2;letter-spacing:-.01em;margin:0 0 8px;color:var(--ink);position:relative;padding-bottom:14px}
.resources h2::after{content:"";position:absolute;left:2px;bottom:0;width:76px;height:4px;border-radius:2px;background:linear-gradient(90deg,var(--crimson),var(--gold))}
.resources p{font-size:15.5px;color:var(--muted);margin:0 0 12px}
.res-list{list-style:none;margin:0;padding:0}
.res-list li{margin-bottom:8px}
.res-list a{font-weight:600;transition:color .18s ease}
.res-list a:hover{color:var(--green-dark)}

/* ONE form (Nov 10, 2026) — the ICC data card is the hero form; the
   dumping report is a collapsed secondary block inside the same form,
   and volunteering is a compact name-and-email section on the same page.
   Light-locked: no dark-mode variant anywhere. */
.priority-note{display:flex;gap:8px;align-items:flex-start;background:#fdf3df;border:1px solid #f0d3ac;border-radius:10px;padding:12px 14px;font-size:15.5px;font-weight:700;color:var(--green-dark);margin:0 0 14px}
.icc{border:2px solid var(--green);box-shadow:var(--shadow)}
.icc h2{font-size:26px}
details.secondary{border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin:26px 0 8px;background:var(--surface2)}
details.secondary summary{cursor:pointer;font-weight:700;font-size:17px}
details.secondary summary:focus-visible{outline:3px solid rgba(0,110,138,.4);outline-offset:2px}
details.secondary .safety{margin:14px 0 18px}
.vol-compact{border:1px solid var(--line);border-radius:12px;padding:18px;margin:26px 0 8px;background:#fff}
.vol-compact h2{font-family:"Zilla Slab",serif;font-size:24px;line-height:1.2;letter-spacing:-.01em;margin:0 0 8px;color:var(--ink);position:relative;padding-bottom:14px}
.vol-compact h2::after{content:"";position:absolute;left:2px;bottom:0;width:76px;height:4px;border-radius:2px;background:linear-gradient(90deg,var(--crimson),var(--gold))}
.vol-intro{font-size:15.5px;color:var(--muted);margin:0 0 16px}

/* Dark mode — Dec 2, 2026 a11y pass. Tokens flip in coastal.css;
   these overrides cover intake.css's own hardcoded pale surfaces.
   Applies under the manual toggle (html[data-theme="dark"]) and,
   with no manual choice saved, under a dark system preference. */
:root[data-theme="dark"] .safety{background:#3A2A10;border-color:#6B4D1F;color:var(--ink)}
:root[data-theme="dark"] .f input[type="text"],:root[data-theme="dark"] .f input[type="email"],:root[data-theme="dark"] .f input[type="tel"],:root[data-theme="dark"] .f input[type="number"],:root[data-theme="dark"] .f input[type="date"],:root[data-theme="dark"] .f select,:root[data-theme="dark"] .f textarea{background:var(--surface);color:var(--ink)}
:root[data-theme="dark"] .check:hover{background:var(--surface2)}
:root[data-theme="dark"] .err{background:#3D1420;border-color:#7C2D3E;color:#FFB3BA}
:root[data-theme="dark"] .req{color:#FF8A96}
:root[data-theme="dark"] .btn-green{background:#00586E;color:#fff}
:root[data-theme="dark"] .btn-green:hover{background:#004455}
:root[data-theme="dark"] .btn-ghost2{background:var(--surface);color:var(--green);border-color:var(--green)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .safety{background:#3A2A10;border-color:#6B4D1F;color:var(--ink)}
  :root:not([data-theme="light"]) .f input[type="text"],:root:not([data-theme="light"]) .f input[type="email"],:root:not([data-theme="light"]) .f input[type="tel"],:root:not([data-theme="light"]) .f input[type="number"],:root:not([data-theme="light"]) .f input[type="date"],:root:not([data-theme="light"]) .f select,:root:not([data-theme="light"]) .f textarea{background:var(--surface);color:var(--ink)}
  :root:not([data-theme="light"]) .check:hover{background:var(--surface2)}
  :root:not([data-theme="light"]) .err{background:#3D1420;border-color:#7C2D3E;color:#FFB3BA}
  :root:not([data-theme="light"]) .req{color:#FF8A96}
  :root:not([data-theme="light"]) .btn-green{background:#00586E;color:#fff}
  :root:not([data-theme="light"]) .btn-green:hover{background:#004455}
  :root:not([data-theme="light"]) .btn-ghost2{background:var(--surface);color:var(--green);border-color:var(--green)}
}

/* Dark overrides (cont.): remaining hardcoded pale surfaces in intake.css. */
:root[data-theme="dark"] .cleanswell{background:var(--surface2);border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .icc,:root[data-theme="dark"] .resources,:root[data-theme="dark"] .vol-compact{background:var(--surface)}
:root[data-theme="dark"] .priority-note{background:#3A2A10;border-color:#6B4D1F;color:var(--gold-light)}
:root[data-theme="dark"] .count input[type="number"],:root[data-theme="dark"] .other-row input{background:var(--surface);color:var(--ink)}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .cleanswell{background:var(--surface2);border-color:var(--line);color:var(--ink)}
  :root:not([data-theme="light"]) .icc,:root:not([data-theme="light"]) .resources,:root:not([data-theme="light"]) .vol-compact{background:var(--surface)}
  :root:not([data-theme="light"]) .priority-note{background:#3A2A10;border-color:#6B4D1F;color:var(--gold-light)}
  :root:not([data-theme="light"]) .count input[type="number"],:root:not([data-theme="light"]) .other-row input{background:var(--surface);color:var(--ink)}
}

/* Send page (Dec 4, 2026): type panes, welcome, sent state, honeypot.
   The mailto ticket flow is retired; forms post in-page via /submit.js. */
.hp{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden;opacity:0}
.typenav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.typenav button{font:inherit;font-weight:600;font-size:15.5px;padding:9px 16px;border-radius:999px;border:1.5px solid var(--green);background:var(--surface);color:var(--green-dark);cursor:pointer}
.typenav button:hover{background:var(--surface2)}
.typenav button[aria-selected="true"]{background:var(--green-deep);color:#fff;border-color:var(--green-deep)}
.typepane[hidden],.welcome-panel[hidden],.sent-panel[hidden]{display:none!important}
.welcome-panel{border:1px dashed var(--line);border-radius:12px;padding:18px;margin:0 0 8px;background:var(--surface2)}
.welcome-panel h2{font-family:"Zilla Slab",serif;font-size:24px;line-height:1.2;margin:0 0 8px;color:var(--ink)}
.welcome-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.sent-panel{border:2px solid var(--gold);border-radius:12px;padding:20px;margin:0 0 8px;background:#FFF8E6}
.sent-panel h2{font-family:"Zilla Slab",serif;font-size:26px;line-height:1.2;margin:0 0 8px;color:var(--ink)}
