<div class="modal fade" id="whatsapp" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Message on WhatsApp</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form method="post" id="whatsappEnq">
                    <div id="whatsapp_response"></div>
                    <input class="form-control" type="hidden" name="catproduct" value="Whatsapp Query">
                    <div class="row">
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <div class="form-group">
                                <input class="form-control" type="text" name="wname" id="wname" placeholder="Full Name*" onkeypress="return ValidateAlpha(event)" value="">
                            </div>
                        </div>
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <div class="form-group">
                                <input class="form-control" type="text" name="wmobile" id="wmobile" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" value="" maxlength="10" placeholder="Mobile Number*">
                            </div>
                        </div>
                        <div class="col-xxl-12 col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
                            <button type="submit" name="whatsapp_submit" id="whatsEnq" class="read_more_btn_2">Submit</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Quick Enquiry</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form id="quick_enquiry" name="quick_enquiry" method="post">

                    <script>
                        setTimeout(function() {
                            $.getScript("https://www.google.com/recaptcha/api.js")
                        }, 10000);
                    </script>
                    <p id="enqstatus"></p>
                    <div class="form-group">
                        <input class="form-control" type="text" name="user_name" id="name" placeholder="Your Name*" value="" onkeypress="return ValidateAlpha(event)" pattern="[a-z A-Z]+">
                    </div>

                    <div class="form-group">
                        <input class="form-control" type="text" name="email_address" id="email" value="" placeholder="Your Email*">
                    </div>

                    <div class="form-group">
                        <input class="form-control" name="phone_no" id="phone" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" maxlength="10" type="tel" placeholder="Your Mobile Number*">
                    </div>

                    <div class="form-group">
                        <input class="form-control" type="text" name="location" id="locations" value="" placeholder="Your Location*" onkeypress="return ValidateAlpha(event)" pattern="[a-z A-Z]+">
                    </div>

                    <div class="form-group">
                        <textarea class="form-control" name="en_message" id="message" placeholder="Your Message*"></textarea>
                    </div>

                    <div class="form-group" style="margin-bottom: 0;">
                        <div class="g-recaptcha" data-sitekey="<?= SITE_KEY; ?>"></div>

                    </div>

                    <button type="submit" id="sendq" class="read_more_btn_2">Submit</button>
                </form>
            </div>
        </div>
    </div>
</div>


<!-- Product Popup -->
<div class="modal fade" id="productID" tabindex="-1">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title">Send Enquiry</h6>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">
                        <div class="product_popup">
                            <div class="product_popup_image">
                                <img src="designer/images/shuttering-plywood.jpg" alt="Shuttering Plywood" title="Shuttering Plywood" class="catImg">
                            </div>
                            <h6 class="catName">Shuttering Plywood </h6>
                        </div>
                    </div>
                    <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">

                        <form name="contact-form" method="post" id="quick_enquiry1">

                            <script>
                                setTimeout(function() {
                                    $.getScript("https://www.google.com/recaptcha/api.js")
                                }, 10000);
                            </script>
                            <div id="mail-status1"></div>

                            <input class="form-control" type="hidden" name="catproduct" id="catName" value="">

                            <div class="form-group">
                                <input class="form-control" type="text" name="catuser_name" id="catuser_name" placeholder="Your Name*" value="" onkeypress="return ValidateAlpha(event)" pattern="[a-z A-Z]+">
                            </div>

                            <div class="form-group">
                                <input class="form-control" type="email" name="catemail_address" id="catemail_address" placeholder="Your Email ID*" value="">
                            </div>

                            <div class="form-group country-code-bx">
                                <select class="form-select country-code" name="countrycode" aria-invalid="false">
                                <option value="93"> [+93] Afghanistan</option>
                                                <option value="355"> [+355] Albania</option>
                                                <option value="213"> [+213] Algeria</option>
                                                <option value="1684"> [+1684] American Samoa</option>
                                                <option value="376"> [+376] Andorra</option>
                                                <option value="244"> [+244] Angola</option>
                                                <option value="1264"> [+1264] Anguilla</option>
                                                <option value="0"> [+0] Antarctica</option>
                                                <option value="1268"> [+1268] Antigua And Barbuda</option>
                                                <option value="54"> [+54] Argentina</option>
                                                <option value="374"> [+374] Armenia</option>
                                                <option value="297"> [+297] Aruba</option>
                                                <option value="61"> [+61] Australia</option>
                                                <option value="43"> [+43] Austria</option>
                                                <option value="994"> [+994] Azerbaijan</option>
                                                <option value="1242"> [+1242] Bahamas The</option>
                                                <option value="973"> [+973] Bahrain</option>
                                                <option value="880"> [+880] Bangladesh</option>
                                                <option value="1246"> [+1246] Barbados</option>
                                                <option value="375"> [+375] Belarus</option>
                                                <option value="32"> [+32] Belgium</option>
                                                <option value="501"> [+501] Belize</option>
                                                <option value="229"> [+229] Benin</option>
                                                <option value="1441"> [+1441] Bermuda</option>
                                                <option value="975"> [+975] Bhutan</option>
                                                <option value="591"> [+591] Bolivia</option>
                                                <option value="387"> [+387] Bosnia and Herzegovina</option>
                                                <option value="267"> [+267] Botswana</option>
                                                <option value="0"> [+0] Bouvet Island</option>
                                                <option value="55"> [+55] Brazil</option>
                                                <option value="246"> [+246] British Indian Ocean Territory</option>
                                                <option value="673"> [+673] Brunei</option>
                                                <option value="359"> [+359] Bulgaria</option>
                                                <option value="226"> [+226] Burkina Faso</option>
                                                <option value="257"> [+257] Burundi</option>
                                                <option value="855"> [+855] Cambodia</option>
                                                <option value="237"> [+237] Cameroon</option>
                                                <option value="1"> [+1] Canada</option>
                                                <option value="238"> [+238] Cape Verde</option>
                                                <option value="1345"> [+1345] Cayman Islands</option>
                                                <option value="236"> [+236] Central African Republic</option>
                                                <option value="235"> [+235] Chad</option>
                                                <option value="56"> [+56] Chile</option>
                                                <option value="86"> [+86] China</option>
                                                <option value="61"> [+61] Christmas Island</option>
                                                <option value="672"> [+672] Cocos (Keeling) Islands</option>
                                                <option value="57"> [+57] Colombia</option>
                                                <option value="269"> [+269] Comoros</option>
                                                <option value="242"> [+242] Republic Of The Congo</option>
                                                <option value="242"> [+242] Democratic Republic Of The Congo</option>
                                                <option value="682"> [+682] Cook Islands</option>
                                                <option value="506"> [+506] Costa Rica</option>
                                                <option value="225"> [+225] Cote D'Ivoire (Ivory Coast)</option>
                                                <option value="385"> [+385] Croatia (Hrvatska)</option>
                                                <option value="53"> [+53] Cuba</option>
                                                <option value="357"> [+357] Cyprus</option>
                                                <option value="420"> [+420] Czech Republic</option>
                                                <option value="45"> [+45] Denmark</option>
                                                <option value="253"> [+253] Djibouti</option>
                                                <option value="1767"> [+1767] Dominica</option>
                                                <option value="1809"> [+1809] Dominican Republic</option>
                                                <option value="670"> [+670] East Timor</option>
                                                <option value="593"> [+593] Ecuador</option>
                                                <option value="20"> [+20] Egypt</option>
                                                <option value="503"> [+503] El Salvador</option>
                                                <option value="240"> [+240] Equatorial Guinea</option>
                                                <option value="291"> [+291] Eritrea</option>
                                                <option value="372"> [+372] Estonia</option>
                                                <option value="251"> [+251] Ethiopia</option>
                                                <option value="61"> [+61] External Territories of Australia</option>
                                                <option value="500"> [+500] Falkland Islands</option>
                                                <option value="298"> [+298] Faroe Islands</option>
                                                <option value="679"> [+679] Fiji Islands</option>
                                                <option value="358"> [+358] Finland</option>
                                                <option value="33"> [+33] France</option>
                                                <option value="594"> [+594] French Guiana</option>
                                                <option value="689"> [+689] French Polynesia</option>
                                                <option value="0"> [+0] French Southern Territories</option>
                                                <option value="241"> [+241] Gabon</option>
                                                <option value="220"> [+220] Gambia The</option>
                                                <option value="995"> [+995] Georgia</option>
                                                <option value="49"> [+49] Germany</option>
                                                <option value="233"> [+233] Ghana</option>
                                                <option value="350"> [+350] Gibraltar</option>
                                                <option value="30"> [+30] Greece</option>
                                                <option value="299"> [+299] Greenland</option>
                                                <option value="1473"> [+1473] Grenada</option>
                                                <option value="590"> [+590] Guadeloupe</option>
                                                <option value="1671"> [+1671] Guam</option>
                                                <option value="502"> [+502] Guatemala</option>
                                                <option value="44"> [+44] Guernsey and Alderney</option>
                                                <option value="224"> [+224] Guinea</option>
                                                <option value="245"> [+245] Guinea-Bissau</option>
                                                <option value="592"> [+592] Guyana</option>
                                                <option value="509"> [+509] Haiti</option>
                                                <option value="0"> [+0] Heard and McDonald Islands</option>
                                                <option value="504"> [+504] Honduras</option>
                                                <option value="852"> [+852] Hong Kong S.A.R.</option>
                                                <option value="36"> [+36] Hungary</option>
                                                <option value="354"> [+354] Iceland</option>
                                                <option value="91" selected=""> [+91] India</option>
                                                <option value="62"> [+62] Indonesia</option>
                                                <option value="98"> [+98] Iran</option>
                                                <option value="964"> [+964] Iraq</option>
                                                <option value="353"> [+353] Ireland</option>
                                                <option value="972"> [+972] Israel</option>
                                                <option value="39"> [+39] Italy</option>
                                                <option value="1876"> [+1876] Jamaica</option>
                                                <option value="81"> [+81] Japan</option>
                                                <option value="44"> [+44] Jersey</option>
                                                <option value="962"> [+962] Jordan</option>
                                                <option value="7"> [+7] Kazakhstan</option>
                                                <option value="254"> [+254] Kenya</option>
                                                <option value="686"> [+686] Kiribati</option>
                                                <option value="850"> [+850] Korea North</option>
                                                <option value="82"> [+82] Korea South</option>
                                                <option value="965"> [+965] Kuwait</option>
                                                <option value="996"> [+996] Kyrgyzstan</option>
                                                <option value="856"> [+856] Laos</option>
                                                <option value="371"> [+371] Latvia</option>
                                                <option value="961"> [+961] Lebanon</option>
                                                <option value="266"> [+266] Lesotho</option>
                                                <option value="231"> [+231] Liberia</option>
                                                <option value="218"> [+218] Libya</option>
                                                <option value="423"> [+423] Liechtenstein</option>
                                                <option value="370"> [+370] Lithuania</option>
                                                <option value="352"> [+352] Luxembourg</option>
                                                <option value="853"> [+853] Macau S.A.R.</option>
                                                <option value="389"> [+389] Macedonia</option>
                                                <option value="261"> [+261] Madagascar</option>
                                                <option value="265"> [+265] Malawi</option>
                                                <option value="60"> [+60] Malaysia</option>
                                                <option value="960"> [+960] Maldives</option>
                                                <option value="223"> [+223] Mali</option>
                                                <option value="356"> [+356] Malta</option>
                                                <option value="44"> [+44] Man (Isle of)</option>
                                                <option value="692"> [+692] Marshall Islands</option>
                                                <option value="596"> [+596] Martinique</option>
                                                <option value="222"> [+222] Mauritania</option>
                                                <option value="230"> [+230] Mauritius</option>
                                                <option value="269"> [+269] Mayotte</option>
                                                <option value="52"> [+52] Mexico</option>
                                                <option value="691"> [+691] Micronesia</option>
                                                <option value="373"> [+373] Moldova</option>
                                                <option value="377"> [+377] Monaco</option>
                                                <option value="976"> [+976] Mongolia</option>
                                                <option value="1664"> [+1664] Montserrat</option>
                                                <option value="212"> [+212] Morocco</option>
                                                <option value="258"> [+258] Mozambique</option>
                                                <option value="95"> [+95] Myanmar</option>
                                                <option value="264"> [+264] Namibia</option>
                                                <option value="674"> [+674] Nauru</option>
                                                <option value="977"> [+977] Nepal</option>
                                                <option value="599"> [+599] Netherlands Antilles</option>
                                                <option value="31"> [+31] Netherlands</option>
                                                <option value="687"> [+687] New Caledonia</option>
                                                <option value="64"> [+64] New Zealand</option>
                                                <option value="505"> [+505] Nicaragua</option>
                                                <option value="227"> [+227] Niger</option>
                                                <option value="234"> [+234] Nigeria</option>
                                                <option value="683"> [+683] Niue</option>
                                                <option value="672"> [+672] Norfolk Island</option>
                                                <option value="1670"> [+1670] Northern Mariana Islands</option>
                                                <option value="47"> [+47] Norway</option>
                                                <option value="968"> [+968] Oman</option>
                                                <option value="92"> [+92] Pakistan</option>
                                                <option value="680"> [+680] Palau</option>
                                                <option value="970"> [+970] Palestinian Territory Occupied</option>
                                                <option value="507"> [+507] Panama</option>
                                                <option value="675"> [+675] Papua new Guinea</option>
                                                <option value="595"> [+595] Paraguay</option>
                                                <option value="51"> [+51] Peru</option>
                                                <option value="63"> [+63] Philippines</option>
                                                <option value="0"> [+0] Pitcairn Island</option>
                                                <option value="48"> [+48] Poland</option>
                                                <option value="351"> [+351] Portugal</option>
                                                <option value="1787"> [+1787] Puerto Rico</option>
                                                <option value="974"> [+974] Qatar</option>
                                                <option value="262"> [+262] Reunion</option>
                                                <option value="40"> [+40] Romania</option>
                                                <option value="70"> [+70] Russia</option>
                                                <option value="250"> [+250] Rwanda</option>
                                                <option value="290"> [+290] Saint Helena</option>
                                                <option value="1869"> [+1869] Saint Kitts And Nevis</option>
                                                <option value="1758"> [+1758] Saint Lucia</option>
                                                <option value="508"> [+508] Saint Pierre and Miquelon</option>
                                                <option value="1784"> [+1784] Saint Vincent And The Grenadines</option>
                                                <option value="684"> [+684] Samoa</option>
                                                <option value="378"> [+378] San Marino</option>
                                                <option value="239"> [+239] Sao Tome and Principe</option>
                                                <option value="966"> [+966] Saudi Arabia</option>
                                                <option value="221"> [+221] Senegal</option>
                                                <option value="381"> [+381] Serbia</option>
                                                <option value="248"> [+248] Seychelles</option>
                                                <option value="232"> [+232] Sierra Leone</option>
                                                <option value="65"> [+65] Singapore</option>
                                                <option value="421"> [+421] Slovakia</option>
                                                <option value="386"> [+386] Slovenia</option>
                                                <option value="44"> [+44] Smaller Territories of the UK</option>
                                                <option value="677"> [+677] Solomon Islands</option>
                                                <option value="252"> [+252] Somalia</option>
                                                <option value="27"> [+27] South Africa</option>
                                                <option value="0"> [+0] South Georgia</option>
                                                <option value="211"> [+211] South Sudan</option>
                                                <option value="34"> [+34] Spain</option>
                                                <option value="94"> [+94] Sri Lanka</option>
                                                <option value="249"> [+249] Sudan</option>
                                                <option value="597"> [+597] Suriname</option>
                                                <option value="47"> [+47] Svalbard And Jan Mayen Islands</option>
                                                <option value="268"> [+268] Swaziland</option>
                                                <option value="46"> [+46] Sweden</option>
                                                <option value="41"> [+41] Switzerland</option>
                                                <option value="963"> [+963] Syria</option>
                                                <option value="886"> [+886] Taiwan</option>
                                                <option value="992"> [+992] Tajikistan</option>
                                                <option value="255"> [+255] Tanzania</option>
                                                <option value="66"> [+66] Thailand</option>
                                                <option value="228"> [+228] Togo</option>
                                                <option value="690"> [+690] Tokelau</option>
                                                <option value="676"> [+676] Tonga</option>
                                                <option value="1868"> [+1868] Trinidad And Tobago</option>
                                                <option value="216"> [+216] Tunisia</option>
                                                <option value="90"> [+90] Turkey</option>
                                                <option value="7370"> [+7370] Turkmenistan</option>
                                                <option value="1649"> [+1649] Turks And Caicos Islands</option>
                                                <option value="688"> [+688] Tuvalu</option>
                                                <option value="256"> [+256] Uganda</option>
                                                <option value="380"> [+380] Ukraine</option>
                                                <option value="971"> [+971] United Arab Emirates</option>
                                                <option value="44"> [+44] United Kingdom</option>
                                                <option value="1"> [+1] United States</option>
                                                <option value="1"> [+1] United States Minor Outlying Islands</option>
                                                <option value="598"> [+598] Uruguay</option>
                                                <option value="998"> [+998] Uzbekistan</option>
                                                <option value="678"> [+678] Vanuatu</option>
                                                <option value="39"> [+39] Vatican City State (Holy See)</option>
                                                <option value="58"> [+58] Venezuela</option>
                                                <option value="84"> [+84] Vietnam</option>
                                                <option value="1284"> [+1284] Virgin Islands (British)</option>
                                                <option value="1340"> [+1340] Virgin Islands (US)</option>
                                                <option value="681"> [+681] Wallis And Futuna Islands</option>
                                                <option value="212"> [+212] Western Sahara</option>
                                                <option value="967"> [+967] Yemen</option>
                                                <option value="38"> [+38] Yugoslavia</option>
                                                <option value="260"> [+260] Zambia</option>
                                                <option value="263"> [+263] Zimbabwe</option>
                                </select>

                                <input class="form-control" name="catphone_no" type="tel" placeholder="Phone No *" maxlength="10" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" value="" id="catphone_no">
                            </div>

                            <div class="form-group">
                                <input class="form-control" type="text" name="catlocation" id="catlocation" placeholder="Your Location*" value="" onkeypress="return ValidateAlpha(event)" pattern="[a-z A-Z]+" autocomplete="off">
                            </div>
                            <div class="form-group">
                                <input class="form-control" type="tel" maxlength="5" name="quantity" id="quantity" value="" placeholder="Order Quantity *" onkeypress="return isNumberKey(event)" onkeyup="this.value=this.value.replace(/[^0-9]/g,'')">
                            </div>
                            <div class="form-group">
                                <textarea class="form-control" name="caten_message" id="caten_message" placeholder="Your Message*"></textarea>
                            </div>

                            <div class="form-group" style="margin-bottom: 0;">
                                <div class="g-recaptcha" data-sitekey="<?= SITE_KEY; ?>"></div>

                            </div>

                            <div class="form-group">
                                <button type="submit" class="read_more_btn_2" id="cat_submit">Submit</button>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="callback" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title" id="myModalLabel">Get Callback Quickly</h6>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-xxl-5 col-xl-5 col-lg-5 col-md-5 col-sm-5 col-12">

                        <div class="product_popup">
                            <div class="product_popup_image">
                                <img src="designer/images/shuttering-plywood.jpg" alt="Shuttering Plywood" title="Shuttering Plywood" class="catImg">
                            </div>
                            <h6 class="catName">Shuttering Plywood</h6>
                        </div>
                    </div>
                    <div class="col-xxl-7 col-xl-7 col-lg-7 col-md-7 col-sm-7 col-12">

                        <form name="contact-form" method="post" id="callback_form">
                            <p id="callback_res"></p>
                            <input class="form-control" type="hidden" name="catproduct" value="Request A Callback">
                            <div class="form-group">
                                <input class="form-control" type="text" name="wname" id="callname" placeholder="Full Name*" value="" onkeypress="return ValidateAlpha(event)" pattern="[a-z A-Z]+">
                            </div>


                            <div class="form-group">
                                <input class="form-control" type="tel" name="wmobile" id="callphone" placeholder=" Phone No*" maxlength="10" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');" value="">
                            </div>
                            <p>We will contact you on this number</p>

                            <div class="form-group">
                                <button type="submit" class="read_more_btn_2" id="call_submit">Submit</button>
                            </div>
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    $(document).ready(function() {
        $('#sendq').click(function(e) {
            e.preventDefault();
            if ($("#name").val() != '' && $("#email").val() != '' && $("#phone").val() != '' && $("#message").val() != '' && $("#locations").val() != '') {
                jQuery.ajax({
                    url: '<?php echo site_url; ?>/ajaxEnquiry.php',
                    data: $('#quick_enquiry').serialize(),
                    type: "POST",
                    success: function(data) {
                        var data = data.trim();
                        console.log(data);
                        if (data == 'success') {
                            $("#enqstatus").html('<div class="alert alert-success alert-dismissible show">Your Enquiry has been sent successfully.  Our Team will contact you shortly!<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true"></span></button></div>');
                            $('#quick_enquiry').trigger('reset');
                        } else {
                            $("#enqstatus").html(data).css('color', 'red');
                        }
                    },
                    error: function() {}
                });
            } else {
                $("#enqstatus").html('<div class="alert alert-danger alert-dismissible show">Asterisk(*) Marked fields are Mandatory!<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true"></span></button></div>');
            }
        })
    });
</script>


<script>
    $(document).ready(function() {
        $('#whatsEnq').click(function(e) {
            e.preventDefault();
            var wname = $('#wname').val();
            var wmobile = $('#wmobile').val();
            jQuery.ajax({
                url: '<?php echo site_url; ?>/whatsapp_enq.php',
                data: $('#whatsappEnq').serialize(),
                type: "POST",
                success: function(data) {
                    if (data == 'success') {
                        $('#whatsapp_response').html('<div class="alert alert-success">Whatsapp Enquiry Submitted successfully<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>');
                        $('#whatsappEnq').trigger('reset');
                        window.open("https://api.whatsapp.com/send?phone=<?= $admin_res['mobile']; ?>&text=&source=&data=&app_absent=");
                    } else {
                        setTimeout(() => {}, 10000);
                        $('#whatsapp_response').html(data);
                    }
                }

            });

        });
    });
</script>

<script>
    $(document).ready(function() {
        $('#quicksend').click(function(e) {
            e.preventDefault();
            if ($("#user_name").val() != '' && $("#email_address").val() != '' && $("#phone_no").val() != '' && $("#en_message").val() != '' && $("#location").val() != '') {
                jQuery.ajax({
                    url: '<?php echo site_url; ?>/ajaxEnquiry.php',
                    data: $('#quick_form').serialize(),
                    type: "POST",
                    success: function(data) {
                        var data = data.trim();
                        if (data == 'success') {
                            $("#enq1status").html('<div class="alert alert-success alert-dismissible show">Your Enquiry has been sent successfully.  Our Team will contact you shortly!<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true"></span></button></div>');
                            $('#quick_form').trigger('reset');
                        } else {
                            $("#enq1status").html(data).css('color', 'red');
                        }
                    },
                    error: function() {}
                });
            } else {
                $("#enq1status").html('<div class="alert alert-danger alert-dismissible show">Asterisk(*) Marked fields are Mandatory!<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true"></span></button></div>');
            }
        })
    });
</script>
<script>
    $(document).ready(function() {
        $('#cat_submit').click(function(e) {
            e.preventDefault();
            if ($("#catuser_name").val() != '' && $("#catemail_address").val() != '' && $("#catphone_no").val() != '' && $("#caten_message").val() != '' && $("#catlocation").val() != '' && $("#quantity").val() != '') {
                jQuery.ajax({
                    url: '<?php echo site_url; ?>/ajaxEnquirycat.php',
                    data: $('#quick_enquiry1').serialize(),
                    type: "POST",
                    success: function(data) {
                        var data = data.trim();
                        if (data == 'success') {
                            $("#mail-status1").html('<div class="alert alert-success alert-dismissible show">Your Enquiry has been sent successfully.  Our Team will contact you shortly!<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>');
                            $('#quick_enquiry1').trigger('reset');

                        } else {
                            $("#mail-status1").html(data).css('color', 'red');
                        }
                    },
                    error: function() {}
                });
            } else {
                $("#mail-status1").html('<div class="alert alert-danger alert-dismissible show"><strong>Asterisk(*) Marked fields are Mandatory!<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>');
            }

        });

    });
</script>

<script>
    $(document).ready(function() {
        $('#call_submit').click(function(e) {
            e.preventDefault();
            if ($("#callname").val() != '' && $("#callphone").val() != '') {
                jQuery.ajax({
                    url: '<?php echo site_url; ?>/callback_enq.php',
                    data: $('#callback_form').serialize(),
                    type: "POST",
                    success: function(data) {
                        var data = data.trim();
                        if (data == 'success') {
                            $("#callback_res").html('<div class="alert alert-success alert-dismissible show">Your Enquiry has been sent successfully.  Our Team will contact you shortly!<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>');
                            $('#quick_enquiry11').trigger('reset');

                        } else {
                            $("#callback_res").html(data).css('color', 'red');
                        }
                    },
                    error: function() {}
                });
            } else {
                $("#callback_res").html('<div class="alert alert-danger alert-dismissible show"><strong>Asterisk(*) Marked fields are Mandatory!<button type="button" class="close" data-bs-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>');
            }

        });

    });

    function validateOnlyTextField(element) {
        var str = element.value;
        if (str == ' ') {
            element.value = "";
        }
        if (!(/^[a-zA-Z\s]+$/.test(str))) {
            // console.log('String contain number characters');
            str = str.substr(0, str.length - 1);
            element.value = "";
        }
    }
</script>