/* ---------- v2 short form (HubSpot Forms API) ----------
   Additions only: base look comes from .form, .form__field, .form__consent, .btn--send and .hs-slot__success in styles.css.
   Load after styles.css. Lives inside .form-card--quick (white card, navy text, 600px max). */

.quick-form { min-width: 0; }
.quick-form__noscript { margin-top: clamp(1.5rem, 3vw, 3.75rem); }
.quick-form__noscript + .form { margin-top: 1rem; }

/* consent block: intro, checkbox row, closing line */
.form__legal { margin-top: clamp(1.25rem, 1.5vw, 1.75rem); }
.form__legal-text { margin: 0; font-size: var(--fs-small); line-height: 1.4; color: var(--navy); }
.form__legal .form__consent { align-items: flex-start; margin-top: clamp(.75rem, 1vw, 1.25rem); }
.form__legal .form__consent label { align-self: center; font-weight: 700; line-height: 1.3; cursor: pointer; }
.form__legal .form__consent input { cursor: pointer; }
.form__legal .form__consent + .form__error + .form__legal-text,
.form__legal .form__consent + .form__legal-text { margin-top: clamp(.75rem, 1vw, 1.25rem); }
.form__legal-text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
.form__legal-text a:hover { text-decoration-thickness: 2px; }

/* inline errors: --red on white is 4.7:1 (AA for small text) */
.form__error { margin: .4rem 0 0; font-size: var(--fs-small); font-weight: 500; line-height: 1.35; color: var(--red); }
.form__error[hidden] { display: none; }
/* same 1px border plus a 1px shadow: reads as a 2px red rule without shifting the layout */
.form__field.is-invalid { border-bottom-color: var(--red); box-shadow: 0 1px 0 var(--red); }
.form__field.is-invalid label { color: var(--navy); }
.form__consent.is-invalid input { outline: 2px solid var(--red); outline-offset: 2px; }
/* Safari does not paint box-shadow (the global focus ring) on native checkboxes: give it a real outline */
.form__legal .form__consent input:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* field focus: the rule under the field goes solid navy, on top of the global focus ring on the input */
.form__field:not(.is-invalid):focus-within { border-bottom-color: var(--navy); }

/* honeypot: off-screen for people, present for bots (not display:none, not type=hidden) */
.form__hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); -webkit-clip-path: inset(50%); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* submit states */
.btn--send { cursor: pointer; }
/* .form prefix: must beat ".btn--send[disabled] { opacity: .7 }" in styles.css whatever the stylesheet order. Text is 7.6:1 on --pale. */
.form .btn--send[disabled], .form .btn--send.is-sending { cursor: progress; opacity: 1; background: var(--pale); color: rgba(11, 23, 46, .75); }

/* status line under the button: submit errors are visible; "sending" and the validation summary are for screen readers
   only (the button and the inline errors already show them) */
.form__status { margin: 0; font-size: var(--fs-small); font-weight: 500; line-height: 1.35; color: var(--navy); }
.form__status[data-state="error"] { margin-top: 1rem; padding: .75rem 1rem; border: 2px solid var(--red); color: var(--red); }
.form__status[data-state="sending"], .form__status[data-state="invalid"] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* success message replaces the form */
.quick-form__success { margin-top: clamp(1.5rem, 3vw, 3.75rem); padding: clamp(1.25rem, 1.6vw, 2rem); font-size: var(--fs-body); line-height: 1.3; color: var(--navy); }
.quick-form__success p { margin: 0; font-weight: 700; }
.quick-form__success:focus { outline: none; }

@media (max-width: 900px) {
  .form__legal .form__consent label { align-self: flex-start; padding-top: .2em; }
}

@media (prefers-reduced-motion: reduce) {
  .quick-form *, .quick-form *::before, .quick-form *::after { transition: none !important; animation: none !important; }
}
