/* Z4 forms (loaded only on pages with a form). Logical properties only. */
.z4-form-wrap{max-width:46rem;margin-inline:auto}
.z4-form__title{margin-block:0 .5rem}
.z4-form{display:grid;gap:1rem;background:#fff;border:1px solid var(--z4-line,#d6d8d9);border-radius:var(--z4-radius,12px);padding:clamp(16px,3vw,28px);box-shadow:0 8px 24px rgba(11,29,58,.06)}
.z4-fields{display:flex;flex-wrap:wrap;gap:1rem}
.z4-field{flex:1 1 100%;display:grid;gap:.35rem;min-width:0}
@media (min-width:600px){.z4-field.z4-w-half{flex:1 1 calc(50% - .5rem)}}
.z4-field label,.z4-choices legend{font-weight:600;color:var(--z4-navy-900,#0b1d3a)}
.z4-req,.z4-opt{font-weight:400;color:var(--z4-muted,#4a5a70);font-size:.875em}
.z4-form input[type=text],.z4-form input[type=email],.z4-form input[type=tel],.z4-form input[type=date],.z4-form input[type=number],.z4-form select,.z4-form textarea{width:100%;min-height:48px;padding:.6rem .8rem;border:1px solid var(--z4-border,#6b778a);border-radius:8px;background:#fff;color:var(--z4-ink,#111827);font:inherit;box-sizing:border-box}
.z4-form textarea{min-height:120px;resize:vertical}
[dir=rtl] .z4-form input[type=tel],[dir=rtl] .z4-form input[type=email],[dir=rtl] .z4-form input[inputmode=decimal]{text-align:end}
.z4-tel{display:flex;gap:.5rem}
.z4-tel select{flex:0 0 auto;width:auto;max-width:46%}
.z4-tel input{flex:1 1 auto}
.z4-unit-wrap{display:flex;align-items:center;gap:.5rem}
.z4-unit{color:var(--z4-muted,#4a5a70)}
.z4-choices{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem 1rem}
.z4-choices legend{margin-block-end:.4rem;width:100%}
.z4-choice{display:inline-flex;align-items:flex-start;gap:.5rem;min-height:24px;cursor:pointer;font-weight:400}
.z4-choice input{flex:none;inline-size:20px;block-size:20px;margin-block-start:.2em;accent-color:var(--z4-accent,#1d4ed8)}
.z4-consent{font-size:.95em}
.z4-help{margin:0;color:var(--z4-muted,#4a5a70);font-size:.9em}
.z4-err{margin:0;color:#b42318;font-weight:600;font-size:.92em}
.z4-form .z4-field--error :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select:not([data-cc]),textarea){border-color:#b42318;border-width:2px} /* the field itself turns red (text inputs kept their normal border: .z4-form input[type=…] won; the country code did) */
.z4-form__summary{border:2px solid #b42318;border-radius:8px;padding:.75rem 1rem;background:#fff5f5}
.z4-form__summary p{margin:0 0 .25rem;font-weight:700;color:#b42318}
.z4-form__summary ul{margin:0;padding-inline-start:1.2rem}
.z4-form__summary a{color:#b42318}
.z4-form__nav{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-end}
.z4-form__status{margin:0;min-height:1.5em;color:var(--z4-muted,#4a5a70)}
.z4-step{border:0;margin:0;padding:0;min-width:0}
.z4-step__legend{font-size:1.15rem;font-weight:700;margin-block-end:.75rem;padding:0}
.z4-js .z4-step[data-hidden-step]{display:none}
.z4-filelist{margin:0;padding-inline-start:1.2rem;font-size:.9em;color:var(--z4-muted,#4a5a70)}
.z4-form__success{background:#f0fdf4;border:1px solid #86efac;border-radius:var(--z4-radius,12px);padding:clamp(16px,3vw,28px);text-align:center}
.z4-form__success-title{margin-block-start:0;font-size:clamp(1.12rem,1rem + .45vw,1.3rem)} /* h2 or h3 by context (VR1-01), same size */
.z4-hp{position:absolute!important;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.z4-form button[disabled]{opacity:.6;cursor:progress}
.z4-help--eg{color:var(--z4-navy-900,#0b1d3a);font-weight:600}
/* File field (UX-13): a 48 px button in the page language; the native control stays for no-JS visitors */
.z4-file__btn{display:none}
.z4-js .z4-file__btn{display:inline-flex;justify-self:start;min-block-size:48px;cursor:pointer}
.z4-js .z4-form .z4-file__input{position:absolute!important;inline-size:1px;block-size:1px;min-block-size:0;margin:0;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;opacity:0}
.z4-js .z4-file__input:focus-visible+.z4-file__btn{outline:3px solid var(--z4-focus-ring,#0b1d3a);outline-offset:2px}
.z4-form input[type=file]{min-block-size:48px;inline-size:100%;padding:.5rem;border:1px dashed var(--z4-border,#6b778a);border-radius:8px;background:#fff;font:inherit}
.z4-form input[type=file]::file-selector-button{min-block-size:36px;margin-inline-end:.75rem;padding:.35rem .9rem;border:1px solid var(--z4-navy-900,#0b1d3a);border-radius:8px;background:var(--z4-tint,#f4f6fa);color:var(--z4-navy-900,#0b1d3a);font:inherit;font-weight:600;cursor:pointer}
