Getting javascript to display correct in Wordpress

First post so please be kind… Not great at coding so bear with me while I try to explain:

The above is where the code is at the moment, as you will be able to see just under the main menu there is a Rail ticket booking form.

It is supposed to be Horizontal but for some reason its showing vertical, would anyone be able to assist and advise what the issue might be?

Code pasted on pastebin:

The Header code is above.

Many Thanks