<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Contact Us | Organic Farm</title>
    <link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
    <style>
        :root {
            --green: #4a7c2c;
            --dark-green: #3a6323;
            --gold: #b38b1f;
            --dark: #1a1c19;
            --light: #fdfdfb;
            --accent-bg: #f6f8f4;
            --transition: all 0.3s ease;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--accent-bg);
            color: var(--dark);
            line-height: 1.6;
        }

        .contact-page { padding: 60px 20px; max-width: 1200px; margin: auto; }

        .card {
            background: #fff;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.06);
            margin-bottom: 40px;
        }

        /* TOP SECTION */
        .contact-grid-top { display: grid; grid-template-columns: 0.8fr 1.2fr; }

        .contact-info {
            background: var(--green);
            color: #fff;
            padding: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .contact-info h2 { 
            font-family: 'Lora', serif; 
            font-size: 2.5rem; 
            margin-bottom: 15px; 
        }

        /* THE GAP YOU ASKED FOR */
        .contact-intro-text {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 50px; /* This creates the big gap under "just hello" */
            line-height: 1.6;
        }
        
        /* SPACING BETWEEN CONTACT ITEMS */
        .info-item { 
            display: flex; 
            align-items: flex-start; 
            gap: 15px; 
            margin-bottom: 30px; /* Space between Phone, Email, and Location */
        }

        .info-item .icon { 
            font-size: 1.2rem; 
            background: rgba(255,255,255,0.15); 
            padding: 10px; 
            border-radius: 12px; 
        }

        .info-item b { font-size: 1.1rem; }

        .contact-form { padding: 60px; }
        .contact-form h3 { font-family: 'Lora', serif; font-size: 2rem; color: var(--green); margin-bottom: 25px; }

        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
        .form-group input, .form-group textarea {
            width: 100%; padding: 15px; border-radius: 12px; border: 2px solid #f0f0f0; outline: none; transition: var(--transition);
        }
        .form-group input:focus, .form-group textarea:focus { border-color: var(--green); background: #fff; }

        .send-btn {
            width: 100%; padding: 18px; border: none; border-radius: 12px; background: var(--green);
            color: #fff; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: var(--transition);
        }
        .send-btn:hover { background: var(--dark-green); transform: translateY(-2px); }

        /* BOTTOM SECTION */
        .contact-grid-bottom { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }

        .map-box { height: 100%; min-height: 400px; border-radius: 30px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
        .map-box iframe { width: 100%; height: 100%; border: 0; }

        .extra-content { display: flex; flex-direction: column; gap: 30px; }
        
        .content-card { background: #fff; padding: 35px; border-radius: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
        .content-card h4 { font-family: 'Lora', serif; font-size: 1.4rem; color: var(--green); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
        
        .faq-item { margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
        .faq-item b { display: block; font-size: 0.95rem; color: var(--dark); }
        .faq-item p { font-size: 0.9rem; color: #666; }

        @media (max-width: 900px) {
            .contact-grid-top, .contact-grid-bottom { grid-template-columns: 1fr; }
            .contact-info, .contact-form { padding: 40px 25px; }
        }
    </style>
</head>

<body>
<?php include "header.php"; ?>
<section class="contact-page">
    
    <div class="card">
        <div class="contact-grid-top">
            <div class="contact-info">
                <h2>Get in Touch</h2>
                <p class="contact-intro-text">
                    We’d love to hear from you. Whether it's a bulk order or just a hello.
                </p>

                <div class="info-item">
                    <div class="icon">📞</div>
                    <div>
                        <small style="opacity: 0.8;">Call / WhatsApp</small><br>
                        <b>+91 7829009995</b> <br>
                        <b>+91 7780200564</b>
                    </div>
                </div>

                <div class="info-item">
                    <div class="icon">✉️</div>
                    <div>
                        <small style="opacity: 0.8;">Email Address</small><br>
                        <b>saisorganics@saimail.com</b>
                    </div>
                </div>

                <div class="info-item">
                    <div class="icon">📍</div>
                    <div>
                        <small style="opacity: 0.8;">Farm Location</small><br>
                        <b>Rd No:5, Bharani Colony,Vivekanandapuram <br>Sainikpuri,Hyderabad</b>
                    </div>
                </div>
            </div>

            <div class="contact-form">
                <h3>Message Us</h3>
                <form id="farmForm">
                    <div class="form-group">
                        <label>Your Name</label>
                        <input type="text" id="name" placeholder="Enter your name" required>
                    </div>
                    <div class="form-group">
                        <label>Phone Number</label>
                        <input type="tel" id="phone" placeholder="Enter phone number" required>
                    </div>
                    <div class="form-group">
                        <label>How can we help?</label>
                        <textarea id="message" placeholder="Ask us about our seasonal harvest..." required></textarea>
                    </div>
                    <button type="submit" class="send-btn">Send WhatsApp Message</button>
                </form>
            </div>
        </div>
    </div>

    <div class="contact-grid-bottom">
        <div class="map-box">
            <iframe 
                src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3806.4522240214!2d78.3818!3d17.4474!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zMTfCsDI2JzUwLjYiTiA3OMKwMjInNTQuNSJF!5e0!3m2!1sen!2sin!4v1625000000000!5m2!1sen!2sin" 
                allowfullscreen="" loading="lazy">
            </iframe>
        </div>

        <div class="extra-content">
            <div class="content-card">
                <h4>🌱 Farm Visit Hours</h4>
                <p style="font-size: 0.95rem; color: #555; margin-bottom: 15px;">We welcome visitors who want to see where their food comes from! Please call ahead to ensure we are on-site.</p>
                <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 0.9rem;">
                    <span><b>Saturday & Sunday: 07:00 AM - 05:00 PM</b> By Appointment</span>
                </div>
            </div>

            <div class="content-card">
                <h4>🤔 Common Questions</h4>
                <div class="faq-item">
                    <b>Do you offer home delivery?</b>
                    <p>Yes, we deliver across the Globe.</p>
                </div>
                <div class="faq-item">
                    <b>Are your products certified?</b>
                    <p>We follow strict natural farming practices without any chemicals or pesticides.</p>
                </div>
            </div>
        </div>
    </div>

</section>

<script>
document.getElementById('farmForm').addEventListener('submit', function(e) {
    e.preventDefault();
    const name = document.getElementById("name").value;
    const phone = document.getElementById("phone").value;
    const message = document.getElementById("message").value;
    const whatsappNumber = "917829009995"; 
    const fullMessage = `*New Inquiry*%0A*Name:* ${name}%0A*Phone:* ${phone}%0A*Message:* ${message}`;
    window.open(`https://wa.me/${whatsappNumber}?text=${fullMessage}`, "_blank");
});
</script>
<?php include "footer.php"; ?>
</body>
</html>