Learn how to style form elements based on their states using CSS.