/* The contact form (contact/). Uses the tokens of site.css; its own file, so a cached site.css doesn't matter. */
.contact { padding: 0 0 clamp(56px, 8vw, 96px); }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow-soft); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend { font: 700 1.15rem/1.2 var(--font-display); margin-bottom: 12px; padding: 0; }
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kind { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--paper); }
.kind:hover { border-color: var(--ink-2); }
.kind input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.kind span { display: grid; gap: 2px; }
.kind strong { font-size: 1rem; }
.kind small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.group { display: grid; gap: 18px; }
.group[hidden] { display: none; }
.two, .three { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 6px; align-content: start; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.field small, .hint { color: var(--muted); font-size: .88rem; margin: -8px 0 0; }
.field small { margin: 0; }
.opt { font-weight: 400; color: var(--muted); }
.contact-form input:not([type=radio]):not([type=checkbox]), .contact-form select, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; min-height: 46px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form #cf-times { min-height: 64px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: var(--rose-ink) !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.consent[aria-invalid="true"], .consent:has(input[aria-invalid="true"]) { color: var(--rose-ink); }
.turnstile { min-height: 65px; }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--rose); color: var(--rose-ink); font-weight: 600; overflow-wrap: anywhere; }
.consent a { color: var(--accent); }
.contact-form .btn { justify-self: start; min-width: 200px; }
.contact-form .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
/* The spam trap: off screen, never shown to people or screen readers. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-soft); display: grid; gap: 12px; justify-items: start; }
.contact-done:focus { outline: none; }
.contact-done h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.contact-done p { color: var(--ink-2); margin: 0; }
.contact .fine a { color: inherit; }

@media (max-width: 720px) {
  .kind-grid, .two, .three { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; width: 100%; }
}
@media (pointer: coarse) { .kind { min-height: 56px; } }
