{% extends 'dating_app/base_dating.html' %}
{% load static %}

{% block title %}Contact Us | Ensolanka Dating{% endblock %}

{% block content %}

<style>
    .dating-contact-hero {
        position: relative;
        padding: 100px 0 90px;
        background:
            linear-gradient(
                135deg,
                rgba(42, 13, 31, 0.94) 0%,
                rgba(104, 18, 61, 0.90) 48%,
                rgba(194, 24, 91, 0.84) 100%
            ),
            url("{% static 'expat_life/images/dating_partner_hero.webp' %}") center center / cover no-repeat;
        color: #fff;
        overflow: hidden;
    }

    .dating-contact-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 18% 20%, rgba(255, 193, 7, 0.16), transparent 30%),
            radial-gradient(circle at 85% 82%, rgba(255, 255, 255, 0.10), transparent 32%);
        z-index: 0;
    }

    .dating-contact-hero .container {
        position: relative;
        z-index: 1;
    }

    .dating-contact-badge {
        display: inline-block;
        background: rgba(255, 193, 7, 0.18);
        color: #ffc107;
        border: 1px solid rgba(255, 193, 7, 0.38);
        padding: 8px 16px;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        margin-bottom: 18px;
    }

    .dating-contact-hero .hero-description {
        max-width: 720px;
        color: rgba(255, 255, 255, 0.90);
    }

    .dating-contact-hero .contact-info-list {
        margin-top: 28px;
    }

    .dating-contact-hero .contact-info-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 13px 16px;
        margin-bottom: 12px;
        border-radius: 16px;
        color: #fff;
        background: rgba(255, 255, 255, 0.11);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(8px);
    }

    .dating-contact-hero .contact-info-item i {
        color: #ffc107;
        font-size: 1.15rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .dating-contact-note-box {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        background: rgba(255, 193, 7, 0.16);
        border: 1px solid rgba(255, 193, 7, 0.32);
        color: #fff;
        border-radius: 18px;
        padding: 18px 20px;
        line-height: 1.7;
    }

    .dating-contact-note-box i {
        color: #ffc107;
        font-size: 1.35rem;
        margin-top: 2px;
        flex-shrink: 0;
    }

    .dating-contact-form-card {
        background: #fff;
        border-radius: 30px;
        overflow: hidden;
        box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
    }

    .dating-contact-form-header {
        padding: 30px 32px 24px;
        background: linear-gradient(135deg, #fff1f6 0%, #ffffff 100%);
        border-bottom: 1px solid #f2d7e3;
    }

    .dating-contact-form-header h3 {
        color: #2a0d1f;
    }

    .dating-contact-form-body {
        padding: 30px 32px 32px;
    }

    .dating-contact-form-body .form-label {
        font-weight: 700;
        color: #2a0d1f;
    }

    .dating-contact-form-body input,
    .dating-contact-form-body textarea,
    .dating-contact-form-body select {
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        padding: 0.85rem 1rem;
    }

    .dating-contact-form-body input:focus,
    .dating-contact-form-body textarea:focus,
    .dating-contact-form-body select:focus {
        border-color: #c2185b;
        box-shadow: 0 0 0 0.25rem rgba(194, 24, 91, 0.12);
    }

    .dating-contact-form-footer {
        margin-top: 24px;
    }

    .dating-support-strip {
        margin-top: -34px;
        position: relative;
        z-index: 3;
    }

    .dating-support-strip-card {
        background: #fff;
        border-radius: 24px;
        padding: 24px 26px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
        height: 100%;
    }

    .dating-support-strip-card i {
        color: #c2185b;
        font-size: 1.7rem;
        margin-bottom: 12px;
        display: inline-block;
    }

    .dating-support-strip-card h5 {
        color: #2a0d1f;
        font-weight: 800;
    }

    .dating-contact-section-heading .section-mini-title {
        color: #c2185b;
    }

    .dating-contact-card {
        background: #fff;
        border-radius: 24px;
        padding: 28px;
        height: 100%;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    }

    .dating-contact-card .icon-wrap {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        background: #fff1f6;
        color: #c2185b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.55rem;
        margin-bottom: 18px;
    }

    .dating-contact-card h5 {
        font-weight: 800;
        color: #2a0d1f;
        margin-bottom: 12px;
    }

    .dating-contact-card p,
    .dating-contact-card a {
        line-height: 1.75;
    }

    .dating-contact-card a {
        text-decoration: none;
    }

    .dating-contact-card a:hover {
        text-decoration: underline;
    }

    .why-contact-card {
        background: #fff;
        border-radius: 24px;
        padding: 28px;
        height: 100%;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
        transition: 0.25s ease;
    }

    .why-contact-card:hover {
        transform: translateY(-4px);
    }

    .why-contact-card .icon-wrap {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        background: #fff1f6;
        color: #c2185b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.55rem;
        margin-bottom: 18px;
    }

    .why-contact-card h5 {
        color: #2a0d1f;
        font-weight: 800;
    }

    .dating-path-card {
        background: #fff;
        border-radius: 26px;
        padding: 30px;
        text-align: center;
        height: 100%;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    }

    .dating-path-number {
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #c2185b;
        color: #fff;
        font-weight: 800;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 18px;
    }

    .dating-final-cta-section {
        background: #f8fafc;
    }

    .dating-final-cta-box {
        background: linear-gradient(135deg, #2a0d1f 0%, #c2185b 100%);
        border-radius: 32px;
        padding: 56px 34px;
        box-shadow: 0 26px 60px rgba(42, 13, 31, 0.22);
    }

    @media (max-width: 991.98px) {
        .dating-contact-hero {
            padding: 80px 0 70px;
        }

        .dating-support-strip {
            margin-top: 0;
            padding-top: 30px;
        }
    }

    @media (max-width: 575.98px) {
        .dating-contact-form-header,
        .dating-contact-form-body {
            padding-left: 22px;
            padding-right: 22px;
        }

        .dating-final-cta-box {
            padding: 42px 22px;
        }
    }
</style>


<!-- HERO -->
<section class="dating-contact-hero">
    <div class="container">
        <div class="row align-items-center g-5">

            <!-- LEFT CONTENT -->
            <div class="col-lg-6">
                <span class="dating-contact-badge">Get in Touch</span>

                <h1 class="display-5 fw-bold mb-3">
                    Contact Ensolanka Dating
                </h1>

                <p class="lead hero-description mb-4">
                    Have questions about becoming a Local Dating Partner, profile visibility,
                    Guest interest, confirmation fees, or dating-event arrangements?
                    Send us a message and our team will guide you.
                </p>

                <div class="contact-info-list">
                    <div class="contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Ask how Local Dating Partner registration and profile review work</span>
                    </div>

                    <div class="contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Get clarity about Featured Profile access and private Guest profiles</span>
                    </div>

                    <div class="contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Understand Mutual Interest, confirmation fee, and contact unlocking</span>
                    </div>

                    <div class="contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Ask about guided dating arrangements and optional Dating Host support</span>
                    </div>
                </div>

                <div class="dating-contact-note-box mt-4">
                    <i class="bi bi-info-circle-fill"></i>
                    <div>
                        You can use this page for general questions, account support, profile concerns,
                        payment clarification, or help understanding the next step in the Local Dating Partner journey.
                    </div>
                </div>
            </div>


            <!-- FORM -->
            <div class="col-lg-6">
                <div class="dating-contact-form-card">
                    <div class="dating-contact-form-header">
                        <h3 class="fw-bold mb-2">Send a Message</h3>
                        <p class="text-muted mb-0">
                            Tell us what you would like to know, and our team will review your message carefully.
                        </p>
                    </div>

                    <form method="post" class="dating-contact-form-body">
                        {% csrf_token %}

                        <div class="row g-3">
                            <div class="col-md-6">
                                <label for="{{ form.name.id_for_label }}" class="form-label">Your Name</label>
                                {{ form.name }}
                            </div>

                            <div class="col-md-6">
                                <label for="{{ form.email.id_for_label }}" class="form-label">Email Address</label>
                                {{ form.email }}
                            </div>

                            <div class="col-md-12">
                                <label for="{{ form.subject.id_for_label }}" class="form-label">Subject</label>
                                {{ form.subject }}
                            </div>

                            <div class="col-md-12">
                                <label for="{{ form.message.id_for_label }}" class="form-label">Message</label>
                                {{ form.message }}
                            </div>
                        </div>

                        <div class="dating-contact-form-footer">
                            <button type="submit" class="btn btn-dark btn-lg w-100">
                                <i class="bi bi-send-fill me-2"></i>
                                Send Message
                            </button>

                            <p class="small text-muted text-center mt-3 mb-0">
                                We will review your message and respond as soon as possible.
                            </p>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</section>


<!-- QUICK SUPPORT STRIP -->
<section class="dating-support-strip">
    <div class="container">
        <div class="row g-4">

            <div class="col-md-4">
                <div class="dating-support-strip-card text-center">
                    <i class="bi bi-person-heart"></i>
                    <h5>New Partner Questions</h5>
                    <p class="text-muted mb-0">
                        Ask about signup, profile visibility, and how to begin safely.
                    </p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="dating-support-strip-card text-center">
                    <i class="bi bi-heart-arrow"></i>
                    <h5>Interest & Match Support</h5>
                    <p class="text-muted mb-0">
                        Get help understanding Guest interest, Mutual Interest, and next-stage access.
                    </p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="dating-support-strip-card text-center">
                    <i class="bi bi-calendar-heart-fill"></i>
                    <h5>Dating Arrangement Help</h5>
                    <p class="text-muted mb-0">
                        Ask about confirmation status, dating events, and Dating Host coordination.
                    </p>
                </div>
            </div>

        </div>
    </div>
</section>


<!-- CONTACT DETAILS -->
<section class="py-5 bg-light">
    <div class="container">
        <div class="section-heading dating-contact-section-heading text-center mb-5">
            <span class="section-mini-title">Contact Details</span>
            <h2 class="fw-bold">Reach Ensolanka Directly</h2>
            <p class="text-muted">
                Multiple ways to contact our team for platform guidance, partnership inquiries, or support.
            </p>
        </div>

        <div class="row g-4">

            <!-- USA Office -->
            <div class="col-md-6 col-lg-3">
                <div class="dating-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-building"></i>
                    </div>

                    <h5>USA Registered Address</h5>

                    <p class="text-muted small mb-0">
                        Ensolanka LLC<br>
                        30 N Gould St Ste R,<br>
                        Sheridan, WY 82801, USA
                    </p>
                </div>
            </div>

            <!-- Sri Lanka Office -->
            <div class="col-md-6 col-lg-3">
                <div class="dating-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-geo-alt-fill"></i>
                    </div>

                    <h5>Asia Regional Office</h5>

                    <p class="text-muted small mb-0">
                        Ensolanka Holdings (Pvt) Ltd<br>
                        No. 190/1/3/B, Bank Building,<br>
                        Main Road, Wennappuwa,<br>
                        Sri Lanka
                    </p>
                </div>
            </div>

            <!-- Phone & WhatsApp -->
            <div class="col-md-6 col-lg-3">
                <div class="dating-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-telephone-fill"></i>
                    </div>

                    <h5>Phone &amp; WhatsApp</h5>

                    <p class="text-muted small mb-0">
                        <strong>WhatsApp (USA)</strong><br>
                        <a href="https://wa.me/13072182541" target="_blank" class="text-dark">
                            +1 307 218-2541
                        </a>
                        <br><br>

                        <strong>WhatsApp (Asia)</strong><br>
                        <a href="https://wa.me/94716978355" target="_blank" class="text-dark">
                            +94 71 697 8355
                        </a>
                    </p>
                </div>
            </div>

            <!-- Email -->
            <div class="col-md-6 col-lg-3">
                <div class="dating-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-envelope-fill"></i>
                    </div>

                    <h5>Email</h5>

                    <p class="text-muted small mb-0">
                        <a href="mailto:info@ensolanka.com" class="text-dark d-block mb-2">
                            info@ensolanka.com
                        </a>

                        <a href="mailto:ds@ensolanka.com" class="text-dark d-block mb-2">
                            ds@ensolanka.com
                        </a>

                        <a href="mailto:support@ensolanka.com" class="text-dark d-block">
                            support@ensolanka.com
                        </a>
                    </p>
                </div>
            </div>

        </div>

        <!-- Social Media -->
        <div class="text-center mt-5">
            <p class="text-muted mb-3">Follow us on social media</p>

            <div class="d-flex justify-content-center gap-3 flex-wrap">
                <a href="https://web.facebook.com/ensolanka" target="_blank"
                   class="btn btn-outline-dark px-4" aria-label="Facebook">
                    <i class="bi bi-facebook me-2"></i>Facebook
                </a>

                <a href="https://www.youtube.com/@ensolanka/" target="_blank"
                   class="btn btn-outline-dark px-4" aria-label="YouTube">
                    <i class="bi bi-youtube me-2"></i>YouTube
                </a>

                <a href="https://www.linkedin.com/company/ensolanka-llc/" target="_blank"
                   class="btn btn-outline-dark px-4" aria-label="LinkedIn">
                    <i class="bi bi-linkedin me-2"></i>LinkedIn
                </a>

                <a href="https://www.instagram.com/ensolanka/" target="_blank"
                   class="btn btn-outline-dark px-4" aria-label="Instagram">
                    <i class="bi bi-instagram me-2"></i>Instagram
                </a>

                <a href="https://x.com/ensolanka_com" target="_blank"
                   class="btn btn-outline-dark px-4" aria-label="X / Twitter">
                    <i class="bi bi-twitter-x me-2"></i>X (Twitter)
                </a>

                <a href="https://www.tiktok.com/@ensolanka.com" target="_blank"
                   class="btn btn-outline-dark px-4" aria-label="TikTok">
                    <i class="bi bi-tiktok me-2"></i>TikTok
                </a>
            </div>
        </div>

    </div>
</section>


<!-- WHY CONTACT -->
<section class="py-5 bg-white">
    <div class="container">
        <div class="section-heading dating-contact-section-heading text-center mb-5">
            <span class="section-mini-title">Why Contact Us</span>
            <h2 class="fw-bold">We Can Help You Understand the Dating Partner Process</h2>
            <p class="text-muted">
                Whether you are new to the platform or already have a profile, our team can help clarify the next step.
            </p>
        </div>

        <div class="row g-4">

            <div class="col-md-6 col-lg-3">
                <div class="why-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-person-plus-fill"></i>
                    </div>

                    <h5>Signup Guidance</h5>
                    <p class="text-muted mb-0">
                        Ask how to register, prepare your profile, and complete your Dating Partner listing correctly.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="why-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-stars"></i>
                    </div>

                    <h5>Featured Profile Questions</h5>
                    <p class="text-muted mb-0">
                        Understand the USD 5 Featured Profile option, visibility benefits, and private Guest profile access.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="why-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-lock-fill"></i>
                    </div>

                    <h5>Confirmation & Contact Access</h5>
                    <p class="text-muted mb-0">
                        Get clarity about the Profile Confirmation Fee, Mutual Interest, and when contact details can unlock.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="why-contact-card">
                    <div class="icon-wrap">
                        <i class="bi bi-calendar-heart-fill"></i>
                    </div>

                    <h5>Dating Event Support</h5>
                    <p class="text-muted mb-0">
                        Ask how Ensolanka may arrange safer dating events and when a Dating Host may be selected.
                    </p>
                </div>
            </div>

        </div>
    </div>
</section>


<!-- OTHER OPTIONS -->
<section class="py-5 bg-light">
    <div class="container">
        <div class="section-heading dating-contact-section-heading text-center mb-5">
            <span class="section-mini-title">Useful Next Steps</span>
            <h2 class="fw-bold">Choose the Right Path for You</h2>
            <p class="text-muted">
                Continue with the option that best matches where you are in the Local Dating Partner journey.
            </p>
        </div>

        <div class="row g-4">

            <div class="col-md-4">
                <div class="dating-path-card">
                    <div class="dating-path-number">01</div>

                    {% if request.user.is_authenticated and request.user.dating_profile %}
                        <h5 class="fw-bold">My Dating Dashboard</h5>
                        <p class="text-muted">
                            Manage your profile, check interest requests, and review payment or confirmation status.
                        </p>
                        <a href="{% url 'dating_app:dating_partner_dashboard' %}"
                           class="btn btn-outline-dark mt-3">
                            Open Dashboard
                        </a>
                    {% else %}
                        <h5 class="fw-bold">Become a Dating Partner</h5>
                        <p class="text-muted">
                            Create your Local Dating Partner profile and begin your guided connection journey.
                        </p>
                        <a href="{% url 'dating_app:partner_register' %}"
                           class="btn btn-outline-dark mt-3">
                            Start Registration
                        </a>
                    {% endif %}
                </div>
            </div>

            <div class="col-md-4">
                <div class="dating-path-card">
                    <div class="dating-path-number">02</div>

                    <h5 class="fw-bold">Browse Guest Profiles</h5>
                    <p class="text-muted">
                        Explore available Guest profiles and learn how the platform supports Mutual Interest.
                    </p>

                    <a href="{% url 'dating_app:public_foreigners_list' %}"
                       class="btn btn-outline-dark mt-3">
                        View Guests
                    </a>
                </div>
            </div>

            <div class="col-md-4">
                <div class="dating-path-card">
                    <div class="dating-path-number">03</div>

                    <h5 class="fw-bold">Read the FAQ</h5>
                    <p class="text-muted">
                        Review common questions about fees, contact access, dating events, and featured visibility.
                    </p>

                    <a href="{% url 'dating_app:faq_page' %}"
                       class="btn btn-outline-dark mt-3">
                        View FAQ
                    </a>
                </div>
            </div>

        </div>
    </div>
</section>


<!-- CTA -->
<section class="dating-final-cta-section py-5">
    <div class="container">
        <div class="dating-final-cta-box text-center text-white">
            <h2 class="fw-bold mb-3">
                Ready to Take the Next Step?
            </h2>

            <p class="lead mb-4">
                Contact us for guidance, create your Local Dating Partner profile,
                or explore Guest profiles already available through the platform.
            </p>

            <div class="d-flex flex-wrap justify-content-center gap-3">

                {% if request.user.is_authenticated and request.user.dating_profile %}
                    <a href="{% url 'dating_app:dating_partner_dashboard' %}"
                       class="btn btn-warning btn-lg px-4">
                        My Dating Dashboard
                    </a>
                {% else %}
                    <a href="{% url 'dating_app:partner_register' %}"
                       class="btn btn-warning btn-lg px-4">
                        Become a Dating Partner
                    </a>
                {% endif %}

                <a href="{% url 'dating_app:public_foreigners_list' %}"
                   class="btn btn-light btn-lg px-4">
                    View Guest Profiles
                </a>

                <a href="{% url 'dating_app:faq_page' %}"
                   class="btn btn-outline-light btn-lg px-4">
                    Read FAQ
                </a>

            </div>
        </div>
    </div>
</section>

{% endblock %}