Learn how to create a responsive inline form with CSS.
Read on how to do it in this link: https://www.w3schools.com/howto/howto_css_inline_form.asp
Responsive Inline Form
Resize the browser window to see the effect (the labels and inputs will stack on top of each other instead of next to each other on smaller screens):
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_inline_form