[CSS] Overrode the default width of 100% for form controls

The width of form controls should be representative of the expected length of input.

A width of 100% should only be used when the expected length of input for a field is greater than the available width. This override does this automatically by setting `max-width: 100%;`.

Fixes issue #4940.