{% extends 'hosting_app/base_hosting.html' %}
{% load static %}

{% block title %}Contact Us | Host in Sri Lanka{% endblock %}

{% block content %}

<style>
    /* =========================================================
       HOSTING CONTACT PAGE - PREMIUM THEME
    ========================================================= */

    .hosting-contact-hero {
        position: relative;
        min-height: 720px;
        display: flex;
        align-items: center;
        overflow: hidden;
        background-color: #2d1716;
    }

    .hosting-contact-hero-bg {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                90deg,
                rgba(45, 23, 22, 0.95) 0%,
                rgba(45, 23, 22, 0.86) 40%,
                rgba(116, 49, 41, 0.70) 70%,
                rgba(116, 49, 41, 0.58) 100%
            ),
            url("{% static 'expat_life/images/hosting_contact_hero.webp' %}") center center / cover no-repeat;
        transform: scale(1.03);
        z-index: 0;
    }

    .hosting-contact-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 18% 35%, rgba(255, 193, 7, 0.20), transparent 34%),
            radial-gradient(circle at 82% 65%, rgba(255, 255, 255, 0.10), transparent 35%);
        z-index: 1;
        pointer-events: none;
    }

    .hosting-contact-hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .hosting-contact-badge {
        display: inline-block;
        background: rgba(255, 193, 7, 0.18);
        color: #ffe7aa;
        border: 1px solid rgba(255, 193, 7, 0.38);
        padding: 8px 16px;
        border-radius: 50px;
        font-weight: 800;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        backdrop-filter: blur(10px);
    }

    .hosting-contact-hero h1 {
        color: #ffffff;
        line-height: 1.1;
        letter-spacing: -0.035em;
    }

    .hosting-contact-hero .lead {
        color: rgba(255, 255, 255, 0.88);
    }

    .hosting-contact-hero-copy {
        color: rgba(255, 255, 255, 0.80);
        font-size: 1.03rem;
        line-height: 1.75;
    }

    .hosting-contact-info-list {
        display: grid;
        gap: 14px;
        margin-top: 28px;
    }

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

    .hosting-contact-info-item i {
        color: #ffe7aa;
        font-size: 1.2rem;
        margin-top: 1px;
    }

    .hosting-contact-note-box {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
        border-radius: 20px;
        margin-top: 24px;
        background: rgba(255, 193, 7, 0.14);
        border: 1px solid rgba(255, 193, 7, 0.34);
        color: #fff;
        backdrop-filter: blur(8px);
        line-height: 1.65;
    }

    .hosting-contact-note-box i {
        color: #ffe7aa;
        font-size: 1.35rem;
        margin-top: 2px;
    }

    .hosting-contact-form-card {
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.98);
        overflow: hidden;
        box-shadow: 0 28px 65px rgba(0, 0, 0, 0.28);
        border: 1px solid rgba(255, 255, 255, 0.42);
    }

    .hosting-contact-form-header {
        padding: 30px 32px 24px;
        background: linear-gradient(135deg, #ffc107 0%, #d88918 100%);
    }

    .hosting-contact-form-header h3 {
        color: #2d1716;
    }

    .hosting-contact-form-header p {
        color: rgba(45, 23, 22, 0.78) !important;
    }

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

    .hosting-contact-form-body .form-label {
        font-weight: 700;
        color: #2d1716;
        margin-bottom: 8px;
    }

    .hosting-contact-form-body input,
    .hosting-contact-form-body textarea,
    .hosting-contact-form-body select {
        width: 100%;
        border-radius: 16px;
        border: 1px solid #eadbc9;
        padding: 0.82rem 1rem;
        background: #fffaf5;
        color: #2d1716;
        transition: all 0.22s ease;
    }

    .hosting-contact-form-body input:focus,
    .hosting-contact-form-body textarea:focus,
    .hosting-contact-form-body select:focus {
        border-color: #a7601b;
        background: #fff;
        box-shadow: 0 0 0 0.22rem rgba(167, 96, 27, 0.14);
        outline: none;
    }

    .hosting-contact-form-body textarea {
        min-height: 145px;
        resize: vertical;
    }

    .hosting-contact-form-footer {
        margin-top: 28px;
    }

    .hosting-contact-submit-btn {
        background: linear-gradient(135deg, #321816 0%, #a7601b 100%);
        color: #fff;
        border: none;
        border-radius: 18px;
        padding: 0.95rem 1.4rem;
        font-weight: 800;
        transition: 0.25s ease;
    }

    .hosting-contact-submit-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(167, 96, 27, 0.24);
    }

    /* CONTACT DETAIL CARDS */
    .hosting-contact-details-section {
        background: #fffaf5;
    }

    .hosting-contact-detail-card {
        height: 100%;
        background: #fff;
        border-radius: 24px;
        padding: 28px;
        box-shadow: 0 16px 38px rgba(58, 30, 24, 0.07);
        border: 1px solid rgba(58, 30, 24, 0.06);
        transition: 0.25s ease;
    }

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

    .hosting-detail-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        background: #fff4e4;
        color: #a7601b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.55rem;
        margin-bottom: 18px;
    }

    .hosting-contact-detail-card h5 {
        font-weight: 800;
        margin-bottom: 12px;
        color: #2d1716;
    }

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

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

    .hosting-social-btn {
        border-radius: 999px;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
        font-weight: 700;
    }

    /* WHY CONTACT */
    .hosting-reason-card {
        height: 100%;
        background: #fff;
        border-radius: 24px;
        padding: 30px;
        box-shadow: 0 15px 35px rgba(58, 30, 24, 0.07);
        border: 1px solid rgba(58, 30, 24, 0.04);
        transition: 0.25s ease;
    }

    .hosting-reason-card:hover {
        transform: translateY(-4px);
    }

    .hosting-reason-icon {
        width: 62px;
        height: 62px;
        border-radius: 20px;
        background: linear-gradient(135deg, #fff4e4 0%, #ffe7aa 100%);
        color: #a7601b;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.65rem;
        margin-bottom: 18px;
    }

    /* OTHER OPTIONS */
    .hosting-path-card {
        height: 100%;
        background: #fff;
        border-radius: 24px;
        padding: 34px 28px;
        box-shadow: 0 16px 38px rgba(58, 30, 24, 0.07);
        border: 1px solid rgba(58, 30, 24, 0.04);
        transition: 0.25s ease;
    }

    .hosting-path-card:hover {
        transform: translateY(-4px);
    }

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

    /* FINAL CTA */
    .hosting-contact-final-section {
        background: #fff;
    }

    .hosting-contact-final-box {
        border-radius: 32px;
        padding: 58px 36px;
        background:
            linear-gradient(
                135deg,
                rgba(45, 23, 22, 0.97) 0%,
                rgba(116, 49, 41, 0.94) 56%,
                rgba(167, 96, 27, 0.94) 100%
            );
        box-shadow: 0 30px 65px rgba(45, 23, 22, 0.20);
    }

    @media (max-width: 991px) {
        .hosting-contact-hero {
            min-height: auto;
        }

        .hosting-contact-hero-bg {
            background-position: 68% center;
        }

        .hosting-contact-hero-content {
            padding-top: 70px;
            padding-bottom: 70px;
        }

        .hosting-contact-form-card {
            margin-top: 10px;
        }
    }

    @media (max-width: 767px) {
        .hosting-contact-form-header,
        .hosting-contact-form-body {
            padding: 24px;
        }

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


<!-- =========================================================
     HERO / CONTACT FORM
========================================================= -->
<section class="hosting-contact-hero">
    <div class="hosting-contact-hero-bg"></div>

    <div class="container hosting-contact-hero-content">
        <div class="row align-items-center g-5">

            <!-- LEFT CONTENT -->
            <div class="col-lg-6">
                <span class="hosting-contact-badge mb-3">
                    Hosting Partner Support
                </span>

                <h1 class="display-5 fw-bold mb-3">
                    Contact the Host in Sri Lanka Team
                </h1>

                <p class="lead mb-3">
                    Have questions about becoming a hosting partner, adding your venue,
                    creating event packages, meal plans, or celebration add-ons?
                </p>

                <p class="hosting-contact-hero-copy mb-4">
                    Send us a message and our team will guide you with the information you need
                    to move forward confidently as a Sri Lankan hosting partner in Ensolanka’s
                    travel and lifestyle ecosystem.
                </p>

                <div class="hosting-contact-info-list">
                    <div class="hosting-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Ask how to register as a Hosting Partner and present your venue</span>
                    </div>

                    <div class="hosting-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Get clarity on romantic date, proposal, anniversary, and celebration packages</span>
                    </div>

                    <div class="hosting-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Discuss venue approval, package review, public visibility, and featured options</span>
                    </div>

                    <div class="hosting-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Start the conversation before creating or managing your hosting listings</span>
                    </div>
                </div>

                <div class="hosting-contact-note-box">
                    <i class="bi bi-info-circle-fill"></i>
                    <div>
                        Already registered as a Hosting Partner? You can also continue through your
                        Host Dashboard to manage your profile and prepare your venue, package, meal,
                        and add-on service details.
                    </div>
                </div>
            </div>


            <!-- CONTACT FORM -->
            <div class="col-lg-6">
                <div class="hosting-contact-form-card">

                    <div class="hosting-contact-form-header">
                        <h3 class="fw-bold mb-2">Send a Message</h3>
                        <p class="mb-0">
                            Tell us how we can help with your hosting partner journey.
                        </p>
                    </div>

                    <form method="post" class="hosting-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="hosting-contact-form-footer">
                            <button type="submit" class="btn hosting-contact-submit-btn 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 get back to you as soon as possible.
                            </p>
                        </div>
                    </form>
                </div>
            </div>

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


<!-- =========================================================
     CONTACT DETAILS
========================================================= -->
<section class="py-5 hosting-contact-details-section">
    <div class="container">

        <div class="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 connect with our team for hosting partner support.
            </p>
        </div>

        <div class="row g-4">

            <!-- USA Office -->
            <div class="col-md-6 col-lg-3">
                <div class="hosting-contact-detail-card">
                    <div class="hosting-detail-icon">
                        <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="hosting-contact-detail-card">
                    <div class="hosting-detail-icon">
                        <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="hosting-contact-detail-card">
                    <div class="hosting-detail-icon">
                        <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="hosting-contact-detail-card">
                    <div class="hosting-detail-icon">
                        <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 Ensolanka 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 hosting-social-btn" 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 hosting-social-btn" 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 hosting-social-btn" 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 hosting-social-btn" 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 hosting-social-btn" aria-label="X / Twitter">
                    <i class="bi bi-twitter-x me-2"></i>X
                </a>

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

    </div>
</section>


<!-- =========================================================
     WHY CONTACT US
========================================================= -->
<section class="py-5 bg-white">
    <div class="container">

        <div class="section-heading text-center mb-5">
            <span class="section-mini-title">Why Contact Us</span>
            <h2 class="fw-bold">A Helpful First Step for Hosting Partners</h2>
            <p class="text-muted">
                Before signing up, adding a venue, or creating packages, you may want a few things clarified.
            </p>
        </div>

        <div class="row g-4">

            <div class="col-md-6 col-lg-3">
                <div class="hosting-reason-card">
                    <div class="hosting-reason-icon">
                        <i class="bi bi-chat-left-text-fill"></i>
                    </div>

                    <h5 class="fw-bold">General Questions</h5>
                    <p class="text-muted mb-0">
                        Ask how the hosting partner model works and what Ensolanka helps coordinate.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="hosting-reason-card">
                    <div class="hosting-reason-icon">
                        <i class="bi bi-building-check"></i>
                    </div>

                    <h5 class="fw-bold">Venue Suitability</h5>
                    <p class="text-muted mb-0">
                        Clarify whether your restaurant, hotel, villa, rooftop, garden, beach space, or hall fits the program.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="hosting-reason-card">
                    <div class="hosting-reason-icon">
                        <i class="bi bi-heart-fill"></i>
                    </div>

                    <h5 class="fw-bold">Event Package Ideas</h5>
                    <p class="text-muted mb-0">
                        Discuss date, proposal, anniversary, birthday, honeymoon, meal, and add-on service options.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="hosting-reason-card">
                    <div class="hosting-reason-icon">
                        <i class="bi bi-arrow-right-circle-fill"></i>
                    </div>

                    <h5 class="fw-bold">Next-Step Guidance</h5>
                    <p class="text-muted mb-0">
                        Find out whether signup, venue creation, package setup, or dashboard action should come next.
                    </p>
                </div>
            </div>

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


<!-- =========================================================
     OTHER USEFUL OPTIONS
========================================================= -->
<section class="py-5 hosting-contact-details-section">
    <div class="container">

        <div class="section-heading text-center mb-5">
            <span class="section-mini-title">Other Useful Options</span>
            <h2 class="fw-bold">Choose the Hosting Partner Path That Fits You</h2>
        </div>

        <div class="row g-4">

            <div class="col-md-4">
                <div class="hosting-path-card text-center">
                    <div class="hosting-path-number">01</div>

                    <h5 class="fw-bold">Explore Host in Sri Lanka</h5>

                    <p class="text-muted">
                        Learn how the hosting partner opportunity works and why celebration experiences matter.
                    </p>

                    <a href="{% url 'hosting_app:home_hosting' %}"
                       class="btn btn-outline-dark mt-3">
                        View Hosting Home
                    </a>
                </div>
            </div>


            <div class="col-md-4">
                <div class="hosting-path-card text-center">
                    <div class="hosting-path-number">02</div>

                    {% if is_host_user %}
                        <h5 class="fw-bold">My Host Dashboard</h5>

                        <p class="text-muted">
                            Open your dashboard to manage your profile and prepare your hosting presence.
                        </p>

                        <a href="{% url 'hosting_app:host_dashboard' %}"
                           class="btn btn-outline-dark mt-3">
                            My Host Dashboard
                        </a>
                    {% else %}
                        <h5 class="fw-bold">Hosting Partner Signup</h5>

                        <p class="text-muted">
                            Create your Hosting Partner account and begin preparing your venue presence.
                        </p>

                        <a href="{% url 'hosting_app:host_signup' %}"
                           class="btn btn-outline-dark mt-3">
                            Become a Hosting Partner
                        </a>
                    {% endif %}
                </div>
            </div>


            <div class="col-md-4">
                <div class="hosting-path-card text-center">
                    <div class="hosting-path-number">03</div>

                    {% if is_host_user %}
                        <h5 class="fw-bold">Complete Profile</h5>

                        <p class="text-muted">
                            Review and update your Hosting Partner profile before adding venues and packages.
                        </p>

                        <a href="{% url 'hosting_app:host_profile_page' %}"
                           class="btn btn-outline-dark mt-3">
                            My Host Profile
                        </a>
                    {% else %}
                        <h5 class="fw-bold">Host Sign In</h5>

                        <p class="text-muted">
                            Already registered? Sign in to continue managing your hosting partner account.
                        </p>

                        <a href="{% url 'hosting_app:host_login' %}"
                           class="btn btn-outline-dark mt-3">
                            Host Sign In
                        </a>
                    {% endif %}
                </div>
            </div>

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


<!-- =========================================================
     FINAL CTA
========================================================= -->
<section class="py-5 hosting-contact-final-section">
    <div class="container">
        <div class="hosting-contact-final-box text-center text-white">

            <h2 class="fw-bold mb-3">
                Ready to Present Your Venue to a Global Audience?
            </h2>

            <p class="lead mb-4">
                Contact us, register as a Hosting Partner, or sign in to continue your journey with
                Host in Sri Lanka by Ensolanka.
            </p>

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

                {% if is_host_user %}
                    <a href="{% url 'hosting_app:host_dashboard' %}"
                       class="btn btn-warning btn-lg px-4">
                        My Host Dashboard
                    </a>

                    <a href="{% url 'hosting_app:host_profile_page' %}"
                       class="btn btn-light btn-lg px-4">
                        My Host Profile
                    </a>
                {% else %}
                    <a href="{% url 'hosting_app:host_signup' %}"
                       class="btn btn-warning btn-lg px-4">
                        Become a Hosting Partner
                    </a>

                    <a href="{% url 'hosting_app:host_login' %}"
                       class="btn btn-light btn-lg px-4">
                        Host Sign In
                    </a>
                {% endif %}

                <a href="{% url 'hosting_app:about_us_hosting' %}"
                   class="btn btn-outline-light btn-lg px-4">
                    About Ensolanka
                </a>

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

{% endblock %}