There are two important tags for form styling: <fieldset> and <legend>. To see some examples about styling these two tags, check this link.

In addition, if you want to have CSS centering layout, here is a common methodology for your own reference.