Need to book appointment+ appointment inside modal window

Hi - I need to open the calendar view in a modal and book it inside the modal window.
I am using flexible modal. The marketpress product for the appointment is rendering very well through short code, then I am also able to view the appointment calendar and availability.

But when I click on an available slot, nothing happens. the ajax pagination to load the booking form is not working inside the modal window.

However I checked, I am able to add the product to the cart. I need your help to get this resolved - kindly help.

Thanks a lot in advance.