/**
 * Solar Calculator Styles - CLEANED VERSION
 * Mobile-first responsive design
 * Mahalo Power branding
 * 
 * FIXES APPLIED:
 * - Removed debug background-color: green
 * - Fixed font-size: 32pt to 0.7em in landscape
 * - Fixed syntax error: "position: top:" to just "top:"
 * - Fixed display: visible to display: none
 * - Normalized all font sizes
 * - Kept grid layout with relative positioning overlay
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    padding-top: 70px;
    padding-bottom: 75px;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    position: relative;
    top: -4px;
    left: -15px;
    height: 85px;
    width: auto;
}

.header-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4em;
    font-weight: 700;
    color: #2c5282;
    white-space: nowrap;
}

/* Hamburger Menu Button */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
}

.hamburger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: #2c5282;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 250px;
    background: white;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li {
    border-bottom: 1px solid #e2e8f0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.nav-menu a:hover {
    background: #f7fafc;
    color: #f6ad55;
}

/* Page Container */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Calculator Section */
.calculator-section {
    width: 100%;
    padding: 20px;
}

.calculator-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 30px;
}

.intro-section h2 {
    color: #2c5282;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.intro-section p {
    color: #4a5568;
    font-size: 1.1em;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #f6ad55;
    padding-bottom: 8px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1em;
}

/* Fix for system type radio buttons - override space-between */
.form-group label.system-type-option {
    justify-content: flex-start !important;
}

.form-group label.financing-option {
    justify-content: flex-start !important;
}



.video-help-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.video-help-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.video-help-btn img {
    width: 45px;
    height: 45px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #f6ad55;
}

.form-group small {
    display: block;
    color: #718096;
    font-size: 0.85em;
    margin-top: 5px;
}

/* Advanced Options */
.advanced-section h3 {
    cursor: pointer;
    user-select: none;
}

.toggle-advanced {
    color: #f6ad55;
    font-size: 0.9em;
    font-weight: normal;
}

.advanced-fields {
    margin-top: 15px;
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Loading Indicator */
.loading {
    text-align: center;
    padding: 40px;
    margin: 30px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #f6ad55;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.results-section h2 {
    color: #2c5282;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
}

/* Key Metrics */
.key-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.metric-value {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.metric-subtitle {
    font-size: 0.85em;
    opacity: 0.85;
}

/* Comparison Table */
.comparison-table-wrapper {
    margin-bottom: 40px;
}

.comparison-table-wrapper h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.table-scroll {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9em;
}

.comparison-table th {
    background: #2c5282;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.comparison-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tr:hover {
    background: #f7fafc;
}

.comparison-table .savings {
    color: #38a169;
    font-weight: 600;
}

.comparison-table .cumulative.positive {
    color: #38a169;
    font-weight: 600;
}

.comparison-table .cumulative.negative {
    color: #e53e3e;
}

.comparison-table .breakeven-row {
    background: #fef5e7;
    font-weight: 600;
}

.comparison-table .breakeven-row td {
    border-top: 2px solid #f6ad55;
    border-bottom: 2px solid #f6ad55;
}

/* Email Section */
.email-section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #e2e8f0;
}

.email-section h3 {
    color: #2d3748;
    margin-bottom: 10px;
}

.email-section p {
    color: #4a5568;
    margin-bottom: 15px;
}

.email-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.email-input-group input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
}

.email-input-group input[type="email"]:focus {
    outline: none;
    border-color: #f6ad55;
}

.email-btn {
    padding: 12px 25px;
    background: #2c5282;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.email-btn:hover {
    background: #2d3748;
}

.email-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

.email-status.success {
    background: #c6f6d5;
    color: #22543d;
}

.email-status.error {
    background: #fed7d7;
    color: #742a2a;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.cta-section h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.cta-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 25px;
    background: white;
    color: #2c5282;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

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

/* Video Section - Desktop */
.video-section {
    overflow: hidden;
    display: none;
    width: 100%;
    position: sticky;
    top: 60px;
    height: calc(100vh - 180px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.video-player-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.video-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.video-wrapper {
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 9/16;
    object-fit: contain;
}

/* Video Placeholder */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    border-radius: 8px;
    z-index: 5;
}

.video-placeholder.hidden {
    display: none;
}

.placeholder-content {
    text-align: center;
    color: white;
}

.placeholder-icon {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.8;
}

.placeholder-content p {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
    padding: 0 20px;
}

/* Video Overlay - Mobile */
.video-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 20px;
}

.video-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

.video-overlay-wrapper {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-overlay-wrapper video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    border-radius: 8px;
}

/* Fixed Footer - Compact Design */
.fixed-footer {
    position: fixed;
    bottom: -15px;
    left: 0;
    right: 0;
    min-height: 60px;
    max-height: 75px;
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0px 15px;
    overflow: hidden;
}

.footer-container {
    position: relative;
    top: -17px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 50px;
    display: grid;
    grid-template-rows: auto auto;
    gap: -30px;
}

.footer-row-top {
    display: grid;
    grid-template-columns: 85% 15%;
    align-items: center;
    gap: 10px;
}

.footer-row-bottom {
    position: relative;
    top: -18px;
    text-align: center;
}

.footer-message {
    padding-right: 15px;
}

.footer-main-text {
    font-size: 0.9em;
    color: #2d3748;
    margin: 0;
    line-height: 1.4;
}

.footer-main-text strong {
    color: #f6ad55;
    font-weight: 700;
}

.footer-arrow {
    position: relative;
    left: -35px;
    text-align: center;
    padding: 0 10px;
}

.footer-arrow a {
    display: inline-block;
    transition: transform 0.2s, opacity 0.3s;
}

.footer-arrow a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.clickhere-arrow {
    height: 150px;
    width: auto;
    display: block;
}

.footer-disclaimer-container {
    width: 100%;
}

.footer-disclaimer {
    font-size: 0.8em;
    color: #e53e3e;
    font-weight: 800;
    margin: 0;
}


/* Collapsible Section Headers */
.section-header.collapsible {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    padding: 10px;
    margin: -10px;
    border-radius: 4px;
}

.section-header.collapsible:hover {
    background-color: #f7fafc;
}

.section-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8em;
    margin-right: 5px;
}

.section-content {
    overflow: hidden;
    margin-top: 15px;
    transition: all 0.3s ease;
}
/* Adders Section */
.adders-section .adder-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}


.adders-section .adder-checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Keep items at start */
    gap: 8px;  /* Small gap between checkbox and text */
    margin: 0;
}

.adders-section .adder-checkbox-label .video-help-btn {
    margin-left: auto;  /* Push video button to the right */
}

.adders-section .adder-checkbox {
    margin-right: 8px;
}

.adders-section .adder-qty-group,
.adders-section .adder-cost-group {
    display: flex;
    flex-direction: column;
}

.adders-section .adder-qty-group label,
.adders-section .adder-cost-group label {
    font-size: 0.85em;
    color: #718096;
    margin-bottom: 2px;
}

.adders-section input[type="number"] {
    padding: 8px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    font-size: 1em;
}

.adders-section input[type="number"]:disabled {
    background: #f7fafc;
    cursor: not-allowed;
}


/* Location dropdown styling - matches existing form inputs */
#location_state {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1em;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

#location_state:focus {
    outline: none;
    border-color: #4299e1;
}

#location_state:required:invalid {
    border-color: #fc8181;
}

/* Peak sun hours read-only field */
#peak_sun_hours[readonly] {
    background-color: #f7fafc;
    cursor: not-allowed;
    color: #2d3748;
}



/* Mobile Portrait */
@media (max-width: 767px) {
    .header-title {
        font-size: 1.1em;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .fixed-footer {
        min-height: 55px;
        max-height: 70px;
        padding: 0px 10px;
    }
    
    .footer-container {
        min-height: 45px;
        gap: -30px;
    }
    
    .footer-row-top {
        position: relative;
        top: -10px;
        left: 0px;
        grid-template-columns: 85% 15%;
        gap: 5px;
    }
    
    .footer-message {
        padding-right: 5px;
        font-size: 0.65em;
    }
    
    .footer-main-text {
        font-size: 0.85em;
        line-height: 1.5em;
        width: 80%;
    }
    
    .clickhere-arrow {
        position: relative;
        top: 10px;
        left: -25px;
        height: 85px;
    }
    
    .footer-disclaimer-container {
        position: relative;
        top: 0px;
        text-align: left;
    }
    
    .footer-disclaimer {
        position: relative;
        top: -20px;
        text-align: left;
        font-size: 0.20em;
    }
    
    /* Adders Section - Mobile Stacking */
    
    /* Adders Section - Mobile Stacking */
    .adders-section .adder-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .adders-section .adder-row:last-child {
        border-bottom: none;
    }
    
    .adders-section .adder-checkbox-label {
        font-weight: 600;
    }
    
    .adders-section .adder-qty-group,
    .adders-section .adder-cost-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .adders-section .adder-qty-group label,
    .adders-section .adder-cost-group label {
        min-width: 80px;
        font-weight: 600;
    }
    
    .adders-section input[type="number"] {
        flex: 1;
    }
    
    /* Disclaimer Modal - Mobile */
    .disclaimer-modal {
        padding: 20px;
        max-height: 85vh;
    }
    
    .disclaimer-logo {
        height: 50px;
    }
    
    .disclaimer-modal h2 {
        font-size: 1.3em;
    }
    
    .disclaimer-contact {
        font-size: 0.8em;
    }
    
    .disclaimer-list li {
        font-size: 0.95em;
    }
}

/* Mobile Landscape */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    body {
        padding-bottom: 70px;
    }
    
    .fixed-footer {
        bottom: -15px;
        min-height: 55px;
        max-height: 70px;
        padding: 0px 10px;
        overflow: hidden;
    }
    
    .footer-container {
        position: relative;
        top: -17px;
        min-height: 45px;
        gap: -30px;
    }
    
    .footer-row-top {
        grid-template-columns: 85% 15%;
        gap: 5px;
    }
    
    .footer-row-bottom {
        position: relative;
        top: -25px;
    }
    
    .footer-message {
        position: relative;
        top: -35px;
        padding-right: 5px;
    }
    
    .footer-main-text {
        position: relative;
        top: 10px;
        left: 5px;
        width: 90%;
        font-size: 0.7em;
        line-height: 1.2em;
        text-align: left;
    }
    
    .footer-arrow {
        position: relative;
        left: -35px;
    }
    
    .clickhere-arrow {
        height: 100px;
    }
    
    .footer-disclaimer-container {
        position: relative;
        top: -35px;
        text-align: left;
    }
    
    .footer-disclaimer {
        font-size: 0.6em;
    }
}

/* Tablet and Desktop */


/* Tablet and Desktop Landscape */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
    body {
        padding-bottom: 70px;
    }
    
    .fixed-footer {
        bottom: -15px;
        min-height: 55px;
        max-height: 70px;
        padding: 0px 10px;
        overflow: hidden;
    }
    
    .footer-container {
        position: relative;
        top: -17px;
        min-height: 45px;
        gap: -30px;
    }
    
    .footer-row-top {
        grid-template-columns: 85% 15%;
        gap: 5px;
    }
    
    .footer-row-bottom {
        position: relative;
        top: -25px;
    }
    
    .footer-message {
        position: relative;
        top: -25px;
        padding-right: 5px;
    }
    
    .footer-main-text {
        position: relative;
        top: 8px;
        font-size: 1.4em;
        line-height: 1.2;
    }
    
    .footer-arrow {
        position: relative;
        left: -35px;
    }
    
    .clickhere-arrow {
        height: 100px;
    }
    
    .footer-disclaimer-container {
        position: relative;
        top: 2px;
        text-align: left;
        font-size: 1.8em;
    }
    
    .footer-disclaimer {
        font-size: 0.6em;
    }
    
    #video-player {
        position: relative;
        top: 0px;
        left: 0px;
        height: 100%;
        max-height: 550px;
        width: auto;
    }
    
    
    label.system-type-option {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px !important;
    }
    
    label.system-type-option input[type="radio"] {
        justify-self: end;
        align-self: start;
        margin: 0 !important;
        margin-top: 2px !important;
    }
    
    label.system-type-option div {
        text-align: left;
    }
    
   
   
   
   
   
   
    label.financing-option {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px !important;
    }
    
    label.financing-option input[type="radio"] {
        justify-self: end;
        align-self: start;
        margin: 0 !important;
        margin-top: 2px !important;
    }
    
    label.financing-option div {
        text-align: left;
    }
    
   
   
}

@media (max-width: 1023px){
 
    label.financing-option {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px !important;
    }
    label.system-type-option {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px !important;
    }
    
}
/* desktop and larger tablet */ 

@media (min-width: 1024px) {

    /* System Type Layout - Two Column for Tablet/Desktop */
    label.system-type-option {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px !important;
    }
    
    label.system-type-option input[type="radio"] {
        justify-self: end;
        align-self: start;
        margin: 0 !important;
        margin-top: 2px !important;
    }
    
    label.system-type-option div {
        text-align: left;
    }

    /* Financing Layout - Two Column for Desktop Only */
    label.financing-option {
        display: grid !important;
        grid-template-columns: 60px 1fr !important;
        gap: 15px !important;
        align-items: start !important;
        padding: 15px !important;
    }
    
    label.financing-option input[type="radio"] {
        justify-self: end;
        align-self: start;
        width: 60px;
        border-color: orange;
        margin: 0 !important;
        margin-top: 2px !important;
    }
    
    label.financing-option div {
        text-align: left;
    }

    .key-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .comparison-table {
        font-size: 1em;
    }
    
    .email-input-group {
        flex-wrap: nowrap;
    }
    
    .email-input-group input[type="email"] {
        min-width: auto;
    }
    
    .page-container {
        flex-direction: row;
        gap: 20px;
        padding: 20px;
    }
    
    .calculator-section {
        flex: 1;
        max-width: 65%;
    }
    
    .video-section {
        overflow: hidden;
        display: block !important;
        flex: 1;
        max-width: 35%;
    }
    
    .video-close-btn {
        display: none;
    }

    .video-overlay {
        display: none !important;
    }

    .adders-section .adder-row {
        display: grid;
        grid-template-columns: 2fr 90px 140px;
        gap: 10px;
        align-items: center;
        flex-direction: row;
        padding: 0;
        margin-bottom: 10px;
        border-bottom: none;
    }
    
    .adders-section .adder-qty-group,
    .adders-section .adder-cost-group {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .adders-section .adder-qty-group label,
    .adders-section .adder-cost-group label {
        min-width: auto;
        margin-bottom: 2px;
        font-size: 0.85em;
    }
    
    .adders-section .adder-qty-group input,
    .adders-section .adder-cost-group input {
        width: 100%;
        max-width: none;
    }

    .intro-section h2 {
        font-size: 2.2em;
    }
    
    .header-title {
        font-size: 1.5em;
    }

    /* Duplicates resolved in favor of block #2 */
    .fixed-footer {
        bottom: -15px;
        min-height: 55px;
        max-height: 70px;
        padding: 0px 10px;
        overflow: hidden;
    }
    
    .footer-container {
        position: relative;
        top: -17px;
        min-height: 45px;
        gap: -30px;
    }
    
    .footer-row-top {
        grid-template-columns: 85% 15%;
        gap: 5px;
    }
    
    .footer-row-bottom {
        position: relative;
        top: -25px;
    }
    
    .footer-message {
        position: relative;
        top: -41px;
        padding-right: 5px;
    }
    
    .footer-main-text {
        position: relative;
        top: 8px;
        font-size: 1.4em;
        line-height: 1.2;
    }
    
    .footer-arrow {
        position: relative;
        left: -45px;
        top: -1px;
    }
    
    .clickhere-arrow {
        height: 130px;
    }
    
    .footer-disclaimer-container {
        position: relative;
        top: -28px;
        text-align: left;
        font-size: 1.8em;
    }
    
    .footer-disclaimer {
        font-size: 0.6em;
    }
    
    #video-player {
        position: relative;
        top: 1%;
        left: 0px;
        height: 100%;
        max-height: calc(100vh - 200px);
        width: auto;
    }
}

/* Validation Error State */
.validation-error {
    border-color: #e53e3e !important;
}

.validation-error:focus {
    border-color: #e53e3e !important;
}

/* Validation Error for Battery Checkbox Labels */
.adder-checkbox-label.validation-error {
    border: 2px solid #e53e3e !important;
    background-color: #fed7d7 !important;
    border-radius: 6px;
    padding: 8px !important;
}

/* Battery Warning Message for Grid-Tied Systems */
.battery-warning {
    background-color: #fed7d7;
    border: 2px solid #e53e3e;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.battery-warning p {
    margin: 0;
    color: #742a2a;
    font-weight: 500;
    line-height: 1.5;
}

.battery-warning strong {
    font-weight: 700;
}

/* Disclaimer Modal Overlay */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.disclaimer-overlay.hidden {
    display: none;
}

.disclaimer-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

.disclaimer-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f6ad55;
    padding-bottom: 15px;
}

.disclaimer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.disclaimer-contact {
    font-size: 0.9em;
    color: #4a5568;
}

.disclaimer-contact a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 500;
}

.disclaimer-contact a:hover {
    color: #f6ad55;
    text-decoration: underline;
}

.disclaimer-modal h2 {
    color: #2c5282;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.disclaimer-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #2d3748;
    line-height: 1.6;
}

.disclaimer-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #f6ad55;
    font-weight: bold;
    font-size: 1.2em;
}

.disclaimer-checkbox-group {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.disclaimer-checkbox-label {
    display: flex;
    align-items: start;
    cursor: pointer;
    user-select: none;
}

.disclaimer-checkbox {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.disclaimer-checkbox-label span {
    color: #2d3748;
    font-weight: 500;
    line-height: 1.5;
}

.disclaimer-continue-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
}

.disclaimer-continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(246, 173, 85, 0.4);
}

.disclaimer-continue-btn:active:not(:disabled) {
    transform: translateY(0);
}

.disclaimer-continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Parts List Section */
.parts-list-section {
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.parts-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: white;
}

.parts-list-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.parts-list-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.parts-list-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.parts-list-toggle-btn .toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.parts-list-toggle-btn.expanded .toggle-icon {
    transform: rotate(180deg);
}

.parts-list-content {
    padding: 25px;
    background: #f7fafc;
}

.parts-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.parts-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f6ad55;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.parts-card-header {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c5282;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f6ad55;
}

.parts-card-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.parts-card-detail:last-child {
    border-bottom: none;
    margin-top: 10px;
    padding-top: 12px;
    font-weight: 600;
    color: #2c5282;
}

.parts-card-label {
    color: #4a5568;
    font-size: 0.9em;
}

.parts-card-value {
    color: #2d3748;
    font-weight: 500;
}

.parts-card-total {
    font-size: 1.15em;
    color: #2c5282;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .parts-list-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .parts-list-header h3 {
        font-size: 1.1em;
    }
    
    .parts-list-container {
        grid-template-columns: 1fr;
    }
    
    .parts-card {
        padding: 15px;
    }
}

/* Large parts cards for summary view */
.parts-card-large {
    grid-column: 1 / -1;
    max-width: 100%;
}

@media (min-width: 768px) {
    .parts-card-large {
        max-width: 800px;
        margin: 0 auto;
    }
}
