����JFIF��`�`�����Viewing File: /home/u820193700/domains/spiti2026im.in/public_html/api/email_template.php
<?php
// api/email_template.php

function get_registration_template($name, $type, $details = []) {
    $title = ($type === 'full') ? "Registration Successful" : "Adventure Awaits";
    $subtitle = ($type === 'full') ? "You're officially on the roster for the High Quest." : "Thank you for showing interest in the Spiti Valley Expedition.";
    
    $details_html = '';
    if ($type === 'full') {
        $details_html = '
        <div style="background-color: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 20px; margin: 20px 0;">
            <h3 style="color: #F59E0B; margin-top: 0; font-size: 16px; text-transform: uppercase; letter-spacing: 1px;">Your Registration Details</h3>
            <table style="width: 100%; color: #ffffff; font-size: 14px;">
                <tr><td style="padding: 5px 0; color: rgba(255,255,255,0.5);">Name:</td><td style="text-align: right;">'.htmlspecialchars($name).'</td></tr>
                <tr><td style="padding: 5px 0; color: rgba(255,255,255,0.5);">Bike:</td><td style="text-align: right;">'.htmlspecialchars($details['bike'] ?? 'N/A').'</td></tr>
                <tr><td style="padding: 5px 0; color: rgba(255,255,255,0.5);">T-Shirt Size:</td><td style="text-align: right;">'.htmlspecialchars($details['tshirt'] ?? 'N/A').'</td></tr>
                <tr><td style="padding: 5px 0; color: rgba(255,255,255,0.5);">Blood Group:</td><td style="text-align: right;">'.htmlspecialchars($details['blood'] ?? 'N/A').'</td></tr>
            </table>
        </div>';
    }

    $cta_text = ($type === 'full') ? "View Expedition Map" : "Explore Itinerary";
    $cta_url = "https://spiti2026im.in";

    return '
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Outfit:wght@500;700&display=swap");
            body { font-family: "Inter", sans-serif; margin: 0; padding: 0; background-color: #0D1B2E; color: #ffffff; }
            .container { max-width: 600px; margin: 0 auto; background-color: #0D1B2E; border: 1px solid #1e293b; }
            .header { background: linear-gradient(180deg, #0D1B2E 0%, #1a2a3a 100%); padding: 40px 20px; text-align: center; border-bottom: 4px solid #F59E0B; }
            .content { padding: 40px 30px; line-height: 1.6; }
            .footer { padding: 30px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); background-color: #08111d; }
            h1 { font-family: "Outfit", sans-serif; color: #F59E0B; font-size: 28px; margin-bottom: 10px; }
            p { font-size: 16px; color: rgba(255,255,255,0.8); }
            .btn { display: inline-block; padding: 14px 30px; background-color: #F59E0B; color: #ffffff; text-decoration: none; border-radius: 8px; font-weight: 600; margin-top: 20px; font-family: "Outfit", sans-serif; }
            .highlight { color: #F59E0B; font-weight: 600; }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="header">
                <div style="font-size: 12px; color: #F59E0B; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 5px;">Avahan Motors</div>
                <div style="font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase;">Spiti Valley Expedition 2026</div>
            </div>
            <div class="content">
                <h1>'.$title.'</h1>
                <p>Hi <span class="highlight">'.htmlspecialchars($name).'</span>,</p>
                <p>'.$subtitle.'</p>
                
                '.$details_html.'

                <p>Our team will reach out to you within <span class="highlight">24 hours</span> to discuss the next steps, including the briefing documents and machine preparation guidelines.</p>
                
                <div style="text-align: center;">
                    <a href="'.$cta_url.'" class="btn">'.$cta_text.'</a>
                </div>

                <p style="margin-top: 40px;">Ride Hard, Ride Safe!</p>
                <p style="font-weight: 600; color: #F59E0B;">The Avahan Crew</p>
            </div>
            <div class="footer">
                <p>📍 Bengaluru &bull; Chandigarh &bull; Spiti</p>
                <p>&copy; 2026 Avahan Motors Pvt Ltd. All rights reserved.</p>
            </div>
        </div>
    </body>
    </html>';
}
Back to Directory �������}�!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������������� ������w�!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������ ��?��_��+��?��(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(���(�����