Alternatively you can create the form (on separate page) and then manually add a button block (or a link) that takes the user to that page where the form resides.
Alternatively, we have a (paid) extension called the Product Enquiry Form. It adds a button right beside your add to cart button that launches a form. This form has the bonus that it will automatically include details of the product the user was viewing at the time 🙂