How to change the text color of a text field

Hi!

I am new to using the tool and I want to know how I can change the background or the letters of a text field to red in a form. When the text field has an incorrect value.

Where can I put this code, in the header, in the validations?

Example: 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data