How do I format/style the input fields (custom form)?

A post was split to a new topic: How do I layout a form on mobile?