/* Shared public/admin validation: only mark fields after an attempted submit. */
[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) { border: 2px solid #c92736 !important; background: #fff8f8 !important; box-shadow: 0 0 0 3px #c9273614; }
[aria-invalid="true"]:focus { outline: 3px solid #c9273640; outline-offset: 2px; }
.agree:has([aria-invalid="true"]) { border: 1px solid #d33340; border-radius: 12px; padding: 14px; background: #fff5f5; }
.agree > .field-error { grid-column: 2; min-width: 0; margin-top: -4px; }
input[type="checkbox"][aria-invalid="true"], input[type="radio"][aria-invalid="true"] { outline: 2px solid #c92736; outline-offset: 3px; }
.field-error { display: block; color: #b51e2c; font-size: .82rem; font-weight: 500; line-height: 1.5; margin-top: 8px; letter-spacing: normal; text-transform: none; }
.form-error-summary { color: #a61927; background: #fff4f4; border: 1px solid #f0bbc1; border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: .9rem; }
/* In a flex form (e.g. the homepage country picker) the summary and a loose field-error must take a full row of their
   own, not squeeze the select and button. The picker wraps so they sit above and below the select+button row. */
.pick { flex-wrap: wrap; }
.pick > .form-error-summary { flex: 0 0 100%; order: -1; margin-bottom: 14px; }
.pick > .field-error { flex: 0 0 100%; order: 1; margin-top: 0; }
