<?php require_once __DIR__ . '/_site_content.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php sc_text('contact', 'meta_title', 'Contact Us - SmartThink', $region); ?></title>
    <!-- Core CSS frameworks -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- Project styles -->
    <link rel="stylesheet" href="../assets/css/style.css">
    <link rel="stylesheet" href="../assets/css/modern-ux.css">
    <link rel="stylesheet" href="../assets/css/page-styles.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body>
    <!-- Scroll Progress Bar -->
    <div class="scroll-progress" id="scrollProgress"></div>
    
    <!-- Regional Selector Banner -->
    <div class="regional-banner">
        <div class="container">
            <div class="region-selector">
                <span class="region-label">Select Your Region:</span>
                <div class="region-options">
                    <button class="region-btn active" data-region="usa">
                        🇺🇸 USA
                    </button>
                    <button class="region-btn" data-region="europe">
                        🇪🇺 Europe
                    </button>
                    <button class="region-btn" data-region="africa">
                        🌍 Africa
                    </button>
                </div>
            </div>
        </div>
    </div>

    <!-- Modern Navigation Header -->
    <header class="modern-header">
        <nav class="navbar navbar-expand-lg">
            <div class="container">
                <a class="navbar-brand" href="index.php">
                    <div class="brand-logo">
                        <img src="../assets/images/logo.jpeg" alt="SmartThink" class="logo-img">
                        <span class="brand-text">SmartThink</span>
                    </div>
                </a>
                
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mainNav">
                    <span class="navbar-toggler-icon"></span>
                </button>
                
                <div class="collapse navbar-collapse" id="mainNav">
                    <ul class="navbar-nav mx-auto">
                        <li class="nav-item"><a class="nav-link" href="index.php">Home</a></li>
                        <li class="nav-item"><a class="nav-link" href="about.php">About Us</a></li>
                        <li class="nav-item dropdown">
                            <a class="nav-link dropdown-toggle" href="services.php" id="servicesDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">Services</a>
                            <ul class="dropdown-menu" aria-labelledby="servicesDropdown">
                                <li><a class="dropdown-item" href="training.php">Training</a></li>
                                <li><a class="dropdown-item" href="consulting.php">Consulting</a></li>
                                <li><a class="dropdown-item" href="recruitment.php">Recruitment</a></li>
                            </ul>
                        </li>
                        <li class="nav-item"><a class="nav-link" href="courses.php">Courses</a></li>
                        <li class="nav-item"><a class="nav-link" href="blog.html">Blog</a></li>
                        <li class="nav-item"><a class="nav-link active" href="contact.php">Contact Us</a></li>
                    </ul>
                    <ul class="navbar-nav ms-auto">
                        <li class="nav-item">
                            <a class="nav-link login-btn" href="../lms/login.php">
                                <i class="fas fa-sign-in-alt"></i> Login
                            </a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link register-btn" href="../lms/register.php">
                                <i class="fas fa-user-plus"></i> Register
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>

    <!-- Contact Hero Section -->
    <section class="page-hero">
        <div class="hero-background">
            <div class="hero-overlay"></div>
        </div>
        <div class="container">
            <div class="row align-items-center min-vh-100">
                <div class="col-lg-8 mx-auto text-center">
                    <div class="hero-content-modern">
                        <div class="hero-badge">
                            <span class="badge-text"><?php sc_text('contact', 'hero_badge', 'Get In Touch', $region); ?></span>
                        </div>
                        <h1 class="hero-title-modern"><?php sc_text('contact', 'hero_title', 'We\'re Here to Help', $region); ?></h1>
                        <p class="hero-subtitle-modern"><?php sc_html('contact', 'hero_subtitle', 'Reach out to our team for questions, support, or to learn more about how SmartThink3 can transform your learning journey.', $region); ?></p>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Contact Information Section -->
    <section class="contact-info-section">
        <div class="container">
            <div class="row g-4">
                <div class="col-lg-4">
                    <div class="contact-info-card">
                        <div class="info-icon">
                            <i class="fas fa-map-marker-alt"></i>
                        </div>
                        <h3>Visit Our Office</h3>
                        <p>123 Learning Street<br>Education City, EC 12345<br>United States</p>
                        <a href="#" class="btn btn-outline">Get Directions</a>
                    </div>
                </div>
                
                <div class="col-lg-4">
                    <div class="contact-info-card">
                        <div class="info-icon">
                            <i class="fas fa-phone"></i>
                        </div>
                        <h3>Call Us</h3>
                        <p>Main: +1 (555) 123-4567<br>Support: +1 (555) 987-6543<br>Toll-free: 1-800-SMART3</p>
                        <a href="tel:+15551234567" class="btn btn-outline">Call Now</a>
                    </div>
                </div>
                
                <div class="col-lg-4">
                    <div class="contact-info-card">
                        <div class="info-icon">
                            <i class="fas fa-envelope"></i>
                        </div>
                        <h3>Email Us</h3>
                        <p>General: info@smartthink.com<br>Support: support@smartthink.com<br>Sales: sales@smartthink.com</p>
                        <a href="mailto:info@smartthink.com" class="btn btn-outline">Send Email</a>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Contact Form Section -->
    <section class="contact-form-section">
        <div class="container">
            <div class="row">
                <div class="col-lg-8">
                    <div class="contact-form-wrapper">
                        <div class="section-header-modern text-left">
                            <h2 class="section-title-modern"><?php sc_text('contact', 'form_title', 'Send Us a Message', $region); ?></h2>
                            <p class="section-subtitle-modern"><?php sc_html('contact', 'form_subtitle', 'Fill out the form below and we\'ll get back to you within 24 hours.', $region); ?></p>
                        </div>
                        
                        <form id="contactForm" class="modern-form">
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="firstName">First Name *</label>
                                        <input type="text" id="firstName" name="firstName" class="form-control" required>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="lastName">Last Name *</label>
                                        <input type="text" id="lastName" name="lastName" class="form-control" required>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="email">Email Address *</label>
                                        <input type="email" id="email" name="email" class="form-control" required>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="phone">Phone Number</label>
                                        <input type="tel" id="phone" name="phone" class="form-control">
                                    </div>
                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label for="subject">Subject *</label>
                                <select id="subject" name="subject" class="form-control" required>
                                    <option value="">Select a subject</option>
                                    <option value="general">General Inquiry</option>
                                    <option value="support">Technical Support</option>
                                    <option value="billing">Billing Question</option>
                                    <option value="partnership">Partnership Opportunity</option>
                                    <option value="feedback">Feedback</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label for="message">Message *</label>
                                <textarea id="message" name="message" rows="6" class="form-control" required placeholder="Tell us more about your inquiry..."></textarea>
                            </div>
                            
                            <div class="form-group">
                                <div class="custom-checkbox">
                                    <input type="checkbox" id="newsletter" name="newsletter">
                                    <label for="newsletter">I'd like to receive newsletter updates</label>
                                </div>
                            </div>
                            
                            <div class="form-actions">
                                <button type="submit" class="btn btn-primary btn-lg">
                                    <i class="fas fa-paper-plane"></i> Send Message
                                </button>
                                <button type="reset" class="btn btn-outline btn-lg">
                                    <i class="fas fa-redo"></i> Reset Form
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
                
                <div class="col-lg-4">
                    <div class="contact-sidebar">
                        <div class="sidebar-card">
                            <h3>Office Hours</h3>
                            <div class="hours-list">
                                <div class="hours-item">
                                    <span class="day">Monday - Friday</span>
                                    <span class="time">9:00 AM - 6:00 PM</span>
                                </div>
                                <div class="hours-item">
                                    <span class="day">Saturday</span>
                                    <span class="time">10:00 AM - 4:00 PM</span>
                                </div>
                                <div class="hours-item">
                                    <span class="day">Sunday</span>
                                    <span class="time">Closed</span>
                                </div>
                            </div>
                        </div>
                        
                        <div class="sidebar-card">
                            <h3>Response Times</h3>
                            <ul class="response-times">
                                <li><i class="fas fa-check-circle text-success"></i> Email: Within 24 hours</li>
                                <li><i class="fas fa-check-circle text-success"></i> Phone: Immediate during business hours</li>
                                <li><i class="fas fa-check-circle text-success"></i> WhatsApp: Within 2 hours</li>
                                <li><i class="fas fa-check-circle text-success"></i> Support Ticket: Within 48 hours</li>
                            </ul>
                        </div>
                        
                        <div class="sidebar-card">
                            <h3>Follow Us</h3>
                            <div class="social-links-large">
                                <a href="#" class="social-link">
                                    <i class="fab fa-facebook"></i>
                                    <span>Facebook</span>
                                </a>
                                <a href="#" class="social-link">
                                    <i class="fab fa-twitter"></i>
                                    <span>Twitter</span>
                                </a>
                                <a href="#" class="social-link">
                                    <i class="fab fa-linkedin"></i>
                                    <span>LinkedIn</span>
                                </a>
                                <a href="#" class="social-link">
                                    <i class="fab fa-instagram"></i>
                                    <span>Instagram</span>
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- FAQ Section -->
    <section class="faq-section">
        <div class="container">
            <div class="section-header-modern">
                <h2 class="section-title-modern"><?php sc_text('contact', 'faq_title', 'Frequently Asked Questions', $region); ?></h2>
                <p class="section-subtitle-modern"><?php sc_html('contact', 'faq_subtitle', 'Quick answers to common questions', $region); ?></p>
            </div>
            
            <div class="row">
                <!-- FAQ items unchanged -->
                <?php /* Keeping original FAQ items as static HTML for now */ ?>
                <div class="col-lg-6">
                    <div class="faq-item">
                        <div class="faq-question">
                            <h4>How do I enroll in a course?</h4>
                            <i class="fas fa-chevron-down"></i>
                        </div>
                        <div class="faq-answer">
                            <p>Simply browse our course catalog, select your desired course, and click the "Enroll Now" button. You'll be guided through the registration and payment process.</p>
                        </div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">
                            <h4>What payment methods do you accept?</h4>
                            <i class="fas fa-chevron-down"></i>
                        </div>
                        <div class="faq-answer">
                            <p>We accept all major credit cards, PayPal, bank transfers, and regional payment methods including mobile money for African customers.</p>
                        </div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">
                            <h4>Can I get a refund if I'm not satisfied?</h4>
                            <i class="fas fa-chevron-down"></i>
                        </div>
                        <div class="faq-answer">
                            <p>Yes, we offer a 30-day money-back guarantee for all courses. If you're not satisfied, contact our support team for a full refund.</p>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-6">
                    <div class="faq-item">
                        <div class="faq-question">
                            <h4>Do you offer certificates upon completion?</h4>
                            <i class="fas fa-chevron-down"></i>
                        </div>
                        <div class="faq-answer">
                            <p>Yes, all courses come with a certificate of completion. Premium courses also offer industry-recognized certifications.</p>
                        </div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">
                            <h4>How long do I have access to course materials?</h4>
                            <i class="fas fa-chevron-down"></i>
                        </div>
                        <div class="faq-answer">
                            <p>Once enrolled, you have lifetime access to course materials, including all updates and additional content.</p>
                        </div>
                    </div>
                    
                    <div class="faq-item">
                        <div class="faq-question">
                            <h4>Do you offer corporate training solutions?</h4>
                            <i class="fas fa-chevron-down"></i>
                        </div>
                        <div class="faq-answer">
                            <p>Yes, we provide customized corporate training programs for teams and organizations. Contact our sales team for more information.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Map Section -->
    <section class="map-section">
        <div class="container-fluid p-0">
            <div class="map-container">
                <iframe 
                    src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3024.2219901290355!2d-74.00369368400567!3d40.71312937933039!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c25a316bb8a6b3%3A0x4b5c5b5b5b5b5b5b!2s123%20Learning%20St%2C%20New%20York%2C%20NY%2010001%2C%20USA!5e0!3m2!1sen!2sus!4v1234567890"
                    width="100%" 
                    height="450" 
                    style="border:0;" 
                    allowfullscreen="" 
                    loading="lazy">
                </iframe>
            </div>
        </div>
    </section>

    <!-- WhatsApp Widget -->
    <div class="whatsapp-widget" id="whatsappWidget">
        <div class="whatsapp-button">
            <i class="fab fa-whatsapp"></i>
        </div>
        <div class="whatsapp-chat">
            <div class="chat-header">
                <h4>SmartThink Support</h4>
                <span class="status">Online</span>
            </div>
            <div class="chat-messages" id="chatMessages">
                <div class="message bot">
                    Hello! How can I help you today? Feel free to ask any questions about our courses or services.
                </div>
            </div>
            <div class="chat-input">
                <input type="text" id="chatInput" placeholder="Type your message...">
                <button id="sendMessage"><i class="fas fa-paper-plane"></i></button>
            </div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="main-footer">
        <div class="container">
            <div class="row">
                <div class="col-lg-4">
                    <div class="footer-brand">
                          <img src="../assets/images/smartthinklogos.jpeg" alt="SmartThink" class="footer-logo">
                        <p><?php sc_html('home', 'footer_about', 'Empowering learners globally with cutting-edge educational technology and world-class content.', $region); ?></p>
                        <div class="social-links">
                            <a href="#"><i class="fab fa-facebook"></i></a>
                            <a href="#"><i class="fab fa-twitter"></i></a>
                            <a href="#"><i class="fab fa-linkedin"></i></a>
                            <a href="#"><i class="fab fa-instagram"></i></a>
                        </div>
                    </div>
                </div>
                
                <div class="col-lg-2">
                    <div class="footer-links">
                        <h4>Quick Links</h4>
                        <ul>
                            <li><a href="index.php">Home</a></li>
                            <li><a href="about.php">About Us</a></li>
                            <li><a href="courses.php">Courses</a></li>
                            <li><a href="services.php">Services</a></li>
                        </ul>
                    </div>
                </div>
                
                <div class="col-lg-2">
                    <div class="footer-links">
                        <h4>Resources</h4>
                        <ul>
                            <li><a href="blog.html">Blog</a></li>
                            <li><a href="#">FAQs</a></li>
                            <li><a href="#">Support</a></li>
                            <li><a href="#">Careers</a></li>
                        </ul>
                    </div>
                </div>
                
                <div class="col-lg-4">
                    <div class="footer-newsletter">
                        <h4>Subscribe to Our Newsletter</h4>
                        <p>Get the latest updates on courses and features</p>
                        <form class="newsletter-form">
                            <input type="email" placeholder="Your email address">
                            <button type="submit">Subscribe</button>
                        </form>
                    </div>
                </div>
            </div>
            
            <div class="footer-bottom">
                <div class="row">
                    <div class="col-md-6">
                        <p><?php sc_html('home', 'footer_copyright', '&copy; 2026 SmartThink3 LMS. All rights reserved.', $region); ?></p>
                    </div>
                    <div class="col-md-6">
                        <div class="footer-bottom-links">
                            <a href="#">Privacy Policy</a>
                            <a href="#">Terms of Service</a>
                            <a href="#">Cookie Policy</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <!-- Scripts -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"></script>
    <script src="../assets/js/main.js"></script>
    <script src="../assets/js/modern-interactions.js"></script>
    <script>
        // FAQ Accordion
        document.addEventListener('DOMContentLoaded', function() {
            const faqItems = document.querySelectorAll('.faq-item');
            
            faqItems.forEach(item => {
                const question = item.querySelector('.faq-question');
                const answer = item.querySelector('.faq-answer');
                const icon = question.querySelector('i');
                
                question.addEventListener('click', function() {
                    const isOpen = item.classList.contains('open');
                    
                    // Close all other items
                    faqItems.forEach(otherItem => {
                        if (otherItem !== item) {
                            otherItem.classList.remove('open');
                            otherItem.querySelector('.faq-answer').style.maxHeight = '0';
                            otherItem.querySelector('i').style.transform = 'rotate(0deg)';
                        }
                    });
                    
                    // Toggle current item
                    if (isOpen) {
                        item.classList.remove('open');
                        answer.style.maxHeight = '0';
                        icon.style.transform = 'rotate(0deg)';
                    } else {
                        item.classList.add('open');
                        answer.style.maxHeight = answer.scrollHeight + 'px';
                        icon.style.transform = 'rotate(180deg)';
                    }
                });
            });
        });
    </script>
</body>
</html>
