Code widget text color and php

I’ve got two issues (maybe they are one and the same):
I have a form that I would like use in my Blocs site. It contains an html page with the form labels and layout and a php script at the head of the html page to send the form contents to another php file which uses phpmailer to send the complete form to an email address.

Firstly I pasted the php/html code into the code widget but the label font color is black even though it’s coded to be white. I’ve tried messing about with the code, and the best I can do is increase the font weight. The font stays black.

I wonder if it has something to do with the php at the top of the widget.

Secondly, can I use the form builder bric in Blocs to create my form instead, have the action ‘…/send_email.php’ and include the header php I had in my original code? If so, how to I insert the ‘POST submit’ php code into my form?

Here is the code that I’m trying to use.
form.html.zip (2.8 KB)