{% extends 'property_manager_app/base_property_manager.html' %}
{% load static %}

{% block title %}Contact Us | Home in Sri Lanka Property Care{% endblock %}

{% block content %}

<style>
    /* =========================================================
       PROPERTY CARE CONTACT PAGE - PREMIUM THEME
    ========================================================= */

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

    .property-contact-hero-bg {
        position: absolute;
        inset: 0;
        background:
            linear-gradient(
                90deg,
                rgba(8, 20, 32, 0.95) 0%,
                rgba(8, 20, 32, 0.86) 40%,
                rgba(8, 20, 32, 0.70) 70%,
                rgba(8, 20, 32, 0.62) 100%
            ),
            url("{% static 'expat_life/images/property_manager_hero.webp' %}") center center / cover no-repeat;
        transform: scale(1.03);
        z-index: 0;
    }

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

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

    .property-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-weight: 700;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        backdrop-filter: blur(10px);
    }

    .property-contact-hero h1 {
        color: #ffffff;
        line-height: 1.1;
    }

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

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

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

    .property-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);
    }

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

    .property-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);
    }

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

    .property-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);
    }

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

    .property-contact-form-header p {
        color: rgba(17, 24, 39, 0.78) !important;
    }

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

    .property-contact-form-body .form-label {
        font-weight: 700;
        color: #111827;
        margin-bottom: 8px;
    }

    .property-contact-form-body input,
    .property-contact-form-body textarea,
    .property-contact-form-body select {
        width: 100%;
        border-radius: 16px;
        border: 1px solid #d9e2ec;
        padding: 0.82rem 1rem;
        background: #f8fafc;
        transition: all 0.22s ease;
    }

    .property-contact-form-body input:focus,
    .property-contact-form-body textarea:focus,
    .property-contact-form-body select:focus {
        border-color: #0f766e;
        background: #fff;
        box-shadow: 0 0 0 0.22rem rgba(15, 118, 110, 0.14);
        outline: none;
    }

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

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

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

    .property-contact-submit-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
    }

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

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

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

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

    .property-contact-detail-card h5 {
        font-weight: 800;
        margin-bottom: 12px;
    }

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

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

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

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

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

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

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

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

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

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

    .property-contact-final-box {
        border-radius: 32px;
        padding: 58px 36px;
        background:
            linear-gradient(
                135deg,
                rgba(13, 27, 42, 0.96) 0%,
                rgba(15, 118, 110, 0.92) 100%
            );
        box-shadow: 0 30px 65px rgba(13, 27, 42, 0.20);
    }

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

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

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

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

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


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

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

            <!-- LEFT CONTENT -->
            <div class="col-lg-6">
                <span class="property-contact-badge mb-3">
                    Property Care Owner Support
                </span>

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

                <p class="lead mb-3">
                    Have questions about registering your property, choosing care services,
                    reviewing estimates, uploading documents, or starting a monthly maintenance plan?
                </p>

                <p class="property-contact-hero-copy mb-4">
                    Send us a message and our team will guide you with the right information
                    to move forward confidently as a remote or distant Sri Lankan property owner.
                </p>

                <div class="property-contact-info-list">
                    <div class="property-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Ask how to register a house, villa, land, estate, or other property for care</span>
                    </div>

                    <div class="property-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Understand inspections, cleaning, garden care, utility handling, and vacancy checks</span>
                    </div>

                    <div class="property-contact-info-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Get clarity on estimates, final care plans, monthly fees, and support scope</span>
                    </div>

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

                <div class="property-contact-note-box">
                    <i class="bi bi-info-circle-fill"></i>
                    <div>
                        Already registered as a Property Care Owner? You can continue through your
                        dashboard to manage properties, services, estimates, documents, and payments.
                    </div>
                </div>
            </div>


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

                    <div class="property-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 property care journey.
                        </p>
                    </div>

                    <form method="post" class="property-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="property-contact-form-footer">
                            <button type="submit" class="btn property-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 property-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 property care owner support.
            </p>
        </div>

        <div class="row g-4">

            <div class="col-md-6 col-lg-3">
                <div class="property-contact-detail-card">
                    <div class="property-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>

            <div class="col-md-6 col-lg-3">
                <div class="property-contact-detail-card">
                    <div class="property-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>

            <div class="col-md-6 col-lg-3">
                <div class="property-contact-detail-card">
                    <div class="property-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>

            <div class="col-md-6 col-lg-3">
                <div class="property-contact-detail-card">
                    <div class="property-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>


        <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 property-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 property-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 property-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 property-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 property-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 property-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 Property Owners</h2>
            <p class="text-muted">
                Before registering, selecting services, or reviewing a monthly care plan, you may want a few things clarified.
            </p>
        </div>

        <div class="row g-4">

            <div class="col-md-6 col-lg-3">
                <div class="property-reason-card">
                    <div class="property-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 Property Care model works and what Ensolanka helps coordinate.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="property-reason-card">
                    <div class="property-reason-icon">
                        <i class="bi bi-house-check-fill"></i>
                    </div>

                    <h5 class="fw-bold">Property Suitability</h5>
                    <p class="text-muted mb-0">
                        Clarify whether your home, villa, land, estate, or building fits the care program.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="property-reason-card">
                    <div class="property-reason-icon">
                        <i class="bi bi-ui-checks-grid"></i>
                    </div>

                    <h5 class="fw-bold">Service Scope</h5>
                    <p class="text-muted mb-0">
                        Understand inspections, cleaning, garden care, security checks, utilities, and arrival readiness.
                    </p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="property-reason-card">
                    <div class="property-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, property registration, service selection, or dashboard action should come next.
                    </p>
                </div>
            </div>

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


<!-- =========================================================
     OTHER USEFUL OPTIONS
========================================================= -->
<section class="py-5 property-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 Property Care Path That Fits You</h2>
        </div>

        <div class="row g-4">

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

                    <h5 class="fw-bold">Explore Property Care</h5>

                    <p class="text-muted">
                        Learn how remote property support can help owners stay informed, organized, and protected.
                    </p>

                    <a href="{% url 'property_manager_app:home_property_manager' %}"
                       class="btn btn-outline-dark mt-3">
                        Open Property Care Home
                    </a>
                </div>
            </div>


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

                    {% if is_property_manager_user %}
                        <h5 class="fw-bold">My Property Care Dashboard</h5>

                        <p class="text-muted">
                            Open your dashboard to manage properties, review services, estimates, and payment center access.
                        </p>

                        <a href="{% url 'property_manager_app:property_manager_dashboard' %}"
                           class="btn btn-outline-dark mt-3">
                            My Dashboard
                        </a>
                    {% else %}
                        <h5 class="fw-bold">Property Care Signup</h5>

                        <p class="text-muted">
                            Create your Property Care owner access and begin registering your Sri Lankan property.
                        </p>

                        <a href="{% url 'property_manager_app:property_manager_signup' %}"
                           class="btn btn-outline-dark mt-3">
                            Create Property Care Access
                        </a>
                    {% endif %}
                </div>
            </div>


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

                    {% if is_property_manager_user %}
                        <h5 class="fw-bold">Add a Property</h5>

                        <p class="text-muted">
                            Register a property with location, land, building, image, and document details.
                        </p>

                        <a href="{% url 'property_manager_app:managed_property_create' %}"
                           class="btn btn-outline-dark mt-3">
                            Add Property
                        </a>
                    {% else %}
                        <h5 class="fw-bold">Owner Sign In</h5>

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

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

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


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

            <h2 class="fw-bold mb-3">
                Ready to Protect and Manage Your Sri Lankan Property More Confidently?
            </h2>

            <p class="lead mb-4">
                Contact us, create Property Care access, or sign in to continue your journey with
                Home in Sri Lanka Property Care by Ensolanka.
            </p>

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

                {% if is_property_manager_user %}
                    <a href="{% url 'property_manager_app:property_manager_dashboard' %}"
                       class="btn btn-warning btn-lg px-4">
                        My Property Care Dashboard
                    </a>

                    <a href="{% url 'property_manager_app:managed_property_create' %}"
                       class="btn btn-light btn-lg px-4">
                        Add New Property
                    </a>
                {% else %}
                    <a href="{% url 'property_manager_app:property_manager_signup' %}"
                       class="btn btn-warning btn-lg px-4">
                        Create Property Care Access
                    </a>

                    <a href="{% url 'property_manager_app:property_manager_login' %}"
                       class="btn btn-light btn-lg px-4">
                        Owner Sign In
                    </a>
                {% endif %}

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

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

{% endblock %}