/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px; /* Account for fixed navbar */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #0B2545;
    background-color: #f7f7f7;
    font-size: 16px;
}

/* Background for main content areas */
header,
#services,
.testimonials-section,
.reviews-section,
#contact {
    background-image: url('images/moving-background-tiedye-optimized.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Navigation Styling */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    max-height: 130px;
    height: 100%;
    display: flex;
    background-color: #FFFFFF;
    border-bottom: 2px solid #000000;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

button:focus {
    outline: none;
}

.menu-button {
    position: fixed;
    top: -5px;
    left: 10px;
    cursor: pointer;
    width: 180px;
    height: 100px;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.menu-button img {
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

.menu {
    position: fixed;
    top: 130px;
    left: -0.25%;
    display: none;
    flex-direction: column;
    background: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-10px);
    height: auto;
    white-space: nowrap;
    max-height: calc(100vh - 140px); /* Keep main buttons visible */
}

.menu.show {
    display: flex;
    max-width: 200px;
    padding: 10px;
    opacity: 1;
    transform: translateX(0);
    transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 140px); /* Keep main buttons visible */
    overflow-y: auto;
    overflow-x: hidden;
}

.menu button {
    margin: 5px 0;
    padding: 10px;
    border: none;
    background: #0B2545;
    color: white;
    cursor: pointer;
    width: 180px;
    font-size: clamp(14px, 1.2vw, 18px);
    transition: background-color 0.3s ease;
}

.menu button:hover {
    background: #1a365d;
}

/* Services Toggle Button */
.services-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.services-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8em;
    margin-left: auto;
    display: inline-block;
}

.services-toggle.active .services-arrow {
    transform: rotate(180deg);
}

/* Services Submenu */
.services-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(18, 57, 91, 0.05);
    border-radius: 4px;
}

.services-submenu.expanded {
    max-height: 300px; /* Reduced to allow scrolling */
    opacity: 1;
    margin: 5px 0;
    padding: 5px 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Make neighborhoods submenu scrollable */
#neighborhoodsSubmenu.expanded {
    max-height: 250px; /* Reduced to allow better scrolling */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling for all submenus */
.services-submenu.expanded::-webkit-scrollbar,
#neighborhoodsSubmenu.expanded::-webkit-scrollbar {
    width: 8px;
}

.services-submenu.expanded::-webkit-scrollbar-track,
#neighborhoodsSubmenu.expanded::-webkit-scrollbar-track {
    background: rgba(18, 57, 91, 0.1);
    border-radius: 4px;
}

.services-submenu.expanded::-webkit-scrollbar-thumb,
#neighborhoodsSubmenu.expanded::-webkit-scrollbar-thumb {
    background: #12395B;
    border-radius: 4px;
}

.services-submenu.expanded::-webkit-scrollbar-thumb:hover,
#neighborhoodsSubmenu.expanded::-webkit-scrollbar-thumb:hover {
    background: #1a4d7a;
}

/* Firefox scrollbar styling for all submenus */
.services-submenu.expanded,
#neighborhoodsSubmenu.expanded {
    scrollbar-width: thin;
    scrollbar-color: #12395B rgba(18, 57, 91, 0.1);
}

/* Custom scrollbar for main menu */
.menu.show::-webkit-scrollbar {
    width: 8px;
}

.menu.show::-webkit-scrollbar-track {
    background: rgba(18, 57, 91, 0.1);
    border-radius: 4px;
}

.menu.show::-webkit-scrollbar-thumb {
    background: #12395B;
    border-radius: 4px;
}

.menu.show::-webkit-scrollbar-thumb:hover {
    background: #1a4d7a;
}

.menu.show {
    scrollbar-width: thin;
    scrollbar-color: #12395B rgba(18, 57, 91, 0.1);
}


/* Professional Block Style for Navigation Links */
.services-submenu a,
.services-submenu .nav-item,
.services-submenu button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-decoration: none;
    color: #374151;
    font-size: 16px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin: 0;
}

.services-submenu a:last-child,
.services-submenu .nav-item:last-child,
.services-submenu button:last-child {
    border-bottom: none;
}

.services-submenu a:hover,
.services-submenu .nav-item:hover,
.services-submenu button:hover {
    background-color: #f9fafb;
    color: #2563eb;
    padding-left: 25px;
}

/* Default styling for all screens */
#menu p {
    font-size: 18px;
    color: #000000;
    margin: 10px 0;
    text-align: center;
    text-decoration: underline;
    font-weight: bold;
}

/* Header */
header {
    height: 80vh;
    background-color: #000000;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background 0.3s ease;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

header p {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.cta-button {
    background-color: #0B2545;
    color: #FFFFFF;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #12395B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Secondary CTA Button - Call or Text Now */
.cta-button#openEstimate {
    background-color: #FFFFFF;
    color: #0B2545;
    border: 2px solid #0B2545;
}

.cta-button#openEstimate:hover {
    background-color: #F0F0F0;
    color: #0B2545;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Primary CTA Button - Text For a Quote Now (White) */
.cta-button#openBooking {
    background-color: #FFFFFF; /* White color */
    color: #0B2545;
    border: 2px solid #0B2545;
    gap: 8px;
}

.cta-button#openBooking:hover {
    background-color: #F0F0F0; /* Light gray on hover */
    color: #0B2545;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Icon positioning classes */
.phone-icon {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 100%;
    max-width: 20px;
}

.message-icon {
    height: 18px;
    width: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Absolute positioning for desktop CTA icons */
.desktop-cta .phone-icon,
.desktop-cta .message-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    max-width: 20px;
}

.desktop-cta .phone-icon {
    left: 10%;
}

.desktop-cta .message-icon {
    right: 10%;
}

.fixed-button-container{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10010;             /* above navbar, below modal */
    background: black;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    align-items: center;
  }

/* Mobile Split CTA - Hidden by default */
.mobile-split-cta {
    display: none;
}

/* Desktop CTA - Visible by default */
.desktop-cta {
    display: flex;
}

/* Mobile Button Styles */
.mobile-call-btn,
.mobile-ai-estimate-btn {
    flex: 1;
    width: 50%;
    padding: 12px 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    min-width: 0;
}

.mobile-call-btn {
    background-color: #059669; /* Green shade for call */
}

.mobile-call-btn:hover {
    background-color: #047857;
}

.mobile-text-btn {
    background-color: #FFFFFF; /* White background */
    border: 2px solid #0B2545; /* Brand blue border */
    cursor: pointer;
    font-family: inherit;
    color: #0B2545; /* Brand blue text */
}

.mobile-text-btn:hover {
    background-color: #F0F0F0; /* Light gray on hover */
    border-color: #0B2545;
}

/* AI Estimate Button (Blue) */
.mobile-ai-estimate-btn {
    background-color: #0B2545; /* Brand blue */
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-ai-estimate-btn:hover {
    background-color: #12395B; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.mobile-btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
  
@media (max-width: 768px){
    .fixed-button-container { 
        flex-direction: column; 
    }

    /* Hide desktop CTA on mobile */
    .desktop-cta {
        display: none;
    }

    /* Show mobile split CTA on mobile */
    .mobile-split-cta {
        display: flex;
        width: 100%;
        gap: 10px;
        flex-direction: row;
    }
    
    .mobile-ai-estimate-btn {
        order: 1; /* Left side */
    }
    
    .mobile-call-btn {
        order: 2; /* Right side */
    }
}
  

/* Services Section */
#services {
    padding: 40px 20px;
    text-align: center;
}

#services h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

#services .service-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #0B2545;
    font-weight: bold;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Service card image wrapper to force standard aspect ratio for portrait images */
.service-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-top: auto;
    background-color: #f0f0f0;
    position: relative;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

/* Top 3 services grid */
.services-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .services-top-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        max-width: 500px;
    }
}

/* Show More Services Button */
.show-more-services-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

.show-more-services-btn {
    background-color: #0B2545;
    color: #FFFFFF;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
}

.show-more-services-btn:hover {
    background-color: #12395B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.show-more-services-btn:active {
    transform: translateY(0);
}

.show-more-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.show-more-services-btn.expanded .show-more-arrow {
    transform: rotate(180deg);
}

/* Services Carousel (hidden by default, revealed on Show More) */
.services-carousel-wrapper {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    max-width: 540px;
    margin: 0 auto;
}

.services-carousel-wrapper.open {
    max-height: 700px;
    opacity: 1;
    margin-top: 20px;
}

.services-carousel {
    overflow: hidden;
    border-radius: 14px;
    position: relative;
}

.services-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    margin: 0;
}

.carousel-slide.service-card {
    border-radius: 14px;
    margin-bottom: 0;
}

.services-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0 4px;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #0B2545;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.carousel-arrow:hover {
    background: #f1f5f9;
    border-color: #0B2545;
}

.carousel-arrow:active {
    transform: scale(0.93);
}

.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
    background: #0B2545;
    transform: scale(1.25);
}

@media (max-width: 600px) {
    .services-carousel-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
}

/* Reviews Section (formerly Testimonials) */
.reviews-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    margin-top: 140px;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.reviews-header h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.reviews-header p {
    color: #0B2545;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

/* Platform Selector */
.platform-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 400px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.platform-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 40px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
}

.platform-btn:hover {
    background: rgba(11, 37, 69, 0.05);
    transform: translateY(-2px);
}

.platform-btn.active {
    background: #0B2545;
    border-color: #0B2545;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.3);
}

.platform-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.platform-btn.active .platform-icon {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

.platform-fallback {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0B2545;
}

.platform-btn.active .platform-fallback {
    color: #FFFFFF;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* View Reviews Link */
.view-reviews-link {
    text-align: center;
    margin: 30px 0;
}

.reviews-link-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0B2545;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reviews-link-btn:hover {
    background: #12395B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Keep testimonials classes for backward compatibility */
.testimonials-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    margin-top: 140px;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-header h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.testimonials-header p {
    color: #0B2545;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    padding: 35px 30px;
    flex-grow: 1;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 60px;
    color: rgba(238, 122, 48, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    color: rgb(238, 122, 48);
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    position: relative;
    z-index: 1;
}

.testimonial-rating .star.active {
    color: rgb(238, 122, 48);
}

.testimonial-rating .star {
    color: #ddd;
}

.testimonial-content p {
    color: #444;
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background-color: #fff;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Blank Profile Photo */
.blank-profile-photo {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blank-profile-photo::before {
    content: '';
    width: 40%;
    height: 40%;
    background-color: #9ca3af;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.author-info h4 {
    margin: 0 0 5px;
    color: #222;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    color: rgb(238, 122, 48);
    font-size: 0.95rem;
    font-weight: 500;
}

.submit-testimonial-button {
    text-align: center;
    margin-top: 20px;
}

.testimonial-button.submit-button {
    background-color: #0B2545;
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-family: Arial, sans-serif;
}

.testimonial-button.submit-button:hover {
    background-color: #12395B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Contact Section */
#contact {
    background-color: #f7f7f7;
    padding: 40px 20px;
    text-align: center;
}

#contact h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.1);
}

#contact label {
    display: block;
    font-weight: bold;
    margin: 10px 0 5px;
    text-align: left;
    color: #000000;
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact button {
    background-color: #0B2545;
    color: #FFFFFF;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    font-family: Arial, sans-serif;
    font-size: 1rem;
}

#contact button:hover {
    background-color: #12395B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
    background: #000000;
    color: #fff;
    text-align: center;
    padding-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

footer p {
    font-size: 1rem;
}

/* Modal Styling */
#popup-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
}

/* Hide fixed CTA when estimate modal is open (works on all pages) */
body.estimate-modal-open .fixed-button-container,
body:has(#estimateModal[style*="flex"]) .fixed-button-container {
    display: none !important;
}

/* ============================================
   AI Estimate Modal — full-screen overlay
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-end;
}

.modal.estimate-modal {
    background-color: rgba(0, 0, 0, 0.45);
    align-items: stretch;
    justify-content: center;
}

.modal.estimate-modal .modal-content {
    background: #fff;
    padding: 0;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Drag handle bar at top */
.estimate-modal-drag-bar {
    width: 100%;
    padding: 10px 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    position: relative;
    z-index: 2;
    -webkit-user-select: none;
    user-select: none;
}

.estimate-modal-drag-bar:active {
    cursor: grabbing;
}

.drag-bar-pill {
    width: 40px;
    height: 4px;
    background: #d1d5db;
    border-radius: 4px;
}

/* Close button */
.estimate-modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 10002;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #475569;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.estimate-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.estimate-modal-close:active {
    transform: scale(0.92);
}

/* Iframe fills remaining space */
.modal-iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Desktop: centered card with round corners */
@media (min-width: 769px) {
    .modal.estimate-modal {
        align-items: center;
        padding: 2vh 0;
    }

    .modal.estimate-modal .modal-content {
        height: 94vh;
        max-height: 94vh;
        border-radius: 16px;
        box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3);
    }

    .estimate-modal-drag-bar {
        border-radius: 16px 16px 0 0;
    }
}

/* Mobile: full screen sheet */
@media (max-width: 768px) {
    .modal.estimate-modal {
        align-items: stretch;
    }

    .modal.estimate-modal .modal-content {
        width: 100%;
        max-width: none;
        height: 100%;
        border-radius: 16px 16px 0 0;
        margin-top: 24px;
    }
}

/* Shared Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Service Pages */
.service-details {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

.service-details h2,
.packing-benefits h2,
.packing-faqs h2,
.how-it-works h2,
.junk-faqs h2,
.business-benefits h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.4rem;
}

.service-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.service-item p {
    color: #0B2545;
    line-height: 1.6;
    text-align: left;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Pricing Tables */
.pricing-info {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.pricing-info h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.rate-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.rate-row {
    display: table-row;
}

.rate-row:nth-child(odd) {
    background-color: #f7f7f7;
}

.rate-row:first-child {
    background-color: #000000;
    color: #fff;
}

.rate-cell {
    display: table-cell;
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.pricing-note {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    background-color: rgb(238, 122, 48);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    margin-bottom: 10px;
    color: #333;
}

/* Residential Page */
.why-choose {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.why-choose h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.why-choose ul {
    list-style-type: none;
    padding: 0;
}

.why-choose li {
    position: relative;
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid #eee;
}

.why-choose li:last-child {
    border-bottom: none;
}

.why-choose li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(238, 122, 48);
    font-weight: bold;
}

/* Business Page */
.business-process {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.business-process h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #000;
}

.business-benefits {
    padding: 40px 20px;
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #f7f7f7;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.benefit-item p {
    color: #555;
    line-height: 1.5;
}

/* Packing Page */
.materials-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.materials-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.materials-section > p {
    text-align: center;
    margin-bottom: 25px;
    color: #555;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.material-item {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.material-item:hover {
    transform: translateY(-3px);
}

.material-item h4 {
    color: #333;
    margin-bottom: 10px;
}

.material-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.packing-benefits {
    padding: 40px 20px;
    background-color: #fff;
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.benefit-card {
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    background-color: #f7f7f7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.benefit-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.benefit-card p {
    color: #555;
    line-height: 1.5;
}

.packing-faqs {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* Junk Removal Page */
.eco-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.eco-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #000;
}

.eco-section > p {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
}

.eco-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.eco-image {
    flex: 1;
    min-width: 300px;
}

.eco-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.eco-text {
    flex: 1;
    min-width: 300px;
}

.eco-list {
    list-style-type: none;
    padding: 0;
}

.eco-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.eco-list li:last-child {
    border-bottom: none;
}

.eco-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(238, 122, 48);
    font-weight: bold;
}

.how-it-works {
    padding: 40px 20px;
    background-color: #fff;
}

.junk-faqs {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

/* Blog Page */
.blog-section {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.post-image {
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-date,
.post-category {
    position: relative;
}

.post-category {
    color: rgb(238, 122, 48);
    font-weight: 500;
}

.post-content h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: rgb(238, 122, 48);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.read-more:after {
    content: "→";
    margin-left: 5px;
    transition: transform 0.3s;
    display: inline-block;
}

.read-more:hover {
    color: #333;
}

.read-more:hover:after {
    transform: translateX(5px);
}

.subscribe-section {
    padding: 60px 20px;
    background-color: #000000;
    color: white;
}

.subscribe-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.subscribe-content h2 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.subscribe-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    margin-bottom: 15px;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.form-group button {
    background-color: rgb(238, 122, 48);
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s ease;
}

.form-group button:hover {
    background-color: #ffae00ed;
    transform: scale(1.05);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    text-align: left;
}

.form-checkbox input {
    margin-top: 5px;
}

.form-checkbox label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

#subscribeMessage {
    height: 20px;
    font-size: 0.9rem;
}

.blog-categories {
    padding: 50px 20px;
    background-color: #f7f7f7;
}

.blog-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

/* Modern Form Styling for Testimonials Submission */
.submit-testimonial {
    padding: 80px 20px;
    background-color: #fff;
}

.testimonial-form-container {
    max-width: 850px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #222;
    font-size: 2.2rem;
    font-weight: 700;
}

.testimonial-form-container > p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Review Platforms Container */
.review-platforms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-platform-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.review-platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #0B2545;
}

.review-platform-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    padding: 15px;
    transition: transform 0.3s ease;
}

.review-platform-card:hover .review-platform-icon {
    transform: scale(1.1);
}

.review-platform-icon .platform-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.review-platform-icon .platform-fallback {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0B2545;
}

.review-platform-card h3 {
    font-size: 1.4rem;
    color: #0B2545;
    margin-bottom: 15px;
    font-weight: 700;
}

.review-platform-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    flex-grow: 1;
}

.review-platform-btn {
    display: inline-block;
    padding: 14px 28px;
    background: #0B2545;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 250px;
}

.review-platform-btn:hover {
    background: #12395B;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
}

.review-platform-btn.google-btn:hover {
    background: #4285F4;
}

.review-platform-btn.nextdoor-btn:hover {
    background: #8FD14F;
}

.review-platform-btn.yelp-btn:hover {
    background: #D32323;
}

/* Testimonials page - review cards as links */
a.review-platform-card {
    text-decoration: none;
    color: inherit;
}

/* Neighborhood reviews blocks (Testimonials page) */
.neighborhood-reviews-block {
    margin-top: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.neighborhood-reviews-heading {
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.neighborhood-reviews-heading a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 600;
}

.neighborhood-reviews-heading a:hover {
    color: #fff;
}

.neighborhood-review-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.neighborhood-review-card:hover {
    color: inherit;
}

.testimonial-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 25px;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgb(238, 122, 48);
    box-shadow: 0 0 0 3px rgba(238, 122, 48, 0.1);
    outline: none;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
}

/* Star Rating for Form */
.star-rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars-container {
    display: flex;
    gap: 5px;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star:hover,
.star.active {
    color: rgb(238, 122, 48);
}

.star-slider-container {
    margin-top: 5px;
    padding: 0 5px;
}

.star-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    cursor: pointer;
    margin-bottom: 6px;
}

.star-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
}

.star-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
}

.star-slider::-ms-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    border: none;
    color: transparent;
}

.star-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ee7a30;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.star-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.star-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ee7a30;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.star-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.star-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ee7a30;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.star-slider::-ms-thumb:hover {
    transform: scale(1.2);
}

/* Form Checkbox Styling */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: rgb(238, 122, 48);
    margin-top: 3px;
}

.form-checkbox label {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* Submit Button Styling */
.submit-button {
    background-color: rgb(238, 122, 48);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(238, 122, 48, 0.3);
}

.submit-button:hover {
    background-color: #ff9633;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(238, 122, 48, 0.4);
}

.submit-button:active {
    transform: translateY(-1px);
}

#testimonialMessage {
    text-align: center;
    height: 24px;
    font-size: 1rem;
    margin-top: 20px;
    font-weight: 500;
}

/* File Upload Styling */
.file-upload-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    width: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #555;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px dashed #ccc;
}

.file-upload-label:hover {
    background-color: #e5e5e5;
    border-color: #bbb;
}

.upload-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.file-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Community Recommendations Section
   Mobile-first, clean & professional
   ============================================ */
.community-section *,
.community-section a,
.community-section a:link,
.community-section a:hover,
.community-section a:focus,
.community-section a:visited,
.community-section a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit;
}

.community-section {
    padding: 3rem 1.25rem 3.5rem;
    background: linear-gradient(135deg, #0B2545 0%, #1a365d 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/moving-background-tiedye-optimized.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.community-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Section title & microcopy */
.community-section h2 {
    color: #FFFFFF;
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.community-trust-microcopy {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 500;
    margin: 0 0 0.4rem;
    letter-spacing: 0.06em;
}

.community-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    margin: 0 0 1.5rem;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Platform selector - segmented control with SVG logos + labels */
.community-platform-selector {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    margin: 0 auto 1.75rem;
    max-width: 360px;
    gap: 4px;
}

.community-platform-selector .platform-btn {
    flex: 1;
    min-height: 48px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.community-platform-selector .platform-btn.active {
    background: #0B2545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.community-platform-selector .platform-btn:not(.active):hover {
    background: rgba(11, 37, 69, 0.06);
}

.community-platform-selector .platform-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.community-platform-selector .platform-btn.active .platform-icon path {
    fill: #fff;
}

.community-platform-selector .platform-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #374151;
    line-height: 1;
    letter-spacing: 0.01em;
}

.community-platform-selector .platform-btn.active .platform-label {
    color: #fff;
}

/* Empty reviews state */
.community-no-reviews {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    grid-column: 1 / -1;
}

.community-no-reviews p {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Review grid - responsive 1–2 col cards */
.community-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 0 1.5rem;
    transition: opacity 0.2s ease;
}

/* Review card styling (used by JS-generated cards) */
.community-section .testimonial-card.community-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
    min-height: auto;
    display: block;
    color: #1e293b !important;
}

.community-section .testimonial-card.community-review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.community-section .testimonial-content {
    padding: 0;
    border-bottom: none;
}

.community-section .testimonial-rating {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.community-section .testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #374151 !important;
    margin: 0;
}

.community-section .testimonial-author {
    padding: 0.75rem 0 0;
    display: flex;
    align-items: center;
}

.community-section .author-image {
    width: 38px;
    height: 38px;
    margin-right: 0.65rem;
    flex-shrink: 0;
}

.community-section .author-info h4 {
    font-size: 0.9rem;
    color: #0f172a !important;
    margin: 0;
}

.community-section .author-info p {
    font-size: 0.78rem;
    color: #6b7280 !important;
    margin: 0;
}

.verified-nextdoor-badge,
.verified-platform-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
}

.verified-nextdoor-badge { color: #00B246 !important; }
.verified-platform-badge.google { color: #4285F4 !important; }
.verified-platform-badge.yelp { color: #D32323 !important; }

.verified-nextdoor-icon,
.verified-platform-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* CTA row - stack on mobile, inline on desktop */
.community-cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.community-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    text-decoration: none !important;
    border-bottom: none !important;
    min-height: 46px;
    -webkit-tap-highlight-color: transparent;
}

.community-view-reviews .reviews-link-btn {
    background: rgba(255, 255, 255, 0.96);
    color: #0B2545 !important;
}

.community-view-reviews .reviews-link-btn:hover {
    background: #fff;
    color: #0B2545 !important;
    transform: translateY(-1px);
}

.community-cta-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.96) !important;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.community-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.8);
}

/* Link cards - single column mobile, grid desktop */
.community-links-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.community-link-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    padding: 1.25rem 1.15rem;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.nextdoor-link:hover { border-color: #8FD14F; }

.community-link-card .community-link-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #8FD14F 0%, #6FB83C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.community-link-card .community-link-icon svg {
    width: 24px;
    height: 24px;
}

.community-link-card .community-link-content {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.community-link-card .community-link-content h3 {
    font-size: 1rem;
    color: #0B2545 !important;
    margin: 0 0 0.2rem;
    font-weight: 700;
}

.community-link-card .community-link-content p {
    font-size: 0.82rem;
    color: #6b7280 !important;
    margin: 0 0 0.3rem;
    line-height: 1.4;
}

.community-link-arrow {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6FB83C !important;
}

/* Stats row - clean, aligned */
.community-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.community-stats-row .stat-item {
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.community-stats-row .stat-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0B2545;
    margin-bottom: 0.2rem;
}

.community-stats-row .stat-label {
    font-size: 0.68rem;
    color: #6b7280;
    font-weight: 500;
}

/* Desktop: wider container, 2-col grid for reviews & links */
@media (min-width: 600px) {
    .community-section {
        padding: 3.5rem 1.5rem 4rem;
    }

    .community-container {
        max-width: 900px;
    }

    .community-section h2 {
        font-size: 2rem;
    }

    .community-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .community-platform-selector {
        max-width: 380px;
    }

    .community-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .community-cta-row {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .community-links-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .community-container {
        max-width: 1100px;
    }

    .community-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Contact Page */
.contact-section {
    padding: 40px 20px;
    background-color: #f7f7f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info,
.contact-form-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2,
.contact-form-container h2 {
    color: #333;
    margin-bottom: 20px;
}

.contact-info > p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.info-content h3 {
    margin: 0 0 10px;
    color: #333;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: #555;
}

.info-note {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.social-links {
    margin-top: 30px;
}

.social-links h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img {
    width: 20px;
    height: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form button {
    background-color: rgb(238, 122, 48);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #ffae00ed;
    transform: scale(1.1);
}

#contactMessage {
    height: 20px;
    font-size: 0.95rem;
}

.service-areas {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.service-areas h2 {
    color: #333;
    margin-bottom: 15px;
}

.service-areas > p {
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.area-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.area-column li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.area-column li:last-child {
    border-bottom: none;
}

.service-note {
    font-style: italic;
    color: #666;
}

/* Laptop Screen Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-top-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 900px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .services-carousel-wrapper {
        max-width: 440px;
    }
}

/* Desktop Screen Optimizations */
@media (min-width: 1025px) {
    .services-top-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 1100px;
    }
    
    .service-card {
        padding: 25px;
    }

    .services-carousel-wrapper {
        max-width: 480px;
    }
}

/* Tablet Styles - community section handled in section block above */

/* Responsive Styles */
@media (max-width: 768px) {
    /* Mobile-specific styling */
    #menu p {
        font-size: 16px;
        margin: 8px 0;
        padding: 5px;
        text-decoration: underline;
    }

    .navbar {
        /* Keep navbar stationary at 100% width */
        width: 100% !important;
    }

    .menu-button {
        width: 120px;
        height: 70px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu-button.active {
        /* Button moves smoothly to right edge of 75% menu width */
        left: calc(75vw - 110px);
    }

    .menu {
        top: 80px;
        left: 0;
        width: 75%;
        margin-top: 3px;
        max-width: 0;
        overflow: hidden;
        transition: max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .menu button {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }
    
    .services-submenu.expanded {
        max-height: 250px; /* Reduced for better scrolling on mobile */
        padding: 5px 0;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    #neighborhoodsSubmenu.expanded {
        max-height: 200px; /* Reduced for better scrolling on mobile */
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .services-submenu a,
    .services-submenu .nav-item,
    .services-submenu button {
        width: 100%;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .services-arrow {
        font-size: 12px;
    }

    .menu.show {
        max-height: calc(100vh - 90px); /* Keep main buttons visible on mobile */
        max-width: 75vw;
        padding: 8px;
        opacity: 1;
        transform: translateX(0);
        overflow-y: auto;
        overflow-x: hidden;
    }

    header {
        padding: 30px 10px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.5rem;
    }

    .fixed-button-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .services-top-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
        padding: 0 10px;
    }

    .service-card {
        padding: 20px;
    }

    .testimonials-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-header h2,
    .reviews-header h2 {
        font-size: 2rem;
    }
    
    .platform-selector {
        max-width: 100%;
        padding: 6px;
        gap: 10px;
    }
    
    .platform-btn {
        padding: 10px 16px;
    }
    
    .platform-icon {
        width: 28px;
        height: 28px;
    }

    .testimonial-content {
        padding: 25px 20px;
    }

    .testimonial-author {
        padding: 15px 20px;
    }

    .author-image {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .author-image img {
        object-fit: cover;
        object-position: center;
    }

    #contact form {
        max-width: 94%;
    }

    footer {
        font-size: 0.9rem;
        padding: 10px;
    }


    .service-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .blog-post {
        flex-direction: column;
    }

    .post-image {
        max-width: 100%;
        height: 200px;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .rate-table {
        font-size: 0.9rem;
    }

    .rate-cell {
        padding: 8px 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group input,
    .form-group button {
        width: 100%;
        border-radius: 4px;
    }

    .form-group button {
        margin-top: 10px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 48px;
    }

    .services-submenu.expanded {
        max-height: 200px; /* Reduced for smaller screens */
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    #neighborhoodsSubmenu.expanded {
        max-height: 150px; /* Reduced for smaller screens */
        overflow-y: auto;
        overflow-x: hidden;
    }

    header {
        padding: 20px 5px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1.3rem;
    }

    #services h2 {
        font-size: 1.8rem;
    }

    .services-top-grid {
        padding: 0 5px;
        gap: 14px;
    }

    .service-card {
        max-width: 100%;
        margin-bottom: 0;
    }

    .testimonials-section,
    .reviews-section {
        padding: 60px 15px;
    }

    .testimonials-header h2,
    .reviews-header h2 {
        font-size: 2.2rem;
    }

    .testimonials-header p,
    .reviews-header p {
        font-size: 1.2rem;
    }
    
    .platform-selector {
        flex-wrap: wrap;
        gap: 8px;
        padding: 6px;
    }
    
    .platform-btn {
        padding: 8px 12px;
        min-width: 80px;
    }
    
    .platform-icon {
        width: 24px;
        height: 24px;
    }
    
    .platform-fallback {
        font-size: 0.8rem;
    }
    
    .reviews-link-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .testimonial-content {
        padding: 20px 15px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }

    .testimonial-author {
        padding: 10px 15px;
    }

    .author-image {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }
    
    .author-image img {
        object-fit: cover;
        object-position: center;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.9rem;
    }

    .testimonial-button.submit-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .contact-section,
    .service-areas {
        padding: 30px 15px;
    }

    .service-item,
    .benefit-item,
    .material-item,
    .benefit-card,
    .faq-item {
        padding: 15px;
        max-width: 95%;
        margin-bottom: 15px;
    }
    
    /* Community Section - mobile styles in main section block */
}

/* Agent Signup Page Styles - Add to your style.css */

/* Agent Program Section */
.agent-program-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.agent-program-info {
    max-width: 1000px;
    margin: 0 auto 60px;
    text-align: center;
}

.agent-program-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.agent-program-info > p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Agent Benefits */
.agent-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-box {
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.benefit-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.benefit-box h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.benefit-box p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* Agent Signup Container */
.agent-signup-container {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.agent-signup-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #222;
    font-size: 2rem;
}

.agent-signup-container > p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Agent Form */
.agent-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Payment Section */
.payment-section {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    margin-top: 10px;
    background-color: #f9f9f9;
}

.payment-section h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

.payment-section > p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
}

.payment-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.payment-tab {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.payment-tab:hover {
    background-color: #f0f0f0;
}

.payment-tab.active {
    border-bottom: 2px solid rgb(238, 122, 48);
    color: rgb(238, 122, 48);
}

.payment-content {
    transition: all 0.3s ease;
}

.hidden {
    display: none;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

.help-text a {
    color: rgb(238, 122, 48);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Success Message */
.signup-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.signup-success h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.signup-success p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.referral-code {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(238, 122, 48);
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 300px;
    letter-spacing: 2px;
}

.code-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.copy-button, .email-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button {
    background-color: #f1f1f1;
    color: #333;
}

.copy-button:hover {
    background-color: #e0e0e0;
}

.email-button {
    background-color: rgb(238, 122, 48);
    color: white;
}

.email-button:hover {
    background-color: #ff9633;
}

.login-link {
    margin-top: 30px;
    font-size: 1rem;
}

.login-link a {
    color: rgb(238, 122, 48);
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Terms Modal — scoped so it doesn't override estimate modal */
.modal.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal.terms-modal .close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.terms-modal .close:hover {
    color: #0f172a;
}

.modal.terms-modal .modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}


.terms-content {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    height: 50vh;
    overflow-y: auto;
}

.terms-content h3 {
    margin: 20px 0 10px;
    color: #333;
}

.terms-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .review-platforms-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .review-platform-card {
        padding: 30px 25px;
    }
    
    .review-platform-icon {
        width: 70px;
        height: 70px;
    }
    
    .review-platforms-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .review-platform-card {
        padding: 30px 25px;
    }
    
    .review-platform-icon {
        width: 70px;
        height: 70px;
    }
    
    .agent-program-section {
        padding: 60px 15px;
    }
    
    .agent-program-info h2 {
        font-size: 2rem;
    }
    
    .agent-program-info > p {
        font-size: 1.1rem;
    }
    
    .agent-signup-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }
    
    .code-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .copy-button, .email-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .review-platforms-container {
        gap: 20px;
    }
    
    .review-platform-card {
        padding: 25px 20px;
    }
    
    .review-platform-card h3 {
        font-size: 1.2rem;
    }
    
    .review-platform-card p {
        font-size: 0.95rem;
    }
    
    .review-platform-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .agent-program-section {
        padding: 40px 15px;
    }
    
    .agent-program-info h2 {
        font-size: 1.7rem;
    }
    
    .benefit-box {
        padding: 20px 15px;
    }
    
    .referral-code {
        font-size: 1.5rem;
        padding: 10px 15px;
    }
    .navbar {
        max-height: 80px;
        height: 100%;
    }
}

/* Service Selection Modal Styles */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10020; /* Above fixed button container (10010) */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.active {
    display: flex;
    opacity: 1;
}

.service-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10020; /* Same as modal */
}

.service-modal-content {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-radius: 20px 20px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    z-index: 10021; /* Above modal backdrop */
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.service-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0B2545;
    font-weight: 600;
}

.service-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.service-modal-close:hover {
    color: #0B2545;
}

.service-modal-body {
    padding: 20px 24px;
    padding-bottom: 120px; /* Extra padding to account for fixed button container height */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    min-height: 0;
}

.service-section,
.product-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0B2545;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.service-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-option {
    width: 100%;
    padding: 16px 20px;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #0B2545;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.service-option:hover {
    background-color: #f9fafb;
    border-color: #0B2545;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop Styles - Centered Modal */
@media (min-width: 768px) {
    .service-modal-content {
        border-radius: 20px;
        max-height: 85vh;
        animation: fadeInScale 0.3s ease-out;
    }

    @keyframes fadeInScale {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .service-modal-body {
        padding: 24px 32px 32px;
    }

    .service-option {
        padding: 18px 24px;
        font-size: 1.05rem;
    }
}

/* General Inquiry Section in Modal */
.general-inquiry-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
.inquiry-label {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #6b7280;
}
/* Ghost Button Style */
.service-option.secondary-option {
    background-color: transparent;
    border: 2px solid #d1d5db;
    color: #4b5563;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}
.service-option.secondary-option:hover {
    border-color: #2563eb;
    color: #2563eb;
    background-color: #f9fafb;
    transform: none; /* Optional: subtle difference from primary */
}

