Form with dynamic fields for different number of customers

I’m pretty new to Webflow, so please bare with me. I’m currently making an eCommerce website and I’m trying to customise the checkout form. The website is for online classes where parents enrol their kids in the class.

We need information about each kid they are enrolling in the class. Would it be possible to have a form that varies in length depending on the number of kids they want to enrol? Or is there a way to have fields that conditionally appear depending on the quantity of the product?

Any other suggestions would be much appreciated. Thanks.