I’ve made this very nice modal that activates when you click on the “work with us button”, check it out: http://creatiflabs.webflow.io/. The modal itself is outside a wrapper I’ve created for the rest of the page and activates with a click interaction on the button.
The problem is I’d like to be able to close the modal when a user clicks outside of it (on the body wrapper). But since the button to open it is also inside the body wrapper, it cancels the open interaction.
My recommendation would be to add an absolute positioned div with a lower z-index than your contact form inside of your Modal div, with 100% width, 100vh height. And add the “Close modal” interaction to it. You can add a background color to it or leave it colorless. Nice use of gradients and original modal interaction