form { width: 100%; display: flex; flex-flow: column nowrap; gap: 1rem; & input { width: 100%; &[aria-invalid="true"] { border-color: red; } } & label:has([aria-invalid="true"]) + small { color: red; } }