/* Forms-plugin forms drawn in Gravity Forms markup (src/components/GForm.astro). The live site's GF
   Orbital theme CSS styles the fields; these are the states GF's own JavaScript used to handle. */
/* After a successful submission the form is replaced by its confirmation, as Gravity Forms did */
form.gf-confirmed > :not(.ec-form-status) { display: none !important; }
.ec-form-status:empty { display: none; }
.ec-form-status:focus { outline: none; }
.ec-form-status--success { font-size: 1.1rem; line-height: 1.5; }
.ec-form-status--success h2 { margin-bottom: .5rem; }
.ec-form-status--error { color: #c02b0a; font-weight: 600; margin-top: 1rem; }
/* Field errors from the plugin's validation */
.ec-gf-error:empty { display: none; }
.ec-gf-error { display: block; color: #c02b0a; font-size: 14px; font-weight: 500; margin-top: 8px; }
.gfield:has(.ec-gf-error:not(:empty)) :is(input, textarea, select) { border-color: #c02b0a !important; }
/* Honeypot: hidden from people, still in the form for bots */
.gform_validation_container { display: none !important; position: absolute !important; left: -9000px; }

/* Turnstile widget (src/components/GForm.astro): only takes space when Cloudflare asks for a click */
form[data-ec-form] .jh-turnstile { margin-top: 16px; }
form[data-ec-form] .jh-turnstile:empty { margin-top: 0; }
