How to add something like airbnb's form?

When you go on Airbnb, there is a sort of collapsible form that asks you to put in certain details.

I want to add something very similar to my bubble app.

I want a nice animation where the rectangle expands when it’s clicked and the other ones get smaller.

I’ve attached an image of what I’m talking about on the Airbnb app.

Thank you!

This is pretty straight forward in Bubble. Just for the first part (where) for example, you can add two groups on top of each other. and show and hide nicely with a click. Design the contents in anyway you want. Then, once you have something nicely done, copy for other parts (lower groups).

You can check the editor more if you want to see how I set them up: Tests for Forum 9 | Bubble Editor