{% extends 'expat_life/base.html' %}
{% block title %}Access Pending{% endblock %}

{% block content %}

<style>
    /* =========================================================
       ACCESS PENDING PAGE - PREMIUM LIVE IN SRI LANKA THEME
    ========================================================= */

    :root {
        --lis-deep: #07131c;
        --lis-navy: #0b2638;
        --lis-blue: #0d6efd;
        --lis-blue-dark: #0b3d91;
        --lis-teal: #0f766e;
        --lis-gold: #ffc107;
        --lis-gold-light: #ffd45f;
        --lis-soft-blue: #f5f9ff;
        --lis-white: #ffffff;
        --lis-text: #102033;
        --lis-muted: #64748b;
        --lis-border: rgba(15, 42, 64, 0.10);
        --lis-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
        --lis-shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.16);
    }

    .access-pending-section {
        position: relative;
        overflow: hidden;
        min-height: 78vh;
        display: flex;
        align-items: center;
        background:
            radial-gradient(circle at 10% 12%, rgba(255, 193, 7, 0.13), transparent 28%),
            radial-gradient(circle at 88% 16%, rgba(13, 110, 253, 0.10), transparent 30%),
            radial-gradient(circle at 82% 86%, rgba(15, 118, 110, 0.12), transparent 32%),
            linear-gradient(180deg, #f5f9ff 0%, #ffffff 100%);
        padding: 90px 0;
    }

    .access-pending-section::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        right: -190px;
        top: -190px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.12);
        pointer-events: none;
    }

    .access-pending-section::after {
        content: "";
        position: absolute;
        width: 360px;
        height: 360px;
        left: -170px;
        bottom: -180px;
        border-radius: 50%;
        background: rgba(13, 110, 253, 0.08);
        pointer-events: none;
    }

    .access-pending-wrap {
        position: relative;
        z-index: 2;
        max-width: 860px;
        margin: 0 auto;
    }

    .success-card {
        position: relative;
        overflow: hidden;
        background:
            radial-gradient(circle at 90% 10%, rgba(255, 193, 7, 0.14), transparent 32%),
            linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
        border: 1px solid rgba(15, 42, 64, 0.08);
        border-radius: 34px;
        padding: 56px 42px;
        box-shadow: var(--lis-shadow-strong);
    }

    .success-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 6px;
        background: linear-gradient(90deg, var(--lis-gold), var(--lis-teal), var(--lis-blue));
    }

    .success-card::after {
        content: "";
        position: absolute;
        width: 210px;
        height: 210px;
        right: -105px;
        bottom: -105px;
        border-radius: 50%;
        background: rgba(15, 118, 110, 0.08);
        pointer-events: none;
    }

    .success-icon-wrap {
        position: relative;
        z-index: 2;
        width: 94px;
        height: 94px;
        margin: 0 auto 24px;
        border-radius: 30px;
        background:
            radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.75), transparent 28%),
            linear-gradient(135deg, var(--lis-gold-light), var(--lis-gold));
        color: var(--lis-deep);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 2.65rem;
        box-shadow:
            0 18px 38px rgba(255, 193, 7, 0.28),
            0 0 0 10px rgba(255, 193, 7, 0.10);
    }

    .section-mini-title {
        position: relative;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 7px 15px;
        border-radius: 999px;
        background: rgba(15, 118, 110, 0.09);
        border: 1px solid rgba(15, 118, 110, 0.14);
        color: var(--lis-teal);
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.075em;
        margin-bottom: 16px;
    }

    .section-mini-title::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--lis-gold);
        box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.14);
    }

    .success-card h1 {
        position: relative;
        z-index: 2;
        color: var(--lis-text);
        font-weight: 950;
        letter-spacing: -0.035em;
        line-height: 1.12;
        font-size: clamp(2.1rem, 4vw, 3.2rem);
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    .success-card .lead {
        position: relative;
        z-index: 2;
        max-width: 690px;
        margin-left: auto;
        margin-right: auto;
        color: var(--lis-muted) !important;
        line-height: 1.78;
        font-size: 1.08rem;
    }

    .access-note-box {
        position: relative;
        z-index: 2;
        max-width: 660px;
        margin: 28px auto 0;
        padding: 17px 18px;
        border-radius: 20px;
        background:
            linear-gradient(135deg, rgba(255, 193, 7, 0.11), rgba(15, 118, 110, 0.06));
        border: 1px solid rgba(255, 193, 7, 0.18);
        color: #475569;
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .access-action-row {
        position: relative;
        z-index: 2;
        margin-top: 32px;
    }

    .access-action-row .btn {
        border-radius: 999px;
        font-weight: 850;
        letter-spacing: 0.01em;
        padding: 0.85rem 1.6rem;
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
        transition: all 0.22s ease;
    }

    .access-action-row .btn-warning {
        background: linear-gradient(135deg, var(--lis-gold-light), var(--lis-gold));
        border: none;
        color: #231707;
    }

    .access-action-row .btn-warning:hover {
        background: linear-gradient(135deg, #ffe08a, var(--lis-gold));
        color: #231707;
        transform: translateY(-2px);
        box-shadow: 0 18px 34px rgba(255, 193, 7, 0.24);
    }

    .access-action-row .btn-dark {
        background: linear-gradient(135deg, var(--lis-deep), var(--lis-blue));
        border: none;
        color: #ffffff;
    }

    .access-action-row .btn-dark:hover {
        background: linear-gradient(135deg, var(--lis-deep), var(--lis-teal));
        transform: translateY(-2px);
        box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
    }

    @media (max-width: 767.98px) {
        .access-pending-section {
            padding: 60px 0;
            min-height: auto;
        }

        .success-card {
            border-radius: 28px;
            padding: 42px 24px;
        }

        .success-icon-wrap {
            width: 82px;
            height: 82px;
            border-radius: 26px;
            font-size: 2.25rem;
        }

        .access-action-row .btn {
            width: 100%;
        }
    }

    @media (max-width: 420px) {
        .success-card {
            padding: 36px 20px;
        }

        .success-card h1 {
            font-size: 2rem;
        }
    }
</style>

<section class="access-pending-section">
    <div class="container">
        <div class="access-pending-wrap">
            <div class="success-card text-center">
                <div class="success-icon-wrap">
                    <i class="bi bi-clock-history"></i>
                </div>

                <span class="section-mini-title">Access Pending</span>

                <h1 class="mb-3">Private Listings Are Not Available Yet</h1>

                <p class="lead mb-0">
                    Your account does not currently have access to private listings.
                    This may require confirmation or additional approval before you can view selected private opportunities.
                </p>

                <div class="access-note-box">
                    <i class="bi bi-shield-check me-2"></i>
                    We keep private listings protected so that verified guests, partners, and service providers can connect with confidence.
                </div>

                <div class="access-action-row d-flex flex-wrap justify-content-center gap-3">
                    <a href="{% url 'expat_life:foreigner_dashboard' %}" class="btn btn-warning btn-lg px-4">
                        <i class="bi bi-arrow-left-circle me-2"></i>
                        Back to Dashboard
                    </a>

                    <a href="{% url 'expat_life:contact_page' %}" class="btn btn-dark btn-lg px-4">
                        <i class="bi bi-chat-dots me-2"></i>
                        Contact Us
                    </a>
                </div>
            </div>
        </div>
    </div>
</section>

{% endblock %}