<?php
require_once 'includes/header.php';
?>

<div class="container">
    <div class="section-title">
        <h2>Frequently Asked Questions</h2>
    </div>
    
    <div class="checkout-form">
        <h3>Account & Registration</h3>
        
        <div class="faq-item">
            <h4>How do I create an account?</h4>
            <p>Click on the "Register" link in the top right corner of any page. Fill in your details and submit the form. You'll receive a confirmation email to verify your account.</p>
        </div>
        
        <div class="faq-item">
            <h4>I forgot my password. How can I reset it?</h4>
            <p>Click on the "Login" link and then select "Forgot Password". Enter your email address and we'll send you instructions to reset your password.</p>
        </div>
        
        <h3>Orders & Payments</h3>
        
        <div class="faq-item">
            <h4>What payment methods do you accept?</h4>
            <p>We accept all major credit cards (Visa, MasterCard, American Express), PayPal, and bank transfers. All payments are processed securely.</p>
        </div>
        
        <div class="faq-item">
            <h4>How can I track my order?</h4>
            <p>Once your order ships, you'll receive a shipping confirmation email with tracking information. You can also log into your account to view order status.</p>
        </div>
        
        <div class="faq-item">
            <h4>Can I cancel or modify my order?</h4>
            <p>You can cancel or modify your order within 2 hours of placing it. After that, please contact customer service for assistance.</p>
        </div>
        
        <h3>Products & Inventory</h3>
        
        <div class="faq-item">
            <h4>Are the products authentic?</h4>
            <p>Yes, all our products are 100% authentic and sourced directly from manufacturers or authorized distributors.</p>
        </div>
        
        <div class="faq-item">
            <h4>How do I know if an item is in stock?</h4>
            <p>Product availability is displayed on each product page. If an item shows "In Stock", it's available for immediate shipping.</p>
        </div>
        
        <h3>Shipping & Delivery</h3>
        
        <div class="faq-item">
            <h4>Do you ship internationally?</h4>
            <p>Yes, we ship to most countries worldwide. International shipping rates and delivery times vary by destination.</p>
        </div>
        
        <div class="faq-item">
            <h4>What if my package is lost or damaged?</h4>
            <p>If your package appears lost or arrives damaged, please contact our customer service team immediately with your order number and photos of any damage.</p>
        </div>
        
        <h3>Returns & Exchanges</h3>
        
        <div class="faq-item">
            <h4>What is your return policy?</h4>
            <p>We offer a 30-day return policy on most items. Please see our complete <a href="<?php echo SITE_URL; ?>/returns-policy.php">Returns & Exchanges Policy</a> for details.</p>
        </div>
        
        <div class="faq-item">
            <h4>How long does it take to process a refund?</h4>
            <p>Refunds are typically processed within 5-7 business days after we receive and inspect the returned item.</p>
        </div>
        
        <div class="text-center" style="margin-top: 30px;">
            <a href="<?php echo SITE_URL; ?>/index.php" class="btn btn-primary">Back to Home</a>
            <?php if (isLoggedIn()): ?>
                <a href="<?php echo SITE_URL; ?>/tickets/create.php" class="btn btn-outline">Contact Support</a>
            <?php else: ?>
                <a href="<?php echo SITE_URL; ?>/auth/login.php" class="btn btn-outline">Login for Support</a>
            <?php endif; ?>
        </div>
    </div>
</div>

<style>
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-item p {
    color: #7f8c8d;
    line-height: 1.6;
}
</style>

<?php require_once 'includes/footer.php'; ?>