HTML5 validation doesn't just have to apply to individual form fields. It can also apply to fieldset and form elements. Full write-up.

Personal information

More personal information

Very personal information

Disclaimer

Adding content into the :before and :after elements is a bad idea. It can't be selected and doesn't appear in the accessibility DOM.