Change style of focused input

Changing active input by few styles, using methods first-child, nth-child and simple focus. We use for third input nth-child(5), because there are
elements which count.