﻿/* ========================================
   BEST HOUSE REAL ESTATE - PROFESSIONAL CSS
   Designed with 30 years of UI/UX expertise
   ======================================== */

/* ========================================
   UPDATED COLOR SCHEME - PROFESSIONAL CONTRAST
   ======================================== */

:root {
    /* Primary Brand Colors - ENHANCED */
    --navy: #0a2e5a; /* Deep navy for logo & accents */
    --navy-dark: #071e3d; /* Darker navy for depth */
    --navy-light: #1a3f6e; /* Lighter navy for hover states */

    --coral: #e63946; /* Primary action color */
    --coral-light: #ff6b6b; /* Light coral for hover */
    --coral-dark: #c1121f; /* Dark coral for depth */

    --cream: #f1faee; /* Light cream background */
    --cream-light: #f8f9fa; /* Very light cream */

    --teal: #a8dadc; /* Secondary teal */
    --teal-dark: #457b9d; /* Dark teal for contrast */

    --gray: #6c757d; /* Medium gray */
    --light-gray: #e9ecef; /* Light gray */
    --dark-gray: #343a40; /* Dark gray */
    /* NEW: Header Gradient Colors */
    --header-primary: #1a2a6c; /* Deep blue */
    --header-secondary: #2c3e50; /* Charcoal blue */
    --header-accent: #3498db; /* Bright blue accent */
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    /* Spacing, Shadows, Transitions, Radius - same as before */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 15px 50px rgba(0,0,0,0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-circle: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: var(--cream-light);
    overflow-x: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-sm);
}

a {
    text-decoration: none;
    color: var(--coral);
    transition: color var(--transition-fast);
}

    a:hover {
        color: var(--coral-light);
    }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

/* ========================================
   HEADER & NAVIGATION - UPDATED WITH BETTER CONTRAST
   ======================================== */

.bh-header {
    /* Professional gradient background */
    background: linear-gradient(135deg, var(--header-primary) 0%, var(--header-secondary) 100%);
    /* Fallback solid color */
    background-color: var(--header-secondary);
    color: white;
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border-bottom: 3px solid var(--coral);
}

    .bh-header.scrolled {
        /* Darker background when scrolled */
        background: linear-gradient(135deg, var(--navy-dark) 0%, var(--dark-gray) 100%);
        padding: 0.8rem 0;
        box-shadow: var(--shadow-lg);
        border-bottom: 3px solid var(--coral);
    }

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.main-logo {
    height: 60px;
    width: auto;
    transition: all var(--transition-normal);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

    .main-logo:hover {
        transform: scale(1.05) translateY(-2px);
        filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    }

.tagline {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Logo SVG styling for better contrast */
.main-logo svg {
    fill: white;
}

    .main-logo svg .logo-text {
        fill: white !important;
    }

    .main-logo svg .logo-accent {
        fill: var(--coral) !important;
    }

.bh-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .bh-nav a {
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
        font-size: 1.05rem;
        position: relative;
        padding: 0.5rem 0;
        transition: all var(--transition-fast);
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

        .bh-nav a:hover {
            color: white;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .bh-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--coral), var(--coral-light));
            transition: width var(--transition-normal);
            border-radius: var(--radius-sm);
        }

        .bh-nav a:hover::after {
            width: 100%;
        }

        .bh-nav a.active {
            color: white;
            font-weight: 600;
        }

.btn-login {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        transition: left var(--transition-normal);
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        background: linear-gradient(135deg, var(--coral-light) 0%, #ff8e8e 100%);
    }

        .btn-login:hover::before {
            left: 100%;
        }

/* ========================================
   USER MENU (LOGGED IN STATE) - UPDATED
   ======================================== */

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

    .user-menu:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }

.user-greeting {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: white;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-request {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

    .btn-request:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        background: linear-gradient(135deg, var(--coral-light) 0%, #ff8e8e 100%);
    }

.LoginStatus_LogoutLink {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .LoginStatus_LogoutLink:hover {
        background: rgba(230, 57, 70, 0.3);
        border-color: var(--coral);
        color: white;
        text-decoration: none;
    }

/* ========================================
   HEADER ANIMATION EFFECTS
   ======================================== */

@keyframes headerGlow {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }

    50% {
        box-shadow: 0 8px 40px rgba(52, 152, 219, 0.4);
    }
}

.bh-header.highlight {
    animation: headerGlow 2s ease-in-out;
}

/* ========================================
   RESPONSIVE HEADER - UPDATED
   ======================================== */

@media (max-width: 768px) {
    .bh-header {
        padding: 1rem 0;
        border-bottom-width: 2px;
    }

        .bh-header.scrolled {
            padding: 0.7rem 0;
        }

    .main-logo {
        height: 50px;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .bh-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 1rem;
    }

        .bh-nav a {
            display: block;
            padding: 0.75rem 0;
            font-size: 1rem;
        }

    .user-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

    .bh-header.scrolled {
        background-color: rgba(10, 46, 90, 0.95);
        padding: 0.8rem 0;
    }

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-logo {
    height: 60px;
    width: auto;
    transition: transform var(--transition-normal);
}

    .main-logo:hover {
        transform: scale(1.05);
    }

.tagline {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--teal);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bh-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .bh-nav a {
        color: white;
        font-weight: 500;
        font-size: 1.05rem;
        position: relative;
        padding: 0.5rem 0;
        transition: color var(--transition-fast);
    }

        .bh-nav a:hover {
            color: var(--coral);
        }

        .bh-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--coral);
            transition: width var(--transition-normal);
        }

        .bh-nav a:hover::after {
            width: 100%;
        }

/* ========================================
   ENHANCED CLIENT LOGIN BUTTON - CONVERSION OPTIMIZED
   ======================================== */

/* DESKTOP: Larger, more prominent button */
.btn-login {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: white !important;
    padding: 0.1rem 1.4rem !important; /* Increased vertical/horizontal padding */
    border-radius: 50px !important; /* Modern pill shape */
    font-weight: 700 !important;
    font-size: 1.15rem !important; /* Larger, more readable text */
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4) !important; /* Enhanced shadow */
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.85rem !important; /* Space between icon and text */
    min-width: 120px !important; /* Minimum width for consistency */
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    z-index: 100 !important;
}

    /* Larger icon */
    .btn-login i {
        font-size: 1.05rem !important; /* Increased icon size */
        min-width: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Enhanced hover effect */
    .btn-login:hover {
        transform: translateY(-4px) scale(1.03) !important; /* More pronounced lift */
        box-shadow: 0 10px 28px rgba(230, 57, 70, 0.55) !important; /* Deeper shadow */
        background: linear-gradient(135deg, var(--coral-light) 0%, #ff8e8e 100%) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    }

    /* Active state (when clicking) */
    .btn-login:active {
        transform: translateY(1px) scale(0.98) !important;
        box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4) !important;
    }

    /* Ripple effect on click */
    .btn-login::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: width 0.6s, height 0.6s, transform 0.6s;
        z-index: -1;
    }

    .btn-login:focus:not(:active)::after {
        width: 200px;
        height: 200px;
        transform: translate(-50%, -50%) scale(1);
    }

/* MOBILE: Optimized touch target size */
@media (max-width: 768px) {
    .btn-login {
        padding: 1.05rem 2.1rem !important; /* Slightly smaller but still prominent */
        font-size: 1.1rem !important;
        min-width: 165px !important;
        gap: 0.75rem !important;
    }

        .btn-login i {
            font-size: 1.35rem !important;
        }
}

/* TABLET: Balanced sizing */
@media (max-width: 992px) {
    .btn-login {
        padding: 1.0rem 2.2rem !important;
        font-size: 1.12rem !important;
    }
}

/* ACCESSIBILITY: Focus visible for keyboard users */
.btn-login:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}

/* ANIMATION: Subtle pulse on page load */
@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    }

    50% {
        box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6);
    }
}

.btn-login {
    animation: pulseButton 3s ease-in-out infinite !important;
    animation-delay: 0.5s !important;
}

/* HOVER ON NAVBAR HOVER (Subtle pre-engagement) */
.bh-nav:hover .btn-login {
    box-shadow: 0 5px 18px rgba(230, 57, 70, 0.45) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(10, 46, 90, 0.7), rgba(10, 46, 90, 0.8)), url('../Images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

    .hero-content h1 {
        font-size: 4rem;
        color: white;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

        .hero-content h1 span {
            color: var(--coral);
        }

    .hero-content p {
        font-size: 1.3rem;
        color: var(--cream);
        margin-bottom: 2.5rem;
        font-weight: 300;
    }

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    z-index: 1000;
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 50px rgba(230, 57, 70, 0.4);
        background: linear-gradient(135deg, var(--coral-light) 0%, #ff8e8e 100%);
    }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid white;
    margin-left: 1rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

    .btn-secondary:hover {
        background: white;
        color: var(--navy);
        transform: translateY(-3px);
    }

/* Hero floating elements */
.floating-houses {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('../Images/houses-silhouette.svg') repeat-x bottom center;
    background-size: contain;
    animation: floatHouses 20s linear infinite;
}

@keyframes floatHouses {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* ========================================
   LOGIN/REGISTER MODAL - COMPLETE FIX
   ======================================== */

/* Modal Overlay - Full screen coverage */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 1rem;
    overflow-y: auto; /* Allow scrolling if modal is tall */
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Modal Container - Responsive sizing */
/* ========================================
   MODAL OVERLAY - Allow Clicks Through to Form Elements
   ======================================== */
/* ========================================
   MODAL OVERLAY - CRITICAL FIX: NO MORE CLICK BLOCKING
   ======================================== */

/* HIDDEN STATE: Completely removed from layout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* CRITICAL: NOT flex! Completely hidden */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    overflow-y: auto;
    box-sizing: border-box;
}

    /* VISIBLE STATE: Only appears when active */
    .modal-overlay.active {
        display: flex; /* Only becomes interactive when needed */
        animation: fadeIn 0.3s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* MODAL CONTAINER */
.modal-container {
    width: 100%;
    max-width: 480px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

/* MODAL CONTENT */
.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* PREVENT BODY SCROLL WHEN MODAL OPEN */
body.modal-open {
    overflow: hidden !important;
    padding-right: 15px !important; /* Prevent layout shift */
}

/* ENSURE BUTTONS ARE ALWAYS CLICKABLE */
.btn-primary,
.btn-secondary,
.hero-content a {
    pointer-events: auto !important; /* CRITICAL: Override any blocking */
    cursor: pointer !important;
    position: relative !important;
    z-index: 10001 !important; /* Above modal overlay when needed */
}

/* HERO BUTTONS - EXTRA PROTECTION */
.hero-content .btn-primary,
.hero-content .btn-secondary {
    display: inline-block !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-lg) !important;
    border: none !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
}

    .hero-content .btn-primary:hover,
    .hero-content .btn-secondary:hover {
        transform: translateY(-2px) !important;
        box-shadow: var(--shadow-xl) !important;
    }

/* DEBUG: Visual indicator if overlay is accidentally visible */
.modal-overlay::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: 30px;
    background: rgba(255, 0, 0, 0.2);
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 30px;
    border-radius: 15px;
    z-index: 88888;
    display: none;
}

.modal-overlay.active::before {
    display: block;
    content: "MODAL ACTIVE";
}
/* Buttons should definitely accept clicks */
.btn-submit {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Modal Content - Scrollable if needed */
.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    max-height: 90vh; /* Maximum height: 90% of viewport */
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
    color: white;
    padding: 1.75rem 2rem;
    text-align: center;
    position: relative;
    flex-shrink: 0; /* Prevent header from shrinking */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: rotate(90deg);
    }

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--teal);
    font-weight: 300;
    margin: 0;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    inline-size: max-content;
    margin: 1rem auto 1.5rem;
}

.auth-tab {
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    position: relative;
}

    .auth-tab:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
    }

    .auth-tab.active {
        color: white;
        background: rgba(230, 57, 70, 0.3);
        box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
    }

/* Modal Body - Scrollable content area */
.modal-body {
    padding: 2rem;
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: calc(90vh - 180px); /* Account for header + footer */
    flex-grow: 1; /* Take up available space */
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.6rem;
        font-weight: 600;
        color: var(--navy);
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

        .form-group label i {
            color: var(--coral);
            font-size: 0.8rem;
        }

.form-control {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background-color: white;
}

    .form-control:focus {
        outline: none;
        border-color: var(--coral);
        box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
        background-color: white;
    }

    .form-control::placeholder {
        color: var(--gray);
        opacity: 0.6;
    }

.form-text {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.4rem;
    font-style: italic;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .form-check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--coral);
    }

    .form-check label {
        margin-bottom: 0;
        font-weight: normal;
        cursor: pointer;
        color: var(--dark-gray);
        font-size: 0.95rem;
    }

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    .btn-submit:disabled {
        background: var(--gray);
        cursor: not-allowed;
        transform: none;
        opacity: 0.7;
    }

    .btn-submit::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 5px;
        height: 5px;
        background: rgba(255, 255, 255, 0.5);
        opacity: 0;
        border-radius: 100%;
        transform: scale(1, 1) translate(-50%);
        transform-origin: 50% 50%;
    }

    .btn-submit:focus:not(:active)::after {
        animation: ripple 1s ease-out;
    }

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

/* Error Messages */
.validation-error {
    font-size: 0.85rem;
    color: var(--coral);
    margin-top: 0.3rem;
    display: block;
    font-weight: 500;
}

.error-message {
    display: block;
    margin-top: 1rem;
    padding: 0.85rem;
    background-color: #ffebee;
    border-left: 4px solid var(--coral);
    border-radius: 4px;
    color: var(--coral-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Social Login */
.social-login {
    margin-top: 2rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

    .social-login p {
        color: var(--gray);
        margin-bottom: 1.25rem;
        position: relative;
        font-size: 0.9rem;
        font-weight: 500;
    }

        .social-login p::before,
        .social-login p::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 35%;
            height: 1px;
            background-color: var(--light-gray);
        }

        .social-login p::before {
            left: 0;
        }

        .social-login p::after {
            right: 0;
        }

.social-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--light-gray);
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.3rem;
    box-shadow: var(--shadow-sm);
}

    .social-btn:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: var(--coral);
    }

    .social-btn.google {
        color: #DB4437;
        border-color: #DB4437;
    }

    .social-btn.facebook {
        color: #4267B2;
        border-color: #4267B2;
    }

    .social-btn:hover.google {
        background: #DB4437;
        color: white;
    }

    .social-btn:hover.facebook {
        background: #4267B2;
        color: white;
    }

/* Tab Content */
/*.auth-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

    .auth-tab-content.active {
        display: block;
    }*/
.auth-tab-content {
    display: block; /* keep it in DOM */
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

    .auth-tab-content.active {
        height: auto;
        opacity: 1;
        pointer-events: auto;
    }
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MODAL RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .modal-container {
        max-width: 95%;
        margin: 1rem;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .auth-tabs {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .auth-tab {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 1.75rem;
        max-height: calc(90vh - 160px);
    }

    .form-control {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 0.9rem;
        font-size: 1rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        max-width: 98%;
        margin: 0.5rem;
    }

    .modal-header {
        padding: 1.25rem 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
    }

    .auth-tabs {
        gap: 0.75rem;
    }

    .auth-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 150px);
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

        .form-group label {
            font-size: 0.9rem;
        }

    .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .social-login p {
        font-size: 0.85rem;
    }
}

/* ========================================
   MODAL ANIMATIONS & EFFECTS
   ======================================== */

/* Prevent body scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Prevent layout shift */
}

/* Smooth entrance animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Loading state for button */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

    .btn-submit.loading::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: white;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
    padding: var(--space-xl) 2rem;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
}

    .section-title h2 {
        position: relative;
        display: inline-block;
        padding-bottom: 1rem;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--coral), var(--teal));
            border-radius: var(--radius-sm);
        }

    .section-title p {
        color: var(--gray);
        max-width: 600px;
        margin: 1rem auto 0;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-xl);
        border-color: var(--teal);
    }

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-section {
    padding: var(--space-xl) 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

    .testimonials-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
        opacity: 0.1;
        border-radius: var(--radius-circle);
    }

    .testimonials-section::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
        opacity: 0.15;
        border-radius: var(--radius-circle);
    }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .testimonial-card::before {
        content: '"';
        position: absolute;
        top: -20px;
        left: 10px;
        font-size: 5rem;
        color: var(--coral);
        opacity: 0.3;
        font-family: Georgia, serif;
    }

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--teal);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(rgba(10, 46, 90, 0.9), rgba(10, 46, 90, 0.95)), url('../Images/cta-bg.jpg') center/cover no-repeat;
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

    .cta-content h2 {
        color: white;
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .cta-content p {
        font-size: 1.2rem;
        color: var(--cream);
        margin-bottom: 2.5rem;
        font-weight: 300;
    }

/* ========================================
   FOOTER
   ======================================== */

.bh-footer {
    background: var(--navy-dark);
    color: var(--cream);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

    .footer-col h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: var(--coral);
    }

.footer-links {
    list-style: none;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: var(--cream);
        transition: color var(--transition-fast);
    }

        .footer-links a:hover {
            color: var(--coral);
            padding-left: 5px;
        }

.contact-info {
    list-style: none;
}

    .contact-info li {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .contact-info i {
        color: var(--coral);
        font-size: 1.2rem;
        min-width: 20px;
    }

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--navy);
}

.text-secondary {
    color: var(--coral);
}

.text-white {
    color: white;
}

.text-gray {
    color: var(--gray);
}

.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mb-1 {
    margin-bottom: var(--space-xs);
}

.mb-2 {
    margin-bottom: var(--space-sm);
}

.mb-3 {
    margin-bottom: var(--space-md);
}



/* ========================================
   USER MENU (LOGGED IN STATE)
   ======================================== */

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-greeting {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: white;
    font-weight: 400;
}

.btn-request {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

    .btn-request:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

.LoginStatus_LogoutLink {
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

    .LoginStatus_LogoutLink:hover {
        background: rgba(230, 57, 70, 0.2);
        color: var(--coral-light);
    }

/* ========================================
   SOCIAL LINKS
   ======================================== */

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

    .social-icon:hover {
        background: var(--coral);
        transform: translateY(-3px);
    }

/* ========================================
   NAVIGATION ACTIVE STATE
   ======================================== */

.bh-nav a.active {
    color: var(--coral);
    font-weight: 600;
}

    .bh-nav a.active::after {
        width: 100%;
    }

/* ========================================
   MAIN LAYOUT
   ======================================== */

main {
    margin-top: 90px; /* Account for fixed header */
    min-height: calc(100vh - 300px); /* Header + Footer height */
}

@media (max-width: 768px) {
    main {
        margin-top: 120px; /* Larger header on mobile */
    }
}
.modal-overlay {
    pointer-events: none; /* Allow clicks to pass through */
}

.modal-container {
    pointer-events: auto; /* But enable clicks on modal content */
}

.modal-content {
    pointer-events: auto;
}



/* ========================================
   CUSTOMER MENU - PERSONALIZED DASHBOARD
   ======================================== */

.customer-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .customer-menu:hover {
        background: rgba(255, 255, 255, 0.18);
        transform: translateX(3px);
    }

.customer-avatar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.avatar-initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.customer-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.customer-name {
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

    .customer-name strong {
        color: var(--coral-light);
    }

.customer-email {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.customer-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.1rem;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

    .action-btn i {
        font-size: 1.15rem;
        min-width: 20px;
        text-align: center;
    }

    .action-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
        color: var(--coral-light);
    }

    .action-btn.primary {
        background: linear-gradient(135deg, var(--coral) 0%, var(--coral-light) 100%);
        border: none;
        box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
    }

        .action-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(230, 57, 70, 0.45);
            color: white;
        }

    .action-btn.logout {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 99, 71, 0.5);
    }

        .action-btn.logout:hover {
            background: rgba(255, 99, 71, 0.15);
            color: #ff6347;
            transform: translateY(-1px);
        }

.badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--coral);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    animation: pulseBadge 2s infinite;
    display: none;
}

    .badge.show {
        display: flex;
    }

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* RESPONSIVE CUSTOMER MENU */
@media (max-width: 992px) {
    .customer-menu {
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .customer-avatar {
        gap: 0.6rem;
        padding-right: 1rem;
    }

    .avatar-initials {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .customer-name {
        font-size: 0.9rem;
        max-width: 120px;
    }

    .customer-email {
        font-size: 0.75rem;
        max-width: 120px;
    }

    .customer-actions {
        gap: 0.5rem;
    }

    .action-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.88rem;
    }

        .action-btn span {
            display: none;
        }
        /* Hide text on mobile */
        .action-btn i {
            font-size: 1.3rem;
            min-width: auto;
        }
}

@media (max-width: 768px) {
    .customer-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0.8rem;
        background: rgba(10, 46, 90, 0.92);
    }

    .customer-avatar {
        width: 100%;
        justify-content: space-between;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 0.8rem;
    }

    .customer-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.6rem;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
        padding: 0.7rem;
    }

        .action-btn span {
            display: block;
            font-size: 0.8rem;
        }
}