/* ------------------------------------------------------------------
   Contact form (3.1): shared by Home and the Contact page. Field and
   button looks are inline in template-parts/contact-form.php, as in the
   mockups; this sheet holds what inline styles cannot: focus and hover
   states, the honeypot, consent links, status and thank-you states.
   ------------------------------------------------------------------ */
.cform,.cform *{box-sizing:border-box}
.cform > *{min-width:0}
.cform .oc-field{width:100%;min-width:0;max-width:100%}
.cform .oc-field::placeholder{color:#8E9BB5;opacity:1}
.cform .oc-field:focus{outline:2px solid #8FB9E8;outline-offset:1px}
.cform .oc-btn:hover{background:#ABCBF0 !important}
.cform .oc-btn:focus-visible{outline:3px solid #8FB9E8;outline-offset:3px}

/* Honeypot: hidden from people and AT, but still focusable off-screen. */
.oc-hp{position:absolute !important;left:-9999px !important;top:auto;width:1px;height:1px;overflow:hidden}

/* Consent checkboxes */
.cform-consent label{cursor:pointer;text-align:left}
.cform-consent input[type="checkbox"]{accent-color:#8FB9E8;cursor:pointer}
.cform-consent a{color:#8FB9E8;text-decoration:underline;text-underline-offset:2px}
.cform-consent a:hover{color:#F4F7FC}

/* Cloudflare Turnstile */
.cform-turnstile{margin:2px 0}

/* Submit status line */
.cform-status{margin:0;min-height:1.1em;font-size:14px;line-height:22px;font-weight:500;color:#C9D3E6}
.cform-status:empty{display:none}
.cform-status.is-error{color:#FFB4B4}

/* Success state (replaces the form) */
.cform-done{padding:clamp(20px,4vw,34px) 0;text-align:center}
.cform-done h3{margin:0 0 .3em;font-size:clamp(1.4rem,3vw,1.9rem);font-weight:800;color:#fff}
.cform-done p{margin:0 auto;max-width:36ch;color:#C9D3E6;font-size:1.05rem;line-height:1.55}

/* Sending state */
.cform button[type="submit"]:disabled{opacity:.7;cursor:default}
