/* User-approved field feedback and live password checklist; the supplied stylesheets stay unchanged. */
.field-error,.legal-error{color:#8c2026;font-weight:700}
.field-error[hidden],.legal-error[hidden]{display:none}
.field-error:not([hidden]){font-size:1.125rem;line-height:1.65;margin:6px 0 0}
/* Keep visible errors red inside containers that recolor paragraphs (e.g. `.access-card p` on checkout). */
.field-error:not([hidden]),.legal-error:not([hidden]){color:#8c2026}
/* Compact intake uses 16px labels/inputs and .9rem hints; errors match the hint scale instead of outsizing the label. */
.intake-page.compact-intake .field-error:not([hidden]){font-size:.9rem;line-height:1.5;margin:6px 0 0}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"],fieldset[aria-invalid="true"]{border-color:#8c2026!important}

.password-requirements{list-style:none;padding:0;margin:.5rem 0 0;font-size:1.125rem;line-height:1.65}
.password-requirements[hidden]{display:none}
.password-requirements li{display:flex;align-items:baseline;gap:.5rem}
.password-requirements .password-rule-icon{display:inline-block;flex:0 0 1.25rem;text-align:center}
.password-requirements [data-met="true"]{color:#226145}
.password-requirements [data-met="true"] .password-rule-icon{font-weight:700}

/* Account password hint: live guidance while entering a new password. */
#password-field{position:relative}
#password-field .password-hint{position:fixed;z-index:20;width:320px;box-sizing:border-box;padding:16px;background:#fff;color:#142d4e;border:1px solid #d3e0ec;border-radius:10px;box-shadow:0 6px 24px #142d4e26}
#password-field .password-hint[hidden]{display:none}
#password-field .password-hint .field-hint{font-size:1rem;line-height:1.5;margin:0 0 10px}
#password-field .password-requirements{font-size:1rem;line-height:1.5;margin:0;display:grid;gap:8px}
#password-field .password-requirements li{align-items:flex-start}
#password-field [data-rule-status]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#password-field .password-hint[data-placement="inline"]{position:relative;left:auto;top:auto;width:100%;margin-top:12px}
#password-field .password-hint[data-placement="right"]::before,#password-field .password-hint[data-placement="left"]::before{content:"";position:absolute;top:var(--password-hint-arrow-top,14px);width:12px;height:12px;background:#fff;border:solid #d3e0ec;transform:rotate(45deg)}
#password-field .password-hint[data-placement="right"]::before{left:-7px;border-width:0 0 1px 1px}
#password-field .password-hint[data-placement="left"]::before{right:-7px;border-width:1px 1px 0 0}

/* User-approved password visibility control, isolated to the account field. */
#password-field .password-control{position:relative}
#password-field #entry-password{padding-right:56px}
#password-field .password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:#142d4e;cursor:pointer}
#password-field .password-toggle:hover{background:#eef5fc}
#password-field .password-toggle:focus-visible{outline:2px solid #142d4e;outline-offset:1px}
#password-field .password-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#password-field .password-toggle .password-eye-slash{display:none}
#password-field .password-toggle[aria-pressed="true"] .password-eye-slash{display:block}
#password-field #entry-password::-ms-reveal{display:none}

/* Required intake fields use the user-approved red asterisk. */
.intake-page #intake-form .required{color:#8c2026;font-weight:600}
.intake-page #intake-form .optional{font-size:1.125rem;font-weight:400}
.intake-page .hcf-address-input:has(input[aria-invalid="true"]){border-color:#8c2026}

/* Fieldset legends must remain clear of invalid-control outlines. */
.intake-page #intake-form fieldset[aria-invalid="true"],.intake-page #intake-form input[type="radio"][aria-invalid="true"],.intake-page #intake-form input[type="checkbox"][aria-invalid="true"]{box-shadow:none!important;outline:none;border:0!important}
.intake-page #intake-form .choice:has(input[aria-invalid="true"]){border-color:#8c2026}
.intake-page #intake-form .choice:has(input:focus-visible){outline:2px solid #142d4e;outline-offset:2px}
