.elementor-1238 .elementor-element.elementor-element-e06d270{--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;--margin-top:50px;--margin-bottom:50px;--margin-left:0px;--margin-right:0px;}.elementor-1238 .elementor-element.elementor-element-37d3113{--display:flex;}@media(min-width:768px){.elementor-1238 .elementor-element.elementor-element-e06d270{--content-width:900px;}}/* Start custom CSS */document.addEventListener('DOMContentLoaded', function() {
    const form = document.querySelector('.elementor-form');
    
    if (form) {
        form.addEventListener('submit_success', function(event) {
            // Get the Residence field value
            const residenceField = form.querySelector('[name="form_fields[residence]"]');
            
            if (residenceField) {
                const selectedValue = residenceField.value;
                
                // Redirect based on selection
                if (selectedValue === 'I am a UK Resident') {
                    window.location.href = 'https://yoursite.com/uk-page';
                } else if (selectedValue === 'I am not a UK Resident') {
                    window.location.href = 'https://yoursite.com/non-uk-page';/* End custom CSS */