/* The contact form module's look. A site sets the --kf-* names to its own colours and type; the defaults are
   neutral. */
.kf {
  --kf-accent: var(--kf-site-accent, #333);
  --kf-accent-text: var(--kf-site-accent-text, #fff);
  --kf-border: var(--kf-site-border, #ccc);
  --kf-text: var(--kf-site-text, #222);
  --kf-muted: var(--kf-site-muted, #777);
  --kf-error: var(--kf-site-error, #b00020);
  --kf-surface: var(--kf-site-surface, #fff);
  --kf-radius: var(--kf-site-radius, 3px);
  display: grid; gap: 21px;
  color: var(--kf-text);
}
/* The module shows and hides with the hidden attribute; a display rule here must never override it. */
.kf[hidden], .kf-thanks[hidden], .kf-error[hidden] { display: none; }
.kf-hidden, .kf-trap {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.kf-row { display: grid; gap: 6px; }
.kf-field {
  width: 100%; padding: 10px 10px; min-height: 42px;
  font: inherit; font-size: 16px; color: var(--kf-text);
  background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: var(--kf-radius);
}
.kf-field::placeholder { color: var(--kf-muted); font-style: italic; opacity: 1; }
.kf-field:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 1px; }
.kf-field[aria-invalid='true'] { border-color: var(--kf-error); }
.kf-text { min-height: 132px; resize: vertical; }
.kf-terms { font-size: 14px; line-height: 21px; color: var(--kf-muted); }
.kf-terms a { color: inherit; }
.kf-box { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; cursor: pointer; }
.kf-box input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--kf-accent); flex: none; }
.kf-error { font-size: 14px; line-height: 20px; color: var(--kf-error); }
.kf-button {
  justify-self: start; min-height: 44px; padding: 0 30px;
  font: inherit; font-size: 16px; font-weight: 500;
  color: var(--kf-accent-text); background: var(--kf-accent);
  border: 0; border-radius: var(--kf-radius); cursor: pointer;
}
.kf-button:disabled { opacity: 0.6; cursor: progress; }
.kf-button:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; }
.kf-thanks { font-size: 18px; line-height: 30px; }
.kf-thanks:focus { outline: none; }
