What you can do is create 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