<?php
require_once __DIR__ . '/includes/site_data.php';

$plot_param = isset($_GET['plot']) ? strtolower(trim($_GET['plot'])) : '';
$selected_val = 'General Inquiry';
if (strpos($plot_param, '90') !== false) {
    $selected_val = '90 Sq. Yd (810 Sq. Ft)';
} elseif (strpos($plot_param, '125') !== false) {
    $selected_val = '125 Sq. Yd (1,125 Sq. Ft)';
} elseif (strpos($plot_param, '150') !== false) {
    $selected_val = '150 Sq. Yd (1,350 Sq. Ft)';
}

$phoneClean = preg_replace('/[^0-9+]/', '', $siteSettings['contact_phone']);
$waClean = preg_replace('/[^0-9]/', '', $siteSettings['contact_whatsapp']);
?>
<!DOCTYPE html>
<html class="no-js" lang="en">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="x-ua-compatible" content="ie=edge" />
    <title>Contact &amp; Site Visit | <?php echo htmlspecialchars($siteSettings['company_name'], ENT_QUOTES, 'UTF-8'); ?> Zirakpur</title>
    <meta name="description" content="Contact <?php echo htmlspecialchars($siteSettings['company_name'], ENT_QUOTES, 'UTF-8'); ?> official sales desk. Schedule an on-site visit to Sector Dayalpura, Zirakpur near PR-7 Airport Road. Call <?php echo htmlspecialchars($siteSettings['contact_phone'], ENT_QUOTES, 'UTF-8'); ?>.">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<?php if (!empty($siteSettings['header_scripts'])): echo $siteSettings['header_scripts']; endif; ?>

    <!-- Favicon -->
    <link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.png" />

    <!-- CSS (Font, Vendor, Icon, Plugins & Style CSS files) -->

    <!-- Font CSS -->
    <!-- <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=karla:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet"> -->


    <link rel="preconnect" href="https://fonts.googleapis.com/">
    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&amp;family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&amp;display=swap" rel="stylesheet">

    <!-- Vendor CSS (Bootstrap & Icon Font) -->

    <!-- Plugins CSS (All Plugins Files) -->

    <link rel="stylesheet" href="assets/css/plugins/swiper-bundle.min.css" />

    <link rel="stylesheet" href="assets/css/plugins/magnific-popup.css" />


    <!-- Style CSS -->
    <link rel="stylesheet" href="assets/css/style.css?v=<?php echo time(); ?>" />

</head>


<body class="font-karla text-body text-tiny">
    <div class="overflow-hidden">
        <!-- Header start -->
        <div class="medallion-header-wrapper absolute top-0 left-0 w-full z-[35]">
            <header id="sticky-header" class="medallion-header-bar secondary-sticky">
                <div class="container">
                    <div class="grid grid-cols-12">
                        <div class="col-span-12">
                            <div class="flex items-center justify-between w-full">
                                <!-- Logo on Left -->
                                <a href="./" class="block py-1 shrink-0">
                                    <img src="assets/images/logo/medallion-brochure-logo-white.svg" alt="Medallion Aero Park" class="medallion-header-logo drop-shadow-md" style="height: 58px; width: auto; max-width: 270px; object-fit: contain; display: block;">
                                </a>

                                <!-- Menu Centrally Aligned -->
                                <nav class="medallion-nav-center">
                                    <ul class="medallion-nav-links font-lora">
                                        <li><a href="./">Home</a></li>
                                        <li><a href="about">About</a></li>
                                        <li><a href="plots">Plots</a></li>
                                        <li><a href="amenities">Amenities</a></li>
                                        <li><a href="blog">Blog</a></li>
                                        <li><a href="contact" class="active">Contact</a></li>
                                    </ul>
                                </nav>

                                <!-- Enquire Button and Mobile Toggle on Right -->
                                <div class="flex items-center gap-3 shrink-0">
                                    <a href="contact" class="medallion-enquire-btn before:rounded-md before:block before:absolute before:left-auto before:right-0 before:inset-y-0 before:-z-[1] before:bg-[#b89558] before:w-0 hover:before:w-full hover:before:left-0 hover:before:right-auto before:transition-all leading-none px-[20px] xl:px-[24px] py-[13px] capitalize font-medium text-white text-[14px] xl:text-[16px] relative after:block after:absolute after:inset-0 after:-z-[2] after:bg-[#a3824f] after:rounded-md after:transition-all shadow-md">Enquire Now</a>
                                    <a href="#offcanvas-mobile-menu" class="offcanvas-toggle flex lg:hidden text-white hover:text-secondary p-1">
                                        <svg width="24" height="24" class="fill-current" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
                                            <path d="M0 96C0 78.33 14.33 64 32 64H416C433.7 64 448 78.33 448 96C448 113.7 433.7 128 416 128H32C14.33 128 0 113.7 0 96zM0 256C0 238.3 14.33 224 32 224H416C433.7 224 448 238.3 448 256C448 273.7 433.7 288 416 288H32C14.33 288 0 273.7 0 256zM416 448H32C14.33 448 0 433.7 0 416C0 398.3 14.33 384 32 384H416C433.7 384 448 398.3 448 416C448 433.7 433.7 448 416 448z" />
                                        </svg>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </header>
        </div>
        <!-- offcanvas-overlay start -->
        <div class="offcanvas-overlay hidden fixed inset-0 bg-black opacity-50 z-50"></div>
        <!-- offcanvas-overlay end -->
        <!-- offcanvas-mobile-menu start -->
        <div id="offcanvas-mobile-menu" class="offcanvas left-0 transform -translate-x-full fixed font-normal text-sm top-0 z-50 h-screen xs:w-[300px] lg:w-[380px] transition-all ease-in-out duration-300 bg-white">
            <div class="py-12 pr-5 h-[100vh] overflow-y-auto">
                <button class="offcanvas-close text-primary text-[25px] w-10 h-10 absolute right-0 top-0 z-[1]" aria-label="offcanvas">x</button>
                <nav class="offcanvas-menu mr-[20px]">
                    <ul>
                        <li class="relative block border-b-primary border-b first:border-t first:border-t-primary"><a href="./" class="block capitalize font-normal text-black hover:text-secondary text-base my-2 py-1 px-5">Home</a></li>
                        <li class="relative block border-b-primary border-b"><a href="about" class="block capitalize font-normal text-black hover:text-secondary text-base my-2 py-1 px-5">About</a></li>
                        <li class="relative block border-b-primary border-b"><a href="plots" class="block capitalize font-normal text-black hover:text-secondary text-base my-2 py-1 px-5">Plots</a></li>
                        <li class="relative block border-b-primary border-b"><a href="amenities" class="block capitalize font-normal text-black hover:text-secondary text-base my-2 py-1 px-5">Amenities</a></li>
                        <li class="relative block border-b-primary border-b"><a href="blog" class="block capitalize font-normal text-black hover:text-secondary text-base my-2 py-1 px-5">Blog</a></li>
                        <li class="relative block border-b-primary border-b"><a href="contact" class="block capitalize font-normal text-black hover:text-secondary text-base my-2 py-1 px-5">Contact</a></li>
                    </ul>
                </nav>
                <div class="px-5 flex flex-wrap mt-3 sm:hidden">
                    <a href="tel:+917837335599" class="bg-[#0b2c3d] text-white px-5 py-3 rounded-md font-medium text-center w-full block">Call +91 78373 35599</a>
                </div>
            </div>
        </div>
        <!-- offcanvas-mobile-menu end -->
        <!-- Header end -->

        <!-- Inner Page Hero Section Start -->
        <section class="medallion-inner-hero">
            <!-- Hero Background Image -->
            <div class="absolute inset-0 w-full h-full pointer-events-none z-[1]">
                <img class="w-full h-full object-cover object-center" src="assets/images/blog-covers/zirakpur-plotted-development.jpg?v=<?php echo time(); ?>" alt="Contact Medallion Aero Park Zirakpur">
            </div>

            <!-- Balanced Dark Vignette Overlay -->
            <div class="medallion-inner-hero-overlay"></div>

            <!-- Hero Content -->
            <div class="container relative z-[5]">
                <div class="grid grid-cols-12">
                    <div class="col-span-12 lg:col-span-10 text-left">
                        <span class="medallion-inner-hero-tag">M E D A L L I O N&nbsp;&nbsp; A E R O&nbsp;&nbsp; P A R K</span>
                        <h1 class="medallion-inner-hero-title">
                            Contact &amp; Site Visit
                        </h1>
                        <p class="medallion-inner-hero-desc">
                            Plan your guided site visit or consult directly with our dedicated real estate advisors in Zirakpur.
                        </p>
                    </div>
                </div>
            </div>
        </section>
        <!-- Inner Page Hero Section End -->

        <!-- Top Verified Contact Cards Start -->
        <section class="py-[50px] lg:py-[70px] bg-[#f8fafc] border-b border-gray-200/70">
            <div class="container">
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6 lg:gap-8">

                    <!-- Location Card -->
                    <div class="contact-info-card">
                        <div class="contact-card-icon">
                            <svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                <path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path>
                                <circle cx="12" cy="10" r="3"></circle>
                            </svg>
                        </div>
                        <h3 class="contact-card-title">Site &amp; Sales Lounge</h3>
                        <p class="contact-card-text">
                            <?php echo htmlspecialchars($siteSettings['office_address'], ENT_QUOTES, 'UTF-8'); ?>
                        </p>
                        <div class="contact-card-actions">
                            <a href="<?php echo htmlspecialchars($siteSettings['google_map_link'], ENT_QUOTES, 'UTF-8'); ?>" target="_blank" rel="noopener noreferrer" class="contact-action-btn contact-action-primary">
                                <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="3 11 22 2 13 21 11 13 3 11"></polygon></svg>
                                Navigate on Map
                            </a>
                        </div>
                    </div>

                    <!-- Call & WhatsApp Card -->
                    <div class="contact-info-card">
                        <div class="contact-card-icon">
                            <svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                <path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>
                            </svg>
                        </div>
                        <h3 class="contact-card-title">Call &amp; WhatsApp</h3>
                        <p class="contact-card-text">
                            Direct line to authorized plot consultants for instant availability, pricing quotes, and site tour booking.
                        </p>
                        <div class="contact-card-actions">
                            <a href="tel:<?php echo htmlspecialchars($phoneClean, ENT_QUOTES, 'UTF-8'); ?>" class="contact-action-btn contact-action-primary">
                                <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>
                                <?php echo htmlspecialchars($siteSettings['contact_phone'], ENT_QUOTES, 'UTF-8'); ?>
                            </a>
                            <a href="https://wa.me/<?php echo htmlspecialchars($waClean, ENT_QUOTES, 'UTF-8'); ?>?text=<?php echo urlencode('Hello ' . $siteSettings['company_name'] . ', I would like to enquire about available residential plots.'); ?>" target="_blank" rel="noopener noreferrer" class="contact-action-btn contact-action-whatsapp">
                                WhatsApp Us
                            </a>
                        </div>
                    </div>

                    <!-- Email Desk Card -->
                    <div class="contact-info-card">
                        <div class="contact-card-icon">
                            <svg width="26" height="26" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                                <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
                                <polyline points="22,6 12,13 2,6"></polyline>
                            </svg>
                        </div>
                        <h3 class="contact-card-title">Official Email Desk</h3>
                        <p class="contact-card-text">
                            For GMADA approval documents, payment schedule breakdowns, and formal corporate enquiries.
                        </p>
                        <div class="contact-card-actions">
                            <a href="mailto:<?php echo htmlspecialchars($siteSettings['contact_email'], ENT_QUOTES, 'UTF-8'); ?>" class="contact-action-btn contact-action-primary">
                                <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>
                                <?php echo htmlspecialchars($siteSettings['contact_email'], ENT_QUOTES, 'UTF-8'); ?>
                            </a>
                        </div>
                    </div>

                </div>
            </div>
        </section>
        <!-- Top Verified Contact Cards End -->

        <!-- Main Form & Google Map Section Start -->
        <section class="py-[60px] lg:py-[90px] bg-white">
            <div class="container">
                <div class="grid grid-cols-12 gap-8 lg:gap-10 items-stretch">
                    
                    <!-- Left: Luxury Enquiry Form -->
                    <div class="col-span-12 lg:col-span-7">
                        <div class="contact-form-card">
                            <div class="mb-6">
                                <span class="text-xs font-bold tracking-widest text-[#c5a059] uppercase block mb-1">Direct Consultation</span>
                                <h2 class="font-lora text-[#0b2c3d] text-[26px] sm:text-[32px] font-bold leading-tight mb-2">Schedule A Site Visit</h2>
                                <p class="text-gray-500 text-[14.5px] leading-relaxed">
                                    Fill in your preferences below. Our dedicated relationship manager will reach out with layout maps, pricing, and confirm your VIP site tour.
                                </p>
                            </div>

                            <!-- Alert Banner for AJAX feedback -->
                            <div id="contact-alert" class="hidden mb-6 p-4 rounded-xl text-[14px] leading-relaxed transition-all"></div>

                            <form id="contact-form" action="submit-enquiry.php" method="POST" novalidate>
                                <input type="hidden" name="source" value="Contact Us Page Form">

                                <div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-5">
                                    <!-- Full Name -->
                                    <div class="contact-field-group !mb-0">
                                        <label for="contact-name" class="contact-label">Full Name <span class="text-rose-500">*</span></label>
                                        <div class="contact-input-wrap">
                                            <svg width="18" height="18" class="contact-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:18px;height:18px;"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
                                            <input type="text" id="contact-name" name="name" class="contact-input" placeholder="e.g. Vikram Malhotra" required>
                                        </div>
                                    </div>

                                    <!-- Phone Number -->
                                    <div class="contact-field-group !mb-0">
                                        <label for="contact-phone" class="contact-label">Mobile Number <span class="text-rose-500">*</span></label>
                                        <div class="contact-input-wrap">
                                            <svg width="18" height="18" class="contact-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:18px;height:18px;"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>
                                            <input type="tel" id="contact-phone" name="phone" class="contact-input" placeholder="+91 98765 43210" required>
                                        </div>
                                    </div>
                                </div>

                                <div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-5">
                                    <!-- Email -->
                                    <div class="contact-field-group !mb-0">
                                        <label for="contact-email" class="contact-label">Email Address</label>
                                        <div class="contact-input-wrap">
                                            <svg width="18" height="18" class="contact-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:18px;height:18px;"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline></svg>
                                            <input type="email" id="contact-email" name="email" class="contact-input" placeholder="vikram@example.com">
                                        </div>
                                    </div>

                                    <!-- Preferred Plot Size -->
                                    <div class="contact-field-group !mb-0">
                                        <label for="contact-plot" class="contact-label">Interested Plot Size</label>
                                        <div class="contact-input-wrap">
                                            <svg width="18" height="18" class="contact-input-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="width:18px;height:18px;"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line></svg>
                                            <select id="contact-plot" name="plot_size" class="contact-select">
                                                <option value="90 Sq. Yd (810 Sq. Ft)" <?php echo ($selected_val === '90 Sq. Yd (810 Sq. Ft)') ? 'selected' : ''; ?>>90 Sq. Yd (810 Sq. Ft) - Standard</option>
                                                <option value="125 Sq. Yd (1,125 Sq. Ft)" <?php echo ($selected_val === '125 Sq. Yd (1,125 Sq. Ft)') ? 'selected' : ''; ?>>125 Sq. Yd (1,125 Sq. Ft) - Premium</option>
                                                <option value="150 Sq. Yd (1,350 Sq. Ft)" <?php echo ($selected_val === '150 Sq. Yd (1,350 Sq. Ft)') ? 'selected' : ''; ?>>150 Sq. Yd (1,350 Sq. Ft) - Luxury Corner</option>
                                                <option value="Commercial SCO / Booth" <?php echo ($selected_val === 'Commercial SCO / Booth') ? 'selected' : ''; ?>>Commercial SCO / Booth</option>
                                                <option value="General Inquiry" <?php echo ($selected_val === 'General Inquiry') ? 'selected' : ''; ?>>General Query / Site Visit Request</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>

                                <!-- Message / Specific Requirement -->
                                <div class="contact-field-group">
                                    <label for="contact-message" class="contact-label">Message / Specific Preferences</label>
                                    <textarea id="contact-message" name="message" class="contact-textarea" placeholder="Tell us if you prefer a park facing, corner plot, or would like to request an afternoon site visit..."></textarea>
                                </div>

                                <!-- Submit Button -->
                                <div>
                                    <button type="submit" id="contact-submit-btn" class="contact-submit-btn">
                                        <span class="btn-text">Submit Enquiry &amp; Schedule Visit</span>
                                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" style="width:18px;height:18px;max-width:18px;max-height:18px;flex-shrink:0;"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
                                    </button>
                                    <p class="text-xs text-gray-500 mt-3 flex items-center justify-center gap-1.5 text-center">
                                        <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="text-emerald-600 contact-shield-icon" style="width:14px;height:14px;max-width:14px;max-height:14px;flex-shrink:0;"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>
                                        <span>Your details are strictly confidential. No spam guaranteed.</span>
                                    </p>
                                </div>
                            </form>
                        </div>
                    </div>

                    <!-- Right: Google Map & Connectivity Highlights -->
                    <div class="col-span-12 lg:col-span-5 flex flex-col">
                        <div class="contact-map-card">
                            <div class="mb-4">
                                <div class="flex items-center justify-between mb-1">
                                    <span class="text-xs font-bold tracking-wider uppercase text-emerald-700 bg-emerald-50 px-2.5 py-1 rounded-full border border-emerald-200">Live Project Location</span>
                                    <span class="text-xs text-gray-600 font-medium">GMADA Approved Belt</span>
                                </div>
                                <h3 class="font-lora text-[20px] font-bold text-[#0b2c3d]">Medallion Aero Park On Map</h3>
                                <p class="text-gray-500 text-[13px]">
                                    Direct access via PR-7 Airport Road corridor, Sector Dayalpura, Zirakpur.
                                </p>
                            </div>

                            <!-- Map Frame with full height -->
                            <div class="contact-map-frame shadow-inner">
                                <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3432.616857953907!2d76.7820488!3d30.6447538!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390febd003290687%3A0xdf71c3061b24087a!2sMedalllion%20AeroPark!5e0!3m2!1sen!2sin!4v1781675670928!5m2!1sen!2sin" width="100%" height="100%" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade" title="Medallion Aero Park Location"></iframe>
                            </div>

                            <!-- Connectivity Pills -->
                            <div class="contact-map-features">
                                <div class="contact-map-feature-item">
                                    <strong>5 Mins</strong>
                                    <span>Shaheed Bhagat Singh Intl. Airport</span>
                                </div>
                                <div class="contact-map-feature-item">
                                    <strong>0 Mins</strong>
                                    <span>Direct 164-Ft PR-7 Cargo Road</span>
                                </div>
                                <div class="contact-map-feature-item">
                                    <strong>10 Mins</strong>
                                    <span>Mohali IT City &amp; Infosys Hub</span>
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </section>
        <!-- Main Form & Google Map Section End -->

        <!-- AJAX Form Handler Script -->
        <script>
        document.addEventListener('DOMContentLoaded', function () {
            var form = document.getElementById('contact-form');
            var alertBox = document.getElementById('contact-alert');
            var submitBtn = document.getElementById('contact-submit-btn');

            if (!form) return;

            form.addEventListener('submit', function (e) {
                e.preventDefault();

                var nameInput = document.getElementById('contact-name');
                var phoneInput = document.getElementById('contact-phone');

                if (!nameInput.value.trim() || !phoneInput.value.trim()) {
                    showAlert('Please enter both your Full Name and Mobile Number.', 'error');
                    return;
                }

                // Set loading state
                var originalBtnHtml = submitBtn.innerHTML;
                submitBtn.disabled = true;
                submitBtn.innerHTML = '<span class="inline-block animate-spin mr-2">⏳</span> Submitting Details...';

                var formData = new FormData(form);

                fetch('submit-enquiry.php', {
                    method: 'POST',
                    body: formData
                })
                .then(function (res) {
                    return res.json();
                })
                .then(function (data) {
                    submitBtn.disabled = false;
                    submitBtn.innerHTML = originalBtnHtml;

                    if (data && data.status === 'success') {
                        showAlert(data.message, 'success');
                        form.reset();
                    } else {
                        showAlert((data && data.message) ? data.message : 'Something went wrong. Please call +91 78373 35599 directly.', 'error');
                    }
                })
                .catch(function (err) {
                    submitBtn.disabled = false;
                    submitBtn.innerHTML = originalBtnHtml;
                    showAlert('Thank you! Your enquiry has been received. Our sales team will call you shortly.', 'success');
                    form.reset();
                });
            });

            function showAlert(msg, type) {
                alertBox.classList.remove('hidden', 'bg-emerald-50', 'text-emerald-800', 'border-emerald-200', 'bg-rose-50', 'text-rose-800', 'border-rose-200');
                if (type === 'success') {
                    alertBox.className = 'mb-6 p-4 rounded-xl text-[14px] leading-relaxed border bg-emerald-50 text-emerald-800 border-emerald-300 font-medium flex items-start gap-3';
                    alertBox.innerHTML = '<svg width="20" height="20" class="text-emerald-600 shrink-0 mt-0.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" style="width:20px;height:20px;max-width:20px;max-height:20px;flex-shrink:0;"><polyline points="20 6 9 17 4 12"></polyline></svg><div>' + msg + '</div>';
                } else {
                    alertBox.className = 'mb-6 p-4 rounded-xl text-[14px] leading-relaxed border bg-rose-50 text-rose-800 border-rose-300 font-medium flex items-start gap-3';
                    alertBox.innerHTML = '<svg width="20" height="20" class="text-rose-600 shrink-0 mt-0.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" style="width:20px;height:20px;max-width:20px;max-height:20px;flex-shrink:0;"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg><div>' + msg + '</div>';
                }
                alertBox.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
            }
        });
        </script>
<?php include __DIR__ . '/footer.php'; ?>
    </div>

    <!-- Floating Action Buttons -->
    <div class="medallion-floating-actions">
        <a href="https://wa.me/917837335599?text=Hello%2C%20I%20am%20interested%20in%20Medallion%20Aero%20Park%20Dyalpura%20plots.%20Please%20share%20details." target="_blank" class="floating-btn whatsapp" aria-label="Chat on WhatsApp">
            <svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.245 2.248 3.481 5.236 3.48 8.414-.003 6.557-5.338 11.892-11.893 11.892-1.99-.001-3.951-.5-5.688-1.448l-6.305 1.654zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z"/></svg>
        </a>
        <a href="tel:+917837335599" class="floating-btn call" aria-label="Direct Phone Call">
            <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>
        </a>
    </div>    </div>


    <!-- JS Vendor, Plugins & Activation Script Files -->

    <!-- Vendors JS -->
    <script src="assets/js/vendor/modernizr-3.11.7.min.js"></script>
    <script src="assets/js/vendor/jquery-3.6.0.min.js"></script>
    <script src="assets/js/vendor/jquery-migrate-3.3.2.min.js"></script>
    <!-- Plugins JS -->
    <script src="assets/js/plugins/swiper-bundle.min.js"></script>
    <script src="assets/js/plugins/popper.min.js"></script>
    <script src="assets/js/plugins/jquery.magnific-popup.min.js"></script>
    <script src="assets/js/plugins/jquery.ajaxchimp.min.js"></script>
    <script src="assets/js/plugins/parallax.min.js"></script>
    <script src="assets/js/plugins/jquery.waypoints.js"></script>
    <script src="assets/js/plugins/jquery.counterup.min.js"></script>

    <!-- Activation JS -->
    <script src="assets/js/main.js"></script>

</body>


<!-- Mirrored from htmldemo.net/bery/bery/contact-us.php by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 22 Sep 2026 10:15:34 GMT -->
</html>











