It’s not possible natively, but what you can do is have a workaround by creating a category for your service, for example “Massage”, and then inside of it you will have multiple services with different durations and pricing, like “Massage 1 hour”, “Massage 2 hours” etc…

Then in “Settings -> Steps” you check “Show Service Categories” checkbox.

Then your services will appear in groups in the booking form