<?php
include_once ("include/main.inc.php");
$referer = $_SERVER['HTTP_REFERER'];
$ip = $_SERVER['REMOTE_ADDR'];
$mobileNumber = "";

?>
<!-- Product Popup -->
<div class="modal fade" id="productID" tabindex="-1">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <div class="modal-title">Send Enquiry</div>
                <button type="button" class="close" data-bs-dismiss="modal" aria-hidden="true">&times;</button>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-lg-7 col-md-7">
                        <div class="product_popup">
                            <div class="product_popup_image">
                                <img class="img-responsive catImg"
                                    src="<?= SITE_URL_PATH; ?>/designer/images/products/product/product-img.jpg"
                                    alt="Prime Machinery" title="Prime Machinery">
                            </div>
                            <div class="catName">Paper Cup Making Machine</div>
                        </div>
                    </div>
                    <div class="col-lg-5 col-md-5">

                        <form name="contact-form" method="post" id="product_pop_form1">
                            <div id="cat_pop_up"> </div>
                            <div class="form-group">
                                <input tabindex="001" class="form-control" type="text" name="name"
                                    placeholder="Your Name*" value="" onkeyup="validateOnlyTextField(this)" required>
                            </div>

                            <div class="form-group">
                                <input tabindex="002" class="form-control" type="email" name="email"
                                    placeholder="Your Email ID*" value="" required>
                            </div>
                            <div class="form-group">
                                <input type="hidden" class="countryName countryName" name="countryName" value="">
                                <input type="hidden" name="code" class="code" value="">
                                <input class="form-control telePhone mobile" value="" type="tel" name="mobile"
                                    placeholder="Mobile Number*"
                                    onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')"
                                    minlength="10" maxlength="10" required="" autocomplete="off"
                                    style="padding-left: 84px;">
                            </div>
                            <!-- <div class="form-group">
                                    <input tabindex="003" class="form-control" type="tel" name="mobile"
                                        placeholder="Your Phone No*" maxlength="20" value="" required>
                                </div> -->

                            <div class="form-group">
                                <input tabindex="004" class="form-control" type="text" name="location"
                                    placeholder="Your Location*" value="" pattern="[a-z A-Z]+" required>
                            </div>

                            <div class="form-group">
                                <input tabindex="004" class="form-control" type="tel" name="quantity"
                                    placeholder="MOQ (Minimum Order Quantity)**" value="" pattern="[a-z A-Z]+" maxlength="4"
                                    onkeyup="this.value=this.value.replace(/[^0-9]/g,'')" required>
                            </div>

                            <div class="form-group">
                                <textarea tabindex="005" class="form-control" name="message" placeholder="Your Message*"
                                    required></textarea>
                            </div>

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

                            <div class="form-group">
                                <button tabindex="007" class="modal_btn" type="submit" name="submit_cat_popup"
                                    value="Submit" data-submit="...Sending">Submit</button>
                            </div>
                        </form>

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