I would suggest to only add the form once on the page. And then use JavaScript to show the form when opening the accordion. Then you need to make sure, that only one accordion item can be opened at time showing the form.