/* Enhanced Visual Polish & Typography */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #059669;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-500: #6b7280;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
            font-family: 'Inter', sans-serif;
            scroll-behavior: smooth;
            background-color: #e5e7eb; /* Main page background */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        .hero-bg {
            /* Vibrant corporate blue gradient - electric blue to deep navy */
            background: linear-gradient(180deg, #4A6CF7 0%, #3B5CE6 50%, #2D4DD4 100%) !important;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 2rem;
            padding-bottom: 2rem;
        }


        .hero-text-shadow {
            /* Enhanced drop shadow for brilliant readability on shimmering background */
            text-shadow: 
                0 2px 8px rgba(0, 0, 0, 0.9), 
                0 4px 16px rgba(0, 0, 0, 0.7),
                0 0 30px rgba(255, 255, 255, 0.1);
        }
        
        /* Lead Capture Card Styles */
        .lead-capture-card {
            transform: scale(1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            backdrop-filter: blur(10px);
        }
        
        .lead-capture-card:hover {
            transform: scale(1.02);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
        }
        
        .expert-avatar {
            background: linear-gradient(135deg, #3b82f6, #1e40af);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }
        
        .hero-cta-button {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
        }
        
        .hero-cta-button:hover {
            background: linear-gradient(135deg, #f59e0b, #d97706);
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(251, 191, 36, 0.5);
        }
        /* Simple button styles */
        .cta-button {
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
            background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
        }
        
        .cta-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }
        
        .main-cta-button {
            background: linear-gradient(to bottom, #4f46e5, #4338ca);
            transition: all 0.2s ease-in-out;
        }
        .main-cta-button:hover {
            box-shadow: 0 8px 25px -5px rgba(79, 70, 229, 0.5), 0 10px 10px -5px rgba(79, 70, 229, 0.1);
            transform: translateY(-2px);
        }
        .faq-item {
            border-bottom: 1px solid #e5e7eb;
        }
        .faq-item:last-child {
            border-bottom: none;
        }
        .spinner {
            border-top-color: #3498db;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        #map {
            height: 250px;
            border-radius: 0.5rem;
        }
        .form-card {
            /* Enhanced shadow for more depth */
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(0, 0, 0, 0.1);
        }
        .floating-banner {
            animation: slide-up 0.5s 0.5s ease-out forwards;
            transform: translateY(100%);
        }
        @keyframes slide-up {
            to {
                transform: translateY(0);
            }
        }
        /* Style for Google Places Autocomplete dropdown */
        .pac-container {
            background-color: #FFF;
            z-index: 1000;
            position: fixed;
            display: inline-block;
            float: left;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        .pac-item {
            padding: 10px;
            font-size: 16px;
            cursor: pointer;
        }
        .pac-item:hover {
            background-color: #f0f4f8;
        }
        .pac-item-query {
            font-size: 16px;
        }

        /* Solar Analysis Styles */
        #solarInfo.loading {
            opacity: 0.7;
            pointer-events: none;
        }
        
        #solarInfo.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 20px;
            height: 20px;
            margin: -10px 0 0 -10px;
            border: 2px solid #e5e7eb;
            border-radius: 50%;
            border-top-color: #3b82f6;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .solar-insights {
            position: relative;
        }
        
        .solar-insights .grid {
            gap: 1rem;
        }
        
        /* Map container styles */
        #map {
            min-height: 300px;
        }
        
        /* Responsive map adjustments */
        @media (max-width: 768px) {
            #map {
                height: 250px;
            }
        }

        /* Solar Analysis Metric Cards */
        .metric-card {
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            border: 1px solid rgba(0,0,0,0.1);
        }
        
        .metric-value {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 5px;
        }
        
        .metric-label {
            font-size: 0.875rem;
            opacity: 0.8;
        }
        
        .metric-card.blue { 
            background: linear-gradient(135deg, #e3f2fd, #bbdefb); 
            color: #1976d2; 
        }
        
        .metric-card.green { 
            background: linear-gradient(135deg, #e8f5e8, #c8e6c9); 
            color: #388e3c; 
        }
        
        .metric-card.yellow { 
            background: linear-gradient(135deg, #fff8e1, #ffecb3); 
            color: #f57c00; 
        }
        
        .metric-card.purple { 
            background: linear-gradient(135deg, #f3e5f5, #e1bee7); 
            color: #7b1fa2; 
        }

        /* Panel configuration styles */
        .panel-config {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 6px;
            padding: 12px;
            margin-bottom: 8px;
        }
        
        .panel-config-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .panel-config-details {
            font-size: 0.875rem;
            color: #6c757d;
        }

        /* Enhanced Mobile Optimization Styles */
        
        /* Responsive map container */
        #map {
            height: 250px;
            border-radius: 0.5rem;
            transition: height 0.3s ease;
        }
        
        @media (min-width: 768px) {
            #map {
                height: 400px;
            }
        }
        
        /* Touch-friendly interactive elements */
        button, .cta-button, .main-cta-button {
            min-height: 44px; /* Apple's recommended touch target size */
            min-width: 44px;
        }
        
        /* Loading skeleton animations */
        .loading-skeleton {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: .5;
            }
        }
        
        /* Enhanced loading states */
        #solarInfo.loading {
            opacity: 0.7;
            pointer-events: none;
            position: relative;
        }
        
        /* Improved mobile form inputs */
        input[type="text"], input[type="email"], input[type="tel"] {
            font-size: 16px; /* Prevents zoom on iOS */
            padding: 12px 16px;
            border-radius: 8px;
            border: 2px solid #e5e7eb;
            transition: border-color 0.2s ease;
        }
        
        input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
            border-color: #3b82f6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }
        
        /* Mobile-optimized Google Places Autocomplete */
        .pac-container {
            background-color: #FFF;
            z-index: 1000;
            position: fixed !important;
            display: inline-block;
            float: left;
            border-radius: 0.5rem;
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
            border: none;
            max-width: calc(100vw - 32px);
            left: 16px !important;
            right: 16px !important;
        }
        
        .pac-item {
            padding: 12px 16px;
            font-size: 16px;
            cursor: pointer;
            border-bottom: 1px solid #f3f4f6;
            transition: background-color 0.2s ease;
        }
        
        .pac-item:hover, .pac-item.pac-item-selected {
            background-color: #f0f4f8;
        }
        
        .pac-item:last-child {
            border-bottom: none;
        }
        
        /* Mobile-specific solar info cards */
        @media (max-width: 768px) {
            .solar-metric-card {
                padding: 12px;
                margin-bottom: 12px;
            }
            
            .solar-metric-value {
                font-size: 1.5rem;
                line-height: 1.2;
            }
            
            .solar-metric-label {
                font-size: 0.75rem;
                margin-top: 4px;
            }
        }
        
        /* Enhanced error states */
        .error-state {
            animation: shake 0.5s ease-in-out;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25% { transform: translateX(-5px); }
            75% { transform: translateX(5px); }
        }
        
        /* Network quality indicators */
        .connection-slow {
            position: relative;
        }
        
        .connection-slow::before {
            content: "🐌";
            position: absolute;
            top: -8px;
            right: -8px;
            font-size: 12px;
        }
        
        /* Progressive disclosure for mobile */
        @media (max-width: 768px) {
            .desktop-only {
                display: none !important;
            }
            
            .mobile-stack > * {
                margin-bottom: 16px;
            }
            
            .mobile-condensed {
                padding: 12px 16px;
                font-size: 14px;
            }
        }
        
        /* Improved touch interactions */
        .touch-target {
            position: relative;
            overflow: hidden;
        }
        
        .touch-target::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            transition: width 0.6s, height 0.6s, margin-left 0.6s, margin-top 0.6s;
        }
        
        .touch-target:active::before {
            width: 300px;
            height: 300px;
            margin-left: -150px;
            margin-top: -150px;
        }
        
        /* Accessibility improvements for mobile */
        @media (prefers-reduced-motion: reduce) {
            .spinner,
            .loading-skeleton,
            .touch-target::before {
                animation: none !important;
                transition: none !important;
            }
        }
        
        /* Dark mode support preparation */
        @media (prefers-color-scheme: dark) {
            .pac-container {
                background-color: #374151;
                color: #f9fafb;
            }
            
            .pac-item:hover, .pac-item.pac-item-selected {
                background-color: #4b5563;
            }
        }
        
        /* Improved focus states for accessibility */
        button:focus, input:focus, select:focus {
            outline: 2px solid #3b82f6;
            outline-offset: 2px;
        }
        
        /* Safe area handling for iOS */
        @supports (padding: max(0px)) {
            .safe-area-top {
                padding-top: max(16px, env(safe-area-inset-top));
            }
            
            .safe-area-bottom {
                padding-bottom: max(16px, env(safe-area-inset-bottom));
            }
        }
        /* Enhance Google Maps overlays */
.gm-style div[style*="opacity"] {
    filter: contrast(1.2) saturate(1.3) brightness(1.1);
}        /* Simple hero button styles */
        #hero-cta-button {
            background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
            transition: all 0.2s ease;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }
        
        #hero-cta-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        /* Simple animations only */
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Enhanced Credibility Section */
        .credibility-logo {
            transition: transform 0.3s ease, filter 0.3s ease;
        }
        
        .credibility-logo:hover {
            transform: translateY(-2px) scale(1.1);
        }
        
        .credibility-logo img {
            max-height: 80px;
            width: auto;
            object-fit: contain;
        }

        @media (min-width: 768px) {
            .credibility-logo img {
                max-height: 100px;
            }
        }

        @media (min-width: 1024px) {
            .credibility-logo img {
                max-height: 120px;
            }
        }

        /* Trust section enhancements */
        .trust-icon {
            transition: transform 0.3s ease, color 0.3s ease;
        }

        .trust-icon:hover {
            transform: scale(1.1);
            color: #2563eb;
        }

        /* Ensure consistent section heights */
        .section-equal-height {
            min-height: 400px;
            display: flex;
            align-items: center;
        }

        @media (min-width: 768px) {
            .section-equal-height {
                min-height: 500px;
            }
        }

        /* Enhanced typography scaling */
        .hero-title {
            line-height: 1.1;
        }

        .hero-subtitle {
            line-height: 1.4;
        }

        /* Better visual hierarchy */
        .section-padding-large {
            padding-top: 5rem;
            padding-bottom: 5rem;
        }

        @media (min-width: 640px) {
            .section-padding-large {
                padding-top: 6rem;
                padding-bottom: 6rem;
            }
        }

        @media (min-width: 1024px) {
            .section-padding-large {
                padding-top: 8rem;
                padding-bottom: 8rem;
            }
        }

        /* Full-width section container fixes */
        .w-full {
            width: 100% !important;
            max-width: none !important;
        }

        /* Consistent container sizing */
        .max-w-7xl {
            max-width: 1280px;
        }

        /* Override any conflicting container constraints */
        .hero-bg .max-w-5xl,
        .hero-bg .max-w-4xl,
        .hero-bg .max-w-2xl {
            max-width: 1280px !important;
        }

        /* Ensure credibility section gets full available width */
        .credibility-logo img {
            max-width: none !important;
        }

        /* Full-width background sections */
        section {
            width: 100%;
        }

        /* Container responsive behavior */
        @media (min-width: 640px) {
            .max-w-7xl {
                max-width: 1280px;
            }
        }

        @media (min-width: 768px) {
            .max-w-7xl {
                max-width: 1280px;
            }
        }

        @media (min-width: 1024px) {
            .max-w-7xl {
                max-width: 1280px;
            }
        }

        @media (min-width: 1280px) {
            .max-w-7xl {
                max-width: 1280px;
            }
        }

        /* Remove shadow from main container since it's now full-width */
        body > div {
            box-shadow: none;
        }