<?php
// refund.php - Refund Policy Page
// File location: /bidwheels.net/refund.php

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Read <?php echo SITE_NAME; ?> refund policy - understand our refund terms, conditions, and processes.">
    <title>Refund Policy - <?php echo SITE_NAME; ?></title>
    
    <style>
        .refund-page {
            background: linear-gradient(135deg, #EFEBE0 0%, #e5e0d4 100%);
            min-height: 100vh;
            padding: 60px 0;
        }
        
        .refund-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        .refund-header {
            text-align: center;
            margin-bottom: 50px;
        }
        
        .refund-header h1 {
            font-size: 48px;
            font-weight: 800;
            background: linear-gradient(135deg, #1a1a1a 0%, #FF8C3E 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 15px;
        }
        
        .refund-header p {
            color: #555;
            font-size: 18px;
            max-width: 700px;
            margin: 0 auto;
        }
        
        .last-updated {
            text-align: center;
            color: #888;
            font-size: 13px;
            margin-top: 10px;
        }
        
        .refund-grid {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 40px;
        }
        
        .refund-nav {
            position: sticky;
            top: 100px;
            height: fit-content;
            background: white;
            border-radius: 24px;
            padding: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        }
        
        .refund-nav h3 {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid #FF8C3E;
        }
        
        .nav-list {
            list-style: none;
            padding: 0;
        }
        
        .nav-list li {
            margin-bottom: 12px;
        }
        
        .nav-list a {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #555;
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 12px;
            transition: all 0.3s;
            font-size: 14px;
        }
        
        .nav-list a i {
            width: 20px;
            color: #FF8C3E;
        }
        
        .nav-list a:hover {
            background: #f8f8f8;
            color: #FF8C3E;
            transform: translateX(5px);
        }
        
        .refund-content {
            background: white;
            border-radius: 32px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }
        
        .refund-section {
            margin-bottom: 40px;
            scroll-margin-top: 100px;
        }
        
        .refund-section:last-child {
            margin-bottom: 0;
        }
        
        .refund-section h2 {
            font-size: 28px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #FF8C3E;
            display: inline-block;
        }
        
        .refund-section h3 {
            font-size: 20px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 25px 0 15px;
        }
        
        .refund-section p {
            color: #555;
            line-height: 1.7;
            margin-bottom: 15px;
            font-size: 15px;
        }
        
        .refund-section ul, 
        .refund-section ol {
            margin: 15px 0 15px 25px;
            color: #555;
            line-height: 1.7;
        }
        
        .refund-section li {
            margin-bottom: 8px;
        }
        
        .highlight-box {
            background: #fef5ee;
            padding: 20px;
            border-left: 4px solid #FF8C3E;
            border-radius: 16px;
            margin: 20px 0;
        }
        
        .warning-box {
            background: #fff3cd;
            padding: 20px;
            border-left: 4px solid #ffc107;
            border-radius: 16px;
            margin: 20px 0;
        }
        
        .info-box {
            background: #f0f7ff;
            padding: 15px 20px;
            border-radius: 16px;
            margin: 15px 0;
        }
        
        .info-box i {
            color: #FF8C3E;
            margin-right: 8px;
        }
        
        .refund-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        
        .refund-table th,
        .refund-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #f0f0f0;
        }
        
        .refund-table th {
            background: #f8f9fa;
            font-weight: 600;
            color: #1a1a1a;
        }
        
        hr {
            margin: 30px 0;
            border-color: #f0f0f0;
        }
        
        .contact-card {
            background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
            border-radius: 20px;
            padding: 25px;
            margin-top: 30px;
            color: white;
            text-align: center;
        }
        
        .contact-card h4 {
            font-size: 18px;
            margin-bottom: 15px;
        }
        
        .contact-card p {
            color: #aaa;
            margin-bottom: 15px;
        }
        
        .contact-card a {
            color: #FF8C3E;
            text-decoration: none;
        }
        
        @media (max-width: 992px) {
            .refund-grid {
                grid-template-columns: 1fr;
            }
            
            .refund-nav {
                position: static;
                margin-bottom: 30px;
            }
            
            .nav-list {
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .nav-list li {
                margin-bottom: 0;
            }
            
            .nav-list a {
                padding: 6px 14px;
                background: #f8f8f8;
            }
        }
        
        @media (max-width: 768px) {
            .refund-page {
                padding: 40px 0;
            }
            
            .refund-container {
                padding: 0 16px;
            }
            
            .refund-header h1 {
                font-size: 32px;
            }
            
            .refund-content {
                padding: 25px;
            }
            
            .refund-section h2 {
                font-size: 24px;
            }
            
            .refund-table {
                font-size: 12px;
            }
            
            .refund-table th,
            .refund-table td {
                padding: 8px;
            }
        }
    </style>
</head>
<body>

<div class="refund-page">
    <div class="refund-container">
        <div class="refund-header">
            <h1>Refund Policy</h1>
            <p>Understanding our refund terms, conditions, and processes</p>
            <div class="last-updated">Last Updated: June 11, 2025</div>
        </div>
        
        <div class="refund-grid">
            <aside class="refund-nav">
                <h3><i class="fas fa-file-alt"></i> On This Page</h3>
                <ul class="nav-list">
                    <li><a href="#overview"><i class="fas fa-info-circle"></i> Overview</a></li>
                    <li><a href="#refund-eligibility"><i class="fas fa-check-circle"></i> Refund Eligibility</a></li>
                    <li><a href="#non-refundable"><i class="fas fa-ban"></i> Non-Refundable Items</a></li>
                    <li><a href="#refund-process"><i class="fas fa-exchange-alt"></i> Refund Process</a></li>
                    <li><a href="#refund-timeline"><i class="fas fa-clock"></i> Refund Timeline</a></li>
                    <li><a href="#dispute-resolution"><i class="fas fa-gavel"></i> Dispute Resolution</a></li>
                    <li><a href="#chargebacks"><i class="fas fa-credit-card"></i> Chargebacks</a></li>
                    <li><a href="#contact"><i class="fas fa-envelope"></i> Contact Us</a></li>
                </ul>
            </aside>
            
            <div class="refund-content">
                <!-- Overview -->
                <div id="overview" class="refund-section">
                    <h2>1. Overview</h2>
                    <p>At <?php echo SITE_NAME; ?>, we strive to ensure a transparent and fair auction experience for all users. This Refund Policy outlines the circumstances under which refunds may be issued and the process for requesting a refund.</p>
                    
                    <div class="highlight-box">
                        <p><strong>Important Note:</strong> Winning bids are legally binding contracts. Refunds are only issued in specific circumstances as outlined below.</p>
                    </div>
                </div>
                
                <!-- Refund Eligibility -->
                <div id="refund-eligibility" class="refund-section">
                    <h2>2. Refund Eligibility</h2>
                    <p>You may be eligible for a refund in the following circumstances:</p>
                    
                    <h3>2.1 Auction Cancellation by Seller</h3>
                    <p>If the seller cancels an auction after you have won, you will receive a full refund of any payments made.</p>
                    
                    <h3>2.2 Vehicle Misrepresentation</h3>
                    <p>If the vehicle received significantly differs from the description provided (e.g., wrong model year, undisclosed damage, title issues), you may be eligible for a refund.</p>
                    
                    <h3>2.3 Technical Errors</h3>
                    <p>If a technical error on our platform caused an incorrect bid to be placed or prevented you from bidding fairly.</p>
                    
                    <h3>2.4 Duplicate Payment</h3>
                    <p>If you accidentally made duplicate payments for the same auction.</p>
                    
                    <h3>2.5 Unauthorized Transaction</h3>
                    <p>If your account was compromised and an unauthorized bid was placed without your consent (requires proof of unauthorized access).</p>
                    
                    <div class="info-box">
                        <i class="fas fa-clock"></i> <strong>Time Limit:</strong> Refund requests must be submitted within 14 days of the auction end date.
                    </div>
                </div>
                
                <!-- Non-Refundable -->
                <div id="non-refundable" class="refund-section">
                    <h2>3. Non-Refundable Items</h2>
                    <p>The following are generally NOT eligible for refunds:</p>
                    <ul>
                        <li><strong>Buyer's Remorse:</strong> Changing your mind after winning a bid</li>
                        <li><strong>Shipping Costs:</strong> Shipping and delivery fees (unless the vehicle was not delivered)</li>
                        <li><strong>Inspection Fees:</strong> Third-party inspection services you arranged</li>
                        <li><strong>Storage Fees:</strong> Fees incurred due to delayed pickup</li>
                        <li><strong>Normal Wear and Tear:</strong> Minor imperfections consistent with vehicle age and mileage</li>
                        <li><strong>Aftermarket Modifications:</strong> Disagreement with modifications made by previous owners</li>
                    </ul>
                    
                    <div class="warning-box">
                        <p><strong>Important:</strong> Vehicles sold "as-is" with disclosed issues are not eligible for refunds based on those disclosed issues.</p>
                    </div>
                </div>
                
                <!-- Refund Process -->
                <div id="refund-process" class="refund-section">
                    <h2>4. Refund Process</h2>
                    
                    <h3>4.1 How to Request a Refund</h3>
                    <p>To request a refund, please follow these steps:</p>
                    <ol>
                        <li>Contact our support team at <a href="mailto:billing@bidwheels.net">billing@bidwheels.net</a> within 14 days of auction end</li>
                        <li>Provide your order number, vehicle details, and reason for refund request</li>
                        <li>Include any supporting documentation (photos, inspection reports, communication with seller)</li>
                        <li>Our team will review your request within 3-5 business days</li>
                    </ol>
                    
                    <h3>4.2 Investigation Process</h3>
                    <p>Upon receiving your refund request, we will:</p>
                    <ul>
                        <li>Review the auction details and bid history</li>
                        <li>Contact the seller for their perspective</li>
                        <li>Request additional documentation if needed</li>
                        <li>Make a determination within 5-7 business days</li>
                    </ul>
                    
                    <h3>4.3 Approved Refunds</h3>
                    <p>If your refund is approved:</p>
                    <ul>
                        <li>You will receive a confirmation email</li>
                        <li>Refunds will be issued to the original payment method</li>
                        <li>You will be notified once the refund is processed</li>
                    </ul>
                    
                    <h3>4.4 Denied Refunds</h3>
                    <p>If your refund is denied, we will provide a written explanation. You may appeal the decision by providing additional evidence.</p>
                </div>
                
                <!-- Refund Timeline -->
                <div id="refund-timeline" class="refund-section">
                    <h2>5. Refund Timeline</h2>
                    
                    <table class="refund-table">
                        <thead>
                            <tr>
                                <th>Payment Method</th>
                                <th>Processing Time</th>
                                <th>Funds Availability</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>Credit Card</td>
                                <td>3-5 business days</td>
                                <td>5-10 business days (depending on bank)</td>
                            </tr>
                            <tr>
                                <td>Bank Transfer</td>
                                <td>5-7 business days</td>
                                <td>7-14 business days</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <div class="info-box">
                        <i class="fas fa-info-circle"></i> <strong>Note:</strong> Processing times may vary depending on your financial institution. International transactions may take longer.
                    </div>
                </div>
                
                <!-- Dispute Resolution -->
                <div id="dispute-resolution" class="refund-section">
                    <h2>6. Dispute Resolution</h2>
                    
                    <h3>6.1 Escalation Process</h3>
                    <p>If you disagree with our refund decision, you may escalate the dispute through the following channels:</p>
                    <ol>
                        <li><strong>Level 1:</strong> Request review by a senior support agent</li>
                        <li><strong>Level 2:</strong> Escalate to the Billing Department Manager</li>
                        <li><strong>Level 3:</strong> Submit a formal dispute via our dispute resolution form</li>
                    </ol>
                    
                    <h3>6.2 Third-Party Mediation</h3>
                    <p>If a resolution cannot be reached, either party may request binding arbitration through the American Arbitration Association (AAA).</p>
                    
                    <div class="highlight-box">
                        <p><strong>Important:</strong> You must attempt to resolve the dispute through our internal process before seeking external mediation.</p>
                    </div>
                </div>
                
                <!-- Chargebacks -->
                <div id="chargebacks" class="refund-section">
                    <h2>7. Chargebacks</h2>
                    <p>If you dispute a charge with your bank or credit card company without first requesting a refund through our process:</p>
                    <ul>
                        <li>Your account will be suspended immediately</li>
                        <li>You will be responsible for any chargeback fees incurred</li>
                        <li>We reserve the right to pursue collection of valid debts</li>
                        <li>Your information may be shared with collection agencies</li>
                    </ul>
                    <div class="warning-box">
                        <p><strong>Warning:</strong> Unauthorized chargebacks may result in permanent account ban and legal action.</p>
                    </div>
                </div>
                
                <!-- Contact -->
                <div id="contact" class="refund-section">
                    <h2>8. Contact Us</h2>
                    <p>For refund-related questions or to submit a refund request, please contact our billing department:</p>
                    
                    <div class="contact-card">
                        <h4><i class="fas fa-credit-card"></i> Billing Department</h4>
                        <p>Email: <a href="mailto:billing@bidwheels.net">billing@bidwheels.net</a></p>
                        <p>Phone: +1 (555) 123-4567</p>
                        <p>Hours: Monday-Friday, 9AM - 6PM EST</p>
                    </div>
                    
                    <div class="info-box" style="margin-top: 20px;">
                        <i class="fas fa-clock"></i> <strong>Response Time:</strong> Our billing team typically responds within 24-48 hours during business days.
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

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