/* ===== NAVIGATION ===== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    /* Removed right: 0; */
    width: 100%;
    /* Removed max-width: 1400px; */
    /* Removed margin: 0 auto; */
    height: 97px; /* Reverted height to 97px */
    z-index: 9999;
    background: transparent;
    transition: transform 0.3s ease;
    transform: translateY(0);
}

.nav-container.hidden {
    transform: translateY(-100%);
}

.nav-container.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-content {
    /* Removed max-width: 1400px; */
    /* Removed margin: 0 auto; */
    padding: 1rem 2rem; /* Added vertical padding */
    display: flex;
    justify-content: center; /* Changed to center */
    align-items: center;
    gap: 9rem; /* Set gap to 9rem as requested */
    height: 100%; /* Ensure it takes full height of parent */
}

.logo-container {
    display: flex;
    align-items: center;
    /* Removed gap: 30px; */
    font-weight: 700;
    font-size: 1rem;
    /* Removed margin-right: 3rem; to eliminate extra spacing */
    text-decoration: none;
    color: var(--primary-blue);
}

.logo-container .logo-text {
    line-height: 1.2;
    font-size: 0.85rem; /* Further reduced font size */
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    padding: 0;
    margin-left: -30px; /* Set negative margin to -30px as requested */
    display: flex;
    flex-direction: column;
    text-align: center; /* Added to center the text */
}

.logo-container .logo-img {
    height: 105px; /* Increased height to make logo bigger, may slightly overflow header */
    width: auto; /* Allow width to adjust based on aspect ratio */
    object-fit: contain; /* Ensure the image fits within the specified dimensions while maintaining aspect ratio */
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 97px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item-with-mega {
    position: relative;
    display: flex;
    align-items: center;
    height: 97px;
}

.nav-item-with-mega::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-item-with-mega:hover::after,
.nav-item-with-mega.menu-active::after {
    transform: scaleX(1);
}

.nav-link.mega-menu-trigger:hover,
.nav-link:hover {
    color: var(--primary-blue);
    background: transparent;
}

.nav-link.unclickable {
    cursor: default;
}

.nav-link.active {
    color: var(--primary-blue);
}

/* Navigation Buttons */
.nav-link.login-nav-item,
.login-nav-item {
    min-width: 80px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: white;
    color: #000000;
    border: 2px solid #e5e7eb;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link.login-nav-item:hover,
.login-nav-item:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.nav-link.phone-nav-item,
.phone-nav-item {
    min-width: 120px;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    height: 40px;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    background: white;
    color: var(--emergency-red);
    border: 2px solid #e5e7eb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link.phone-nav-item:hover,
.phone-nav-item:hover {
    background: var(--emergency-red);
    color: white;
    border-color: var(--emergency-red);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.search-mobile-button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: none; /* Hidden by default */
    display: flex; /* Make it a flex container */
    align-items: center; /* Vertically center its content (the icon) */
    justify-content: center; /* Horizontally center its content (the icon) */
    width: 40px; /* Consistent with hamburger */
    height: 40px; /* Consistent with hamburger */
}

.search-mobile-button i {
    width: 24px; /* Adjust icon size */
    height: 24px; /* Adjust icon size */
}

.mobile-buttons-wrapper {
    display: flex;
    align-items: center; /* Vertically center buttons */
    gap: 0.5rem; /* Space between search and hamburger */
    /* Hide by default, show on mobile */
    display: none;
}

/* Mobile Navigation */
.mobile-menu-button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    display: flex; /* Make it a flex container */
    align-items: center; /* Vertically center its content */
    justify-content: center; /* Horizontally center its content */
    width: 40px; /* Example fixed width */
    height: 40px; /* Example fixed height */
}
.hamburger-icon {
    width: 30px;
    height: 12px; /* Adjusted height for better visibility of two lines */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hamburger-icon .line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark); /* Or a suitable color variable */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Adjust line spacing if needed */
.hamburger-icon .line:first-child {
    margin-top: 0;
}

.hamburger-icon .line:last-child {
    margin-bottom: 0;
}

/* Hamburger to X animation */
.mobile-menu-button.menu-open .hamburger-icon .line:first-child {
    transform: translateY(5px) rotate(45deg); /* Adjust translateY based on line height and desired X center */
}

.mobile-menu-button.menu-open .hamburger-icon .line:last-child {
    transform: translateY(-5px) rotate(-45deg); /* Adjust translateY based on line height and desired X center */
}

.mobile-nav {
    position: fixed;
    top: 97px; /* Under the header */
    left: -100%; /* Initially off-screen to the left */
    width: 100%; /* Full width */
    height: calc(100vh - 97px); /* Remaining viewport height */
    background: var(--background-light); /* Light blue background */
    padding: 0;
    z-index: 10000; /* Even higher z-index */
    visibility: hidden;
    opacity: 0;
    transition: left 0.3s ease-in-out, visibility 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Transition 'left' property */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Added back to make mobile-nav scrollable */
    align-items: center; /* Center children horizontally */
}
.mobile-nav.active {
    left: 0; /* Slide into view */
    visibility: visible;
    opacity: 1; /* Fade in */
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    /* Removed justify-content: center; */
    gap: 0rem; /* Reduced space between items */
    text-align: center; /* Center text within links */
    padding: 0; /* Removed padding from here */
    /* margin-top: 60px; Removed as it might prevent scrolling */
}

.mobile-menu-box {
    /* Remove all visual styling for boxes */
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
    margin-bottom: 0; /* Remove margin between boxes */
    width: 100%; /* Take full width */
}

.mobile-menu-box:last-child {
    margin-bottom: 0; /* Ensure no margin for the last box */
}

.mobile-menu-box:hover {
    box-shadow: none;
    transform: none;
}

/* Specific styling for Home link */
.mobile-menu-box.home-link .mobile-nav-link {
    font-size: 1.2rem; /* Big font size */
    font-weight: 700; /* Bold */
    color: var(--primary-blue);
    padding: 0.2rem 1.5rem; /* Adjusted padding (horizontal only) */
    border-bottom: 0.8px solid var(--border-light); /* Separator line */
    margin-bottom: 0.2rem; /* Reduced space after separator */
    display: inline-block; /* Allow border-bottom to work */
}

.mobile-menu-box.home-link .mobile-nav-link:hover {
    background: transparent;
    color: var(--primary-dark);
}

.mobile-nav-link {
    display: block; /* Block display for full width */
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.4rem 0.5rem; /* Reduced horizontal padding */
    font-weight: 500;
    font-size: 1.1rem; /* Adjusted font size */
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    background: transparent; /* No background on hover */
    color: var(--primary-blue);
}

/* Styling for parent links (Services, About, Insights) */
.mobile-nav-link.parent-link {
    font-weight: 700; /* Bold */
    font-size: 1rem; /* Reduced font size */
    color: var(--text-dark);
    margin-top: 0rem; /* Reduced space above parent link */
    margin-bottom: 0rem; /* Space below parent link reduced to 0 */
    padding-left: 1rem; /* Consistent left padding */
    padding-right: 1rem; /* Keep right padding for consistency */
    border-bottom: none; /* Separator line removed */
    display: block; /* Ensure it takes full width for consistent alignment */
    max-width: 400px; /* Set max-width */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

.mobile-nav-link.parent-link:hover {
    color: var(--primary-blue);
}

/* Styling for sub-items */
.mobile-nav-link.sub-item {
    font-size: 1.1rem; /* Smaller font size */
    font-weight: 500; /* Regular weight */
    color: var(--text-light);
    padding: 0.2rem 0; /* Removed horizontal padding */
    text-align: left; /* Left-aligned text */
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; /* Display ellipsis for overflowed text */
}

.mobile-nav-link.sub-item:hover {
    color: var(--primary-blue);
}

.mobile-nav-links-wrapper {
    /* height: 100%; Removed as flex-grow handles height */
    overflow-y: auto; /* Enable scrolling for links if content overflows */
    padding: 0; /* Removed padding-top */
    width: 100%; /* Explicitly set width to 100% */
    flex-grow: 1; /* Allow it to grow and take remaining space */
}

/* ===== MEGA MENUS ===== */
.mega-menu {
    position: fixed; /* Changed to fixed for viewport positioning */
    top: 97px;
    left: 0; /* Align to left edge of viewport */
    right: 0; /* Align to right edge of viewport */
    width: 100%; /* Will now span 100% of viewport width */
    background: #ffffff;
    display: none;
    z-index: 10000;

    border-top: 1px solid #e5e7eb;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-menu.active {
    display: block !important; /* Added !important */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    box-shadow: none; /* Remove shadow when mega menu is open */
}

.nav-container.hidden .mega-menu {
    display: none !important;
}

/* Services Mega Menu */
.mega-menu.services-mega .mega-menu-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: flex-start;
}

.mega-menu-panel-left {
    width: 60%;
    max-width: 600px;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    width: 100%;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mega-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mega-icon {
    width: 32px;
    height: 32px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.mega-item-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; /* Display ellipsis for overflowed text */
}

.mega-menu-item:hover .mega-icon-circle {
    background: #0077ff;
}

.mega-menu-item:hover .mega-icon {
    color: white;
}

/* Products Mega Menu Specific Styling */
#products-mega .mega-menu-panel-left {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#products-mega .mega-menu-panel-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}





#products-mega .mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns, equal width */
    gap: 1rem; /* Gap between items */
    width: 100%;
    max-width: 500px; /* Increased max-width for horizontal size */
}

#products-mega .mega-menu-item {
    display: block; /* Each item as a block */
    padding: 1rem 1.5rem; /* Adjusted top/bottom and horizontal padding */
    text-align: center; /* Center the text within each item */
    background: white; /* Give it a background for a "container" feel */
    border-radius: 15px; /* More rounded edges */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* Subtle shadow for container feel */
    transition: all 0.2s ease;
    text-decoration: none; /* Remove underline */
    color: var(--text-dark); /* Default text color */
    border: 2px solid transparent; /* Add transparent border for smooth transition */
}

#products-mega .mega-menu-item:hover {
    background: var(--background-light); /* Light background on hover */
    color: var(--primary-blue); /* Blue text on hover */
    transform: translateY(-2px); /* Lift effect on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
    border-color: var(--primary-blue); /* Blue border on hover */
}

#products-mega .mega-menu-item .mega-item-text {
    font-size: 0.95rem; /* Decreased font size for consistency */
    color: var(--text-dark); /* Ensure text color is set explicitly */
}

#products-mega .mega-menu-item:hover .mega-item-text {
    color: var(--primary-blue); /* Blue text on hover */
}

/* About Mega Menu */
#products-mega .mega-menu-panel-right {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-mega-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: center;
}

.mega-menu-about-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 3rem;
    gap: 1.5rem; /* Add vertical gap between tagline and button */
}

.tagline-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-align: center;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.about-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.mega-menu-about-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-left: 2rem;
}

.about-links-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.about-link {
    display: block;
    padding: 0.65rem 1.5rem;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}



.about-link:hover {
    color: var(--primary-blue);
}



/* Insights Mega Menu */
.insights-mega-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: stretch;
}

.mega-menu-insights-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-right: 3rem;
    max-width: 50%;
}

.insights-tagline-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.insights-subtext {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.insights-featured-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-left: none;
    position: relative;
}

.featured-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.featured-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.mega-menu-insights-right {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 2rem;
    max-width: 50%;
}

.insights-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.insights-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.insights-link:hover {
    background: var(--background-light);
    color: var(--primary-blue);
    transform: translateX(3px);
}

.insights-stars {
    font-size: 0.85rem;
    letter-spacing: 2px;
}


.coverage-mega-wrapper-tabs {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center; /* Changed from flex-start to center */
}


.coverage-highlights-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.mega-menu-coverage-left-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns contents to the left */
    justify-content: center; /* Centers vertically (main-axis) */
    width: 100%;
    gap: 1rem;
}

.coverage-map-container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.service-area-map {
    width: 500px;
    max-width: 100%;
    padding: 1.5rem;
    background: transparent;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.mega-menu-coverage-right-tabs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2rem;
}

.coverage-tabs-section {
    width: 100%;
}

.coverage-tabs-header {
    text-align: left;
    margin-bottom: 2rem;
    width: 100%;
}

.coverage-tabs-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.coverage-tabs-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    display: block;
    line-height: 1.5;
}

.coverage-tabs-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    width: 100%;
}

.coverage-tab-vertical {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--background-light);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.coverage-tab-vertical:hover {
    background: white;
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.coverage-tab-vertical.active {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
}

.coverage-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.coverage-tab-vertical.active .coverage-tab-icon {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.coverage-tab-icon i {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.coverage-tab-vertical.active .coverage-tab-icon i {
    color: white;
}

.coverage-tab-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.coverage-tab-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
    line-height: 1.2;
    display: block;
}

.coverage-tab-vertical.active .coverage-tab-title {
    color: var(--primary-blue);
}

.coverage-tab-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    display: block;
}

.coverage-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-light);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--background-light);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    line-height: 1;
}

.coverage-info-right {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.coverage-radius-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: block;
}

.radius-highlight {
    color: var(--primary-blue);
    font-weight: 700;
}

.coverage-areas-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    display: block;
}

.coverage-tagline-bottom {
    text-align: left;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    width: 100%;
}

.coverage-tagline-text-small {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.coverage-subtext-small {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: block;
    line-height: 1.5;
}

.coverage-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.coverage-view-all-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}



@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-buttons-wrapper {
        display: flex; /* Show on mobile */
        margin-right: 15px; /* Added to move buttons to the left */
    }
    /* Individual buttons are now controlled by wrapper */
    .mobile-menu-button {
        /* display: block; removed */
    }
    .search-mobile-button {
        /* display: block; removed */
    }
    
    .nav-content {
        padding: 1rem; /* Equal padding all around */
        gap: 2rem; /* Reduce gap for smaller screens */
        justify-content: space-between; /* Reverted to space-between */
        /* Removed width: 100%; */
    }
    /* ... rest of media query ... */
}

@media (max-width: 1024px) {
    .mobile-top-boxes {
        display: flex;
        justify-content: space-between; /* Distribute space between boxes */
        align-items: center;
        padding: 3rem 1rem 1rem 1rem; /* Increased top padding to 3rem */
        background-color: var(--background-light); /* Light background for the boxes container */
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 1rem; /* Space below the boxes */
        width: 100%; /* Ensure it takes full width */
    }

    .mobile-top-box {
        flex: 1; /* Each box takes equal width */
        text-align: center;
        padding: 0.8rem 0.5rem;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
        color: var(--text-dark); /* Default text color */
        border: 1px solid var(--border-light); /* Default border */
        margin: 0 0.5rem; /* Space between boxes */
    }

    .mobile-top-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-top-box.home-box {
        background-color: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
    }

    .mobile-top-box.home-box:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    .mobile-top-box.login-box {
        background-color: white;
        color: var(--primary-blue);
        border-color: var(--primary-blue);
    }

    .mobile-top-box.login-box:hover {
        background-color: var(--primary-blue);
        color: white;
    }

    /* Adjust mobile-nav-links-wrapper padding to account for new top boxes */
    .mobile-nav-links-wrapper {
        padding-top: 0; /* Remove previous padding if any, as boxes handle top spacing */
    }

    .mobile-services-section {
        padding: 0.5rem 0; /* Removed left/right padding from section */
        border-bottom: none;
        margin-bottom: 1rem;
        display: flex; /* Added */
        flex-direction: column; /* Added */
        /* align-items: center; Removed */
    }

    .mobile-services-section .parent-link {
        text-align: left; /* Align to the left */
        margin-bottom: 1rem;
        font-size: 1rem; /* Reduced font size */
        font-weight: 700;
        color: var(--text-dark);
        display: block; /* Ensure it takes full width */
        text-decoration: none;
    }

    .mobile-services-sub-items {
        display: grid; /* Changed to grid */
        grid-template-columns: repeat(2, 1fr); /* 2 columns, equal width */
        gap: 1rem;
        width: 100%; /* Set width to 100% for responsiveness */
        max-width: 400px; /* Set max-width for larger mobile screens */
        margin-left: auto; /* Center horizontally */
        margin-right: auto; /* Center horizontally */
        padding: 0 0.5rem; /* Reduced padding for smaller screens */
    }



    .mobile-sub-item-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        margin-bottom: 0.5rem; /* Space between cards */
        transition: all 0.2s ease;
    }
    .mobile-sub-item-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .mobile-sub-item-card .sub-item {
        padding: 0.8rem 1rem; /* Adjust padding for the link inside the card */
        display: block; /* Ensure the link fills the card */
        text-align: left; /* Left align text within the card */
    }

    .mobile-our-company-section {
        padding: 0.5rem 0;
        border-bottom: none;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
    }

    .mobile-our-company-section .parent-link {
        text-align: left;
        margin-bottom: 1rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
        display: block;
        text-decoration: none;
    }

    .mobile-our-company-sub-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%; /* Set width to 100% for responsiveness */
        max-width: 400px; /* Set max-width for larger mobile screens */
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem; /* Reduced padding for smaller screens */
    }

    .mobile-coverage-sub-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem;
    }

    .mobile-about-section {
        padding: 0.5rem 0; /* Removed left/right padding from section */
        border-bottom: none;
        margin-bottom: 1rem;
        display: flex; /* Added */
        flex-direction: column; /* Added */
        /* align-items: center; Removed */
    }

    .mobile-about-section .parent-link {
        text-align: flex; 
        margin-bottom: 1rem;
        font-size: 1rem; /* Reduced font size */
        font-weight: 700;
        color: var(--text-dark);
        display: block; 
        text-decoration: none;
    }

    .mobile-about-sub-items {
        display: grid; /* Changed to grid */
        grid-template-columns: repeat(2, 1fr); /* 2 columns, equal width */
        gap: 1rem;
        max-width: 400px; /* Set max-width */
        margin-left: auto; /* Center horizontally */
        margin-right: auto; /* Center horizontally */
        padding: 0 1rem; /* Add some padding to the sides */
    }



    .mobile-insights-section {
        padding: 0.5rem 0; /* Removed left/right padding from section */
        border-bottom: none;
        margin-bottom: 1rem;
        display: flex; /* Added */
        flex-direction: column; /* Added */
        /* align-items: center; Removed */
    }

    .mobile-insights-section .parent-link {
        text-align: left; /* Align to the left */
        margin-bottom: 1rem;
        font-size: 1rem; /* Reduced font size */
        font-weight: 700;
        color: var(--text-dark);
        display: block; /* Ensure it takes full width */
        text-decoration: none;
    }

    .mobile-insights-sub-items {
        display: flex;
        justify-content: flex-start; /* Align columns to the left */
        gap: 1rem;
    }

    .mobile-insights-column {
        display: flex;
        flex-direction: column;
        flex: 1; /* Each column takes equal width */
        gap: 0.1rem; /* Reduced vertical space */
        padding-left: 1rem; /* Added */
    }

    .mobile-insights-column .sub-item {
        text-align: center; /* Align text to the left */
        font-size: 1.1rem; /* Match other sub-items */
        color: var(--text-light);
        text-decoration: none;
        padding: 0.2rem 0;
        transition: color 0.3s ease;
    }

    .mobile-insights-column .sub-item:hover {
        color: var(--primary-blue);
    }

    .mobile-coverage-section,
    .mobile-contact-section {
        padding: 0.5rem 0; /* Removed left/right padding from section */
        border-bottom: none;
        margin-bottom: 1rem; /* Changed to 1rem */
        display: flex; /* Added */
        flex-direction: column; /* Added */
        /* align-items: center; Removed */
    }

    .mobile-coverage-section .parent-link,
    .mobile-contact-section .parent-link {
        text-align: left; /* Align to the left */
        margin-bottom: 1rem; /* Changed to 1rem */
        font-size: 1rem; /* Reduced font size */
        font-weight: 700;
        color: var(--text-dark);
        display: block; /* Ensure it takes full width */
        text-decoration: none;
    }

    .mobile-contact-sub-items {
        display: flex; /* Changed from grid to flex */
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically (if needed, though it's one row) */
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem;
    }

    .mobile-contact-sub-items .contact-sub-item-card {
        background-color: var(--primary-blue);
        color: white; /* Ensure text is white for contrast */
        padding: 0.8rem 2rem; /* Increased horizontal padding */
        margin: 0 auto; /* Center the card itself within the flex container */
    }

    .mobile-contact-sub-items .contact-sub-item-card .sub-item {
        color: white; /* Ensure the link text is white */
        padding: 0; /* Reset padding here as it's now on the card */
        text-align: center; /* Center the text within the card */
    }

    .mobile-contact-sub-items .contact-sub-item-card:hover {
        background-color: var(--primary-dark); /* Darker blue on hover */
        transform: translateY(-2px); /* Keep existing hover effect */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Keep existing hover effect */
    }

    .mobile-contact-sub-items .contact-sub-item-card .sub-item:hover {
        color: white;
    }


    .offcanvas {
        width: 90vw !important;
        max-width: 430px !important;
    }
    
    .about-mega-wrapper,
    .insights-mega-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .mega-menu-about-left,
    .mega-menu-insights-left {
        padding-right: 0;
        padding-bottom: 2rem;
        max-width: 100%;
    }
    
    .mega-menu-about-right,
    .mega-menu-insights-right {
        padding-left: 0;
        max-width: 100%;
    }
    
    .tagline-text,
    .insights-tagline-text {
        white-space: normal;
        text-align: center;
        font-size: 1.25rem;
    }
    
    .about-cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .coverage-mega-wrapper-tabs {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.5rem;
    }
    
    .mega-menu-coverage-left-tabs,
    .mega-menu-coverage-right-tabs {
        align-items: center;
    }
    
    .coverage-tabs-header {
        text-align: center;
    }
    
    .coverage-tabs-title {
        font-size: 1.25rem;
    }
    
    .coverage-tabs-subtitle {
        font-size: 0.9rem;
    }
    
    .coverage-tab-vertical {
        padding: 1rem;
    }
    
    .coverage-tagline-text-small {
        font-size: 1.1rem;
    }
    
    .coverage-info-right {
        text-align: center;
    }
    
    .coverage-tagline-bottom {
        text-align: center;
    }
    
    .service-area-map {
        max-width: 100%;
        padding: 1rem;
    }
    
    .coverage-stats {
        justify-content: center;
    }
    
    .stat-item {
        min-width: 140px;
    }

    .mobile-nav-link.parent-link {
        text-align: center; /* Center text */
        padding-left: 0; /* Remove left padding */
        padding-right: 0; /* Remove right padding */
    }

    .mobile-services-sub-items,
    .mobile-about-sub-items,
    .mobile-insights-sub-items {
        justify-content: center; /* Center columns */
    }

    .mobile-services-column,
    .mobile-about-column,
    .mobile-insights-column {
        padding-left: 0; /* Remove left padding */
    }

    .mobile-products-section .parent-link {
        text-align: center;
        margin-bottom: 1rem;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
        display: block;
        text-decoration: none;
    }

    .mobile-products-sub-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%; /* Set width to 100% for responsiveness */
        max-width: 400px; /* Set max-width for larger mobile screens */
        margin-left: auto; /* Center horizontally */
        margin-right: auto; /* Center horizontally */
        padding: 0 0.5rem; /* Reduced padding for smaller screens */
    }
}

@media (max-width: 480px) {

    .nav-content {

        padding: 0; /* Removed all padding to allow logo to sit closer to edge */

        justify-content: space-between; /* Reverted to space-between */

    }

    

    .logo-container {

        margin-left: -25px; /* Set to -25px as requested */

    }

    

    .mobile-buttons-wrapper {

        margin-right: 15px; /* Added to move buttons to the left */

    }

    

    .service-area-map {

        width: 100%;

    }

}
@media (max-width: 768px) {
    .nav-container {
        background: white !important;
    }
}
@media (max-width: 400px) {
    .mobile-services-sub-items,
    .mobile-our-company-sub-items {
        gap: 0.5rem;
    }
    .mobile-sub-item-card .sub-item {
        font-size: 1rem;
        padding: 0.4rem 0.5rem;
    }
}/* ===== FLOATING EMAIL BUTTON ===== */
.email-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 15px; /* Changed from 50% to 15px for a rounded square look */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999999; /* Extremely high z-index to ensure it's always on top */
    animation: floatEffect 2s ease-in-out infinite; /* Apply the floating animation */
    animation-play-state: paused; /* Initially paused to prevent flash on load */
}

.email-float.attention-active {
    animation: attentionGrabber 2s ease-in-out forwards; /* 2s for the animation duration */
}

.email-float.modal-active {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    animation: none; /* Stop floating effect when modal is active */
}



/* Single, always visible icon */
.email-float .email-icon-always-visible {
    width: 28px;
    height: 28px;
    color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}



/* Content that appears on hover */
.email-float-content {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(20px); /* Start slightly outside */
    position: absolute;
    left: 15px; /* Adjust position for expanded state */
}



.email-float-content .email-icon-on-hover {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

.email-float-content span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

@media (min-width: 1025px) {
    .mobile-menu-button {
        display: none;
    }
}

/* ===== OFFCANVAS STYLES ===== */
/* Aggressively hide offcanvas elements on initial page load to prevent flash */
body.offcanvas-fouc-prevent #phoneOffcanvas:not(.show),
body.offcanvas-fouc-prevent #messageOffcanvas:not(.active),
body.offcanvas-fouc-prevent #messageOffcanvas:not(.active) .custom-modal-content-wrapper {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: none !important; /* Ensure no transform is applied on initial load */
    transition: none; /* Prevent any transition on initial load */
    display: none !important;
}

#header {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#header.header-loaded {
    opacity: 1;
    visibility: visible;
}


/* Prevent initial flash of offcanvas components */
.offcanvas:not(.show) {
    opacity: 0;
    pointer-events: none;
    transition: none; /* Disable transition on load to prevent flash */
}

.offcanvas {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 550px !important; /* Adjusted width */
    max-width: 80vw !important; /* Adjusted max-width */
    z-index: 99999 !important;
    margin-top: 0 !important;
    height: 100vh !important;
    overflow: visible !important;
    /* border-radius properties moved to .offcanvas-end */
}

.offcanvas-end {
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.offcanvas-backdrop {
    z-index: 99998 !important;
    margin-top: 0 !important;
    height: 100vh !important;
    background-color: transparent !important; /* No backdrop on mobile */
}

@media (min-width: 768px) {
    .offcanvas-backdrop {
        background-color: rgba(0, 0, 0, 0.5) !important; /* Dark backdrop for desktop */
    }
}

.offcanvas-header {
    background: var(--primary-blue); /* Changed to blue */
    color: white; /* Changed text color for contrast */
    padding: 1.5rem;
    border-bottom: none;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 0 !important;
}

.offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
}

.offcanvas-body {
    padding: 1.5rem !important;
    background: var(--background-light);
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
    height: auto !important;
    border-bottom-left-radius: 15px !important;
    border-bottom-right-radius: 0 !important;
}

.contact-card {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.contact-card.emergency-card {
    border-left-color: var(--emergency-red);
    background: linear-gradient(to right, #fff5f5, white);
}

.contact-card.whatsapp-card {
    border-left-color: #25D366;
    background: linear-gradient(to right, #e6ffe6, white);
}



.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--background-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.contact-icon.emergency-icon {
    background: #fee2e2;
    color: var(--emergency-red);
}

.contact-icon.whatsapp-icon {
    background: #e6ffe6;
    color: #25D366;
}



.contact-info {
    flex: 1;
    overflow-x: hidden; /* Prevent horizontal overflow within the contact info */
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: block;
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
    word-wrap: break-word; /* Ensure long words break and wrap */
    overflow-wrap: break-word; /* Standard property for word wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
}

.contact-value:hover {
    color: var(--primary-dark);
}

.contact-value.emergency-number {
    color: var(--emergency-red);
    font-size: 1.125rem;
}

.contact-value.whatsapp-number {
    color: #25D366;
    font-size: 1.125rem;
}



.contact-description {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    word-wrap: break-word; /* Ensure long words break and wrap */
    overflow-wrap: break-word; /* Standard property for word wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowed text */
}

.offcanvas-cta {
    margin: 1rem 0;
}

.btn-quick-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-quick-quote:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
    color: white;
}

.business-hours {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hours-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-light);
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item.emergency-hours {
    background: linear-gradient(to right, #fff5f5, transparent);
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    margin-top: 0.5rem;
}

.hours-item .day {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.hours-item .time {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.85rem;
}

/* Custom styles for Message Us form within offcanvas */
.offcanvas-body .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.offcanvas-body .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.offcanvas-body .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-blue-rgb), 0.25);
}

.offcanvas-body .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.offcanvas-body .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}


/* ===== CUSTOM MODAL STYLES (for Aladdin effect) ===== */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent; /* No backdrop on mobile */
    z-index: 1000000; /* Above everything else, including email-float */
    /* Removed flex centering */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

@media (min-width: 768px) {
    .custom-modal {
        background-color: rgba(0, 0, 0, 0.5); /* Desktop backdrop opacity matches offcanvas-backdrop */
    }
}

.custom-modal-content-wrapper {
    background: var(--background-light);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 0;
    overflow-y: auto; /* Allow scrolling within the modal content */
    box-shadow: none; /* Removed shadow */
    display: flex;
    flex-direction: column;
    
    /* Initial state */
    transform: scale(0); /* Start scaled down to 0 */
    opacity: 0;
    visibility: hidden;
    
    /* Transitions for scale, opacity, and transform */
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease, top 0.4s ease, left 0.4s ease, width 0.4s ease, height 0.4s ease;
    transform-origin: center center; /* Default origin, will be overridden by JS */
    position: fixed; /* Ensure it's positioned relative to viewport */
}

.custom-modal.active .custom-modal-content-wrapper {
    /* Final state */
    transform: scale(1); /* Expand to full size */
    opacity: 1;
    visibility: visible;

    /* Max dimensions will be set by JS */
}

/* Responsive adjustments for desktop */
@media (min-width: 768px) {
    .custom-modal.active .custom-modal-content-wrapper {
        /* Max dimensions for desktop */
        /* Will be set by JS */
    }
}
.custom-modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-light));
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Removed specific top border-radius to inherit from parent */
}

.custom-modal-title-group {
    display: flex;
    flex-direction: column;
    /* Align items to start so text is left-aligned */
    align-items: flex-start;
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
}

.custom-modal-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    line-height: 1.3;
}

.custom-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.custom-modal-close:hover {
    opacity: 1;
}

.custom-modal-body {
    padding: 1.5rem !important;
    background: var(--background-light);
    overflow-y: visible !important;
    overflow-x: hidden !important;
    max-height: none !important;
    height: auto !important;
    border-bottom-left-radius: 0; /* Removed round edges */
    border-bottom-right-radius: 0; /* Removed round edges */
}


/* Styles for the new X icon */
.email-float .email-icon-close {
    position: absolute;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* When modal is active, swap icons */
.email-float.modal-active .email-icon-always-visible {
    opacity: 0;
    transform: scale(0);
}

.email-float.modal-active .email-icon-close {
    opacity: 1;
    transform: scale(1);
}

/* Hide the "Message Us" text content when modal is active */
.email-float.modal-active .email-float-content {
    opacity: 0;
    transform: scale(0);
}

@keyframes floatEffect {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px); /* Move up 5px */
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes attentionGrabber {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translateY(0) scale(1) rotate(0deg); /* Pause before animation starts */
        opacity: 1;
    }
    20% {
        transform: translateY(-100px) translateX(100px) scale(0.5) rotate(720deg); /* Shrink, move, spin fast */
        opacity: 0.8;
    }
    80% {
        transform: translateY(-100px) translateX(100px) scale(0.5) rotate(2880deg); /* Continue spinning and moving */
        opacity: 0.8;
    }
    90% {
        transform: translateY(0) scale(1) rotate(3600deg); /* Return to original position, still spinning */
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1) rotate(3600deg); /* End at original state */
        opacity: 1;
    }
}

/* ===== CUSTOM DROPDOWN STYLES ===== */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-input {
    cursor: pointer;
    background-color: white; /* Ensure input background is white */
}

.custom-dropdown-list {
    position: absolute;
    top: 100%; /* Position below the input */
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it's above other content */
    max-height: 200px; /* Limit height and enable scrolling */
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.custom-dropdown-list.active {
    visibility: visible;
    opacity: 1;
}

.custom-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: background-color 0.2s;
}

.custom-dropdown-item:hover {
    background-color: var(--background-light);
}

