<?php 
// 1. Include Header
include 'header.php'; 
?>

    <style>
        /* --- Contact Page Hero Section --- */
        .contact-hero {
            background: linear-gradient(135deg, rgba(2, 44, 34, 0.95), rgba(6, 78, 59, 0.85)), url('https://images.unsplash.com/photo-1534536281715-e28d76689b4d?auto=format&fit=crop&w=1920&q=80') center/cover;
            padding: 80px 0;
            color: white;
            text-align: center;
            border-bottom: 5px solid var(--accent);
        }
        
        .contact-hero h1 {
            font-weight: 800;
            font-size: 42px;
            margin-bottom: 10px;
        }

        /* --- Contact Info Box --- */
        .contact-info-box {
            background: #ffffff;
            padding: 50px;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.05);
            height: 100%;
            border-top: 6px solid var(--accent);
        }

        .contact-icon {
            color: var(--accent);
            font-size: 22px;
            margin-right: 15px;
            width: 30px;
            text-align: center;
        }

        .social-circle-btn {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: var(--bg-soft);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: 0.3s;
            border: 1px solid #e2e8f0;
        }

        .social-circle-btn:hover {
            background: var(--accent);
            color: var(--primary-dark);
            transform: translateY(-3px);
            border-color: var(--accent);
        }

        /* --- Contact Form Box --- */
        .contact-form-box {
            background: #ffffff;
            padding: 50px;
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.05);
            height: 100%;
            border-top: 6px solid var(--primary);
        }

        .custom-input {
            background-color: var(--bg-soft);
            border: 2px solid transparent;
            padding: 15px 20px;
            border-radius: 12px;
            font-weight: 500;
            transition: 0.3s;
        }

        .custom-input:focus {
            background-color: #fff;
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
        }

        .btn-send {
            background-color: var(--primary);
            color: white;
            padding: 15px 40px;
            border-radius: 50px;
            font-weight: 700;
            font-size: 16px;
            border: none;
            transition: 0.3s;
            box-shadow: 0 5px 15px rgba(6, 78, 59, 0.2);
        }

        .btn-send:hover {
            background-color: var(--accent);
            color: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
        }
    </style>

    <section class="contact-hero">
        <div class="container py-4">
            <h1 class="fw-bold">Contact Us</h1>
            <p class="lead opacity-75 mb-0">We are here to help and answer any questions you might have.</p>
        </div>
    </section>

    <section class="py-5" style="background-color: var(--bg-soft);">
        <div class="container py-4">
            
            <div class="row g-5">
                <div class="col-lg-5">
                    <div class="contact-info-box">
                        <h4 class="fw-bold mb-4" style="color: var(--primary-dark);">Get In Touch</h4>
                        <p class="text-muted mb-5">Have inquiries about our courses, admission, or general questions? Feel free to reach out to us using the details below.</p>
                        
                        <ul class="list-unstyled" style="line-height: 2.2; font-size: 1.05rem; color: #334155;">
                            <li class="mb-4 d-flex align-items-start">
                                <i class="fas fa-map-marker-alt contact-icon mt-1"></i>
                                <div>
                                    <strong class="d-block text-dark">Global Campus:</strong>
                                    Online Worldwide
                                </div>
                            </li>
                            <li class="mb-4 d-flex align-items-start">
                                <i class="fas fa-phone-alt contact-icon mt-1"></i>
                                <div>
                                    <strong class="d-block text-dark">Phone / WhatsApp:</strong>
                                    +8801815244716
                                </div>
                            </li>
                            <li class="mb-4 d-flex align-items-start">
                                <i class="fas fa-envelope contact-icon mt-1"></i>
                                <div>
                                    <strong class="d-block text-dark">Email Address:</strong>
                                    ahmadacademy.oqi@gmail.com
                                </div>
                            </li>
                            <li class="mb-4 d-flex align-items-start">
                                <i class="fas fa-globe contact-icon mt-1"></i>
                                <div>
                                    <strong class="d-block text-dark">Website:</strong>
                                    www.ahmadonlineacademy.com
                                </div>
                            </li>
                        </ul>
                        
                        <h5 class="fw-bold mt-5 mb-3" style="color: var(--primary-dark);">Connect With Us</h5>
                        <div class="d-flex gap-3">
                            <a href="https://www.facebook.com/profile.php?id=61578178689591" target="_blank" class="social-circle-btn"><i class="fab fa-facebook-f"></i></a>
                            <a href="https://www.youtube.com/@AhmadAcademyofficial" target="_blank" class="social-circle-btn"><i class="fab fa-youtube"></i></a>
                            <a href="https://wa.me/8801815244716" target="_blank" class="social-circle-btn"><i class="fab fa-whatsapp"></i></a>
                            <a href="https://www.linkedin.com/in/ahmad-academy-6443173a2" target="_blank" class="social-circle-btn"><i class="fab fa-linkedin-in"></i></a>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-7">
                    <div class="contact-form-box">
                        <h4 class="fw-bold mb-4 text-center" style="color: var(--primary-dark);">Send Us a Message</h4>
                        <form action="send_message.php" method="POST">
                            <div class="row g-4">
                                <div class="col-md-6">
                                    <label class="form-label fw-bold text-muted small text-uppercase">Your Name</label>
                                    <input type="text" name="name" class="form-control custom-input shadow-none" placeholder="Enter your name" required>
                                </div>
                                <div class="col-md-6">
                                    <label class="form-label fw-bold text-muted small text-uppercase">Phone Number</label>
                                    <input type="tel" name="phone" class="form-control custom-input shadow-none" placeholder="Enter mobile number" required>
                                </div>
                                <div class="col-12">
                                    <label class="form-label fw-bold text-muted small text-uppercase">Course of Interest (Optional)</label>
                                    <input type="text" name="course" class="form-control custom-input shadow-none" placeholder="E.g. Tajweed, Hifz, Arabic Language">
                                </div>
                                <div class="col-12">
                                    <label class="form-label fw-bold text-muted small text-uppercase">Your Message</label>
                                    <textarea name="message" class="form-control custom-input shadow-none" rows="5" placeholder="Write your message in detail here..." required></textarea>
                                </div>
                                <div class="col-12 mt-4 text-center">
                                    <button type="submit" class="btn btn-send w-100">
                                        Send Message <i class="fas fa-paper-plane ms-2"></i>
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>

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

<?php 
// 2. Include Footer
include 'footer.php'; 
?>