:root {
    --primary-color: #FF6B2B;
    --secondary-color: #2B2B2B;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #F9F9F9;
    --border-radius: 12px;
}

/* Dark mode variables - using system preference */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #FF6B2B;
        --secondary-color: #1e293b; /* slate-800 */
        --background-color: #0f172a; /* slate-900 */
        --text-color: #f1f5f9; /* slate-100 */
        --light-gray: #334155; /* slate-700 */
        --card-bg: #1e293b; /* slate-800 */
        --border-color: #475569; /* slate-600 */
    }
    
    body {
        background-color: var(--background-color);
    }
    
    .navbar {
        background: rgba(15, 23, 42, 0.95);
    }
    
    .feature-card {
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .content-section-alt, .features-alt {
        background-color: var(--light-gray);
    }
    
    .footer {
        background: #000000 !important;
    }
    
    .stat-label {
        color: var(--text-color);
    }
    
    .bill-card.new-bill {
        background: rgba(56, 161, 105, 0.15);
    }
    
    /* Alternating section backgrounds for dark mode */
    .how-it-works {
        background: var(--light-gray);
    }

    .benefits {
        background: var(--card-bg);
    }

    .energy-difference {
        background: var(--background-color);
    }

    .calculator {
        background: var(--card-bg);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* General Header Styling */
h1, h2, h3, h4 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px; /* Reduced since navbar now has its own padding */
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0 2rem; /* Add horizontal padding to navbar itself */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0; /* Further reduced for compact nav */
}

.logo-img {
    height: 45px; /* Reduced from 60px for more compact nav */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Dashboard Link Special Styling */
.nav-links .dashboard-link,
.nav-links a.dashboard-link {
    background: #FF6B2B !important; /* Explicit orange color for reliability */
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.nav-links .dashboard-link:hover,
.nav-links a.dashboard-link:hover {
    background: #e55a2b !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(255, 107, 43, 0.3) !important;
}

.nav-links .dashboard-link.active,
.nav-links a.dashboard-link.active {
    background: #e55a2b !important;
    color: white !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 5rem 0 2rem; /* Added top padding to prevent nav overlap */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: left;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.hero-text {
    max-width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.battery-image {
    max-width: 120%; /* Increased from 100% to make image wider */
    height: auto;
    max-height: 600px; /* Increased from 500px */
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.2s;
}

.cta-button.primary {
    background-color: var(--primary-color);
    color: white;
}

.cta-button.secondary {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats */
.stat {
    text-align: center;
    min-width: 0; /* Prevent overflow */
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    word-break: keep-all;
    white-space: nowrap;
    text-align: center;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

.label-desktop {
    display: inline;
}

.label-mobile {
    display: none;
}

/* Tablet breakpoint */
@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

/* Mobile phone breakpoint */
@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .stat {
        padding: 1rem 0.5rem;
        min-height: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.75rem;
        display: block;
        text-align: center;
        margin-bottom: 0.75rem;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        text-align: center;
        color: #666;
        display: block;
    }
    
    .label-desktop {
        display: none;
    }
    
    .label-mobile {
        display: inline;
    }
}

/* How It Works */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Benefits */
.benefits {
    padding: 8rem 0 8rem 0;
    background: var(--light-gray);
    text-align: center;
    width: 100%;
}

.benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.benefits .section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    justify-content: center;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.benefit-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Heat Pumps Section */
.heatpumps {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.heatpumps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.heatpump-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Energy2 Difference Section */
.energy-difference {
    padding: 3rem 0 6rem 0;
    background: var(--background-color);
    text-align: center;
}

.energy-difference h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.energy-difference .section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.difference-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

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

.difference-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff9f5 0%, #ffffff 100%);
    transform: scale(1.02);
}

.difference-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.difference-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.difference-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.difference-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.difference-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e85a2b 100%);
    border-radius: var(--border-radius);
    color: white;
    margin-top: 2rem;
}

.difference-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

.difference-cta .cta-button {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.difference-cta .cta-button:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* Mobile responsiveness for difference section */
@media (max-width: 768px) {
    .difference-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .difference-card {
        padding: 1.5rem;
    }
    
    .difference-card.featured {
        transform: none;
    }
    
    .difference-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .difference-cta {
        padding: 2rem 1rem;
    }
    
    .difference-cta h3 {
        font-size: 1.5rem;
    }
}

/* Calculator */
.calculator {
    padding: 4rem 0;
    background: var(--light-gray);
}

/* Enhanced Results Section */
.recommendation-header {
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommendation-summary {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Savings Highlight */
.savings-highlight {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    padding: 1rem;
    background: rgba(255, 107, 43, 0.1);
    border-radius: var(--border-radius);
}

/* Mobile Responsiveness for New Elements */
@media (max-width: 768px) {
    .checkbox-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .checkbox-option {
        flex: none;
    }
}

/* Form Header */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.form-header label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.form-header .mode-toggle {
    margin: 0;
    padding: 0;
    border: none;
    text-align: right;
}

/* Mode Toggle - positioned in calculator form */
.mode-toggle {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mode-toggle.compact .toggle-switch {
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.mode-toggle.compact .toggle-slider {
    width: 40px;
    height: 20px;
}

.mode-toggle.compact .toggle-slider::before {
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
}

.mode-toggle.compact .toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: var(--primary-color);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(26px);
}

.toggle-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Preset Buttons */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.preset-btn {
    background: var(--card-bg, var(--light-gray));
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.2);
}

.preset-btn.active {
    border-color: var(--primary-color);
    background: var(--background-color);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.2);
}

.preset-btn strong {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.preset-btn span {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.preset-cost {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

/* Energy Slider Container */
.energy-slider-container {
    margin-top: 1rem;
}

/* Cost Results Section */
.cost-results-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--primary-color);
}

/* Cost Display */
.cost-display {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .cost-display {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.cost-column {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.1);
}

.cost-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cost-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
}

.cost-label.main {
    margin-top: 0.5rem;
    font-weight: 600;
    opacity: 1;
}

/* Cost Comparison */
.cost-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cost-before, .cost-after {
    flex: 1;
    text-align: center;
}

.cost-before .cost-value,
.cost-value.before {
    font-size: 1.4rem;
    color: #ef4444;
    margin-bottom: 0.25rem;
}

.cost-after .cost-value,
.cost-value.after {
    font-size: 1.4rem;
    color: #22c55e;
    margin-bottom: 0.25rem;
}

.cost-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.cost-before .cost-label,
.cost-after .cost-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .cost-comparison {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .cost-arrow {
        transform: rotate(90deg);
        font-size: 1rem;
    }
    
    .cost-before .cost-value,
    .cost-after .cost-value {
        font-size: 1.2rem;
    }
}

/* Simplified Cost Display */
.simple-cost-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.savings-card {
    background: var(--background-color);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.savings-amount {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.savings-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.savings-breakdown {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    opacity: 0.8;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    line-height: 1.2;
}

.cost-before-text,
.cost-after-text {
    color: var(--text-color);
    flex: 1;
}

@media (max-width: 768px) {
    .simple-cost-display {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .savings-card {
        padding: 1.2rem 0.8rem;
    }
    
    .savings-amount {
        font-size: 1.8rem;
    }
    
    .savings-breakdown {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
}

/* System Requirements */
.system-requirements {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
}

.system-requirements h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    align-items: center;
}

.requirement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 43, 0.05);
    border-radius: var(--border-radius);
}

.requirement-card.battery-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.requirement-icon {
    font-size: 2rem;
}

.requirement-details {
    text-align: left;
}

.requirement-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.requirement-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.requirement-note {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.6;
    font-style: italic;
    margin-top: 0.25rem;
}

.battery-visualization {
    text-align: center;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.battery-units {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.battery-unit {
    width: 35px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.battery-unit:hover {
    opacity: 1;
}

.battery-count {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 600px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .requirement-card {
        justify-content: center;
        text-align: center;
    }
    
    .requirement-details {
        text-align: center;
    }
    
    .battery-unit {
        width: 30px;
    }
}

/* Calculator Explanation */
.calculator-explanation {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 107, 43, 0.05);
    border-radius: var(--border-radius);
}

.calculator-explanation p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    max-width: 650px;
    margin: 0 auto;
}

.calculator-explanation span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Energy Slider */
.energy-slider {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    background: var(--light-gray);
    outline: none;
    appearance: none;
    transition: all 0.3s ease;
}

.energy-slider::-webkit-slider-thumb {
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(255, 107, 43, 0.4);
    transition: all 0.3s ease;
}

.energy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.5);
}

.energy-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 3px 10px rgba(255, 107, 43, 0.4);
    transition: all 0.3s ease;
}

.energy-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 43, 0.5);
}

.energy-slider::-moz-range-track {
    height: 10px;
    border-radius: 10px;
    background: var(--light-gray);
    border: none;
}

/* Equipment Options */
.equipment-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.equipment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem;
    background: var(--background-color);
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.equipment-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.2);
}

.equipment-btn.active {
    border-color: var(--primary-color);
    background: rgba(255, 107, 43, 0.1);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.2);
}

.equipment-btn strong {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
}

.equipment-btn span {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.equipment-btn.active span {
    color: var(--primary-color);
    opacity: 1;
    font-weight: 600;
}

.checkbox-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.1);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-option input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}

.checkbox-option input[type="checkbox"]:checked ~ .option-content strong {
    color: var(--primary-color);
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.option-content span {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Advanced Options */
.advanced-options {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--card-bg, var(--background-color));
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    opacity: 0.95;
}

.advanced-options .form-group {
    margin-bottom: 0.75rem;
}

.advanced-options .form-group:last-child {
    margin-bottom: 0;
}

.advanced-options input[type="number"] {
    width: 120px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
}

.advanced-options input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 43, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .preset-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cost-display {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .cost-column {
        padding: 1rem;
    }
    
    .cost-value {
        font-size: 1.5rem;
    }
    
    .checkbox-options {
        grid-template-columns: 1fr;
    }
}

.calculator h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.calculator-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.chart-container {
    width: 100%;
    max-width: 700px; /* Adjust as needed */
    margin: 2rem auto; /* Center the chart and add some vertical spacing */
    padding: 1rem;
    background-color: var(--card-bg); /* Or var(--light-gray) depending on theme */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure canvas is responsive within its container */
.chart-container canvas {
    width: 100% !important;
    height: auto !important;
}

.calculator-results {
    max-width: 800px;
    margin: 1.5rem auto 0;
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.price-increase-note {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.calculator-intro {
    margin-bottom: 1rem;
    text-align: center;
}

.benefits {
    text-align: left;
    background-color: rgba(255, 107, 43, 0.1);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.75rem;
    display: inline-block;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

.calculator-intro h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.calculator-intro p {
    color: #666;
    max-width: 600px;
    margin: 0 auto 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.input-help {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.form-group input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
}

.form-group select {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 43, 0.2);
}

.usage-options {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.usage-option {
    position: relative;
}

.usage-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.usage-option label {
    display: block;
    padding: 1.25rem;
    background: var(--card-bg, var(--light-gray));
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-color);
}

.usage-option input[type="radio"]:checked + label {
    background: var(--background-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.option-title {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.option-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.option-value {
    display: block;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* New simplified calculator styles */
.house-size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.size-option {
    position: relative;
    cursor: pointer;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-card {
    display: block;
    padding: 1rem;
    background: var(--card-bg, var(--light-gray));
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.size-option input[type="radio"]:checked + .size-card {
    background: var(--background-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.2);
}

.size-card strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.size-card span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Slider styles */
.slider-container {
    width: 100%;
    margin-top: 0.5rem;
}

.bill-slider {
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: var(--light-gray);
    outline: none;
    appearance: none;
    transition: all 0.3s ease;
}

.bill-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.3);
    transition: all 0.3s ease;
}

.bill-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.4);
}

.bill-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.3);
    transition: all 0.3s ease;
}

.bill-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 107, 43, 0.4);
}

.bill-slider::-moz-range-track {
    height: 8px;
    border-radius: 8px;
    background: var(--light-gray);
    border: none;
}

.slider-value {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.solar-options {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.solar-option {
    cursor: pointer;
}

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

.solar-option span {
    display: block;
    padding: 0.5rem 1rem;
    background: var(--card-bg, var(--light-gray));
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-weight: 500;
}

.solar-option input[type="radio"]:checked + span {
    background: var(--background-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.2);
    color: var(--primary-color);
}

.savings-highlight {
    text-align: center;
    margin-bottom: 1.5rem;
}

.savings-badge {
    background: linear-gradient(135deg, var(--primary-color), #ff8a50);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(255, 107, 43, 0.3);
}

.savings-text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.savings-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.savings-period {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
}

.annual-savings {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
}

/* System and Energy Details */
.system-details, .energy-details {
    background: var(--card-bg, var(--light-gray));
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.system-details h4, .energy-details h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.system-grid, .energy-grid {
    display: grid;
    gap: 0.75rem;
}

.system-item, .energy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.system-item:last-child, .energy-item:last-child {
    border-bottom: none;
}

.system-label, .energy-label {
    font-weight: 500;
    color: var(--text-color);
}

.system-value, .energy-value {
    font-weight: 600;
    color: var(--primary-color);
}

.system-item.total-cost {
    border-top: 2px solid var(--primary-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 600;
}

.system-item.total-cost .system-value {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.system-item.payback .system-value {
    color: #38a169;
    font-weight: 600;
}

@media (max-width: 768px) {
    .house-size-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .bill-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vs-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .savings-badge {
        padding: 1.25rem 1.5rem;
    }
    
    .savings-amount {
        font-size: 2rem;
    }
    
    .savings-breakdown {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
}

@media (min-width: 640px) {
    .usage-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calculator-results {
    text-align: left;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.cost-graph {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    height: 300px;
}

.calculator-results.hidden {
    display: none;
}

.calculator-results h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.cost-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cost-column {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.cost-column h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.cost-row {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cost-row.total-cost {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

.cost-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cost-label {
    color: #666;
}

.cost-value {
    font-weight: 600;
    color: var(--secondary-color);
}

.with-battery .cost-value {
    color: var(--primary-color);
}

.savings-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--primary-color);
}

.savings-badge {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.badge-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transform: rotate(-15deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.save-text {
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.save-amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0.3rem 0;
}

.save-period {
    font-size: 0.9rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.savings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.savings-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.savings-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.savings-row.total-savings {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--accent-color);
}

.total-savings .savings-value {
    font-size: 1.5rem;
}

.savings-row.roi-percent,
.savings-row.roi-compare {
    font-weight: 500;
}

.savings-row.roi-compare .savings-value {
    color: var(--accent-color);
    font-weight: 600;
}

.load-shifting-value {
    font-weight: 600;
    color: var(--accent-color);
}

.calculation-note {
    text-align: center;
    color: #666;
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.inflation-note {
    margin-top: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

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

/* Fun Fact Section */
.fun-fact {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.fun-fact h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Tariff Information Section */
.tariff-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.tariff-info h4 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.tariff-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Load Shifting Analysis Section */
.load-shifting-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.load-shifting-info h4 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.load-shifting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.load-shifting-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.load-shifting-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.load-shifting-value {
    font-weight: 600;
    color: var(--accent-color);
}

/* --- Business Page Specific Styles --- */

.business-hero {
    background: url('images/e1-200kwh.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.business-hero h1,
.business-hero .hero-subtitle,
.business-hero .pricing-note {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
}

.business-hero .cta-button {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    margin-top: 2rem;
    display: inline-block;
}

.business-hero .cta-button:hover {
    background: rgba(255, 107, 43, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 43, 0.9);
}

.content-section {
    padding: 4rem 0;
    text-align: center;
}

.content-section h2 {
    margin-bottom: 2rem;
}

.content-section p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.7;
}

.content-section ul {
    list-style: disc;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px; /* Adjust as needed */
    text-align: left;
    margin-top: 1.5rem;
}

.content-section ul li {
    margin-bottom: 0.75rem;
}

.content-section-alt, .features-alt {
    background-color: #f9f9f9;
}

.features-alt {
     padding: 4rem 0;
}

.features-alt h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Grid layout for features/benefits */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax as needed */
    gap: 2rem;
}

.feature-grid .feature-card {
    background: var(--background-color); /* Ensure cards stand out on alt background */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.feature-grid .feature-card img {
    height: 50px; /* Adjust icon size */
    margin-bottom: 1rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-button {
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cta-section .cta-button:hover {
    background-color: #eee;
}

@media (max-width: 768px) {
    .cost-comparison {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
}

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 1rem 0 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.footer-battery {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    gap: 0;
}

.footer-battery img {
    max-width: 300px;
    height: auto;
}

.footer-made-in-britain {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
}

/* Certifications section - separate white strip */
.certifications-strip {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 1.5rem 0;
    text-align: center;
}

.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cert-logo {
    max-height: 50px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cert-logo[alt*="TrustMark"] {
    max-height: 85px;
}

.cert-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .certifications-container {
        gap: 1.5rem;
    }
    
    .cert-logo {
        max-height: 40px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.footer-contact-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

/* Mobile layout - battery goes to bottom */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        gap: 2rem;
    }
    
    .footer-battery {
        order: 2;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-grid {
        order: 1;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }
    
    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.footer-logo {
    height: 32px;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

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

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

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 1rem; /* Add spacing from right edge */
        top: 50%;
        transform: translateY(-50%);
        padding: 0.5rem; /* Add touch-friendly padding */
        font-size: 1.8rem; /* Slightly larger for better visibility */
        background: none;
        border: none;
        color: var(--text-color);
        cursor: pointer;
    }
    
    .navbar .container {
        position: relative;
        justify-content: center; /* Center the logo */
        padding: 1.8rem 0; /* Increased from 1.2rem for taller mobile nav */
    }
    
    .logo {
        position: absolute;
        left: 50%;
        top: 60%; /* Moved down from 50% to prevent top overlap */
        transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    }
    
    .logo-img {
        height: 40px; /* Increased from 50px for mobile */
        width: auto;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navbar .container {
        position: relative;
    }

    .hero {
        min-height: auto;
        padding: 6rem 0 3rem; /* Increased top padding to avoid nav overlap */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .how-it-works h2 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .battery-image {
        max-height: 400px; /* Increased from 300px */
        max-width: 90%; /* Allow wider image */
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }

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

/* --- Contact Page Specific Styles --- */

.contact-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/contact-hero-bg.jpg') no-repeat center center/cover; /* Add relevant contact background */
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-info-item img {
    height: 40px; /* Adjust icon size */
    margin-bottom: 1rem;
}

.contact-info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info-item p {
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    background: white; /* Form on alt background */
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
}

.form-submit-button {
    display: block;
    width: auto;
    margin: 0 auto;
    padding: 0.8rem 2.5rem;
}

.form-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

/* Footer link styling */
.footer-link {
    color: #999;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
}

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

/* Dark mode specific styles */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: var(--card-bg);
        border-bottom: 1px solid var(--border-color);
    }

    .hero {
        background: linear-gradient(135deg, var(--background-color) 0%, var(--secondary-color) 100%);
    }
    
    .hero-text h1 {
        color: white;
    }
    
    .hero-subtitle {
        color: var(--text-secondary);
    }
    
    .battery-image {
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    }

    .card,
    .feature-card,
    .benefit-card,
    .step,
    .calculator-form,
    .calculator-results {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .section,
    .benefits {
        background: var(--background-color);
    }
    
    .benefits h2 {
        color: var(--text-color);
    }
    
    .benefits .section-subtitle {
        color: #94a3b8; /* slate-400 */
    }
    
    /* Energy2 Difference dark mode */
    .energy-difference {
        background: var(--background-color);
    }
    
    .energy-difference h2 {
        color: var(--text-color);
    }
    
    .energy-difference .section-subtitle {
        color: #94a3b8; /* slate-400 */
    }
    
    .difference-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }
    
    .difference-card.featured {
        background: linear-gradient(135deg, var(--card-bg) 0%, var(--secondary-color) 100%);
        border-color: var(--primary-color);
    }
    
    .difference-card h3 {
        color: var(--text-color);
    }
    
    .difference-card p {
        color: #94a3b8; /* slate-400 */
    }
    
    /* Content sections dark mode */
    .content-section,
    .content-section-alt {
        background: var(--background-color);
        color: var(--text-color);
    }
    
    .content-section h2,
    .content-section-alt h2 {
        color: var(--text-color);
    }
    
    .content-section p,
    .content-section-alt p {
        color: #94a3b8; /* slate-400 */
    }
    
    .content-section ul li,
    .content-section-alt ul li {
        color: var(--text-color);
    }

    .footer {
        background: var(--secondary-color);
        border-top: 1px solid var(--border-color);
    }

    input,
    textarea,
    select {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }

    input::placeholder,
    textarea::placeholder {
        color: #94a3b8; /* slate-400 */
    }

    .calculator-form,
    .calculator-results {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .form-group input[type="number"],
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea {
        background: var(--background-color);
        border-color: var(--border-color);
        color: var(--text-color);
    }

    .usage-option label {
        background: var(--card-bg);
        color: var(--text-color);
    }

    .usage-option input[type="radio"]:checked + label {
        background: var(--background-color);
        border-color: var(--accent-color);
    }
    
    .cta-button.secondary {
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .cta-button.secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: white;
    }

    /* Enhanced dark mode for new calculator elements */
    .calculator {
        background: var(--background-color);
    }

    .calculator h2,
    .section-subtitle {
        color: var(--text-color);
    }

    .toggle-label {
        color: var(--text-color);
    }

    .preset-btn {
        background: var(--card-bg);
        color: var(--text-color);
        border-color: var(--border-color);
    }

    .preset-btn:hover {
        border-color: var(--primary-color);
        background: var(--background-color);
    }

    .preset-btn.active {
        background: var(--background-color);
        border-color: var(--primary-color);
    }

    .preset-btn strong {
        color: var(--text-color);
    }

    .preset-btn span {
        color: var(--text-color);
        opacity: 0.8;
    }

    .cost-column {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .cost-value {
        color: var(--primary-color);
    }

    .cost-label {
        color: var(--text-color);
    }

    .energy-slider {
        background: var(--border-color);
    }

    /* System requirements dark mode */
    .system-requirements {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .system-requirements h3 {
        color: var(--text-color);
    }

    .requirement-card {
        background: var(--background-color);
    }

    .requirement-value {
        color: var(--primary-color);
    }

    .requirement-label,
    .requirement-note,
    .battery-count {
        color: var(--text-color);
    }

    /* Equipment buttons dark mode */
    .equipment-btn {
        background: var(--card-bg);
        border-color: var(--border-color);
    }

    .equipment-btn:hover {
        border-color: var(--primary-color);
    }

    .equipment-btn.active {
        background: var(--background-color);
        border-color: var(--primary-color);
    }

    .equipment-btn strong {
        color: var(--text-color);
    }

    .equipment-btn span {
        color: var(--text-color);
    }

    .equipment-btn.active span {
        color: var(--primary-color);
    }

    /* Savings cards dark mode */
    .savings-card {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .savings-amount {
        color: var(--primary-color);
    }

    .savings-label {
        color: var(--text-color);
        opacity: 0.9;
    }

    .savings-breakdown {
        opacity: 0.9;
    }

    .cost-before-text,
    .cost-after-text {
        color: var(--text-color);
    }

    /* Calculator explanation dark mode */
    .calculator-explanation {
        background: rgba(255, 107, 43, 0.1);
    }

    .calculator-explanation p {
        color: var(--text-color);
    }

    .calculator-explanation span {
        color: var(--primary-color);
    }

    .slider-value {
        color: var(--text-color);
    }

    .slider-labels span {
        color: var(--text-color);
    }

    .checkbox-option {
        background: var(--card-bg);
        color: var(--text-color);
    }

    .checkbox-option:hover {
        background: var(--background-color);
    }

    .checkmark {
        border-color: var(--border-color);
    }

    .option-content strong {
        color: var(--text-color);
    }

    .option-content span {
        color: var(--text-color);
        opacity: 0.7;
    }

    .advanced-options {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .advanced-options input[type="number"] {
        background: var(--background-color);
        border-color: var(--border-color);
        color: var(--text-color);
    }

    .form-group label {
        color: var(--text-color);
    }

    /* Dark mode for new enhanced elements */
    .smart-banner {
        background: linear-gradient(135deg, var(--primary-color), #ff8a50);
    }

    .recommendation-header {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .recommendation-summary {
        color: var(--text-color);
    }

    .impact-card {
        background: var(--card-bg);
        color: var(--text-color);
    }

    .impact-label {
        color: var(--text-color);
    }

    .annual-projection {
        background: var(--card-bg);
    }

    .annual-projection h4 {
        color: var(--text-color);
    }

    .bar-label {
        color: var(--text-color);
    }

    .savings-highlight {
        background: rgba(255, 107, 43, 0.2);
        color: var(--primary-color);
    }
}

/* Smooth transitions for theme switching */
body,
.navbar,
.hero,
.section,
.card,
.feature-card,
.benefit-card,
.step,
.footer,
input,
textarea,
select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .navbar .container {
        position: relative;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .how-it-works h2 {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Community Page Styles */
.impact-showcase {
    padding: 4rem 0;
    background: var(--light-gray);
}

.impact-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.achievement-card p {
    color: #666;
    line-height: 1.6;
}

.future-vision {
    padding: 4rem 0;
    background: var(--background-color);
}

.future-vision h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.vision-content > p {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.template-feature {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--light-gray);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.template-feature h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.template-feature p {
    color: #666;
    line-height: 1.6;
}

.stats-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.join-community {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), #e55a1f);
    text-align: center;
    color: white;
}

.join-community h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.join-community p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.join-community .cta-button {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border: 2px solid white;
}

.join-community .cta-button:hover {
    background: transparent;
    color: white;
}

/* Dark mode adjustments for community page */
@media (prefers-color-scheme: dark) {
    .achievement-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
    }
    
    .template-feature {
        background: var(--card-bg);
        border-left-color: var(--primary-color);
    }
    
    .section-subtitle,
    .achievement-card p,
    .template-feature p,
    .stat-label {
        color: #94a3b8;
    }
}

/* Mobile responsiveness for community page */
@media (max-width: 768px) {
    .impact-showcase h2,
    .future-vision h2,
    .join-community h2 {
        font-size: 2rem;
    }
    
    .section-subtitle,
    .vision-content > p,
    .join-community p {
        font-size: 1.1rem;
    }
    
    .achievements-grid,
    .template-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-highlight {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* Community Hero Text Enhancement - matches business hero */
.community-hero h1,
.community-hero .container h1,
.community-hero .hero-subtitle,
.community-hero .pricing-note {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6) !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
    animation: none !important;
}

/* Ultra-specific override for community hero heading */
section.hero.community-hero div.container h1,
section#hero.community-hero h1,
.hero.community-hero h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6) !important;
    -webkit-text-fill-color: white !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
}

/* Fallback for browsers that don't support background-clip: text */
.community-hero h1::before,
.community-hero .container h1::before {
    content: attr(data-text);
    position: absolute;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.community-hero .hero-subtitle {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6) !important;
    font-weight: 500;
}

.community-hero .cta-button {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.community-hero .cta-button:hover {
    background: rgba(255, 107, 43, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Energy Evolution Section */
.energy-evolution {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

.energy-evolution h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.evolution-text {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    color: #555;
}

.evolution-text strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1em;
}

.evolution-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-item.past {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.timeline-item.future {
    background: linear-gradient(135deg, var(--primary-color), #e55a1f);
    color: white;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.timeline-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.timeline-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Dark mode for evolution section */
@media (prefers-color-scheme: dark) {
    .energy-evolution {
        background: linear-gradient(135deg, var(--background-color) 0%, var(--secondary-color) 100%);
    }
    
    .evolution-text {
        color: #94a3b8;
    }
}

/* Mobile responsiveness for evolution section */
@media (max-width: 768px) {
    .energy-evolution h2 {
        font-size: 2rem;
    }
    
    .evolution-text {
        font-size: 1.1rem;
    }
    
    .evolution-timeline {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
    }
}

/* ========== REDESIGNED CALCULATOR STYLES ========== */

/* Calculator Form Header */
.calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.calculator-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.compact-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.compact-toggle-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Compact Mode Toggle Styling */
.compact-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.compact-toggle.active {
    background: var(--primary-color);
}

.compact-toggle.inactive {
    width: 36px;
    height: 20px;
    border-radius: 10px;
}

.compact-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.compact-toggle.inactive::before {
    width: 16px;
    height: 16px;
}

.compact-toggle.active::before {
    transform: translateX(20px);
}

.compact-toggle.inactive.active::before {
    transform: translateX(16px);
}

/* Simple Results Styling */
.simple-results {
    text-align: center;
    margin-top: 2rem;
}

.prominent-savings {
    background: linear-gradient(135deg, var(--primary-color), #ff8a50);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(255, 107, 43, 0.3);
}

.savings-headline {
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.massive-savings-figure {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.savings-timeframe {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.quick-details {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.4;
}

/* Advanced Results Layout */
.advanced-results {
    margin-top: 2rem;
}

.results-grid {
    display: grid;
    gap: 2rem;
}

/* System Recommendation Section */
.system-recommendation {
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
}

.ai-recommendation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.system-rec-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.system-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.spec-item {
    text-align: center;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Savings Breakdown Grid */
.savings-breakdown {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
}

.breakdown-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.breakdown-card {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

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

.breakdown-card.monthly {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.breakdown-card.annual {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

.breakdown-card.lifetime {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.breakdown-period {
    font-size: 0.85rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.breakdown-amount {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.breakdown-description {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Savings Explanation with Icons */
.savings-explanation {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
}

.explanation-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.explanation-grid {
    display: grid;
    gap: 1rem;
}

.explanation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.explanation-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.explanation-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.explanation-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

/* Energy Graph Container */
.energy-graph-container {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
}

.graph-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.graph-placeholder {
    height: 300px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 1rem;
}

/* Graph Legend */
.graph-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.before {
    background: #ef4444;
}

.legend-color.after {
    background: #22c55e;
}

.legend-color.peak {
    background: var(--primary-color);
}

.legend-label {
    color: var(--text-color);
    font-weight: 500;
}

/* Calculation Details Table */
.calculation-details {
    background: var(--background-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color, #e5e7eb);
}

.details-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th {
    background: var(--light-gray);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

.details-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-color);
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table .value-col {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
}

.details-table .total-row {
    background: var(--light-gray);
    font-weight: 700;
}

.details-table .total-row td {
    border-top: 2px solid var(--primary-color);
    font-size: 1.1rem;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .calculator-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .massive-savings-figure {
        font-size: 3rem;
    }

    .breakdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .breakdown-amount {
        font-size: 1.8rem;
    }

    .system-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .graph-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .details-table th,
    .details-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .explanation-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .explanation-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .calculator-title {
        font-size: 1.5rem;
    }

    .prominent-savings {
        padding: 2rem 1rem;
    }

    .massive-savings-figure {
        font-size: 2.5rem;
    }

    .system-specs {
        grid-template-columns: 1fr;
    }

    .breakdown-card {
        padding: 0.75rem;
    }

    .breakdown-amount {
        font-size: 1.5rem;
    }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .calculator-header {
        border-bottom-color: var(--primary-color);
    }

    .calculator-title,
    .system-rec-title,
    .breakdown-title,
    .explanation-title,
    .graph-title,
    .details-title {
        color: var(--text-color);
    }

    .system-recommendation {
        background: var(--card-bg);
        border-color: var(--primary-color);
    }

    .savings-breakdown,
    .savings-explanation,
    .energy-graph-container,
    .calculation-details {
        background: var(--card-bg);
        border-color: var(--border-color);
    }

    .explanation-item {
        background: var(--secondary-color);
    }

    .graph-placeholder {
        background: var(--secondary-color);
        color: var(--text-color);
    }

    .details-table th {
        background: var(--secondary-color);
        color: var(--text-color);
    }

    .details-table .total-row {
        background: var(--secondary-color);
    }

    .compact-toggle {
        background: var(--border-color);
    }

    .compact-toggle.active {
        background: var(--primary-color);
    }
}

/* Enhanced Visual Hierarchy */
.prominent-savings {
    position: relative;
    overflow: hidden;
}

.prominent-savings::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Accessibility Improvements */
.compact-toggle:focus,
.breakdown-card:focus,
.explanation-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .calculator-header,
    .compact-toggle-container {
        display: none;
    }
    
    .prominent-savings,
    .breakdown-card {
        background: white !important;
        color: black !important;
        border: 1px solid #000;
    }
    
    .graph-placeholder {
        border: 1px solid #000;
    }
}