.elementor-3265 .elementor-element.elementor-element-a065f03{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}#elementor-popup-modal-3265 .dialog-widget-content{animation-duration:1.2s;box-shadow:2px 8px 23px 3px rgba(0,0,0,0.2);}#elementor-popup-modal-3265{background-color:rgba(0,0,0,.8);justify-content:center;align-items:center;pointer-events:all;}#elementor-popup-modal-3265 .dialog-message{width:640px;height:auto;}/* Start custom CSS */jQuery(function($) {
    var formSubmitted = false;
    
    $(".elementor-popup-modal").on("click", function(event) {
        if (!formSubmitted) {
            event.stopPropagation();
            return false;
        }
    });

    // Once the form is submitted
    $("form").on("submit", function() {
        formSubmitted = true;
        // Close the popup after form submission
        $(".elementor-popup-modal").fadeOut();
    });
});
jQuery(function($) {
    if (getCookie('form_submitted') === 'yes') {
        return;  // Exit if form has already been submitted
    }

    $(".elementor-popup-modal").show();  // Show the popup if not yet submitted

    $("form").on("submit", function() {
        setCookie('form_submitted', 'yes', 365);  // Set a cookie for 365 days
        $(".elementor-popup-modal").fadeOut();  // Hide the popup after submission
    });
});

// Function to get cookie value
function getCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for (var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') c = c.substring(1, c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
    }
    return null;
}

// Function to set a cookie
function setCookie(name, value, days) {
    var date = new Date();
    date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
    var expires = "expires=" + date.toUTCString();
    document.cookie = name + "=" + value + ";" + expires + ";path=/";
}/* End custom CSS */