/* Property detail page: hide global Contact Us, WhatsApp & enquiry modal so property's own contact form is used */
body.property-detail-page .home_contact_fixed_button,
body.property-detail-page .home_whatsapp_fixed_button {
    display: none !important;
}
body.property-detail-page .home_enquiry_modal_overlay,
body.property-detail-page .home_enquiry_modal {
    display: none !important;
}

/* Contact Fixed Button - global (every page) */
.home_contact_fixed_button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #05379a 0%, #0a4bc7 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(5, 55, 154, 0.35);
    z-index: 1000;
    transition: all 0.3s ease;
}

.home_contact_fixed_button:hover {
    background: linear-gradient(135deg, #042d7d 0%, #0840a8 100%);
    box-shadow: 0 8px 30px rgba(5, 55, 154, 0.45);
    transform: translateY(-3px);
}

.home_contact_fixed_button svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

/* WhatsApp Fixed Button - global */
.home_whatsapp_fixed_button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.home_whatsapp_fixed_button:hover {
    background-color: #20BA5A;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    transform: translateY(-3px) scale(1.05);
}

.home_whatsapp_fixed_button svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

@media (max-width: 768px) {
    .home_contact_fixed_button {
        bottom: 60px;
        right: 20px;
        padding: 0 20px;
        font-size: 12px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home_contact_fixed_button svg {
        width: 14px;
    }

    .back-to-top {
        display: none !important;
    }

    .home_whatsapp_fixed_button {
        bottom: 105px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .home_whatsapp_fixed_button svg {
        width: 24px;
        height: 24px;
    }
}

/* Global Enquiry Modal */
.home_enquiry_modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.home_enquiry_modal_overlay.active {
    opacity: 1;
    visibility: visible;
}

.home_enquiry_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home_enquiry_modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.home_enquiry_modal_inner {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 90vw;
    max-height: 90vh;
    position: relative;
}

.home_enquiry_close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.home_enquiry_close:hover {
    background: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.home_enquiry_close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.home_enquiry_branding {
    flex: 1;
    background: linear-gradient(135deg, #05379a 0%, #0a4bc7 50%, #1e5fd9 100%);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.home_enquiry_branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.home_enquiry_branding::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home_enquiry_brand_content {
    position: relative;
    z-index: 1;
}

.home_enquiry_logo {
    margin-bottom: 20px;
}

.home_enquiry_logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

.home_enquiry_headline {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.home_enquiry_subtext {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.home_enquiry_features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home_enquiry_feature_item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.home_enquiry_feature_item svg {
    flex-shrink: 0;
    stroke: #4ade80;
}

.home_enquiry_form_section {
    flex: 1;
    padding: 32px 20px;
    background: #fff;
}

.home_enquiry_form_header {
    margin-bottom: 28px;
}

.home_enquiry_form_header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.home_enquiry_form_header p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.home_enquiry_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home_enquiry_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home_enquiry_field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.home_enquiry_field label svg {
    stroke: #05379a;
    flex-shrink: 0;
}

.home_enquiry_field input {
    width: 100%;
    padding: 0 16px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a1a;
    transition: all 0.2s ease;
    background: #fafafa;
}

.home_enquiry_field input:focus {
    outline: none;
    border-color: #05379a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(5, 55, 154, 0.1);
}

.home_enquiry_field input::placeholder {
    color: #9ca3af;
}

.home_enquiry_field input.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.home_enquiry_error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
    display: none;
}

.home_enquiry_submit {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #05379a 0%, #0a4bc7 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.home_enquiry_submit svg {
    width: 18px;
}

.home_enquiry_submit:hover {
    background: linear-gradient(135deg, #042d7d 0%, #0840a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 55, 154, 0.35);
}

.home_enquiry_submit:active {
    transform: translateY(0);
}

.home_enquiry_submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.home_enquiry_submit_text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home_enquiry_submit_loader {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toast notification (3s) - used for form success/error instead of inline message */
.enquiry_toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.enquiry_toast.enquiry_toast_visible {
    opacity: 1;
    transform: translateY(0);
}
.enquiry_toast_success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.enquiry_toast_error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.enquiry_toast_icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}
.enquiry_toast_success .enquiry_toast_icon {
    background: #10b981;
    color: #fff;
}
.enquiry_toast_error .enquiry_toast_icon {
    background: #ef4444;
    color: #fff;
}

/* Inline success/error message below submit button (legacy, kept for compatibility) */
.home_enquiry_form_message {
    margin-top: 14px;
    padding: 0;
    min-height: 0;
    font-size: 14px;
    line-height: 1.45;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.home_enquiry_form_message:not(:empty) {
    opacity: 1;
    visibility: visible;
}

.home_enquiry_form_message_success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.home_enquiry_form_message_error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.home_enquiry_msg_icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.home_enquiry_form_message_success .home_enquiry_msg_icon {
    background: #10b981;
    color: #fff;
}

.home_enquiry_form_message_error .home_enquiry_msg_icon {
    background: #ef4444;
    color: #fff;
}

.home_enquiry_privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 20px;
}

.home_enquiry_privacy svg {
    stroke: #9ca3af;
}

@media (max-width: 768px) {
    .home_enquiry_modal_inner {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
    }

    .home_enquiry_branding {
        overflow: visible;
        padding: 20px 16px;
    }

    .home_enquiry_headline {
        font-size: 16px;
    }

    .home_enquiry_subtext {
        font-size: 14px;
        margin-bottom: 0;
    }

    .home_enquiry_features {
        gap: 12px;
        display: none;
    }

    .home_enquiry_logo {
        display: none;
    }

    .home_enquiry_feature_item {
        font-size: 13px;
    }

    .home_enquiry_form_section {
        padding: 20px 16px;
    }

    .home_enquiry_form_header h3 {
        font-size: 16px;
    }

    .home_enquiry_close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
    }

    .home_enquiry_field input {
        height: 40px;
        font-size: 13px;
    }

    .home_enquiry_field label {
        font-size: 13px;
    }

    .home_enquiry_submit {
        height: 44px;
        padding-block: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .home_enquiry_submit svg {
        width: 14px;
    }

    .home_enquiry_privacy {
        font-size: 11px;
    }
}
