Popup box/form


I have some products that require quite a lot extra information. I was wondering, is it possible to have a form popup in a modal box when a user clicks the ‘add to cart’ button? And once these fields have been completed the information entered would be stored along with the order/purchase information.

Any help would be much appreciated. Thanks.