/* feedback.css — contact / send-feedback page additions.
 *
 * Loaded by frontend/contact.html alongside the marketing theme. Holds the
 * bits the feedback reframe adds on top of the existing inline .contact-*
 * styles: the honeypot (visually hidden, NOT display:none so bots still see
 * it), the category-chip chooser, the optional-field hint, and the success
 * state. Kept external (no inline <style>) so the strict CSP needs no
 * style-src-attr exception for these rules.
 *
 * Colour tokens (--ink, --rule, --paper-hi, --gold, --muted, --ink-2) come
 * from /css/marketing-theme.css, already linked on the page.
 */

/* Honeypot: off-screen but still in the layout/a11y tree for bots to fill.
   Real users never see or tab to it (aria-hidden + tabindex=-1 in markup). */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Optional-field hint shown next to a label (e.g. "Email — optional"). */
.contact-form .field-hint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: -2px;
}
.contact-form label .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 6px;
}

/* Group heading above the category chips — matches the form's other labels
   (the uppercase mono treatment from .contact-form label in contact.html). */
.contact-form .cf-group-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Category chips — a horizontal, wrap-friendly radio-style chooser. The real
   control is a visually-hidden radio input; the <label> chip is the target. */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-chip {
  position: relative;
  display: inline-flex;
}
.cat-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cat-chip span {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-hi);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.cat-chip span:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.cat-chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-hi);
}
.cat-chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Success state — replaces the form once a submission lands. */
.contact-sent {
  border: 1px solid var(--rule);
  background: var(--paper-hi);
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
}
.contact-sent .sent-mark {
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-sent p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0;
  max-width: 42ch;
  margin-inline: auto;
}

/* Inert Turnstile mount — collapses to nothing until a sitekey is injected
   and the widget renders an iframe into it. */
.cf-turnstile:empty {
  display: none;
}
.cf-turnstile {
  margin-top: 4px;
}
