Getting Infusionsoft form code to look right


I have some form code that was provided by Infusionsoft.

When I put the form code on a page, this is what I get:

I would like to change it so that it looks more like the form at the bottom of this page:

Could anyone help?