 <button type="button" class="enquiry bg-transparent border-0" data-bs-toggle="modal" data-bs-target="#myModal1" title="Send Enquiry">
     <i>
         <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" viewBox="0 0 16 16">
             <path
                 d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z">
             </path>
         </svg>
     </i>
     <strong>Send Enquiry</strong></button>
 <?php include("app_modal.php");?>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.0.2/wow.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.9.0/jquery.validate.min.js"></script>
 <script src="<?=site_url;?>/designer/js/themes.js"></script>
 <button class="whatapp_btn border-0" type="button" data-bs-toggle="modal" data-bs-target="#whatsapp" title="Whatsapp Now"><svg
         xmlns="http://www.w3.org/2000/svg" width="25" height="25" fill="currentColor" viewBox="0 0 16 16">
         <path
             d="M13.601 2.326A7.854 7.854 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.933 7.933 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.898 7.898 0 0 0 13.6 2.326zM7.994 14.521a6.573 6.573 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.557 6.557 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592zm3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.729.729 0 0 0-.529.247c-.182.198-.691.677-.691 1.654 0 .977.71 1.916.81 2.049.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232z">
         </path>
     </svg></button>
 <a class="whatapp_btn whatapp_btn2" href="tel:<?=$admin_res['mobile'];?>" title="Call Now"><svg xmlns="http://www.w3.org/2000/svg"
         width="25" height="25" fill="currentColor" viewBox="0 0 16 16">
         <path
             d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457 2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z">
         </path>
     </svg></a>
 <script>
$(document).ready(function() {


    $("#contact_form").validate({
        rules: {
            name: "required",
            message: {
                required: true,
            },
            location: {
                required: true,
            },
            email: {
                required: true,
            },
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please enter your name",
            message: {
                required: "Please enter your message",
            },
            email: {
                required: "Please enter your email address"
            },
            location: {
                required: "Please enter your location",
            },
            mobile: {
                required: "Please enter your mobile no.",
                number: "Mobile No. contains only numbers",
                minlength: "Your Mobile No. must be 10 digits long",
                maxlength: "Your Mobile No. must be 10 digits long",
            }
        },
        submitHandler: function(form) {
            $.ajax({
                url: '<?= site_url; ?>/contacts.php',
                type: 'POST',
                data: $('#contact_form').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#pop_up').text(response.message_response).css('color',
                            'green');
                        $('#contact_form')[0].reset();
                        grecaptcha.reset();
                    } else {
                        $('#pop_up').text(response.message_response).css('color',
                            'red');
                    }
                }
            });
        }
    });
});
$(document).ready(function() {


    $("#enq_pop_form1").validate({
        rules: {
            name: "required",
            message: {
                required: true,
            },
            location: {
                required: true,
            },
            email: {
                required: true,
            },
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please enter your name",
            message: {
                required: "Please enter your message",
            },
            email: {
                required: "Please enter your email address"
            },
            location: {
                required: "Please enter Your location",
            },
            mobile: {
                required: "Please enter your mobile no.",
                number: "Mobile No. contains only numbers",
                minlength: "Your Mobile No. must be 10 digits long",
                maxlength: "Your Mobile No. must be 10 digits long",
            }
        },
        submitHandler: function(form) {
            $.ajax({
                url: '<?= site_url; ?>/enquiry_popup.php',
                type: 'POST',
                data: $('#enq_pop_form1').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#enq_pop_up').text(response.message_response).css('color',
                            'green');
                        $('#enq_pop_form1')[0].reset();
                        grecaptcha.reset();
                    } else {
                        $('#enq_pop_up').text(response.message_response).css('color',
                            'red');
                    }
                }
            });
        }
    });
});


$(document).ready(function() {


    $("#product_pop_form").validate({
        rules: {
            name: "required",
            message: {
                required: true,
            },
            location: {
                required: true,
            },
            quantity: {
                required: true,
            },
            email: {
                required: true,
            },
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please enter your name",
            message: {
                required: "Please enter your message",
            },
            email: {
                required: "Please enter your email address"
            },
            location: {
                required: "Please enter Your Location",
            },
            quantity: {
                required: "Please enter Your Minimum Order Quantity",
            },
            mobile: {
                required: "Please enter your mobile no.",
                number: "Mobile No. contains only numbers",
                minlength: "Your Mobile No. must be 10 digits long",
                maxlength: "Your Mobile No. must be 10 digits long",
            }
        },
        submitHandler: function(form) {
            $.ajax({
                url: '<?= site_url; ?>/enquirycat_popup.php',
                type: 'POST',
                data: $('#product_pop_form').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#cat_pop_up').text(response.message_response).css('color',
                            'green');
                        $('#product_pop_form')[0].reset();
                        grecaptcha.reset();
                    } else {
                        $('#cat_pop_up').text(response.message_response).css('color',
                            'red');
                    }
                }
            });
        }
    });
});
$(document).ready(function() {


    $("#callback_form").validate({
        rules: {
            name: "required",
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please enter your name",
            mobile: {
                required: "Please enter your mobile no.",
                number: "Mobile No. contains only numbers",
                minlength: "Your Mobile No. must be 10 digits long",
                maxlength: "Your Mobile No. must be 10 digits long",
            }
        },
        submitHandler: function(form) {
            $(':input[type="submit"]').prop('disabled', true);
            $.ajax({
                url: '<?= site_url; ?>/ajax_enq_action.php',
                type: 'POST',
                data: $('#callback_form').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#cpop_up').text(response.message_response).css('color',
                            'green');
                        $('#callback_form')[0].reset();
                        grecaptcha.reset();
                        $(':input[type="submit"]').prop('disabled', false);
                    } else {
                        $('#cpop_up').text(response.message_response).css('color',
                            'red');
                        $(':input[type="submit"]').prop('disabled', false);
                    }
                }
            });
        }
    });
});
$(document).ready(function() {


    $("#whatsapp_form").validate({
        rules: {
            name: "required",
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please Enter Your Name",
            mobile: {
                required: "Please Enter Your mobile Number",
                number: "Mobile Number Must be Number",
                minlength: "Mobile Number must have 10 digits",
                maxlength: "Mobile Number must have 10 difits",
            }
        },
    });
});
$('#whatsapp_form').submit(function(e) {

    e.preventDefault();
    $(':input[type="submit"]').prop('disabled', true);
    $.ajax({
        'url': '<?= site_url; ?>/whatsapp_enq.php',
        'type': 'POST',
        'dataType': 'json',
        'data': $(this).serialize(),
        'success': function(result) {
            if (result.status == false) {
                $('.wht_success_message').text('');
                $('.wht_error_message').text(result.message_response)
                $(':input[type="submit"]').prop('disabled', false);
            } else {
                $('.wht_error_message').text('');
                $('.wht_success_message').text(
                    "You Have Successfully Submitted enquiry. We will contact you soon.");
                $('#whatsapp_form').trigger("reset");
                window.open(result.message_response, '_blank');
                $(':input[type="submit"]').prop('disabled', false);
            }
        }
    });
});
$(document).ready(function() {
    $("#news_letter").validate({

        rules: {
            email: {
                required: true,
                email: true, // Ensure valid email format
            },
        },

        messages: {
            email: {
                required: "Please enter your email address",
                email: "Please enter a valid email address"
            },
        },

        submitHandler: function(form) {
            $.ajax({
                url: '<?= site_url; ?>/ajax_newsletter.php',
                type: 'POST',
                data: $('#news_letter').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#news_response').text(response.message_response).css('color',
                            'green');
                        $('#news_letter')[0].reset();
                        grecaptcha.reset();
                    } else {
                        $('#news_response').text(response.message_response).css('color',
                            'red');
                    }
                }
            });
        }
    });
    $('#news_letter input[name="email"]').on('blur', function() {

        if ($(this).valid()) {
            $('#news_letter').submit();
        }
    });
});
// Booking form 1
$(document).ready(function() {


    $("#bookingform1").validate({
        rules: {
            name: "required",
            message: {
                required: true,
            },

            email: {
                required: true,
            },
            adultsNo: {
                required: true
            },
            childNo: {
                required: true
            },
            tourSdate: {
                required: true
            },
            tourEdate: {
                required: true
            },
            accommodation: {
                required: true
            },
            guide: {
                required: true
            },
            carType: {
                required: true
            },
            mobile: {
                required: true,
                number: true,
                minlength: 10,
                maxlength: 10,
            }
        },
        messages: {
            name: "Please enter your name",
            message: {
                required: "Please enter your message",
            },
            email: {
                required: "Please enter your email address"
            },
            adultsNo: {
                required: "Please Select No of Adults"
            },
            childNo: {
                required: "Please Select No of Child"
            },
            tourSdate: {
                required: "Please Enter Tour Start Date"
            },
            tourEdate: {
                required: "Please Enter Tour End Date"
            },
            accommodation: {
                required: "Please Select Accommodation"
            },
            guide: {
                required: "Please Select Guide"
            },
            carType: {
                required: "Please Select Car Type"
            },
            mobile: {
                required: "Please enter your mobile no.",
                number: "Mobile No. contains only numbers",
                minlength: "Your Mobile No. must be 10 digits long",
                maxlength: "Your Mobile No. must be 10 digits long",
            }
        },
        submitHandler: function(form) {
            $.ajax({
                url: '<?= site_url; ?>/ajax_bookingform.php',
                type: 'POST',
                data: $('#bookingform1').serialize(),
                dataType: 'json',
                success: function(response) {
                    if (response.status == true) {
                        $('#bookingResponse1').text(response.message_response).css(
                            'color',
                            'green');
                        $('#bookingform1')[0].reset();
                        grecaptcha.reset();
                    } else {
                        $('#bookingResponse1').text(response.message_response).css(
                            'color',
                            'red');
                    }
                }
            });
        }
    });
});

// Booking form 2
$(document).ready(function() {


$("#bookingform2").validate({
    rules: {
        name: "required",
        message: {
            required: true,
        },

        email: {
            required: true,
        },
        adultsNo: {
            required: true
        },
        childNo: {
            required: true
        },
        tourSdate: {
            required: true
        },
        tourEdate: {
            required: true
        },
        accommodation: {
            required: true
        },
        guide: {
            required: true
        },
        carType: {
            required: true
        },
        mobile: {
            required: true,
            number: true,
            minlength: 10,
            maxlength: 10,
        }
    },
    messages: {
        name: "Please enter your name",
        message: {
            required: "Please enter your message",
        },
        email: {
            required: "Please enter your email address"
        },
        adultsNo: {
            required: "Please Select No of Adults"
        },
        childNo: {
            required: "Please Select No of Child"
        },
        tourSdate: {
            required: "Please Enter Tour Start Date"
        },
        tourEdate: {
            required: "Please Enter Tour End Date"
        },
        accommodation: {
            required: "Please Select Accommodation"
        },
        guide: {
            required: "Please Select Guide"
        },
        carType: {
            required: "Please Select Car Type"
        },
        mobile: {
            required: "Please enter your mobile no.",
            number: "Mobile No. contains only numbers",
            minlength: "Your Mobile No. must be 10 digits long",
            maxlength: "Your Mobile No. must be 10 digits long",
        }
    },
    submitHandler: function(form) {
        $.ajax({
            url: '<?= site_url; ?>/ajax_bookingform.php',
            type: 'POST',
            data: $('#bookingform2').serialize(),
            dataType: 'json',
            success: function(response) {
                if (response.status == true) {
                    $('#bookingResponse2').text(response.message_response).css(
                        'color',
                        'green');
                    $('#bookingform2')[0].reset();
                    grecaptcha.reset();
                } else {
                    $('#bookingResponse2').text(response.message_response).css(
                        'color',
                        'red');
                }
            }
        });
    }
});
});

// Booking form 3
$(document).ready(function() {


$("#bookingform3").validate({
    rules: {
        name: "required",
        message: {
            required: true,
        },

        email: {
            required: true,
        },
        adultsNo: {
            required: true
        },
        childNo: {
            required: true
        },
        tourSdate: {
            required: true
        },
        tourEdate: {
            required: true
        },
        accommodation: {
            required: true
        },
        guide: {
            required: true
        },
        carType: {
            required: true
        },
        mobile: {
            required: true,
            number: true,
            minlength: 10,
            maxlength: 10,
        }
    },
    messages: {
        name: "Please enter your name",
        message: {
            required: "Please enter your message",
        },
        email: {
            required: "Please enter your email address"
        },
        adultsNo: {
            required: "Please Select No of Adults"
        },
        childNo: {
            required: "Please Select No of Child"
        },
        tourSdate: {
            required: "Please Enter Tour Start Date"
        },
        tourEdate: {
            required: "Please Enter Tour End Date"
        },
        accommodation: {
            required: "Please Select Accommodation"
        },
        guide: {
            required: "Please Select Guide"
        },
        carType: {
            required: "Please Select Car Type"
        },
        mobile: {
            required: "Please enter your mobile no.",
            number: "Mobile No. contains only numbers",
            minlength: "Your Mobile No. must be 10 digits long",
            maxlength: "Your Mobile No. must be 10 digits long",
        }
    },
    submitHandler: function(form) {
        $.ajax({
            url: '<?= site_url; ?>/ajax_bookingform.php',
            type: 'POST',
            data: $('#bookingform3').serialize(),
            dataType: 'json',
            success: function(response) {
                if (response.status == true) {
                    $('#bookingResponse3').text(response.message_response).css(
                        'color',
                        'green');
                    $('#bookingform3')[0].reset();
                    grecaptcha.reset();
                } else {
                    $('#bookingResponse3').text(response.message_response).css(
                        'color',
                        'red');
                }
            }
        });
    }
});
});
// code for form validation 
function ValidateAlpha(evt) {
    var keyCode = evt.which || evt.keyCode;
    // Allow A-Z, a-z, and space
    if ((keyCode < 65 || keyCode > 90) && (keyCode < 97 || keyCode > 122) && keyCode !== 32) {
        return false;
    }
    return true;
}

function isNumberKey(evt) {
    var charCode = evt.which || evt.keyCode;
    // Allow only numbers and dot (.)
    if (charCode !== 46 && charCode > 31 && (charCode < 48 || charCode > 57)) {
        return false;
    }
    return true;
}

function validateOnlyTextField(element) {
    var str = element.value.trim(); // trim spaces
    if (!/^[a-zA-Z\s]*$/.test(str)) {
        element.value = "";
    }
}

// Check if datepicker exists
if (jQuery().datepicker) {
    $('.date-picker').datepicker({
        format: 'mm/dd/yyyy',
        autoclose: true,
        startDate: '0'
    });

    var $startDate = $("#startdate");
    var $endDate = $("#enddate");

    // Set end date limit on start datepicker
    $startDate.on('show', function () {
        var endVal = $endDate.datepicker("getDate");
        if (endVal) {
            $startDate.datepicker('setEndDate', endVal);
        }
    });

    // Set start date limit on end datepicker
    $endDate.on('show', function () {
        var startVal = $startDate.datepicker("getDate");
        if (startVal) {
            $endDate.datepicker('setStartDate', startVal);
        }
    });
}
 </script>
 <script>
var placeSearch, autocomplete, autocomplete1;

var componentForm = {
    street_number: "short_name",
    route: "long_name",
    locality: "long_name",
    administrative_area_level_1: "short_name",
    country: "long_name",
    postal_code: "short_name"
};



function initAutocomplete() {
    autocomplete = new google.maps.places.Autocomplete((document.getElementById("autocomplete")), {
        types: ["geocode"]
    });
    autocomplete1 = new google.maps.places.Autocomplete((document.getElementById("autocomplete1")), {
        types: ["geocode"]
    });
    autocomplete.addListener("place_changed", fillInAddress)
}



function fillInAddress() {
    var a = autocomplete.getPlace();
    for (var c in componentForm) {
        document.getElementById(c).value = "";
        document.getElementById(c).disabled = false
    }
    for (var d = 0; d < a.address_components.length; d++) {
        var b = a.address_components[d].types[0];
        if (componentForm[b]) {
            var e = a.address_components[d][componentForm[b]];
            document.getElementById(b).value = e
        }
    }
}


     //disabling context menu
    document.onkeydown = function(e) {
        if (e.ctrlKey &&
            (e.keyCode === 67 ||
                e.keyCode === 86 ||
                e.keyCode === 85 ||
                e.keyCode === 117)) {
            return false;
        } else {
            return true;
        }
    };
    $(document).keypress("u", function(e) {
        if (e.ctrlKey) {
            return false;
        } else {
            return true;
        }
    });
    document.addEventListener("contextmenu", function(e) {
        e.preventDefault();
    }, false);

function geolocate() {
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(function(b) {
            var a = {
                lat: b.coords.latitude,
                lng: b.coords.longitude
            };
            var c = new google.maps.Circle({
                center: a,
                radius: b.coords.accuracy
            });
            autocomplete.setBounds(c.getBounds())
        })
    }
};
 </script>
<script
  src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCYyhHAHS-58SXSyMw66_MulbmH-xHruxI&libraries=places&callback=initAutocomplete&loading=async"
  async
  defer>
</script>
 <script>
function init() {
    var vidDefer = document.getElementsByTagName('iframe');
    for (var i = 0; i < vidDefer.length; i++) {
        if (vidDefer[i].getAttribute('data-src')) {
            vidDefer[i].setAttribute('src', vidDefer[i].getAttribute('data-src'));
        }
    }
}

window.onload = init;
 </script>