/* IFFS 2027 — static/css/components/forms-extra.css
   HAND-AUTHORED (not generated from the design handoff).

   Shared form additions used across every public form. The design system already ships
   the consent FIELDSET as `.consent` with `.opt` rows in
   components/forms.css — use those. This file only adds the two things it doesn't cover:
   the anti-spam honeypot, and the single inline consent on the notify form.

   TIER 2 semantic tokens only — no colour literals (CLAUDE.md house style). */

/* ── Honeypot ────────────────────────────────────────────────────────────────
   A real user never sees or focuses this; a naive bot fills it and we drop the
   submission. Hidden from sighted users AND assistive tech, but NOT with
   `display:none` — some bots skip those. Off-canvas + aria-hidden on the wrapper +
   tabindex="-1" on the input is the combination that actually works. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Notify form: one inline optional consent under the input+button row ─────
   Not a fieldset — a single optional opt-in doesn't warrant one. */
.notify { flex-wrap: wrap; }

.notify-consent {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: var(--sp-2);
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--c-text-secondary);
  cursor: pointer;
}

.notify-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--p-accent-600);
  cursor: pointer;
}

.notify-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-focus-ring);
  outline-offset: 2px;
}

/* On dark surfaces the secondary grey drops below AA — lift it. */
.section--dark .notify-consent,
.site-footer .notify-consent { color: var(--p-steel-300); }

/* ── Shared note under a consent block ──────────────────────────────────────── */
.consent-note { margin: var(--sp-2) 0 0; color: var(--c-text-muted); }

/* ── Shared form-grid helpers ────────────────────────────────────────────────
   Used by every public form (Tracks B and C, Recognitions, Media, Contact), so they
   live in this globally-loaded file rather than in any one page stylesheet. */
.form-grid--wide { max-width: 820px; }
.field--full { grid-column: 1 / -1; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  flex-wrap: wrap;
}
