wrap the radio and the text label (like a span) inside a label and style the actual label with label:focus-within
and/or label:has([type="radio"]:focus)
and label:has([type="radio"]:user-invalid)
.querytype
label
input[type=radio]
span.textlabel
label
input[type=radio]
span.textlabel
span.errormsg
@Marijanjghhava
Posted
tanks @meelix