/* The contact form. Layout and type come from style.css and document.css. */
.form { display: grid; gap: 22px; margin-top: 2rem; }
.field { display: grid; gap: 6px; }
.field label, .topic legend { font-weight: 600; }
.hint { font-weight: 400; color: var(--text-2); }
.field input, .field textarea {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  color: var(--text);
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--negative); }
.error { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--negative); }
.count {
  margin: 0;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* Topic: three radios drawn as pills; the input covers its pill so a tap lands
   on it and keyboard focus rings the pill. */
.topic { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.topic legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
}
.choice input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* The honeypot: off screen, out of the tab order, out of the accessibility tree. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* The check widget appears only when it needs the visitor (interaction-only),
   so most people never see it and no space is held for it. When it does
   appear, its minimum width is 300px, so a 320px viewport clips its edge
   rather than scrolling the page. */
.cf-turnstile { max-width: 100%; overflow: hidden; }
.cf-turnstile:empty { display: none; }

.actions { display: grid; gap: 14px; justify-items: start; }
.send {
  font: inherit;
  font-weight: 600;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}
.send:hover:not(:disabled) { filter: brightness(1.1); }
.send:disabled { opacity: 0.6; cursor: default; }
.form-status { margin: 0; }
.form-status[data-kind="error"] { color: var(--negative); }
.sent {
  margin: 2rem 0 0;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.sent:focus-visible { outline-offset: 4px; }
