As in explain here how it is done is not suited under this topic, I’ll make a short suggestion.
Google styling forms (in general) with HTML and CSS to learn how that is done.
Then Google styling Mautic forms and I think you might understand it then.
Or post a new topic in the forum, where I and others can tell you more how it is used.