The label uses display:flex and flex-direction:column-reverse to show the input and label one above the other, like block, but switched around.

This means we can use a CSS + selector to style an element that follows an input with a required attribute.