/* /contact/: the form on the navy band (docs/design.md). Colours come from the band tokens in /styles.css, which are
   the same in light and dark mode. No inline styles anywhere (BUILD-04). */

.write { min-height: calc(100dvh - var(--nav-h)); }
.write .section__lede a { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--band-accent); text-underline-offset: 0.2em; }
.write .section__lede a:hover { color: var(--band-accent); }

.form { display: grid; gap: 1.5rem; max-width: 44rem; }
.form__row { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.form__field { display: grid; gap: 0.45rem; }

.form__label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--band-accent);
}

.form__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--band-ink);
  background: #f0e8d30f;
  border: 1px solid var(--band-rule);
  border-radius: 0;
}
.form__input:hover { border-color: var(--band-accent); }
.form__input:focus-visible { outline: 2px solid var(--band-accent); outline-offset: 2px; border-color: var(--band-accent); }
.form__textarea { resize: vertical; min-height: 10rem; }

/* The trap for bots: off screen, out of the tab order (tabindex="-1" and aria-hidden in the markup). */
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cf-turnstile { min-height: 65px; }

.form__privacy { margin: 0; color: var(--band-soft); font-size: 1rem; font-style: italic; max-width: 60ch; }
.form__privacy a { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--band-accent); text-underline-offset: 0.2em; }
.form__privacy a:hover { color: var(--band-accent); }

.form__send { background: var(--band-accent); border-color: var(--band-accent); color: var(--band-bg); cursor: pointer; }
.form__send:hover { background: var(--band-ink); border-color: var(--band-ink); }
.form__send:disabled { opacity: 0.6; cursor: default; }

.form__status { margin: 0; min-height: 1.65em; font-size: 1.05rem; color: var(--band-soft); }
.form__status--ok { color: var(--band-ink); }
.form__status--err { color: var(--band-accent); }
