<?php 
$page_title = "Thank You - Message Sent Successfully | Shubank";
$page_description = "Thank you for contacting Shubank. Your message has been received and our team will get back to you soon.";
$canonical_url = "https://shubank.co/thankyou.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo $page_title; ?></title>
    <meta name="description" content="<?php echo $page_description; ?>">
    <link rel="canonical" href="<?php echo $canonical_url; ?>">
    <meta name="robots" content="noindex, follow">
    <link rel="stylesheet" href="style.css">
    
    <!-- Prevent direct access without referrer -->
    <?php
    $allowed_referrers = ['contact.php', 'users.php', 'login.php'];
    $referrer = isset($_SERVER['HTTP_REFERER']) ? basename(parse_url($_SERVER['HTTP_REFERER'], PHP_URL_PATH)) : '';
    
    if (!in_array($referrer, $allowed_referrers) && !isset($_GET['test'])) {
        header('Location: index.php');
        exit;
    }
    ?>
</head>
<body>

<?php include 'header.php'; ?>

<!-- Thank You Hero Section -->
<section class="thankyou-hero">
    <div class="container">
        <div class="thankyou-content">
            <div class="success-icon">
                <div class="checkmark">
                    <svg width="80" height="80" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <circle cx="12" cy="12" r="10" stroke="#27ae60" stroke-width="2" fill="#27ae60" opacity="0.1"/>
                        <path d="m9 12 2 2 4-4" stroke="#27ae60" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
                    </svg>
                </div>
            </div>
            
            <h1>Thank You!</h1>
            <h2>Your Message Has Been Sent Successfully</h2>
            
            <p class="main-message">
                We've received your message and our team will get back to you within 24 hours. 
                Your inquiry is important to us and we appreciate your interest in Shubank.
            </p>
            
            <div class="next-steps">
                <h3>What Happens Next?</h3>
                <div class="steps-grid">
                    <div class="step">
                        <div class="step-number">1</div>
                        <h4>Message Received</h4>
                        <p>Your inquiry has been safely received by our support team</p>
                    </div>
                    
                    <div class="step">
                        <div class="step-number">2</div>
                        <h4>Team Review</h4>
                        <p>Our experts will review your message and prepare a response</p>
                    </div>
                    
                    <div class="step">
                        <div class="step-number">3</div>
                        <h4>Quick Response</h4>
                        <p>You'll receive a detailed reply within 24 hours</p>
                    </div>
                </div>
            </div>
            
            <div class="contact-info">
                <h3>Need Immediate Assistance?</h3>
                <div class="contact-options">
                    <a href="https://wa.me/919876543210" class="contact-option whatsapp" target="_blank">
                        <span class="icon">💬</span>
                        <div>
                            <h4>WhatsApp Support</h4>
                            <p>Get instant help via WhatsApp</p>
                        </div>
                    </a>
                    
                    <a href="tel:+919876543210" class="contact-option phone">
                        <span class="icon">📞</span>
                        <div>
                            <h4>Call Us Now</h4>
                            <p>+91 98765 43210</p>
                        </div>
                    </a>
                    
                    <a href="mailto:support@shubank.co" class="contact-option email">
                        <span class="icon">📧</span>
                        <div>
                            <h4>Email Support</h4>
                            <p>support@shubank.co</p>
                        </div>
                    </a>
                </div>
            </div>
            
            <div class="action-buttons">
                <a href="index.php" class="btn-primary">Return to Homepage</a>
                <a href="users.php" class="btn-secondary">Start Playing</a>
                <a href="results.php" class="btn-secondary">Check Results</a>
            </div>
        </div>
    </div>
</section>

<!-- FAQ Section -->
<section class="quick-faq">
    <div class="container">
        <h3>Frequently Asked Questions</h3>
        <div class="faq-grid">
            <div class="faq-item">
                <h4>How long does it take to get a response?</h4>
                <p>We typically respond within 24 hours during business days. For urgent matters, use our WhatsApp support for instant assistance.</p>
            </div>
            
            <div class="faq-item">
                <h4>What if I don't receive a reply?</h4>
                <p>Please check your spam folder first. If you still don't see our reply after 48 hours, contact us again or use WhatsApp support.</p>
            </div>
            
            <div class="faq-item">
                <h4>Can I track my inquiry status?</h4>
                <p>Currently, inquiry tracking is available through WhatsApp support. We're working on an online portal for this feature.</p>
            </div>
            
            <div class="faq-item">
                <h4>Is my information secure?</h4>
                <p>Yes, all contact information is encrypted and stored securely. We never share your personal details with third parties.</p>
            </div>
        </div>
    </div>
</section>

<style>
.thankyou-hero {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.thankyou-content {
    max-width: 800px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 30px;
}

.checkmark {
    animation: checkmark-bounce 0.6s ease-in-out;
}

@keyframes checkmark-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.thankyou-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.thankyou-hero h2 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.main-message {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.next-steps {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.next-steps h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.step {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: white;
    color: #27ae60;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px;
}

.step h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.step p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-info {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-option:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.contact-option .icon {
    font-size: 2rem;
}

.contact-option h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-option p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: white;
    color: #27ae60;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #27ae60;
}

.quick-faq {
    padding: 80px 0;
    background: #f8f9fa;
}

.quick-faq h3 {
    text-align: center;
    font-size: 2rem;
    color: #005c97;
    margin-bottom: 50px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-item h4 {
    color: #005c97;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .thankyou-hero {
        padding: 60px 0;
    }
    
    .thankyou-hero h1 {
        font-size: 2rem;
    }
    
    .thankyou-hero h2 {
        font-size: 1.2rem;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 250px;
        text-align: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
</style>

<?php include 'footer.php'; ?>
</body>
</html>