/*
 * Site styles. Every color comes from tokens.css (Linden, unchanged) or the form-only block below.
 * Header, footer and button rules are taken from Linden components/bundle.css (SiteHeader, SiteFooter, Button),
 * with the hex fallbacks removed; the form card rules are ported from the approved prototype.
 */

/* Form-only additions (not part of Linden). */
:root {
  --muted: rgba(36,36,36,.72);
  --field: rgba(36,36,36,.55);
  --neg: #b3261e;
  --pos: #1e6b47;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; line-height: 1.25; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Linden: shared ---------- */
.fumi-root { font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--body); -webkit-font-smoothing: antialiased; }
.fumi-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space-24); }

/* ---------- Linden: Button ---------- */
.fumi-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--gold); color: var(--ink); border: 2px solid var(--gold); border-radius: var(--radius-btn); font: 400 14px var(--font-body); letter-spacing: 1.5px; text-transform: uppercase; padding: 18px 40px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.fumi-btn:hover { background: transparent; color: var(--gold); }
.fumi-btn--on-light:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.fumi-btn--sm { padding: 14px 26px; font-size: 13px; }
/* Secondary (Back, Main): transparent with a 2px ink border. */
.fumi-btn--secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.fumi-btn--secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.fumi-btn:disabled, .fumi-btn[aria-disabled="true"] { background: var(--tint); border-color: var(--tint); color: var(--muted); cursor: not-allowed; }

/* ---------- Linden: SiteHeader ---------- */
.fumi-header { background: var(--paper); height: var(--header-h); border-bottom: 1px solid var(--line); }
.fumi-header .fumi-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--wrap-header); }
.fumi-header img { width: 161px; height: 80px; object-fit: contain; display: block; }
.fumi-nav { display: flex; align-items: center; gap: 28px; }
.fumi-nav a:not(.fumi-btn) { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.fumi-nav a:not(.fumi-btn):hover { color: var(--bronze); }
/* Consumer-provided position and mobile menu (SiteHeader README). */
.site-header { position: sticky; top: 0; z-index: 50; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px auto; transition: .2s; }

/* ---------- Linden: SiteFooter ---------- */
.fumi-footer { background: var(--ink); color: var(--on-ink); padding: 28px 0 32px; }
.fumi-footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-on-ink); }
.fumi-footer__top > a img { width: 141px; height: 70px; object-fit: contain; display: block; }
.fumi-footer__mid { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; width: fit-content; margin-inline: auto; }
.fumi-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
.fumi-footer__nav a { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--on-ink); text-decoration: none; }
.fumi-footer__nav a:hover, .fumi-footer__bottom a:hover { color: var(--gold); }
.fumi-compliance { display: flex; align-items: center; gap: 22px; }
.fumi-compliance img { height: auto; display: block; }
.fumi-compliance img:first-child { width: 180px; }
.fumi-compliance img:last-child { width: 60px; }
.fumi-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: var(--on-ink-muted); }
.fumi-footer__bottom a { color: inherit; text-decoration: none; }
.fumi-footer__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.fumi-footer :focus-visible { outline-color: var(--on-ink); }

/* ---------- Form card (prototype) ---------- */
main { padding: 64px 16px 96px; }
.card { background: var(--white); border: 1px solid var(--line); max-width: 680px; margin: 0 auto; padding: 48px; display: flex; flex-direction: column; gap: 32px; }
.progress { list-style: none; display: flex; gap: 16px; }
.progress li { flex: 1 1 0; }
.progress li div { height: 2px; background: var(--line); }
.progress li.cur div { background: var(--ink); }
.title { font-size: clamp(30px, 4vw, 43px); }
.title:focus { outline: none; }
.title:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.head { display: flex; flex-direction: column; gap: 12px; }
.sub { color: var(--body); }
.hintline { font-size: 14px; color: var(--muted); line-height: 1.5; }
.fields { display: flex; flex-direction: column; gap: 32px; }
.row { display: grid; gap: 16px; }
.row.r2 { grid-template-columns: 1fr 1fr; }
.row.r3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lbl { font: 700 12px/1.4 var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.star { color: var(--neg); font-weight: 700; }
.star[hidden] { display: none; }
.hint { font-size: 14px; line-height: 1.5; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--field); border-radius: var(--radius-btn); background: var(--white); font: 400 16px/24px var(--font-body); color: var(--ink); }
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--field); }
.invalid { border: 2px solid var(--neg) !important; padding: 11px 15px !important; }
input:disabled { background: var(--tint); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.err { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--neg); }
.err[hidden] { display: none; }
.err svg { flex: none; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--field); border-radius: var(--radius-btn); background: var(--white); color: var(--ink); font: 400 14px var(--font-body); cursor: pointer; transition: border-color .15s; }
.chip:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: none; }
.opt { display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 64px; border: 1px solid var(--field); border-radius: var(--radius-btn); background: var(--white); cursor: pointer; }
.opt:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.opt input { accent-color: var(--ink); width: 20px; height: 20px; flex: none; margin: 0; }
.opt .ot { display: block; font: 700 12px/1.4 var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.opt .od { display: block; font-size: 14px; line-height: 1.5; color: var(--body); }
.opt--compact { min-height: 48px; }
.opt--compact .od { color: var(--ink); }
.optlist { display: flex; flex-direction: column; gap: 12px; border: 0; }
.optlist > legend.lbl { margin-bottom: 12px; }
.check { display: flex; align-items: flex-start; gap: 16px; }
.check input { accent-color: var(--ink); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.check label { font-size: 14px; line-height: 1.6; }
.check a, .legal a, .link { color: var(--ink); text-decoration: underline; }
.legal { font-size: 13px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.divider { height: 1px; background: var(--line); }
/* Honeypot: off-screen, never shown to people. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts-box:empty { display: none; }
/* Submit error */
.alert { display: flex; align-items: flex-start; gap: 8px; border: 2px solid var(--neg); border-radius: var(--radius-btn); padding: 16px; font-size: 14px; line-height: 1.6; color: var(--ink); }
.alert svg { flex: none; margin-top: 4px; color: var(--neg); }
.alert a { color: var(--ink); text-decoration: underline; }

/* ---------- Confirmation ---------- */
.confirm { display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
.confirm .ok { display: flex; align-items: center; gap: 12px; color: var(--pos); font: 700 12px var(--font-body); letter-spacing: 2px; text-transform: uppercase; }
.confirm .summary { width: 100%; text-align: left; border: 1px solid var(--line); padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; font-size: 15px; }
.confirm dt { color: var(--muted); }
.confirm dd { color: var(--ink); font-weight: 700; }
.confirm .next-head { width: 100%; text-align: left; }
.next-list { list-style: none; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.next-list li { display: flex; gap: 16px; align-items: flex-start; }
.next-list svg { flex: none; stroke: var(--bronze); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.next-list b { display: block; font: 700 12px/1.4 var(--font-body); letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.next-list span { font-size: 14px; line-height: 1.5; }
.confirm .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* ---------- Privacy page ---------- */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 21px; margin-top: 16px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--ink); text-decoration: underline; }

@media (max-width: 1000px) {
  :root { --header-h: var(--header-h-sm); }
  .menu-toggle { display: block; }
  .fumi-nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 24px; border-bottom: 1px solid var(--line); display: none; }
  .fumi-nav.open { display: flex; }
  .fumi-nav a:not(.fumi-btn) { padding: 14px 0; width: 100%; }
  .fumi-nav .fumi-btn { margin-top: 12px; }
  .fumi-header img { width: 130px; height: 64px; }
  .fumi-footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 32px; }
  .fumi-footer__mid { align-items: center; width: auto; }
  .fumi-compliance { justify-content: center; }
  .fumi-footer__bottom { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  main { padding: 32px 16px 64px; }
  .card { padding: 24px; }
  .row.r2, .row.r3 { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .fumi-btn, .confirm .btns .fumi-btn { width: 100%; }
  .fumi-btn:not(.fumi-btn--sm) { padding: 16px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
