Use the w3-row class to make the inputs appear on the same line.
On smaller screens, they will stack horizontally with 100% width.
Resize the screen to see the effect.