Format inline drupal form elements
That's typical in Drupal. In this very moment, This is the CSS styling I use in scenario similar to yours:

.some-div-class label,  .some-div-class input[type="text"] {
  display:inline;
  width:auto;
  font-size:0.8em;
}


This will work fine on mobile devices as well.

Please do note your own CSS may need a bit more work.