I went with the second option so that I didn't have to use the bootstrap classes, but it just ignores the AJAX when I do. Submit just sends it as a GET request. Any ideas? Here's my page's HTML:
title = "Contact"
url = "/contact"
layout = "defaultl"
[contactForm]
[blogCategories]
idParam = ":slug"
categoryPage = "category"
categoryPageIdParam = ":slug"
displayEmpty = "0"
==
<div class="main-content contact-form">
<form role="form"
data-request="{{ __SELF__ }}::onMailSent"
data-request-update="'{{ __SELF__ }}::confirm': '.confirm-container'"
data-request-success="$('.form-groups').hide(1000)">
<div class="confirm-container">
<!--This will contain the confirmation when the email is successfully sent-->
</div>
<input type="text" class="default-input rounded" value="" name="name" placeholder="Name">
<input type="text" class="default-input rounded" value="" name="email" placeholder="Email">
<input type="text" class="default-input rounded" value="" name="subject" placeholder="Subject">
<textarea class="default-input rounded" value="" name="body" placeholder="Message" cols="30" rows="5"></textarea>
<button type="submit" class="btn orange full rounded">Submit</button>
</form>
</div>