<?php include("./inc/header.php") ?>;
<!-- header close -->

<!-- content begin -->
<div class="no-bottom no-top" id="content">
    <div id="top"></div>
    <!-- section begin -->
    <section id="subheader" class="jarallax topbanner">
        <div class="center-y relative text-center">
            <div class="container">
                <div class="row">
                    <div class="col-md-12 titles text-center">
                        <h1>Enquiry Form</h1>
                        <p>Feel free to contact us and explain your case</p>
                    </div>
                    <?php 
                                    if(isset($_GET['status'])){
                                        $status = $_GET['status'];
                                        if($status == 'success'){
                                            echo "<div class='alert alert-success'><i class='fa fa-check-circle'> </i> Thank you. Your form has been submitted.</div>";
                                        }
                                        else{
                                            echo "<div class='alert alert-danger'><i class='fa fa-times-circle'> </i> Something went wrong</div>";
                                        }
                                    }
                                    ?>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </section>
    <!-- section close -->


    <section class="contact_info">
        <div class="container">
            <div class="bg_white">
                <div class="row">
                    <div class="col-lg-4">
                        <div class="box">
                            <span>
                                <i class="cz_title_icon_before fa fa-envelope-open"></i>
                            </span>
                            <div class="details">
                                <h3>Email</h3>
                                <a href="mailto:karan.singh@srsjuris.in">karan.singh@srsjuris.in</a>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="box">
                            <span>
                                <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"
                                    viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.-->
                                    <path
                                        d="M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1 .6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z" />
                                </svg>
                            </span>
                            <div class="details">
                                <h3>Mobile</h3>
                                <a href="callto:+91-9819627292 ">+91-9819627292</a>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="box">
                            <span>
                                <svg xmlns="http://www.w3.org/2000/svg" height="16" width="16"
                                    viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.-->
                                    <path
                                        d="M444.5 3.5L28.7 195.4c-48 22.4-32 92.8 19.2 92.8h175.9v175.9c0 51.2 70.4 67.2 92.8 19.2l191.9-415.8c16-38.4-25.6-80-64-64z" />
                                </svg>
                            </span>
                            <div class="details">
                                <h3>Location</h3>
                                <a href="https://maps.app.goo.gl/CmAMx7yF6tc11QwA6" target="_blank">Mumbai</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>







    <section aria-label="section" class="text-light contact_form" data-bgcolor="#111111">
        <div class="container">
            <div class="boxshadow_layer">
                <div class="row">
                    <div class="col-lg-6">
                        <form id="contact_form" class="form-border" action="contactmail.php" method="post">
                            <div class="field-set">
                                <label style="color:white">Name: <span style="color:red">*</span></label>
                                <input type="text" name="name" id="name" class="form-control" placeholder="Your Name"
                                    required="" />
                            </div>
                            <div class="field-set">
                                <label style="color:white">Email: <span style="color:red">*</span></label>
                                <input type="text" name="email" id="email" class="form-control" placeholder="Your Email"
                                    required="" />
                            </div>
                            <div class="field-set">
                                <label style="color:white">Phone Number: <span style="color:red">*</span></label>
                                <input type="number" name="phone" id="phone" class="form-control"
                                    placeholder="Your Phone" required="" />
                            </div>
                            <div class="field-set">
                                <label style="color:white">Message: <span style="color:red">*</span></label>
                                <textarea type="text" name="message" id="message" class="form-control"
                                    placeholder="Your Message" required></textarea>
                            </div>
                            <div class="spacer-half"></div>
                            <div id="submit">
                                <!--<input type="submit" value="Submit Form" class="btn btn-custom"-->
                                <!--    onclick="window.location.href='thankyou.html'" />-->
                                <input type="submit" value="Submit Form" class="btn btn-custom"/>
                            </div>
                        </form>
                    </div>
                    <div class="col-lg-6">
                        <div class="google_map">
                            <iframe
                                src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3773.862089829836!2d72.82973657802854!3d18.937497510533394!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7d1d9582b4d79%3A0xd0db611c71770ff0!2sBachubhai%20Building%2C%20Mangesh%20Shenoy%20St%2C%20Borabazar%20Precinct%2C%20Ballard%20Estate%2C%20Fort%2C%20Mumbai%2C%20Maharashtra%20400001!5e0!3m2!1sen!2sin!4v1702515600746!5m2!1sen!2sin"
                                width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy"
                                referrerpolicy="no-referrer-when-downgrade"></iframe>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

</div>
<!-- content close -->
<a href="#" id="back-to-top"></a>
<!-- footer begin -->
<?php include "./inc/footer.php" ?>
<!-- footer close -->
<div id="preloader">
    <div class="spinner">
        <div class="bounce1"></div>
        <div class="bounce2"></div>
        <div class="bounce3"></div>
    </div>
</div>
</div>
<!--<div id="selector">-->
<!--    <div class="sc-opt sc-mt">-->
<!--        <div class="sc-icon"><i class="fa fa-eyedropper"></i></div>-->
<!--        <span class="opt tc1" data-color="scheme-01"></span>-->
<!--        <span class="opt tc2" data-color="scheme-02"></span>-->
<!--        <span class="opt tc3" data-color="scheme-03"></span>-->
<!--        <span class="opt tc4" data-color="scheme-04"></span>-->
<!--        <span class="opt tc5" data-color="scheme-05"></span>-->
<!--        <span class="opt tc6" data-color="scheme-06"></span>-->
<!--        <span class="opt tc7" data-color="scheme-07"></span>-->
<!--    </div>-->
<!--</div>-->
<!--<div id="purchase-now">-->
<!--    <a href="https://themeforest.net/cart/add_items?ref=designesia&amp;item_ids=29485331"><span>$</span>20</a>-->
<!--    <div class="pn-hover">Buy Now</div>-->
<!--</div>-->
<!-- Javascript Files
    ================================================== -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/easing.js"></script>
<script src="js/owl.carousel.js"></script>
<script src="js/validation.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/enquire.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.plugin.js"></script>
<script src="js/typed.js"></script>
<script src="js/jarallax.js"></script>
<script src="js/jquery.countTo.js"></script>
<script src="js/jquery.countdown.js"></script>
<script src="js/typed.js"></script>
<script src="js/jarallax.js"></script>
<script src="js/mdb.min.js"></script>
<script src="js/designesia.js"></script>



<script>
    function checkEmail() {
        var email = document.getElementById('email');
        var filter = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
        if (!filter.test(email.value)) {
            alert('Please provide a valid email address');
            email.focus;
            return false;
        }
    }
</script>

<script>
    (function () {
        var input = document.getElementById('Phone');
        var pattern = /^[6-9][0-9]{0,9}$/;
        var value = input.value;
        !pattern.test(value) && (input.value = value = '');
        input.addEventListener('input', function () {
            var currentValue = this.value;
            if (currentValue && !pattern.test(currentValue)) this.value = value;
            else value = currentValue;
        });
    })();
</script>


<?php
// if (isset($_POST['submit'])) {
//     $to = "karan.singh@srsjuris.in";

//     $name = $_POST['name']; // this is the sender's Email address
//     $phone = $_POST['phone'];
//     $Email = $_POST['email'];
//     $message = $_POST['message'];

//     $subject = "Contact form";
//     $subject2 = "Copy of your form submission";
//     $message = " CLIENT CONTACT DETAILS  :" . "\n\n" . " Client Name : " . $_POST['name'] . "\n\n" . " E-mail  : " . $_POST['email'] . "\n\n" . " Mobile :" . $_POST['phone'] . "\n\n" . "Message : " . $_POST['message'];
//     // $message =  " CLIENT CONTACT DETAILS  :" . "\n\n" ." Mobile : " . $_POST['phone'] . "\n\n"." Client Name : " . $_POST['name'] .  "\n\n"."E-mail :" . $_POST['email'].  "\n\n"."location : " . $_POST['location']."\n\n"."Message : " . $_POST['message'];
//     $message2 = "Here is a copy of your message " . $name . "\n\n" . $_POST['phone'];

//     $headers = "From:" . $name;
//     $headers2 = "From:" . $to;
//     mail($to, $subject, $message, $headers);
//     mail($from, $subject2, $message2, $headers2);
//     // sends a copy of the message to the sender

//     echo "<script>
//     window.location = 'thankyou.html';
// </script>";
//     // to redirect to another page.
// }
?>

</body>

</html>