/* --- Step 1: Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* --- Step 2: Define Color Palette and Global Variables --- */
:root {
    --charcoal-gray: #FFFFFF;     /* Charcoal becomes White */
    --construction-gold: #FFFFFF; /* Gold becomes White */
    --white: #000000;             /* White becomes Black */
    --light-gray: #FFFFFF;        /* Light Gray becomes White */
    --text-color: #FFFFFF;        /* Text Color becomes White */
}

/* --- Step 3: Global Resets and Base Styles --- */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #000000; /* Main background is BLACK */
    color: #FFFFFF;             /* Default text is WHITE */
    line-height: 1.6;
}
a, button {
    transition: all 0.3s ease;
}
h1, h2, h3 {
    color: #FFFFFF;             /* All headings are WHITE */
    margin-bottom: 1rem;
}

/* --- Password Toggle Styles --- */
.password-wrapper {
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #718096;
    font-size: 1rem;
    z-index: 10;
    transition: color 0.3s ease;
    pointer-events: auto;
    user-select: none;
}

.toggle-password:hover {
    color: #B87333;
}

.toggle-password:active {
    color: #8B4513;
}

/* --- App Layout & Form Redesign --- */

.app-layout {
    /* The background image */
    background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), url('trust-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */

    /* Ensure it takes up the full space */
    min-height: calc(100vh - 80px); /* 100% of viewport height minus the header height */
}

/* --- Page-Specific Overrides --- */

/* Apply dashboard styling to all pages */
body {
    background-color: #FFFFFF !important; /* Force the background to be WHITE */
    background-image: none !important;     /* Remove any background images */
    color: #000000 !important;             /* Force text to be BLACK */
}

body.dashboard-page {
    background-color: #FFFFFF !important; /* Force the background to be WHITE */
    background-image: none !important;     /* Remove any background images */
    color: #000000 !important;             /* Force text to be BLACK */
}

/* Dashboard Content Section */
.dashboard-content {
    padding: 4rem 5%;
    background: #F7FAFC;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: #718096;
}


/* Status Timeline */
.status-timeline {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
}

.timeline-step.active {
    background: #F0F9FF;
    border: 1px solid #0EA5E9;
}

.timeline-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #718096;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.timeline-step.active .step-number {
    background: #0EA5E9;
    color: #FFFFFF;
}

.timeline-step .step-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.25rem;
}

.timeline-step .step-content p {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.3;
}

/* Universal Timeline Component - Synchronized across all dashboards */
/* Project Timeline Component */
.project-timeline-wrapper {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.project-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 1rem 0;
    min-width: 1000px; /* Ensure 11 steps don't squish */
}

.project-timeline::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 3px;
    background: #E2E8F0;
    z-index: 0;
}

.project-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.project-timeline-connector {
    position: absolute;
    top: 18px;
    left: 15px;
    right: -15px;
    height: 3px;
    background: #E2E8F0;
    z-index: 0;
    transition: background 0.3s ease;
}

.project-timeline-step:not(:last-child) .project-timeline-connector.completed {
    background: #10B981;
}

.project-timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Default state (future/pending) */
.project-timeline-dot {
    background: #E2E8F0;
    color: #718096;
    border-color: #CBD5E0;
}

/* Completed state */
.project-timeline-dot.completed {
    background: #10B981;
    color: #FFFFFF;
    border-color: #10B981;
}

.project-timeline-dot.completed i {
    font-size: 1.2rem;
}

/* Active/Pending state (needs action) */
.project-timeline-dot.active,
.project-timeline-dot.pending {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
    animation: pulse-red 2s infinite;
}

/* In-progress state (copper) */
.project-timeline-dot.in-progress {
    background: #B87333;
    color: #FFFFFF;
    border-color: #B87333;
    animation: pulse-copper 2s infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

@keyframes pulse-copper {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(184, 115, 51, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(184, 115, 51, 0);
    }
}

.project-timeline-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #718096;
    line-height: 1.2;
    max-width: 70px;
    margin-top: 0.5rem;
}

.project-timeline-step.completed .project-timeline-label {
    color: #2D3748;
    font-weight: 600;
}

.project-timeline-step.active .project-timeline-label,
.project-timeline-step.pending .project-timeline-label {
    color: #EF4444;
    font-weight: 600;
}

.project-timeline-step.in-progress .project-timeline-label {
    color: #B87333;
    font-weight: 600;
}

/* Universal Timeline (existing - keep for backward compatibility) */
.universal-timeline {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-track {
    position: relative;
    height: 4px;
    background: #E2E8F0;
    border-radius: 2px;
    margin: 2rem 0;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #B87333 0%, #8B4513 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.timeline-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: -2rem;
    margin-bottom: 1rem;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.timeline-node .node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-node .node.active {
    background: linear-gradient(135deg, #B87333 0%, #8B4513 100%);
    color: #FFFFFF;
    border-color: #B87333;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
    transform: scale(1.1);
}

.timeline-node .node.completed {
    background: #38A169;
    color: #FFFFFF;
    border-color: #38A169;
}

.timeline-node .node.completed::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.2rem;
}

.timeline-node .node-label {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #718096;
    text-align: center;
    font-weight: 500;
    max-width: 55px;
}

.timeline-node.active .node-label {
    color: #B87333;
    font-weight: 600;
}

.timeline-node.completed .node-label {
    color: #38A169;
}

/* Contract Link Hover Effect */
.contract-link:hover {
    background: #8B4513 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(184, 115, 51, 0.3) !important;
}

.doc-link.highlight {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(184, 115, 51, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    }
}

/* Points Summary */
.points-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #B87333 0%, #8B5A2B 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.total-points {
    text-align: center;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
    color: #B87333;
}

.points-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #B87333;
}

.points-label {
    font-size: 1rem;
    opacity: 0.9;
    color: #B87333;
}

.points-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.points-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.points-activity {
    font-weight: 500;
    color: #FFFFFF;
    font-size: 0.85rem;
}

.points-earned {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.8rem;
}

/* Project Rewards - Pie Chart Design (50 pts per step, 11 steps = 550 max) */
.project-rewards-section .rewards-subtitle {
    font-size: 0.8rem;
    color: #718096;
    margin: -0.5rem 0 1rem 0;
}

.rewards-pie-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1.25rem 0;
}

.rewards-pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rewards-pie-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.9), inset 0 0 0 1px #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rewards-total-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #B87333;
    line-height: 1;
}

.rewards-total-label {
    font-size: 0.7rem;
    color: #718096;
    margin-top: 0.25rem;
}

.rewards-steps-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
}

.rewards-step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.rewards-step-item.earned {
    opacity: 1;
    background: #FEF5E7;
}

.rewards-step-icon {
    width: 1.25rem;
    text-align: center;
    color: #718096;
}

.rewards-step-item.earned .rewards-step-icon {
    color: #38A169;
}

.rewards-step-label {
    flex: 1;
    color: #2D3748;
}

.rewards-step-pts {
    font-weight: 600;
    color: #718096;
    font-size: 0.75rem;
}

.rewards-step-item.earned .rewards-step-pts {
    color: #B87333;
}

/* Next Actions */
.next-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-button:hover {
    border-color: #E53E3E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15);
}

.action-icon {
    width: 35px;
    height: 35px;
    background: #F0F9FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon i {
    font-size: 1.1rem;
    color: #0EA5E9;
}

.action-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.25rem;
}

.action-content p {
    font-size: 0.85rem;
    color: #718096;
    margin: 0;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F7FAFC;
    border-radius: 6px;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: #E53E3E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: #2D3748;
    font-size: 0.9rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #718096;
}

/* Dashboard Content Section */
.dashboard-content {
    padding: 2rem 5%;
    background: #FFFFFF;
}

.dashboard-welcome {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dashboard-welcome h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    font-size: 1.1rem;
    color: #718096;
}

/* Consolidated Dashboard Card */
.consolidated-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px; /* Reduced from 600px */
}

.card-section {
    margin-bottom: 1rem; /* Reduced from 1.5rem */
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-section h3 {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-section h3::before {
    content: '';
    width: 3px;
    height: 16px; /* Reduced from 20px */
    background: #E53E3E;
    border-radius: 2px;
}

/* Dashboard Welcome Section */
.dashboard-welcome-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #1A365D 0%, #2C5282 100%);
    color: #FFFFFF;
    margin-bottom: 2rem;
    border-radius: 12px;
}

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

.welcome-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.welcome-content p {
    font-size: 1.2rem;
    color: #E2E8F0;
    line-height: 1.6;
}

/* Dashboard Grid Alignment */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 0.8fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start; /* Align items to start */
}

/* Dashboard Row Layout */
.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

/* Dashboard Sections */
.dashboard-section {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #E2E8F0;
}

.dashboard-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #E53E3E;
    border-radius: 2px;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Agent Card */
.agent-card .agent-profile {
    text-align: center;
}

.agent-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    display: block;
}

.agent-profile h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.375rem;
}

.agent-profile p {
    color: #718096;
    margin-bottom: 1rem;
}

/* Project Details */
.project-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #E2E8F0;
}

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

.detail-label {
    font-weight: 500;
    color: #4A5568;
}

.detail-value {
    font-weight: 600;
    color: #2D3748;
}

.status-planning {
    background: #FEF3C7;
    color: #D97706;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 1rem 5%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dashboard-welcome-section {
        padding: 3rem 5%;
        margin-bottom: 1.5rem;
    }
    
    .welcome-content h2 {
        font-size: 2rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
    }
    
    .dashboard-main {
        gap: 1rem;
    }
    
    .dashboard-sidebar {
        gap: 1rem;
    }
    
    .dashboard-section {
        padding: 0.75rem;
    }
    
    .consolidated-card {
        min-height: auto; /* Remove minimum height on mobile */
    }
    
    .card-section {
        margin-bottom: 0.75rem;
    }
    
    .status-timeline {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
        flex: none;
    }
    
    .action-button {
        flex-direction: column;
        text-align: center;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
}

/* --- 4. Header Styles --- */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: #000000 !important; /* Force header to be black on all pages */
    border-bottom: 1px solid #333; /* Use a dark gray border */
}

header nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #FFFFFF; /* White text for black header */
}
header nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: #FFFFFF; /* White text for black header */
}
header nav a:hover {
    color: var(--construction-gold);
}

/* Subtle Login Link in Header */
.nav-login-link {
    color: #CBD5E0 !important;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    margin-left: 1rem;
}

.nav-login-link:hover {
    color: #B87333 !important;
}

.nav-login-link i {
    font-size: 1.1rem;
}

.header-controls {
    display: none !important;
}

/* Header buttons - match the new yellow design */
.header-controls .cta-button,
.header-controls .cta-button.secondary {
    background-color: #FFFFFF;
    color: #2D3748;
    border: 2px solid #FFFFFF;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.header-controls .cta-button:hover,
.header-controls .cta-button.secondary:hover {
    background-color: #CCAA00;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}
.login-link {
    text-decoration: none;
    color: var(--charcoal-gray);
    margin-right: 1.5rem;
}
.login-link,
.logout-link {
    text-decoration: none;
    color: var(--charcoal-gray);
    margin-right: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: #E53E3E;
}

/* Auth Controls Container */
.auth-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0.5rem;
}

.auth-logged-out,
.auth-logged-in {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Dashboard Link Button - Distinct Teal/Navy Color */
.cta-button.dashboard-link {
    background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    color: #FFFFFF;
    border: 2px solid #14B8A6;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button.dashboard-link:hover {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    transform: translateY(-1px);
}
.cta-button {
    background-color: #B87333 !important; /* Copper theme */
    color: #FFFFFF !important;
    border: 2px solid #B87333 !important;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.instant-quote-btn {
    /* Back to original design - no animation */
}
.cta-button:hover {
    background-color: #8B5A2B !important; /* Darker copper on hover */
    color: #FFFFFF !important;
    border-color: #8B5A2B !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    transform: translateY(-1px);
}
.cta-button.secondary {
    background-color: #B87333 !important; /* Copper theme for secondary too */
    border: 2px solid #B87333 !important;
    color: #FFFFFF !important;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}
.cta-button.secondary:hover {
    background-color: #8B5A2B !important; /* Darker copper on hover */
    color: #FFFFFF !important;
    border-color: #8B5A2B !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    transform: translateY(-1px);
}

/* Funnel CTA banner – copper button */
.funnel-cta-banner .cta-button {
    background-color: #B87333 !important;
    color: #FFFFFF !important;
    border: 2px solid #B87333 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}
.funnel-cta-banner .cta-button:hover {
    background-color: #8B5A2B !important;
    border-color: #8B5A2B !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    transform: translateY(-2px);
}

/* --- 5. Hero Section Styles (Video Background Version) --- */
/* Universal hero sizing - applies to all HTML files */
.hero {
    position: relative; /* Needed to contain the absolute elements inside */
    height: 80vh !important; /* Hero height - 80% of viewport */
    min-height: 600px; /* Prevent crushing on small screens */
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically */
    overflow: hidden; /* Ensures video doesn't spill outside the section */
}

/* Hero h1 should be white on dark background */
.hero .hero-content h1 {
    color: #FFFFFF !important;
}

/* Hero button hover effect - Copper theme */
.hero .cta-button:hover,
.page-header .cta-button:hover,
.hero-cta .cta-button:hover {
    background-color: #B87333 !important;
    border-color: #B87333 !important;
    color: #FFFFFF !important;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes the video cover the area without stretching */
    z-index: 0; /* Bottom layer */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent !important; /* Removed darkening effect to maximize visual impact */
    z-index: 1; /* Middle layer */
}

.hero-content {
    position: relative;
    z-index: 2; /* Top layer - ensures text is clickable and readable */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 5%;
    width: 100%;
    color: var(--white); /* Ensure all text here is white */
}

/* Updated selectors to target elements inside .hero-content */
.hero-content h1 {
    font-size: 3.5rem;
    color: #FFFFFF; /* Use #FFFFFF for white */
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8); /* Ensure text visibility on bright images */
}

.page-header-content h1 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Force black text for hero-light */
.hero-light h1 {
    color: #000000 !important;
}

.hero-content p,
.page-header-content p {
    display: none; /* Hide description paragraphs globally */
}

/* Responsive adjustments for the new structure */
@media (max-width: 768px) {
    .hero-content h1,
    .page-header-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p,
    .page-header-content p {
        display: none;
    }
}

/* This new rule targets the form inside the hero section */
.hero .quote-form-step {
    display: flex;
    width: 100%;
    max-width: 500px;
}
.quote-form input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}
.quote-form .cta-button {
    border-radius: 0;
}

/* --- 6. Portals Section Styles --- */
.portals {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.portals-header {
    text-align: center;
    margin-bottom: 4rem;
}

.portals-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2D3748;
    font-weight: 700;
}

.portals-header p {
    font-size: 1.3rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portal-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.card-icon {
    background: #B87333;
    padding: 2rem;
    text-align: center;
    position: relative;
}

/* Portal card icon specific styling */
.portal-card .card-icon {
    background: #B87333;
}

.card-icon i {
    font-size: 2.5rem;
    color: #FFFFFF;
    display: block;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portal-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2D3748;
    font-weight: 600;
}

.portal-card p {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
    flex-grow: 1;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: var(--construction-gold);
    font-size: 1rem;
}

.portal-link:hover {
    background-color: #e0a800;
}

.portal-link i {
    transition: transform 0.3s ease;
}

.portal-link:hover i {
    transform: translateX(4px);
}
.portal-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.portal-card p {
    margin-bottom: 1.5rem;
}
.portal-card a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: var(--construction-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.portal-card a:hover {
    background-color: #e0a800;
}

/* --- 7. Value Proposition Section Styles (Updated Workflow Design) --- */

.value-prop {
    background-color: #000000; /* Ensure the background is pure black */
    padding: 6rem 5%; /* Add more vertical space for a premium feel */
    text-align: center;
}

.value-prop h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5rem; /* Increase space between title and the steps */
    color: #FFFFFF;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem; /* Increase the gap between columns */
    text-align: left; /* Text within each column is left-aligned */
}

.prop-item {
    /* We don't need special styles for the item container itself */
}

.prop-number {
    font-size: 3rem; /* Make the number large */
    font-weight: 700;
    color: #888888; /* A medium gray for the number, just like the image */
    margin-bottom: 1rem;
    display: block; /* Ensure it sits on its own line */
}

.prop-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF; /* Bright white for the title */
    margin-bottom: 1rem;
}

/* Target the paragraph directly within the prop-item */
.prop-item p {
    color: #CCCCCC; /* A lighter gray for the description text */
    line-height: 1.7;
}

/* --- 8. Trust Section Styles --- */
.trust {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('trust-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}
.trust-content {
    max-width: 700px;
}
.trust h2 {
    font-size: 2.5rem;
    color: var(--white);
    color: #FFFFFF !important; /* Forces the color to be white */
}
.trust p {
    color: rgba(255, 255, 255, 0.9);
    color: #FFFFFF !important; /* Forces the color to be white */
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.final-cta-content {
    margin-top: 3rem;
    text-align: center;
}

.final-cta-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.final-cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.final-cta-content .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFD700;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.final-cta-content .cta-button:hover {
    background-color: #FFC700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Hero form button - use clean style */
.hero .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFFFFF;
    color: #2D3748;
    border: 2px solid #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .cta-button:hover {
    background-color: #B87333 !important;
    border-color: #B87333 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
    transform: translateY(-1px);
}
.trust-image {
    /* display: none; */
}

/* --- 9. Final CTA Section Styles --- */
.final-cta {
    background-color: transparent; /* This makes it black like the rest of the page */
    color: #FFFFFF; /* Explicitly set text to white */
    text-align: center;
    padding: 4rem 5%;
}
.final-cta h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
}
.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}
.final-cta .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
}

/* --- 10. Footer Styles (REFERENCE-FOOTER) --- */
footer,
#footer-container {
    background-color: #1c1917 !important; /* stone-900 */
    color: #FFFFFF;
    padding: 2rem 5% 0;
    max-width: 100%;
}

.footer-nav-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-nav-row a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d6d3d1;
    transition: color 0.2s;
}

.footer-nav-row a:hover {
    color: #FFFFFF;
}

.footer-divider {
    border-bottom: 1px solid #44403c;
    margin-bottom: 1.5rem;
}

.footer-divider + .footer-bottom {
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0 2rem;
    justify-items: center;
    text-align: center;
}

.footer-grid-5 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid-5 {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem 2.5rem;
        text-align: center;
        justify-items: center;
    }
    .footer-col-identity { justify-self: center; text-align: center; }
    .footer-col-contact { justify-self: center; text-align: center; }
    .footer-col-qr { justify-self: center; text-align: center; }
    .footer-col-social { justify-self: center; text-align: center; }
    .footer-col-partner { justify-self: center; text-align: center; }
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.footer-col-contact h4 {
    margin-bottom: 1.25rem;
}

.footer-col-social h4 {
    margin-bottom: 1.25rem;
}

.footer-col p {
    font-size: 0.875rem;
    color: #a8a29e;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #d6d3d1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #FFFFFF;
}

/* Column 1: Identity */
.footer-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.footer-tagline {
    font-size: 0.8rem !important;
    color: #a8a29e !important;
    max-width: 200px;
}

/* Column 3: QR Code */
.footer-qr-wrapper {
    background: #FFFFFF;
    padding: 4px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-qr-img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.footer-qr-label {
    font-size: 0.75rem;
    color: #a8a29e;
    margin-bottom: 0.25rem;
}

.footer-qr-download {
    font-size: 0.75rem;
    color: #a8a29e;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-top: 0.25rem;
}

.footer-qr-download:hover {
    color: #FFFFFF;
}

/* Column 4: Social */
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.footer-social-row {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-social-links { align-items: center; }
}

.footer-social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d6d3d1;
    font-size: 1rem;
}

.footer-social-links a:hover {
    color: #FFFFFF;
}

.footer-social-links i {
    font-size: 1.25rem;
}

/* Column 5: Partner */
.footer-partner-link {
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.footer-partner-link:hover {
    opacity: 1;
}

.footer-partner-logo {
    display: block;
    width: 128px;
    height: 128px;
    object-fit: contain;
}

/* Legacy footer-col support (ul/li) */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #44403c;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #78716c;
    margin: 0;
}

/* --- 11. Mobile Nav Toggle (Desktop) --- */
.mobile-nav-toggle {
    display: none;
}

/* --- 12. Services Introduction Section --- */
.services-intro {
    padding: 4rem 5%;
    background-color: #FFFFFF;
    text-align: center;
}

.services-intro .container {
    max-width: 800px;
    margin: 0 auto;
}

.services-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2D3748;
}

.services-intro p {
    font-size: 1.2rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- 13. Homeowner/Service Page Styles --- */
/* Replace your old .page-header styles with this */
.page-header {
    position: relative; /* Needed for layering */
    height: 80vh !important; /* Hero height - 80% of viewport */
    min-height: 600px; /* Prevent crushing on small screens */
    display: flex;
    justify-content: center;
    align-items: center; /* Center content vertically */
    text-align: center;
    overflow: hidden; /* Hide anything that spills out */
}

/* Add this new rule for the video */
.page-header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Add this new rule for the content */
.page-header-content {
    position: relative;
    z-index: 2; /* Puts content on top */
    padding: 0 5%;
    color: #FFFFFF; /* Force text to be white */
}

/* Also add an overlay for readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black overlay */
    z-index: 1;
}

/* Remove extra overlay for hero sections that already have gradient overlays in background-image */
.page-header.hero-installer::before,
.page-header.hero-index::before,
.page-header.hero-homeowner::before,
.page-header.hero-supplier::before,
.page-header.hero-expert::before {
    display: none !important;
}

/* Ensure headings inside are white */
.page-header-content h1,
.page-header-content p {
    color: #FFFFFF;
}

/* Add text shadow for hero headings to ensure visibility on bright images */
.page-header-content h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Make hero section text smaller */
.page-header-content h1 {
    font-size: 1.5rem;
}

.page-header-content p {
    font-size: 0.85rem;
}

/* Make hero CTA buttons smaller but keep the design */
.hero-cta .cta-button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 12px;
    border: 2px solid #FFFFFF;
    background-color: #FFFFFF;
    color: #2D3748;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-cta .cta-button:hover {
    background-color: #B87333 !important;
    border-color: #B87333 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
    transform: translateY(-1px);
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--text-color);
}
.section-divider {
    border: none;
    height: 1px;
    background-color: #333; /* A dark gray, subtle line */
    margin: 0 5%; /* Give it the same side margins as our sections */
}
.topics-section {
    padding: 4rem 5%;
    max-width: 100%;
}

.topics-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.topics-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.topics-section-header p {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
}

/* FIX: Expert Benefits / "Why Hire an Expert?" grid – mobile stacking */
@media (max-width: 992px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}
@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: 1fr !important;
    }
}
.topics-grid .topic-card {
    min-width: 0; /* Prevent grid blowout on small screens */
}

.topic-card {
    background-color: #FFFFFF !important; /* Force white background */
    border: 1px solid #e2e8f0;
    overflow: hidden;
    border-radius: 8px;
    color: #000000 !important; /* Force black text */
}

.topic-card-content {
    background-color: #000000 !important; /* Black background for text area */
    padding: 1.5rem;
    color: #FFFFFF !important; /* White text on black background */
}

.topic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFFFFF !important; /* Force white text for headings on black background */
    text-align: center;
}

.topic-card p {
    color: #FFFFFF !important; /* Force white text for paragraphs on black background */
    line-height: 1.6;
}

.topic-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}
.showroom-section {
    padding: 4rem 5%;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('trust-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: transparent;
    background-image: none;
}
.showroom-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.showroom-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.showroom-section h2,
.showroom-section p {
    color: var(--white);
}
.showroom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
}
.project-card {
    background-color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-info {
    padding: 1.5rem;
}
.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.project-info p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-color);
}
.promo-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    height: 100%;
}

.installer-promo {
    background: #1a202c !important;
}

.supplier-promo {
    background: #1a202c !important;
}

.promo-sections-container {
    background: #F7FAFC !important;
    padding: 3rem 2rem !important;
    margin: 0 !important;
}

.promo-sections-container > div {
    gap: 3rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

.promo-section {
    width: 100%;
    height: 100%;
}

/* Responsive gap for promo sections */
@media (max-width: 768px) {
    .promo-sections-container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.promo-content {
    max-width: 600px;
}
.promo-section h2 {
    font-size: 2.5rem;
    color: var(--white);
}
.promo-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* --- 13. Global Floating Widget Styles --- */
.floating-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-button {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: 60px;
    background: linear-gradient(135deg, #B87333 0%, #8B5A2B 100%);
    color: #FFFFFF;
    text-decoration: none;
    width: 200px;
    height: 60px;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.widget-button i {
    font-size: 1.4rem;
    min-width: 28px;
}

.widget-button span {
    white-space: nowrap;
    margin-left: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- 14. Registration Form Styles --- */
.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 5%;
}
.form-wrapper {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px; /* This makes the form wider */
}
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}
.form-header h2 {
    font-size: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--charcoal-gray);
}
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    
    /* ADD THESE TWO LINES */
    background-color: #FFFFFF !important; /* Force background to be white */
    color: #000000 !important;             /* Force text to be black */
}
.form-submit-button {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-submit-button:hover {
    background: linear-gradient(135deg, #C53030 0%, #9B2C2C 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}
.form-footer {
    text-align: center;
    margin-top: 2rem;
}
.form-footer a {
    color: var(--construction-gold);
    font-weight: 700;
    text-decoration: none;
}

/* --- 15. Roofing Steps Section --- */
.roofing-steps {
    padding: 4rem 5%;
    background-color: #f8f9fa;
}

.roofing-steps .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.roofing-steps h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #2D3748;
}

.roofing-steps > .container > p {
    text-align: center;
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.step-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #B87333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 auto 0.75rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2D3748;
    font-weight: 600;
}

.step-card p {
    color: #718096;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* FIX: 4-Card Diagnostic Grid on Homeowner Page - Mobile responsiveness */
@media (max-width: 900px) {
    .diagnostic-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2x2 on tablets */
    }
}
@media (max-width: 600px) {
    .diagnostic-grid {
        grid-template-columns: 1fr !important; /* 1 column on phones */
    }
}

/* Process Detail Zoom Viewer (floating card on hover - homeowner journey steps) */
#process-detail-viewer {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 9999;
    background: white;
    border: 2px solid #B87333;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: none;
    max-width: 400px;
    pointer-events: none;
    border-radius: 8px;
}
#process-detail-viewer h4 {
    color: #B87333;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}
#process-detail-viewer p {
    color: #2D3748;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Roofing Steps */
@media (max-width: 1200px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .step-card {
        padding: 0.75rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin: 0 auto 0.5rem;
    }
    
    .step-card h3 {
        font-size: 1rem;
        margin-bottom: 0.375rem;
    }
    
    .step-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* --- 16. Reward Points Scorecard Styles --- */
.points-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #B87333 0%, #8B5A2B 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
    color: white;
}

.total-points {
    text-align: center;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
}

.total-points .points-number {
    color: #B87333;
}

.total-points .points-label {
    color: #B87333;
}

.points-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.points-label {
    font-size: 1rem;
    opacity: 0.9;
}

.points-breakdown {
    flex: 1;
    margin-left: 2rem;
}

.points-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.points-item:last-child {
    margin-bottom: 0;
}

.points-activity {
    font-size: 1rem;
    color: #FFFFFF;
}

.points-earned {
    font-weight: bold;
    font-size: 1.1rem;
    color: #FFFFFF;
}

.points-chart {
    margin-top: 2rem;
}

.points-chart h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2D3748;
}

.chart-container {
    position: relative;
    height: 80px;
    margin: 1rem 0;
}

.chart-line {
    position: relative;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 20px 0;
}

.chart-point {
    position: absolute;
    top: -8px;
    width: 20px;
    height: 20px;
    background: #cbd5e0;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-point.active {
    background: #FFB800;
    transform: scale(1.2);
}

.chart-point::after {
    content: attr(data-label);
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #718096;
    white-space: nowrap;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
    margin-top: 1rem;
}

/* --- 17. Dashboard & Status Card Styles --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    padding: 4rem 5%;
}
.dashboard-header {
    margin-bottom: 2rem;
}
.dashboard-header h1 {
    font-size: 2.5rem;
}
.dashboard-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}
.card-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
}
.status-timeline {
    display: flex;
    justify-content: space-between;
}
.timeline-step {
    text-align: center;
    color: #a0aec0;
}
.timeline-step span {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: #e2e8f0;
    margin: 0 auto 0.5rem auto;
}
.timeline-step.active {
    color: var(--construction-gold);
    font-weight: 700;
}
.timeline-step.active span {
    background-color: var(--construction-gold);
    color: var(--white);
}
.next-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.action-button {
    display: block;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--charcoal-gray);
}
.action-button:hover {
    border-color: var(--construction-gold);
    background-color: #fffaf0; /* A very light gold */
}

/* This new rule targets all text elements INSIDE the button when it's hovered */
.action-button:hover i,
.action-button:hover span,
.action-button:hover p {
    color: #000000; /* Change text to BLACK on hover */
}
.action-button i {
    font-size: 1.5rem;
    color: var(--construction-gold);
    margin-bottom: 0.5rem;
}
.action-button span {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}
.action-button p {
    font-size: 0.9rem;
    color: var(--text-color);
}
.activity-feed {
    list-style: none;
}
.activity-feed li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.activity-feed li:last-child {
    border-bottom: none;
}
.agent-card {
    text-align: center;
}
.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}
.agent-card h3 {
    font-size: 1.25rem;
}
.agent-card p {
    margin-bottom: 1rem;
}
.agent-card .cta-button {
    width: 100%;
}
.details-list {
    list-style: none;
}
.details-list li {
    padding: 0.5rem 0;
}
/* Status Card Specifics (reusing dashboard container) */
.status-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
    margin: 0 auto; /* Center it in the grid if needed */
}
.status-icon {
    font-size: 3rem;
    color: var(--construction-gold);
    margin-bottom: 1.5rem;
}
.status-header h1 {
    font-size: 2.25rem;
}
.status-meta {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.status-body {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-bottom: 2rem;
}
.status-body h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.status-body p {
    line-height: 1.7;
}
/* --- 16. Directory Page Styles (Installers/Suppliers) --- */

.directory-section {
    padding: 4rem 5%;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three-column grid */
    gap: 2rem;
}

.profile-card {
    background-color: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.profile-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.location i {
    color: var(--construction-gold);
    margin-right: 0.5rem;
}

.specialties {
    margin-bottom: 1rem;
}

.specialties span {
    display: inline-block;
    background-color: var(--light-gray);
    color: #000000;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.bio {
    font-size: 0.9rem;
}
/* --- 18. Instant Quote Page Styles --- */
.text-center {
    text-align: center;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.postal-code-input {
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem;
    text-transform: uppercase; /* Automatically capitalizes letters */
}

/* --- 19. Quote Results Styles --- */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}
.map-placeholder {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 2rem;
    color: var(--text-color);
    border: 1px solid #e2e8f0;
}
.profile-section, .estimate-section, .final-cta-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}
.profile-section:last-child, .estimate-section:last-child, .final-cta-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.profile-section h3, .estimate-section h3, .final-cta-section h3 {
    margin-bottom: 1rem;
}
.data-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}
.data-card {
    background-color: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}
.data-card span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.disclaimer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 1rem;
    color: var(--text-color);
}
.final-cta-section {
    text-align: center;
}

/* --- Add these styles to the Quote Results section --- */

.estimate-table {
    width: 100%;
    border-collapse: collapse; /* Makes borders clean */
    margin-top: 1.5rem;
}

.estimate-table th, 
.estimate-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.estimate-table thead th {
    background-color: var(--light-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-color);
}

.estimate-table .table-subheader td {
    background-color: #f0f4f8; /* A slightly different gray */
    font-weight: 700;
    color: var(--charcoal-gray);
}

.estimate-table tbody th {
    font-weight: normal;
}

.price-cell {
    font-weight: 700;
    color: var(--construction-gold);
    font-size: 1.1rem;
}

/* --- High-Specificity Override for App Forms & Dashboards --- */

.app-layout > .form-wrapper,
.app-layout > .status-card,
.app-layout > .dashboard-card {
    background-color: #FFFFFF !important; /* Force the card background to be WHITE */
    color: #000000 !important;             /* Force card text to be BLACK */
}

/* --- Black Card Text Override --- */
/* If any card has a black background, make the text white */
.card,
.dashboard-card,
.form-wrapper,
.status-card,
.portal-card,
.step-card,
.points-summary,
.dashboard-card.agent-card {
    /* Default styling */
}

/* Specific override for black cards */
.card[style*="background-color: #000000"],
.card[style*="background-color: black"],
.dashboard-card[style*="background-color: #000000"],
.dashboard-card[style*="background-color: black"],
.form-wrapper[style*="background-color: #000000"],
.form-wrapper[style*="background-color: black"],
.status-card[style*="background-color: #000000"],
.status-card[style*="background-color: black"],
.portal-card[style*="background-color: #000000"],
.portal-card[style*="background-color: black"],
.step-card[style*="background-color: #000000"],
.step-card[style*="background-color: black"] {
    color: #FFFFFF !important;
}

.card[style*="background-color: #000000"] *,
.card[style*="background-color: black"] *,
.dashboard-card[style*="background-color: #000000"] *,
.dashboard-card[style*="background-color: black"] *,
.form-wrapper[style*="background-color: #000000"] *,
.form-wrapper[style*="background-color: black"] *,
.status-card[style*="background-color: #000000"] *,
.status-card[style*="background-color: black"] *,
.portal-card[style*="background-color: #000000"] *,
.portal-card[style*="background-color: black"] *,
.step-card[style*="background-color: #000000"] *,
.step-card[style*="background-color: black"] * {
    color: #FFFFFF !important;
}

/* General black card class for easy application */
.card-black,
.dashboard-card-black,
.form-wrapper-black,
.status-card-black,
.portal-card-black,
.step-card-black {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

.card-black *,
.dashboard-card-black *,
.form-wrapper-black *,
.status-card-black *,
.portal-card-black *,
.step-card-black * {
    color: #FFFFFF !important;
}

/* Now, force all text inside these specific containers to be dark */
.app-layout > .form-wrapper *,
.app-layout > .status-card *,
.app-layout > .dashboard-card * {
    color: #000000 !important; /* Force all text inside cards to be BLACK */
}

/* And finally, force the input fields to be correct */
.app-layout .form-group input {
    background-color: #FFFFFF !important; /* Force input background to be WHITE */
    color: #000000 !important;             /* Force input text to be BLACK */
    border: 1px solid #ccc !important;
}

/* Restore our accent colors inside the forms */
.app-layout .form-footer a,
.app-layout .price-cell,
.app-layout .action-button i,
.app-layout .status-icon,
.app-layout .timeline-step.active {
    color: #FFB800 !important; /* Force our accent color back to GOLD */
}

/* Add this new rule in the Quote Results section */
/* This is the NEW, WIDER code */
.form-wrapper.is-wide {
    max-width: 1100px; /* This makes the form much wider */
}

/* --- 19. Quote Results Styles (Final Override) --- */

/* This targets the form wrapper ONLY on the results page */
.app-layout .form-wrapper.is-wide {
    background-color: #FFFFFF !important; /* Force the card background to be WHITE */
    border: 1px solid #e2e8f0 !important;
}

/* Force all text inside the results form to be DARK */
.app-layout .form-wrapper.is-wide * {
    color: #2D3748 !important;
}

/* Force the data cards inside to be LIGHT GRAY */
.app-layout .form-wrapper.is-wide .data-card {
    background-color: #F5F5F5 !important;
    border: 1px solid #e2e8f0;
}

/* Force the table headers to be LIGHT GRAY */
.app-layout .form-wrapper.is-wide .estimate-table thead th,
.app-layout .form-wrapper.is-wide .estimate-table .table-subheader td {
    background-color: #F5F5F5 !important;
    color: #4A5568 !important; /* Dark gray text for headers */
}

/* Restore the GOLD accent color for the prices */
.app-layout .form-wrapper.is-wide .price-cell {
    color: #FFB800 !important;
}

/* Ensure the final CTA button text is WHITE */
.app-layout .form-wrapper.is-wide .final-cta-section .cta-button {
    color: #FFFFFF !important;
}

/* --- 16. Installer Dashboard Styles --- */
.installer-dashboard {
    background-color: #f8f9fa;
    min-height: 100vh;
}

.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.analytics-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.analytics-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.analytics-card:nth-child(1) .analytics-icon {
    background: linear-gradient(135deg, #E53E3E, #C53030);
}

.analytics-card:nth-child(2) .analytics-icon {
    background: linear-gradient(135deg, #38A169, #2F855A);
}

.analytics-card:nth-child(3) .analytics-icon {
    background: linear-gradient(135deg, #3182CE, #2C5282);
}

.analytics-card:nth-child(4) .analytics-icon {
    background: linear-gradient(135deg, #D69E2E, #B7791F);
}

.analytics-content h3 {
    margin: 0 0 0.5rem 0;
    color: #4A5568;
    font-size: 0.9rem;
    font-weight: 600;
}

.analytics-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1A202C;
    margin: 0;
}

.analytics-change {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.analytics-change.positive {
    color: #38A169;
}

.analytics-change.negative {
    color: #E53E3E;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-filters {
    display: flex;
    gap: 1rem;
}

.project-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h4 {
    margin: 0;
    color: #1A202C;
    font-size: 1.1rem;
}

.project-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-type.residential {
    background: #E6FFFA;
    color: #234E52;
}

.project-type.commercial {
    background: #FEF5E7;
    color: #744210;
}

.project-details p {
    margin: 0.5rem 0;
    color: #4A5568;
    font-size: 0.9rem;
}

.project-details i {
    width: 16px;
    margin-right: 0.5rem;
    color: #718096;
}

.project-description {
    margin: 1rem 0;
    padding: 1rem;
    background: #F7FAFC;
    border-radius: 8px;
}

.project-description p {
    margin: 0;
    color: #2D3748;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-actions {
    margin-top: 1.5rem;
}

.bids-tabs {
    display: flex;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #718096;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button.active {
    color: #E53E3E;
    border-bottom-color: #E53E3E;
}

.tab-button:hover {
    color: #2D3748;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.bids-list {
    display: grid;
    gap: 1.5rem;
}

.bid-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-left: 4px solid #E2E8F0;
}

.bid-item.won {
    border-left-color: #38A169;
}

.bid-item.lost {
    border-left-color: #E53E3E;
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bid-header h4 {
    margin: 0;
    color: #1A202C;
    font-size: 1.1rem;
}

.bid-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bid-status.submitted {
    background: #E6FFFA;
    color: #234E52;
}

.bid-status.under_review {
    background: #FEF5E7;
    color: #744210;
}

.bid-status.accepted {
    background: #F0FFF4;
    color: #22543D;
}

.bid-status.rejected {
    background: #FED7D7;
    color: #742A2A;
}

.bid-details p {
    margin: 0.5rem 0;
    color: #4A5568;
    font-size: 0.9rem;
}

.bid-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.no-bids {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Wide modal for inspection forms */
.modal-content[style*="max-width: 800px"],
.modal-content.inspection-modal {
    max-width: 800px !important;
}

/* Inspection Modal Tabs */
.inspection-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #E2E8F0;
}

.inspection-tab {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.inspection-tab:hover {
    color: #B87333;
    background: #F7FAFC;
}

.inspection-tab.active {
    color: #B87333;
    border-bottom-color: #B87333;
    background: #F7FAFC;
}

.inspection-tab i {
    font-size: 1rem;
}

.inspection-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.inspection-tab-content.active {
    display: block;
}

/* Wizard Progress Indicator */
.wizard-progress {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #E2E8F0;
}

.wizard-progress .progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.wizard-progress .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wizard-progress .progress-step.active .step-circle {
    background: #B87333;
    color: white;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}

.wizard-progress .progress-line {
    position: absolute;
    top: 20px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #E2E8F0;
    z-index: -1;
    transition: all 0.3s ease;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E2E8F0;
    margin-top: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox Labels */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.checkbox-label:hover {
    border-color: #B87333;
    background: #FFF8F0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: #2D3748;
    font-weight: 500;
    user-select: none;
}

.checkbox-label-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: #F7FAFC;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-label-large:hover {
    border-color: #B87333;
    background: #FFF8F0;
}

.checkbox-label-large input[type="checkbox"] {
    cursor: pointer;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed #E2E8F0;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: #F7FAFC;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #B87333;
    background: #FFF8F0;
}

.upload-zone.dragover {
    border-color: #B87333;
    background: #FFF8F0;
    transform: scale(1.02);
}

#photoPreview img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
}

.consultant-tool-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #F7FAFC;
    border-radius: 8px;
    text-decoration: none;
    color: #2D3748;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.consultant-tool-link:hover {
    background: #EDF2F7;
    border-color: #B87333;
    transform: translateX(4px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #E2E8F0;
}

.modal-header h3 {
    margin: 0;
    color: #2D3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-modal {
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #2D3748;
}

.modal-body {
    color: #2D3748;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #E2E8F0;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #718096;
}

.close:hover {
    color: #2D3748;
}

.project-details-modal {
    margin-bottom: 2rem;
}

.project-details-modal h3 {
    color: #1A202C;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.project-details-modal p {
    margin: 0.5rem 0;
    color: #4A5568;
}

.bid-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.bid-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.bid-form label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D3748;
}

.bid-form input,
.bid-form select,
.bid-form textarea {
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
}

.bid-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analytics-overview {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-filters {
        width: 100%;
    }
    
    .project-filters select {
        flex: 1;
    }
    
    .bid-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 95% !important;
        padding: 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .close-modal {
        font-size: 1.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* --- 17. Responsive Styles (Consolidated) --- */
@media (max-width: 768px) {
    /* Dashboard & Forms */
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 2rem 5%;
    }
    .next-actions {
        grid-template-columns: 1fr;
    }
    .status-timeline {
        font-size: 0.8rem;
    }
    .timeline-step span {
        width: 25px;
        height: 25px;
        line-height: 25px;
    }

    /* Homeowner Page */
    .topics-grid,
    .showroom-grid {
        grid-template-columns: 1fr;
    }
    
    /* Portals Section */
    .portals-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    
    .portals-header h2 {
        font-size: 2.5rem;
    }
    
    .portals-header p {
        font-size: 1.1rem;
    }
    
    /* Mobile - stack all cards in single column */
    @media (max-width: 480px) {
        .portals-grid {
            grid-template-columns: 1fr; /* Single column on mobile */
        }
        
        .portals-header h2 {
            font-size: 2rem;
        }
        
        .portals-header p {
            font-size: 1rem;
        }
    }
    .page-header {
        height: 80vh !important; /* Hero height - 80% of viewport */
        min-height: 600px; /* Prevent crushing on small screens */
        align-items: center; /* Center content on mobile */
    }
    .page-header-content h1 {
        font-size: 2.5rem;
    }

    /* General Layout */
    .logo {
        font-size: 1.25rem;
    }
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .hero {
        height: 80vh !important; /* Hero height - 80% of viewport */
        min-height: 600px; /* Prevent crushing on small screens */
        align-items: center; /* Center content on mobile */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .portals-grid,
    .value-prop-grid,
    .trust,
    .footer-grid {
        grid-template-columns: 1fr; /* Most things stack to 1 column on mobile */
    }
    .footer-grid {
        text-align: center; /* Center footer text on mobile */
    }
    .trust {
        background-attachment: scroll;
    }
    .value-prop, .prop-item {
        text-align: left;
    }

    /* Mobile Navigation */
    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        z-index: 999;
    }
    header nav {
        display: none;
        position: fixed;
        inset: 0 0 0 30%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
    header nav.active {
        display: flex;
    }

    /* Inside your @media (max-width: 768px) block */

    /* Makes the table more readable on mobile */
    .estimate-table, .estimate-table thead, .estimate-table tbody, .estimate-table th, .estimate-table td, .estimate-table tr {
        display: block;
    }
    .estimate-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .estimate-table tr {
        border: 1px solid #e2e8f0;
        margin-bottom: 1rem;
    }
    .estimate-table td {
        border: none;
        border-bottom: 1px solid #f0f4f8;
        position: relative;
        padding-left: 50%;
    }
    .estimate-table td:before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: 700;
    }
}

/* --- Installer Showcase Styles --- */
.installer-showcase {
    padding: 3rem 5%;
    background: #f8f9fa;
}

.showcase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.showcase-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #2D3748;
    font-weight: 700;
}

.showcase-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.installer-story {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.story-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.installer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.installer-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #FFB800;
}

.profile-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: #2D3748;
    font-weight: 700;
}

.profile-details h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #FFB800;
    font-weight: 600;
}

.location {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #FFB800;
}

.stat .label {
    font-size: 0.8rem;
    color: #718096;
}

.story-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2D3748;
    font-weight: 700;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4A5568;
    margin-bottom: 1.5rem;
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.specialty {
    background: linear-gradient(135deg, #FFB800, #FF8C00);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-gallery h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #2D3748;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-item {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-4px);
}

.project-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2D3748;
    font-weight: 600;
}

.project-info p {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Join Team Section --- */
.join-team {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: #FFFFFF;
}

.join-content {
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.join-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.join-content > p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 100%;
    width: 100%;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-item:hover {
    transform: translateY(-2px);
}

.benefit-item i {
    font-size: 3rem;
    color: #FFB800;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-weight: 600;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-size: 1rem;
}

/* Image placeholder for testimonial cards */
.card-photo-placeholder {
    width: 100%;
    height: 200px;
    background-color: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: block;
}

/* Testimonial card images (What Our Installers Say) */
.testimonial-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: block;
}

/* David Thompson project gallery (4-column grid) */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-gallery-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cta-section {
    margin-top: 3rem;
}

.cta-button.large {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFD700;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.cta-button.large:hover {
    background-color: #FFC700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.contact-info {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: #FFB800;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* --- Enhanced Directory Section --- */
.directory-section {
    padding: 6rem 5%;
    background: #FFFFFF;
}

.directory-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #2D3748;
    font-weight: 700;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.profile-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-info {
    padding: 2rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2D3748;
    font-weight: 700;
}

.location {
    color: #718096;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.specialties span {
    background: #f7fafc;
    color: #4A5568;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bio {
    color: #4A5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFB800;
}

.rating i {
    font-size: 1rem;
}

.rating span {
    color: #718096;
    font-size: 0.9rem;
}

/* --- Warehouse Shopping Experience Styles --- */

/* Hero Search */
.hero-search {
    display: flex;
    max-width: 600px;
    margin: 2rem auto 0;
    background: #FFFFFF;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: #E53E3E;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #C53030;
}

/* Categories Navigation */
.categories-nav {
    padding: 4rem 5%;
    background: #F7FAFC;
}

.categories-nav h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

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

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #B87333, #8B5A2B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: #FFFFFF;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-count {
    display: none;
}

/* Featured Products */
.featured-products {
    padding: 4rem 5%;
    background: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #718096;
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid.large {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.product-card.featured {
    border: 2px solid #E53E3E;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #E53E3E;
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-description {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-rating i {
    color: #F6AD55;
    font-size: 0.9rem;
}

.product-rating span {
    color: #718096;
    font-size: 0.8rem;
}

.product-pricing {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E53E3E;
}

.unit {
    color: #718096;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.original-price {
    color: #A0AEC0;
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart-btn {
    flex: 1;
    background: #E53E3E;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: #C53030;
}

.wishlist-btn {
    background: #F7FAFC;
    color: #718096;
    border: 1px solid #E2E8F0;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    background: #E53E3E;
    color: #FFFFFF;
    border-color: #E53E3E;
}

/* All Products Section */
.all-products {
    padding: 4rem 5%;
    background: #F7FAFC;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-select,
.sort-select {
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    color: #4A5568;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Warehouse Locations */
.warehouse-locations {
    padding: 4rem 5%;
    background: #FFFFFF;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.location-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.location-info {
    padding: 2rem;
}

.location-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 1rem;
}

.address {
    color: #718096;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-hours h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #4A5568;
    margin-bottom: 0.5rem;
}

.location-hours p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.location-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.feature-tag {
    background: #E2E8F0;
    color: #4A5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.location-actions {
    display: flex;
    gap: 1rem;
}

.directions-btn,
.call-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.directions-btn {
    background: #E53E3E;
    color: #FFFFFF;
    border: none;
}

.directions-btn:hover {
    background: #C53030;
}

.call-btn {
    background: #F7FAFC;
    color: #4A5568;
    border: 1px solid #E2E8F0;
}

.call-btn:hover {
    background: #E2E8F0;
}

/* Responsive Design for Warehouse */
@media (max-width: 768px) {
    .hero-search {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        border-radius: 12px 12px 0 0;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .location-actions {
        flex-direction: column;
    }
}

/* --- Experts Page Styles --- */

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero Primary Button - Gold/Orange */
.hero-cta .cta-button.hero-primary {
    background: linear-gradient(135deg, #B87333 0%, #8B5A2B 100%) !important; /* Copper theme */
    color: #FFFFFF !important;
    border: 2px solid #B87333 !important;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta .cta-button.hero-primary:hover {
    background-color: #B87333 !important;
    border-color: #B87333 !important;
    color: #FFFFFF !important;
    box-shadow: 0 6px 16px rgba(184, 115, 51, 0.3);
    transform: translateY(-2px);
}

/* Hero Secondary Button - Copper Theme */
.hero-cta .cta-button.hero-secondary {
    background: linear-gradient(135deg, #B87333 0%, #8B5A2B 100%) !important; /* Copper theme */
    color: #FFFFFF !important;
    border: 2px solid #B87333 !important;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta .cta-button.hero-secondary:hover {
    background-color: #B87333 !important;
    border-color: #B87333 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
    transform: translateY(-2px);
}

/* Expert Services */
.expert-services {
    display: none;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
}

.services-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #F7FAFC;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    background: #FFFFFF;
    border-color: #E53E3E;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E53E3E, #C53030);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E53E3E, #C53030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

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

.service-icon i {
    font-size: 2rem;
    color: #FFFFFF;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E53E3E;
    margin-bottom: 1rem;
}

.service-description {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
}

.service-features li {
    color: #4A5568;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #E53E3E;
    font-weight: bold;
}

.service-btn {
    background: #E53E3E;
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.service-btn:hover {
    background: #C53030;
    transform: translateY(-2px);
}

/* Consultation Process */
.consultation-process {
    padding: 3rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.process-header {
    text-align: center;
    margin-bottom: 2rem;
}

.process-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.process-header p {
    font-size: 1rem;
    color: #718096;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

.process-timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.process-timeline::before {
    display: none;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    margin-bottom: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #B87333;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    background: #FFFFFF;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0.75rem 0 0 0;
    width: 100%;
    max-width: none;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: #718096;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.step-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4A5568;
    font-size: 0.9rem;
}

.detail-item i {
    color: #E53E3E;
}

/* Consultation Booking */
.consultation-booking {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%);
    color: #FFFFFF;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.booking-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.booking-info p {
    font-size: 1rem;
    color: #CBD5E0;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.consultation-benefits {
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #CBD5E0;
}

.benefit-item i {
    color: #68D391;
    font-size: 1.2rem;
}

.contact-methods h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-method {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-method i {
    font-size: 2rem;
    color: #E53E3E;
    margin-bottom: 1rem;
}

.contact-method h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-method p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-method span {
    font-size: 0.9rem;
    color: #CBD5E0;
}

/* Booking Form */
.booking-form {
    background: #FFFFFF;
    padding: 0.75rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.booking-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.75rem;
    text-align: center;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    color: #4A5568;
    margin-bottom: 0.15rem;
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E53E3E;
}

.submit-btn {
    background: #B87333 !important; /* Copper theme */
    color: #FFFFFF !important;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}

.submit-btn:hover {
    background: #8B5A2B !important; /* Darker copper on hover */
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
}

/* Experts Directory */
.experts-directory {
    padding: 6rem 5%;
    background: #F7FAFC;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.expert-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.expert-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.expert-info {
    padding: 1.5rem;
}

.expert-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 0.5rem;
}

.expert-title {
    color: #E53E3E;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.expert-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.expert-specialties span {
    background: #E2E8F0;
    color: #4A5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.expert-bio {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.expert-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.expert-rating i {
    color: #F6AD55;
    font-size: 0.9rem;
}

.expert-rating span {
    color: #718096;
    font-size: 0.8rem;
}

.expert-actions {
    display: flex;
    gap: 0.5rem;
}

.book-consultation-btn,
.view-profile-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.book-consultation-btn {
    background: #E53E3E;
    color: #FFFFFF;
    border: none;
}

.book-consultation-btn:hover {
    background: #C53030;
}

.view-profile-btn {
    background: #F7FAFC;
    color: #4A5568;
    border: 1px solid #E2E8F0;
}

.view-profile-btn:hover {
    background: #E2E8F0;
}

/* Knowledge Base */
.knowledge-base {
    display: none;
}

.knowledge-header {
    text-align: center;
    margin-bottom: 4rem;
}

.knowledge-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 1rem;
}

.knowledge-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-card {
    background: #F7FAFC;
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E2E8F0;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
}

.knowledge-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E53E3E, #C53030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.knowledge-icon i {
    font-size: 1.5rem;
    color: #FFFFFF;
}

.knowledge-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 1rem;
}

.knowledge-card p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.knowledge-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.knowledge-list li {
    color: #4A5568;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.knowledge-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #E53E3E;
    font-weight: bold;
}

.knowledge-link {
    color: #E53E3E;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.knowledge-link:hover {
    color: #C53030;
}

/* Responsive Design for Experts */
@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-cta .cta-button.hero-primary,
    .hero-cta .cta-button.hero-secondary {
        width: 100%;
        max-width: 300px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-content {
        margin: 0.75rem 0 0 0;
        max-width: none;
    }
    
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-content h1,
    .page-header-content h1 {
        font-size: 1.5rem;
    }
    
    .page-header-content p {
        font-size: 0.85rem;
    }
    
    .hero-cta .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 10px;
        border: 2px solid #FFFFFF;
        background-color: #FFFFFF;
        color: #2D3748;
        text-transform: uppercase;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }
    
    .hero-cta .cta-button:hover {
        background-color: #B87333 !important;
        border-color: #B87333 !important;
        color: #FFFFFF !important;
        box-shadow: 0 4px 10px rgba(184, 115, 51, 0.3);
        transform: translateY(-1px);
    }
    
    .portals-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-welcome-section {
        padding: 2rem 5%;
    }
    
    .welcome-content h2 {
        font-size: 1.8rem;
    }
    
    .booking-form {
        padding: 0.5rem;
    }
    
    .booking-form h3 {
        font-size: 1rem;
    }
    
    .consultation-form {
        gap: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        background: #B87333 !important; /* Copper theme */
        color: #FFFFFF !important;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* --- Bid Modal Specific Styles --- */
.btn-cancel:hover {
    background: #E2E8F0 !important;
    border-color: #CBD5E0 !important;
}

.btn-submit-bid:hover {
    background: linear-gradient(135deg, #8B4513 0%, #6B3413 100%) !important;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4) !important;
}

.btn-submit-bid:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.bid-submitted-badge {
    animation: fadeIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Upload Zone Styles --- */
.upload-zone {
    border: 3px dashed #B87333;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: #8B4513;
    background: #FEF5E7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.2);
}

.browse-link {
    color: #B87333;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.browse-link:hover {
    color: #8B4513;
}

/* Progress Bar Styles */
.progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #B87333 0%, #8B4513 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.upload-status-text {
    color: #2D3748;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

/* Photos Received Badge */
.photos-received-badge {
    animation: fadeIn 0.3s ease;
}

/* --- Registration Page Styles (Consolidated) --- */
/* Hero Section - Dark Theme */
.registration-hero {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #FFFFFF;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.registration-hero h1 {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.registration-hero p {
    color: #CBD5E0;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Card - White Card Overlapping Hero */
.form-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #E2E8F0;
}

.form-header h2 {
    color: #1a202c;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #718096;
    font-size: 1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section h3 {
    color: #2D3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #B87333;
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D3748;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    background: #FFFFFF;
    color: #1a202c;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #B87333;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2D3748;
}

.checkbox-label:hover {
    border-color: #B87333;
    background: #FEF5E7;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #B87333;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: #B87333;
    border-color: #B87333;
}

/* Participation Model Selector (Installer Registration) */
.participation-model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.participation-option {
    cursor: pointer;
}

.participation-option input[type="radio"] {
    display: none;
}

.participation-option .option-card {
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.participation-option .option-card i {
    font-size: 2.5rem;
    color: #718096;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.participation-option .option-card h4 {
    font-size: 1.1rem;
    color: #2D3748;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.participation-option .option-card p {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.5;
    margin: 0;
}

.participation-option:hover .option-card {
    border-color: #B87333;
    background: #FEF5E7;
}

.participation-option:hover .option-card i {
    color: #B87333;
}

.participation-option input[type="radio"]:checked + .option-card {
    border-color: #B87333;
    background: #FEF5E7;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.2);
}

.participation-option input[type="radio"]:checked + .option-card i {
    color: #B87333;
}

@media (max-width: 768px) {
    .participation-model-grid {
        grid-template-columns: 1fr;
    }
}

/* Property Type / Selection Card Grid (Quote Wizard) */
.selection-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 0.75rem;
}

.selection-card {
    cursor: pointer;
}

.selection-card input[type="radio"] {
    display: none;
}

.selection-card .card-content {
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selection-card .card-content i {
    font-size: 2.5rem;
    color: #718096;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.selection-card .card-content h4 {
    font-size: 1.1rem;
    color: #2D3748;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.selection-card .card-content p {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
    margin: 0;
}

.selection-card:hover .card-content {
    border-color: #B87333;
    background: #FEF5E7;
}

.selection-card:hover .card-content i {
    color: #B87333;
}

.selection-card input[type="radio"]:checked + .card-content {
    border-color: #B87333;
    background: #FEF5E7;
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.2);
}

.selection-card input[type="radio"]:checked + .card-content i {
    color: #B87333;
}

.selection-card.has-error .card-content {
    border-color: #E53E3E;
    background: #FED7D7;
}

@media (max-width: 768px) {
    .selection-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Submit Section */
.form-submit {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #E2E8F0;
}

.submit-btn {
    background: linear-gradient(135deg, #B87333 0%, #8B4513 100%);
    color: #FFFFFF;
    border: none;
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #8B4513 0%, #6B3413 100%);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    color: #718096;
    font-size: 0.85rem;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Registration Form Section Container */
.registration-form-section {
    background: #F7FAFC;
    padding: 3rem 2rem;
}

/* Responsive for Registration Pages */
@media (max-width: 768px) {
    .registration-hero {
        padding: 6rem 1rem 3rem;
    }

    .registration-hero h1 {
        font-size: 2rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
        margin-top: -30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

/* --- Dual Inquiry Section Styles --- */
.dual-inquiry-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    margin-top: 0; /* Remove gap from promo section */
    width: 100%;
    padding: 3rem 2rem;
    box-sizing: border-box;
}

/* Remove spacing between promo and dual inquiry sections */
.promo-sections-container + .dual-inquiry-section {
    margin-top: 0;
}

.inquiry-form-left {
    background: #1a202c;
    padding: 3rem;
    border-right: 1px solid #B87333;
}

.inquiry-form-right {
    background: #1a202c;
    padding: 3rem;
}

/* Dark Mode Form Styles */
.dual-inquiry-section {
    background: #1a202c;
}

.dual-inquiry-section h2,
.dual-inquiry-section h3,
.dual-inquiry-section h4,
.dual-inquiry-section p {
    color: #FFFFFF !important;
}

.dual-inquiry-section label {
    color: #CBD5E0 !important;
}

/* Inputs remain white for contrast */
.dual-inquiry-section input[type="text"],
.dual-inquiry-section input[type="email"],
.dual-inquiry-section input[type="tel"],
.dual-inquiry-section input[type="number"],
.dual-inquiry-section select,
.dual-inquiry-section textarea {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: #2D3748 !important;
}

.dual-inquiry-section input:focus,
.dual-inquiry-section select:focus,
.dual-inquiry-section textarea:focus {
    border-color: #B87333 !important;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1) !important;
}

/* --- Quote Page Layout Fix --- */
/* Google Places Autocomplete dropdown visibility */
.pac-container {
    font-family: inherit;
    z-index: 10000 !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #E2E8F0;
}
.pac-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.95rem;
}
.pac-item:hover {
    background: #F7FAFC;
}
.pac-item-query {
    font-size: 0.95rem;
}

.quote-wizard-card {
    margin-top: 0 !important; /* Force remove negative margin */
    margin-bottom: 5rem !important;
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    border-top: 5px solid #B87333; /* Visual separator */
}

/* Ensure the hero section has padding at the bottom so it doesn't touch the card */
body.quote-page .expert-hero {
    padding-bottom: 5rem !important; 
    min-height: 40vh; /* Ensure hero isn't too tall */
}

/* Add a background color to the section containing the form so it's not just white-on-white */
body.quote-page main {
    background-color: #F7FAFC; /* Light Gray background for the form area */
    padding-top: 3rem;
}

/* Responsive for Dual Inquiry */
@media (max-width: 768px) {
    .dual-inquiry-section {
        grid-template-columns: 1fr;
    }
    
    .inquiry-form-left,
    .inquiry-form-right {
        padding: 2rem 1.5rem;
    }
    
    /* Make promo sections stack on mobile */
    .promo-section {
        grid-template-columns: 1fr !important;
    }
}
/* --- Page-Specific Hero Background Images --- */
/* --- New High-Impact Hero Images (No Darkening Overlays) --- */
.hero-index,
.page-header.hero-index {
    background-image: url('hero-index-heavy-drone.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-homeowner,
.page-header.hero-homeowner {
    background-image: url('hero-homeowner-macro-drone.jpg') !important;
    background-size: cover !important;
    background-position: top center !important; /* Focus on the roof/drone */
    background-repeat: no-repeat !important;
}

.hero-installer,
.page-header.hero-installer {
    background-image: url('hero-installer-fleet.jpg') !important;
    background-size: cover !important;
    background-position: bottom center !important; /* Focus on the trucks/ground */
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Ensure no video elements show on installer hero */
.page-header.hero-installer video,
.page-header.hero-installer .page-header-video {
    display: none !important;
    visibility: hidden !important;
}

.hero-supplier,
.page-header.hero-supplier {
    background-image: url('hero-supplier-warehouse.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-expert,
.page-header.hero-expert {
    background-image: url('hero-expert-pilot.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Shingle Collection hero (warehouses.html): 40% of default height */
.page-header.hero-shingle-collection {
    height: auto !important;
    min-height: 0 !important;
    padding: 2.4rem 5% !important;
}

.catalog-consult-text {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: #718096;
    cursor: default;
}

/* --- Admin Dashboard Timeline Styles --- */
.timeline-row {
    background-color: #F7FAFC;
}

.timeline-row td {
    border-top: none !important;
    border-bottom: 1px solid #E2E8F0;
    padding: 0 !important;
}

.admin-timeline-container {
    padding: 1rem 2rem;
    transform: scale(0.9);
    transform-origin: left center;
}

/* Ensure timeline fits within table */
.admin-timeline-container .universal-timeline {
    margin: 0;
}

/* --- Vertical Mini-Timeline for Expert Dashboard --- */
.timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin: 0;
}

.timeline-vertical-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.timeline-vertical-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    width: 2px;
    height: calc(100% + 0.5rem);
    background: #E2E8F0;
    z-index: 0;
}

.timeline-vertical-step.completed:not(:last-child)::after {
    background: #10B981;
}

.timeline-vertical-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    background: #E2E8F0;
    color: #718096;
}

.timeline-vertical-dot.completed {
    background: #10B981;
    color: #FFFFFF;
}

.timeline-vertical-dot.completed::before {
    content: '✓';
    font-size: 0.7rem;
}

.timeline-vertical-dot.active {
    background: #B87333;
    color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.timeline-vertical-dot.pending {
    background: #F59E0B;
    color: #FFFFFF;
}

.timeline-vertical-label {
    font-size: 0.75rem;
    color: #4A5568;
    font-weight: 500;
    line-height: 1.2;
}

.timeline-vertical-step.completed .timeline-vertical-label {
    color: #10B981;
    font-weight: 600;
}

.timeline-vertical-step.active .timeline-vertical-label {
    color: #B87333;
    font-weight: 600;
}

.timeline-vertical-step.pending .timeline-vertical-label {
    color: #F59E0B;
    font-weight: 600;
}

/* --- Installer Dashboard Site Photos --- */
.site-photo {
    background-color: #f0f0f0;
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E2E8F0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.site-photo:hover {
    opacity: 0.8;
    border-color: #B87333;
}

/* Ensure images don't look like text boxes if they fail to load */
.site-photo[src=""],
.site-photo:not([src]) {
    background-color: #f0f0f0;
    background-image: none;
}

#modal-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* --- Master Project Ledger Styles --- */
.ledger-table {
    font-size: 0.75rem;
    width: 100%;
    border-collapse: collapse;
    background: #1a202c;
    color: #FFFFFF !important;
    table-layout: auto;
}

.ledger-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #1a202c;
}

.ledger-table thead th {
    background: #1a202c;
    color: #B87333 !important;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 2px solid #B87333;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Master Project Ledger: no background; headers can wrap to two lines; all columns visible via horizontal scroll */
#master-ledger-wrapper {
    background: transparent !important;
    border: none !important;
}
#master-ledger-wrapper .ledger-table,
#master-ledger-wrapper .ledger-table thead,
#master-ledger-wrapper .ledger-table thead th {
    background: transparent !important;
}
#master-ledger-wrapper .ledger-table tbody tr.ledger-row:nth-child(odd),
#master-ledger-wrapper .ledger-table tbody tr.ledger-row:nth-child(even) {
    background: transparent !important;
}
#master-ledger-wrapper .master-ledger-table thead th {
    white-space: nowrap;
}
#master-ledger-wrapper .master-ledger-table tbody td {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
    text-overflow: unset;
}
#master-ledger-wrapper .master-ledger-table {
    min-width: 1200px;
}

.ledger-table thead th:nth-child(2) {
    min-width: 120px;
}

/* Master Project Ledger – Status + Progress: chart as background, text overlay */
.ledger-status-progress-cell {
    white-space: nowrap;
}
.ledger-status-progress-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ledger-progress-pie {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ledger-status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    text-align: center;
    line-height: 1.1;
    white-space: normal;
    max-width: 90%;
}
.ledger-status-overlay.complete { color: #FFFFFF !important; }
.ledger-status-overlay.construction { color: #FFFFFF !important; }
.ledger-status-overlay.bidding { color: #FFFFFF !important; }
.ledger-status-overlay.assessment { color: #FFFFFF !important; }
.ledger-status-overlay.pending { color: #FFFFFF !important; }

/* Master Project Ledger – fixed layout, 13 equal columns (100/13 ≈ 7.69%) */
.master-ledger-table {
    table-layout: fixed !important;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}
.master-ledger-table th,
.master-ledger-table td {
    padding: 10px 8px !important;
    text-align: left !important;
}
.master-ledger-table th {
    overflow: hidden;
    text-overflow: ellipsis;
}
.master-ledger-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.master-ledger-table th:nth-child(1),  .master-ledger-table td:nth-child(1)  { width: 7.69%; }
.master-ledger-table th:nth-child(2),  .master-ledger-table td:nth-child(2)  { width: 7.69%; }
.master-ledger-table th:nth-child(3),  .master-ledger-table td:nth-child(3)  { width: 7.69%; }
.master-ledger-table th:nth-child(4),  .master-ledger-table td:nth-child(4)  { width: 7.69%; }
.master-ledger-table th:nth-child(5),  .master-ledger-table td:nth-child(5)  { width: 7.69%; }
.master-ledger-table th:nth-child(6),  .master-ledger-table td:nth-child(6)  { width: 7.69%; }
.master-ledger-table th:nth-child(7),  .master-ledger-table td:nth-child(7)  { width: 7.69%; }
.master-ledger-table th:nth-child(8),  .master-ledger-table td:nth-child(8)  { width: 7.69%; }
.master-ledger-table th:nth-child(9),  .master-ledger-table td:nth-child(9)  { width: 7.69%; }
.master-ledger-table th:nth-child(10), .master-ledger-table td:nth-child(10) { width: 7.69%; }
.master-ledger-table th:nth-child(11), .master-ledger-table td:nth-child(11) { width: 7.69%; }
.master-ledger-table th:nth-child(12), .master-ledger-table td:nth-child(12) { width: 7.69%; }
.master-ledger-table th:nth-child(13), .master-ledger-table td:nth-child(13) { width: 7.69%; }
.master-ledger-table th:nth-child(14), .master-ledger-table td:nth-child(14) { width: 7.69%; }

.ledger-table tbody tr.ledger-row {
    border-bottom: 1px solid #2D3748;
    transition: background-color 0.2s;
}

.ledger-table tbody tr.ledger-row:nth-child(even) {
    background-color: #1a202c;
}

.ledger-table tbody tr.ledger-row:nth-child(odd) {
    background-color: #2d3748;
}

.ledger-table tbody tr.ledger-row:hover {
    background-color: #374151;
}

.ledger-table tbody td {
    padding: 0.625rem 0.5rem;
    color: #FFFFFF !important;
    border-right: 1px solid #2D3748;
}

.ledger-table tbody td:last-child {
    border-right: none;
}

/* Net Profit Colors */
.profit-positive {
    color: #38A169 !important;
}

.profit-negative {
    color: #E53E3E !important;
}

/* Ledger Filter Inputs */
.ledger-filter-input {
    transition: border-color 0.2s;
}

.ledger-filter-input:focus {
    outline: none;
    border-color: #B87333 !important;
    box-shadow: 0 0 0 2px rgba(184, 115, 51, 0.2);
}

/* Responsive Ledger */
@media (max-width: 1400px) {
    .ledger-filters {
        grid-template-columns: repeat(3, 1fr) auto !important;
    }
}

@media (max-width: 768px) {
    .ledger-filters {
        grid-template-columns: 1fr !important;
    }
    
    .ledger-table {
        font-size: 0.75rem;
    }
    
    .ledger-table thead th,
    .ledger-table tbody td {
        padding: 0.5rem 0.25rem;
    }
}

/* --- Admin Sidebar Responsive --- */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 200px;
    }
    
    .admin-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 2px solid #B87333;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
    }
    
    .sidebar-link {
        white-space: nowrap;
        min-width: fit-content;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* --- Admin Visibility Force Fix --- */
.admin-view {
    /* Ensure it takes up space */
    min-height: 500px;
    width: 100%;
}

/* Force White Text on Dark Background */
.admin-content, 
.admin-view {
    background-color: #000000 !important; /* Force Black Background */
    color: #FFFFFF !important; /* Force White Text */
    position: relative;
    z-index: 2;
}

.admin-view h1, 
.admin-view h2, 
.admin-view h3, 
.admin-view h4,
.admin-view h5,
.admin-view h6,
.admin-view p, 
.admin-view li,
.admin-view td,
.admin-view th,
.admin-view span,
.admin-view div,
.admin-view label {
    color: #FFFFFF !important; /* Force White Text */
}

/* Force the containers inside the view to show */
#bid-pool-container, 
#material-approvals-container,
#unassigned-leads-container,
#userTableBody,
#user-database-body,
#site-map-grid,
#master-ledger-container {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 100px;
    /* Debug Border - remove later if annoying */
    border: 1px dashed #333; 
}

/* --- USER DATABASE TABLE FINAL FIX (For Long Names) --- */
.admin-table {
    table-layout: fixed !important;
    width: 100%;
    border-collapse: collapse;
    display: table !important;
    min-width: 1000px;
}

.admin-table th,
.admin-table td {
    text-align: left !important;
    padding: 12px 8px !important;
    vertical-align: top;
}

.admin-table th:nth-child(1),
.admin-table td:nth-child(1) {
    width: 30% !important; /* NAME - WIDER for Company Name */
    white-space: normal;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
    width: 12% !important; /* ROLE - Tight width for badge */
}

.admin-table th:nth-child(3),
.admin-table td:nth-child(3) {
    width: 25% !important; /* EMAIL - Wide enough for full email */
}

.admin-table th:nth-child(4),
.admin-table td:nth-child(4) {
    width: 13% !important; /* STATUS - Tight width for badge */
}

.admin-table th:nth-child(5),
.admin-table td:nth-child(5) {
    width: 20% !important; /* CONTROLS - Wide enough for button */
}

/* User Database table – zebra stripes for visual tracking and alignment */
.admin-table tbody tr:nth-child(odd) {
    background-color: #2D3748;
}
.admin-table tbody tr:nth-child(even) {
    background-color: #1a202c;
}
.admin-table tbody tr:hover {
    background-color: #374151;
}

/* User Database table – enforce cell boundaries (no flex on rows, content stays in cells) */
.admin-table tbody tr {
    display: table-row !important;
}
.admin-table .col-name,
.admin-table .col-role,
.admin-table .col-email,
.admin-table .col-status,
.admin-table .col-controls {
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}
.admin-table .col-controls .cta-button.small {
    display: inline-block;
    margin: 0.25rem 0.25rem 0.25rem 0;
    white-space: nowrap;
}
.admin-table .col-controls .btn-approve { background: #38A169 !important; color: #fff !important; }
.admin-table .col-controls .btn-reject { background: #E53E3E !important; color: #fff !important; }
.admin-table .col-controls .btn-login-as { background: #B87333 !important; color: #fff !important; }

/* User Database – badge contrast (avoid overlap confusion) */
.admin-table .role-badge.homeowner { color: #f9d8b7; background-color: #5a3c26; }
.admin-table .role-badge.installer { color: #80bfff; background-color: #2a3e59; }
.admin-table .role-badge.expert { color: #d6bfff; background-color: #512b59; }
.admin-table .status-badge.active { color: #38A169; background-color: rgba(56, 161, 105, 0.2); }
.admin-table .status-badge.pending_approval { color: #ECC94B; background-color: rgba(236, 201, 75, 0.2); }

/* User Database section wrapper */
.admin-card {
    background: #1a202c;
    border-radius: 12px;
    border: 1px solid #2D3748;
}

/* FINAL FIX FOR ADMIN USER TABLE ALIGNMENT */
.user-data-ledger {
    table-layout: fixed !important;
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.user-data-ledger th {
    text-align: left !important;
    padding: 15px 15px !important;
    color: #8b949e;
    font-size: 0.8rem;
    border-bottom: 2px solid #30363d;
}

.user-data-ledger td {
    padding: 15px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #21262d;
    text-align: left !important;
    color: #FFFFFF;
}

.user-data-ledger td:nth-child(1) { width: 20%; } /* NAME */
.user-data-ledger td:nth-child(2) { width: 20%; } /* ROLE */
.user-data-ledger td:nth-child(3) { width: 20%; } /* EMAIL */
.user-data-ledger td:nth-child(4) { width: 20%; } /* STATUS */
.user-data-ledger td:nth-child(5) { width: 20%; } /* CONTROLS */

.user-data-ledger tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04);
}
.user-data-ledger .col-controls .cta-button.small {
    display: inline-block;
    margin: 0.25rem 0.25rem 0.25rem 0;
    white-space: nowrap;
}
.user-data-ledger .btn-approve { background: #38A169 !important; color: #fff !important; }
.user-data-ledger .btn-reject { background: #E53E3E !important; color: #fff !important; }
.user-data-ledger .btn-login-as { background: #B87333 !important; color: #fff !important; }

/* Badge base + role/status (admin.js uses .badge.badge-role-* and .badge.badge-status-*) */
.user-data-ledger .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}
.user-data-ledger .role-badge.supplier,
.user-data-ledger .badge-role-supplier,
.badge-role-supplier { border: 1px solid #4ade80; color: #4ade80; background: rgba(74, 222, 128, 0.1); }
.user-data-ledger .role-badge.expert,
.user-data-ledger .badge-role-expert,
.badge-role-expert { border: 1px solid #a855f7; color: #a855f7; background: rgba(168, 85, 247, 0.1); }
.user-data-ledger .role-badge.installer,
.user-data-ledger .badge-role-installer,
.badge-role-installer { border: 1px solid #3b82f6; color: #3b82f6; background: rgba(59, 130, 246, 0.1); }
.user-data-ledger .role-badge.homeowner,
.user-data-ledger .badge-role-homeowner { border: 1px solid #f9d8b7; color: #f9d8b7; background: rgba(90, 60, 38, 0.3); }
.user-data-ledger .status-badge.active,
.user-data-ledger .badge-status-active,
.badge-status-active { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.user-data-ledger .badge-status-pending_approval { color: #eab308; background: rgba(234, 179, 8, 0.1); }

/* Master Ledger: 13 equal columns (7.69% each) */
.master-ledger-table th:nth-child(1),  .master-ledger-table td:nth-child(1)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(2),  .master-ledger-table td:nth-child(2)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(3),  .master-ledger-table td:nth-child(3)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(4),  .master-ledger-table td:nth-child(4)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(5),  .master-ledger-table td:nth-child(5)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(6),  .master-ledger-table td:nth-child(6)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(7),  .master-ledger-table td:nth-child(7)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(8),  .master-ledger-table td:nth-child(8)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(9),  .master-ledger-table td:nth-child(9)  { width: 7.69% !important; }
.master-ledger-table th:nth-child(10), .master-ledger-table td:nth-child(10) { width: 7.69% !important; }
.master-ledger-table th:nth-child(11), .master-ledger-table td:nth-child(11) { width: 7.69% !important; }
.master-ledger-table th:nth-child(12), .master-ledger-table td:nth-child(12) { width: 7.69% !important; }
.master-ledger-table th:nth-child(13), .master-ledger-table td:nth-child(13) { width: 7.69% !important; }
.master-ledger-table th:nth-child(14), .master-ledger-table td:nth-child(14) { width: 7.69% !important; }

/* Ledger table horizontal scroll */
.ledger-table {
    min-width: 1000px;
}

.admin-table-container {
    overflow-x: auto;
    width: 100%;
}

/* --- Review Modal Styles --- */
.review-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.review-modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.review-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-modal-header h2 {
    margin: 0;
    color: #2D3748;
    font-size: 1.5rem;
    font-weight: 700;
}

.review-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.review-modal-close:hover {
    background: #F7FAFC;
    color: #2D3748;
}

.review-modal-body {
    padding: 2rem;
}

.review-section {
    margin-bottom: 2rem;
}

.review-section h3 {
    margin: 0 0 1rem 0;
    color: #2D3748;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Star Rating Styles */
.star-rating {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-rating .fa-star {
    font-size: 2rem;
    color: #E2E8F0;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.25rem;
}

.star-rating .fa-star:hover {
    color: #F6AD55;
    transform: scale(1.1);
}

.star-rating .fa-star.fas {
    color: #B87333;
}

.star-rating .fa-star.fas:hover {
    color: #B87333;
}

.review-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
}

.review-submit-btn {
    background: linear-gradient(135deg, #B87333 0%, #8B4513 100%);
    color: #FFFFFF;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.review-submit-btn:hover {
    background: linear-gradient(135deg, #8B4513 0%, #6B3413 100%);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.4);
    transform: translateY(-2px);
}

.review-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .review-modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .review-modal-header,
    .review-modal-body,
    .review-modal-footer {
        padding: 1.5rem;
    }

    .star-rating .fa-star {
        font-size: 1.5rem;
    }
}
