Here, the input field gets a black border color when it gets focus (clicked on). We have also added the CSS transition property to animate the border color (takes 0.5 seconds to change the color on focus):
This form is for styling demonstration purposes only. Any information entered in it is not captured other than being displayed in url above.