document.addEventListener('DOMContentLoaded', function() {
var form = document.querySelector('.elementor-form');
var checkbox = form.querySelector('.elementor-field-option input[type="checkbox"]');
var submitButton = form.querySelector('button[type="submit"]');
submitButton.addEventListener('click', function(event) {
if (!checkbox.checked) {
event.preventDefault();
alert('Please check the required checkbox before submitting.');
}
});
});