{% extends 'service_partner_app/base_service_partner.html' %}
{% load static %}

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

{% block content %}

<style>
    .service-contact-hero {
        position: relative;
        min-height: 680px;
        background-color: #07161f;
        overflow: hidden;
    }

    .service-contact-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                100deg,
                rgba(7, 22, 31, 0.96) 0%,
                rgba(10, 45, 53, 0.90) 42%,
                rgba(13, 148, 136, 0.72) 100%
            ),
            url("{% static 'expat_life/images/service_partner_hero.webp' %}") center center / cover no-repeat;
        pointer-events: none;
        z-index: 0;
    }

    .service-contact-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 12% 18%, rgba(255, 193, 7, 0.18), transparent 28%),
            radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.10), transparent 28%);
        pointer-events: none;
        z-index: 1;
    }

    .service-contact-hero-content {
        position: relative;
        z-index: 2;
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .service-contact-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 18px;
        border-radius: 999px;
        background: rgba(255, 193, 7, 0.18);
        border: 1px solid rgba(255, 193, 7, 0.36);
        color: #ffd453;
        font-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .service-contact-title {
        font-size: clamp(2.6rem, 5vw, 4.3rem);
        line-height: 1.08;
        font-weight: 800;
        color: #fff;
    }

    .service-contact-lead {
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.88);
        max-width: 700px;
    }

    .service-contact-points {
        display: grid;
        gap: 14px;
    }

    .service-contact-point {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        padding: 16px 18px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(10px);
        color: #fff;
    }

    .service-contact-point i {
        color: #ffc107;
        font-size: 1.25rem;
        margin-top: 2px;
    }

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

    .service-contact-note i {
        color: #ffc107;
        font-size: 1.3rem;
        margin-top: 2px;
    }

    .service-contact-form-card {
        background: #fff;
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 32px 70px rgba(0, 0, 0, 0.30);
    }

    .service-contact-form-header {
        padding: 32px 34px 26px;
        background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #0d1f2a 100%);
        color: #fff;
    }

    .service-contact-form-header p {
        color: rgba(255, 255, 255, 0.86);
    }

    .service-contact-form-body {
        padding: 34px;
    }

    .service-contact-form-body .form-label {
        font-weight: 700;
        color: #12212c;
        margin-bottom: 8px;
    }

    .service-contact-form-body input,
    .service-contact-form-body textarea,
    .service-contact-form-body select {
        border-radius: 16px;
        border: 1px solid #d9e2e7;
        padding: 0.85rem 1rem;
        background: #fbfcfd;
    }

    .service-contact-form-body input:focus,
    .service-contact-form-body textarea:focus,
    .service-contact-form-body select:focus {
        border-color: #0d9488;
        box-shadow: 0 0 0 0.24rem rgba(13, 148, 136, 0.12);
        background: #fff;
    }

    .service-contact-submit {
        border-radius: 999px;
        font-weight: 800;
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
        background: linear-gradient(135deg, #111827 0%, #0d1f2a 100%);
        border: none;
        transition: 0.25s ease;
    }

    .service-contact-submit:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    }

    .service-contact-details-section {
        background:
            linear-gradient(180deg, #f7fafc 0%, #eef6f5 100%);
    }

    .service-contact-detail-card {
        height: 100%;
        background: #fff;
        border-radius: 26px;
        padding: 30px 26px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(13, 148, 136, 0.08);
        transition: 0.25s ease;
    }

    .service-contact-detail-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
    }

    .service-contact-detail-icon {
        width: 62px;
        height: 62px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #e6fffb 0%, #dff7ee 100%);
        color: #0d9488;
        font-size: 1.65rem;
        margin-bottom: 20px;
    }

    .service-contact-detail-card h5 {
        font-weight: 800;
        color: #0d1f2a;
        margin-bottom: 14px;
    }

    .service-contact-detail-card a {
        text-decoration: none;
        font-weight: 600;
    }

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

    .service-social-btn {
        border-radius: 999px;
        padding: 0.72rem 1.25rem;
        font-weight: 700;
        transition: 0.25s ease;
    }

    .service-social-btn:hover {
        transform: translateY(-2px);
    }

    .contact-reason-section {
        background: #fff;
    }

    .contact-reason-card {
        height: 100%;
        background: #fff;
        border-radius: 24px;
        padding: 30px 26px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
        border: 1px solid #eef2f4;
        transition: 0.25s ease;
    }

    .contact-reason-card:hover {
        transform: translateY(-4px);
        border-color: rgba(13, 148, 136, 0.22);
    }

    .contact-reason-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        background: #eafff7;
        color: #0d9488;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .service-next-step-section {
        background: #f4f8f8;
    }

    .service-next-card {
        height: 100%;
        background: #fff;
        border-radius: 28px;
        padding: 34px 28px;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
        position: relative;
        overflow: hidden;
        transition: 0.25s ease;
    }

    .service-next-card:hover {
        transform: translateY(-5px);
    }

    .service-next-number {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: linear-gradient(135deg, #0d9488 0%, #0d1f2a 100%);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        margin: 0 auto 20px;
    }

    .service-final-contact-cta {
        background:
            linear-gradient(135deg, #07161f 0%, #0d1f2a 38%, #0d9488 100%);
    }

    .service-final-contact-box {
        border-radius: 34px;
        padding: 58px 36px;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.18), transparent 30%),
            rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.26);
    }

    @media (max-width: 991.98px) {
        .service-contact-hero-content {
            padding-top: 68px;
            padding-bottom: 68px;
        }

        .service-contact-form-body,
        .service-contact-form-header {
            padding-left: 24px;
            padding-right: 24px;
        }

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


<!-- =========================================================
     HERO CONTACT SECTION
========================================================= -->
<section class="service-contact-hero">
    <div class="container service-contact-hero-content">
        <div class="row align-items-center g-5">

            <!-- LEFT CONTENT -->
            <div class="col-lg-6">
                <span class="service-contact-badge mb-4">
                    <i class="bi bi-chat-square-text-fill"></i>
                    Service Partner Support Desk
                </span>

                <h1 class="service-contact-title mb-4">
                    Let’s Talk About Your Path to Better Global Work Opportunities
                </h1>

                <p class="service-contact-lead mb-4">
                    Have questions about joining as a local service partner, building your profile,
                    getting noticed by international guests, featured visibility, or training support?
                    Send us a message and our team will guide you.
                </p>

                <div class="service-contact-points mb-4">
                    <div class="service-contact-point">
                        <i class="bi bi-person-badge-fill"></i>
                        <div>
                            <strong>Ask before registering</strong><br>
                            Clarify which service category best matches your skills and experience.
                        </div>
                    </div>

                    <div class="service-contact-point">
                        <i class="bi bi-stars"></i>
                        <div>
                            <strong>Understand featured profile visibility</strong><br>
                            Learn how serious job seekers can stand out more strongly on the portal.
                        </div>
                    </div>

                    <div class="service-contact-point">
                        <i class="bi bi-mortarboard-fill"></i>
                        <div>
                            <strong>Explore training and preparation</strong><br>
                            Ask about language, communication, guest etiquette, and professional readiness.
                        </div>
                    </div>
                </div>

                <div class="service-contact-note">
                    <i class="bi bi-info-circle-fill"></i>
                    <div>
                        <strong>Already ready to start?</strong>
                        You may directly register as a service partner and begin building your professional profile.
                    </div>
                </div>
            </div>


            <!-- FORM -->
            <div class="col-lg-6">
                <div class="service-contact-form-card">
                    <div class="service-contact-form-header">
                        <h3 class="fw-bold mb-2">Send a Message</h3>
                        <p class="mb-0">
                            Tell us what you would like to know about Hired in Sri Lanka.
                        </p>
                    </div>

                    <form method="post" class="service-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="mt-4">
                            <button type="submit" class="btn btn-dark btn-lg w-100 service-contact-submit">
                                <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>


<!-- =========================================================
     CONTACT DETAILS
========================================================= -->
<section class="py-5 service-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 the Ensolanka Team Directly</h2>
            <p class="text-muted">
                Contact our team through the channel that works best for you.
            </p>
        </div>

        <div class="row g-4">

            <!-- USA Office -->
            <div class="col-md-6 col-lg-3">
                <div class="service-contact-detail-card">
                    <div class="service-contact-detail-icon">
                        <i class="bi bi-building-fill"></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,<br>
                        USA
                    </p>
                </div>
            </div>

            <!-- Sri Lanka Office -->
            <div class="col-md-6 col-lg-3">
                <div class="service-contact-detail-card">
                    <div class="service-contact-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="service-contact-detail-card">
                    <div class="service-contact-detail-icon">
                        <i class="bi bi-whatsapp"></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="service-contact-detail-card">
                    <div class="service-contact-detail-icon">
                        <i class="bi bi-envelope-paper-fill"></i>
                    </div>
                    <h5>Email Support</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 fw-semibold">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 service-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 service-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 service-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 service-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 service-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 service-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 contact-reason-section">
    <div class="container">
        <div class="section-heading text-center mb-5">
            <span class="section-mini-title">Why Contact Us</span>
            <h2 class="fw-bold">Get Clarity Before You Take the Next Step</h2>
            <p class="text-muted">
                Whether you are ready to register or still exploring, we are here to guide you professionally.
            </p>
        </div>

        <div class="row g-4">

            <div class="col-md-6 col-lg-3">
                <div class="contact-reason-card">
                    <div class="contact-reason-icon">
                        <i class="bi bi-question-circle-fill"></i>
                    </div>
                    <h5 class="fw-bold">General Questions</h5>
                    <p class="text-muted mb-0">
                        Ask how the platform works, what service roles are suitable, and how the process begins.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="contact-reason-card">
                    <div class="contact-reason-icon">
                        <i class="bi bi-briefcase-fill"></i>
                    </div>
                    <h5 class="fw-bold">Career Direction</h5>
                    <p class="text-muted mb-0">
                        Clarify whether your background fits driving, housekeeping, translation, caregiving, assistance, or related services.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="contact-reason-card">
                    <div class="contact-reason-icon">
                        <i class="bi bi-star-fill"></i>
                    </div>
                    <h5 class="fw-bold">Visibility Options</h5>
                    <p class="text-muted mb-0">
                        Learn about featured profile visibility and how serious partners can stand out more effectively.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="contact-reason-card">
                    <div class="contact-reason-icon">
                        <i class="bi bi-mortarboard-fill"></i>
                    </div>
                    <h5 class="fw-bold">Training Support</h5>
                    <p class="text-muted mb-0">
                        Ask about English, guest communication, etiquette, and preparation for international service work.
                    </p>
                </div>
            </div>

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


<!-- =========================================================
     USEFUL NEXT STEPS
========================================================= -->
<section class="py-5 service-next-step-section">
    <div class="container">
        <div class="section-heading text-center mb-5">
            <span class="section-mini-title">Useful Next Steps</span>
            <h2 class="fw-bold">Choose What You Want to Do Next</h2>
        </div>

        <div class="row g-4">

            <div class="col-md-4">
                <div class="service-next-card text-center">
                    <div class="service-next-number">01</div>
                    <h5 class="fw-bold">Browse Service Profiles</h5>
                    <p class="text-muted">
                        See how approved local service partner profiles are presented to international guests.
                    </p>
                    <a href="{% url 'service_partner_app:public_assistant_list' %}"
                       class="btn btn-outline-dark mt-3">
                        View Profiles
                    </a>
                </div>
            </div>

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

                    {% if request.user.is_authenticated and request.user.service_partner_profile %}
                        <h5 class="fw-bold">My Service Dashboard</h5>
                        <p class="text-muted">
                            Open your dashboard to manage your profile, visibility, payments, and guest interests.
                        </p>
                        <a href="{% url 'service_partner_app:service_partner_dashboard' %}"
                           class="btn btn-outline-dark mt-3">
                            My Dashboard
                        </a>
                    {% else %}
                        <h5 class="fw-bold">Register as a Partner</h5>
                        <p class="text-muted">
                            Create your service profile and begin your journey with Hired in Sri Lanka.
                        </p>
                        <a href="{% url 'service_partner_app:service_partner_register' %}"
                           class="btn btn-outline-dark mt-3">
                            Register Now
                        </a>
                    {% endif %}
                </div>
            </div>

            <div class="col-md-4">
                <div class="service-next-card text-center">
                    <div class="service-next-number">03</div>
                    <h5 class="fw-bold">Sign In to Continue</h5>
                    <p class="text-muted">
                        Already registered? Sign in to update your professional service profile and access your partner area.
                    </p>
                    <a href="{% url 'service_partner_app:service_partner_login' %}"
                       class="btn btn-outline-dark mt-3">
                        Partner Sign In
                    </a>
                </div>
            </div>

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


<!-- =========================================================
     FINAL CTA
========================================================= -->
<section class="service-final-contact-cta py-5">
    <div class="container">
        <div class="service-final-contact-box text-center text-white">
            <span class="service-contact-badge mb-4">
                <i class="bi bi-globe2"></i>
                Local Skills. Global Pay
            </span>

            <h2 class="fw-bold mb-3">
                Ready to Build a More Professional Path with International Guests?
            </h2>

            <p class="lead mb-4">
                Contact us, register your service profile, or sign in to continue your journey through
                Hired in Sri Lanka.
            </p>

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

                {% if request.user.is_authenticated and request.user.service_partner_profile %}
                    <a href="{% url 'service_partner_app:service_partner_dashboard' %}"
                       class="btn btn-warning btn-lg px-4">
                        My Service Dashboard
                    </a>
                {% else %}
                    <a href="{% url 'service_partner_app:service_partner_register' %}"
                       class="btn btn-warning btn-lg px-4">
                        Become a Service Partner
                    </a>
                {% endif %}

                <a href="{% url 'service_partner_app:public_assistant_list' %}"
                   class="btn btn-light btn-lg px-4">
                    Browse Profiles
                </a>

                <a href="{% url 'service_partner_app:service_partner_login' %}"
                   class="btn btn-outline-light btn-lg px-4">
                    Partner Sign In
                </a>

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

{% endblock %}