/* ==========================================
   ION SOLAR PROS - SOLAR SAVINGS CALCULATOR
   Glassmorphism Design System (Matching Frank ISP)
   ========================================== */

/* CSS Variables - Brand Colors */
:root {
    --purple: #663094;
    --purple-light: #7c4aa8;
    --purple-glow: rgba(102, 48, 148, 0.5);
    --orange: #EB9840;
    --orange-glow: rgba(235, 152, 64, 0.5);
    --coral: #de3e52;
    --coral-glow: rgba(222, 62, 82, 0.5);
    --green: #28a745;
    --green-light: #34c759;
    --green-glow: rgba(40, 167, 69, 0.5);
    --grey: #343333;
    --grey-light: #4a4949;
    --white: #FFFFFF;

    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-card-solid: rgba(20, 20, 30, 0.95);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Shadows & Effects */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow-purple: 0 0 40px rgba(102, 48, 148, 0.3);
    --shadow-glow-orange: 0 0 40px rgba(235, 152, 64, 0.3);
    --shadow-glow-green: 0 0 40px rgba(40, 167, 69, 0.3);

    /* Spacing */
    --header-height: 70px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================
   ANIMATED BACKGROUND
   ========================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(102, 48, 148, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(235, 152, 64, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(222, 62, 82, 0.05) 0%, transparent 70%);
}

.bg-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    opacity: 0.15;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    opacity: 0.12;
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--green);
    opacity: 0.1;
    bottom: 10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ==========================================
   GLASS CARD COMPONENT
   ========================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glass);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================
   HEADER
   ========================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 20px var(--purple-glow));
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border: none;
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--purple-glow);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple);
    color: var(--white);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: var(--purple);
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.back-btn:hover {
    color: var(--purple-light);
}

.back-btn svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
    min-height: 100vh;
}

.section {
    display: none;
    min-height: calc(100vh - var(--header-height));
}

.section.active {
    display: block;
}

/* ==========================================
   LANDING SECTION
   ========================================== */
.landing-section {
    padding: 40px 24px;
}

/* ==========================================
   LANDING SECTION
   ========================================== */
.landing-section {
    padding: 40px 24px;
}

.landing-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--purple-light), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0 8px;
    margin: 0 -8px;
    position: relative;
}

.hero-title .highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(102, 48, 148, 0.15);
    border-radius: var(--border-radius-sm);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-card {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.feature-card:nth-child(1) { transform: translateX(0); }
.feature-card:nth-child(2) { transform: translateX(-20px); }
.feature-card:nth-child(3) { transform: translateX(20px); }

.feature-card:hover {
    transform: translateX(8px) !important;
    box-shadow: var(--shadow-glass), var(--shadow-glow-purple);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon.green {
    background: rgba(40, 167, 69, 0.15);
    color: var(--green);
}

.feature-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   CALCULATOR SECTION
   ========================================== */
.calculator-section {
    padding: 24px 24px 120px;
}

/* Progress Stepper */
.progress-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 40px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.step.active, .step.completed {
    opacity: 1;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step.active .step-icon {
    background: rgba(102, 48, 148, 0.2);
    border-color: var(--purple);
}

.step.active .step-icon svg {
    color: var(--purple);
}

.step.completed .step-icon {
    background: var(--green);
    border-color: var(--green);
}

.step.completed .step-icon svg {
    color: var(--white);
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.step.active .step-label {
    color: var(--text-primary);
}

.step-connector {
    flex: 1;
    height: 2px;
    background: var(--border-glass);
    max-width: 120px;
    margin: 0 -10px;
    margin-top: -24px;
    transition: background 0.3s ease;
}

.step-connector.completed {
    background: var(--green);
}

/* Wizard Container */
.wizard-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card-solid);
}

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

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

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

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--white), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(102, 48, 148, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-suffix {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.currency-input .form-input {
    padding-left: 32px;
    padding-right: 80px;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
}

.currency-suffix {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.help-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--purple);
    text-decoration: none;
}

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

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-glass);
}

.suggestions-dropdown.active {
    display: block;
}

.input-with-dropdown {
    position: relative;
}

.suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-item svg {
    width: 16px;
    height: 16px;
    color: var(--purple);
    flex-shrink: 0;
}

.suggestion-main {
    font-weight: 500;
}

.suggestion-secondary {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-left: 4px;
}

/* Map */
.map-wrapper {
    position: relative;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.map-view {
    width: 100%;
    height: 100%;
}

.map-center-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    color: var(--coral);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 10;
    pointer-events: none;
}

.map-center-marker svg {
    width: 40px;
    height: 40px;
}

/* Utility Cards */
.utility-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.utility-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.utility-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple);
}

.utility-card.selected {
    background: rgba(102, 48, 148, 0.15);
    border-color: var(--purple);
}

.utility-card-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.utility-card-rate {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.selected-utility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(102, 48, 148, 0.15);
    border: 1px solid var(--purple);
    border-radius: var(--border-radius-sm);
    margin-top: 24px;
}

.utility-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.utility-badge svg {
    width: 20px;
    height: 20px;
    color: var(--purple);
}

.change-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-btn:hover {
    border-color: var(--purple);
    color: var(--white);
}


/* Bill Input Section */
.bill-input-section {
    margin-bottom: 32px;
    text-align: center;
}

.bill-display {
    margin-bottom: 20px;
}

.bill-amount {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bill-label {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-left: 4px;
}

.bill-slider-container {
    max-width: 100%;
    margin: 0 auto;
}

.bill-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.bill-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    box-shadow: 0 2px 10px var(--purple-glow);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bill-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.bill-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    box-shadow: 0 2px 10px var(--purple-glow);
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Home Size Options */
.home-size-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.home-size-card {
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-glass);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.home-size-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--purple);
    transform: translateY(-4px);
}

.home-size-card.selected {
    background: rgba(102, 48, 148, 0.15);
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--purple-glow);
}

.home-size-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.home-size-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.home-size-icon.large svg {
    width: 36px;
    height: 36px;
}

.home-size-card.selected .home-size-icon {
    background: rgba(102, 48, 148, 0.3);
}

.home-size-card.selected .home-size-icon svg {
    color: var(--purple);
}

.home-size-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.home-size-bill {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.home-size-estimate {
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.estimate-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.estimate-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green);
}

/* Step Footer */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.footer-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-next {
    min-width: 140px;
}

/* ==========================================
   RESULTS SECTION
   ========================================== */
.results-step {
    text-align: center;
}

.results-header {
    margin-bottom: 40px;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 20px;
    color: var(--green);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.results-badge svg {
    width: 16px;
    height: 16px;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-title .highlight {
    color: var(--green);
}

.results-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.summary-card {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    text-align: center;
}

.summary-card.highlight-card {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-card .summary-value {
    color: var(--green);
}

/* Savings Chart */
.savings-chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 40px;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: left;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.chart-wrapper {
    height: 300px;
}

/* 3D Model Placeholder */
.model-placeholder {
    margin-bottom: 40px;
}

.model-coming-soon {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-glass);
    border-radius: var(--border-radius);
    text-align: center;
}

.model-coming-soon svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.model-coming-soon h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.model-coming-soon p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Results CTA */
.results-cta {
    text-align: center;
}

.cta-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   QUOTE FORM
   ========================================== */
.quote-form {
    margin-top: 32px;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-time-options {
    display: flex;
    gap: 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.radio-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--purple);
}

.checkbox-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================
   3D VIEW STEP
   ========================================== */
.3dview-content {
    text-align: center;
}

.3dview-header {
    margin-bottom: 24px;
}

.3dview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(102, 48, 148, 0.15);
    border: 1px solid rgba(102, 48, 148, 0.3);
    border-radius: 20px;
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.3dview-badge svg {
    width: 16px;
    height: 16px;
}

.3dview-placeholder {
    margin-bottom: 24px;
}

.3dview-model-area {
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border-glass);
    border-radius: var(--border-radius);
    text-align: center;
}

.3dview-model-area svg {
    width: 64px;
    height: 64px;
    color: var(--purple);
    margin-bottom: 16px;
    opacity: 0.6;
}

.3dview-model-area h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.3dview-model-area p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.3dview-model-area .address-preview {
    font-size: 0.85rem;
    color: var(--purple);
    font-weight: 500;
    margin-top: 16px;
}

.3dview-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.3dview-summary .summary-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.3dview-summary .summary-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.3dview-summary .summary-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.3dview-summary .summary-value.highlight {
    color: var(--green);
}

.3dview-cta {
    text-align: center;
}

/* ==========================================
   SUCCESS STEP
   ========================================== */
.success-content {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--green);
}

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

.success-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
}

.success-summary {
    text-align: left;
    padding: 24px;
    margin-bottom: 32px;
}

.success-summary h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-glass);
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    color: var(--text-muted);
}

/* ==========================================
   HELP FAB
   ========================================== */
.help-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    border: none;
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 4px 20px var(--purple-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 90;
}

.help-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--purple-glow);
}

.help-fab svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   MOBILE CTA BAR
   ========================================== */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-glass);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 80;
}

.cta-content span {
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .landing-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3) {
        transform: translateX(0);
    }

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

@media (max-width: 768px) {
    .header-nav .nav-link {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* Make calculator section exactly viewport height - only when active */
    .calculator-section.active {
        padding: 8px 12px 0;
        height: calc(100vh - var(--header-height));
        max-height: calc(100vh - var(--header-height));
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .progress-stepper {
        gap: 8px;
        margin-bottom: 8px;
        flex-shrink: 0;
        justify-content: space-between;
        padding: 0 10px;
    }

    .step {
        flex: 0 0 auto;
        min-width: 50px;
    }

    .step-label {
        font-size: 0.55rem;
        white-space: nowrap;
    }

    .step-icon {
        width: 28px;
        height: 28px;
    }

    .step-icon svg {
        width: 12px;
        height: 12px;
    }

    .step-connector {
        flex: 1;
        max-width: 60px;
        min-width: 20px;
        margin-top: -20px;
    }

    .wizard-container {
        padding: 12px;
        margin: 0;
        border-radius: var(--border-radius-sm);
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .wizard-step {
        flex: 1;
        display: none;
        flex-direction: column;
        overflow: hidden;
    }

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

    .back-btn {
        margin-bottom: 8px;
        padding: 2px 0;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    .step-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .step-description {
        font-size: 0.8rem;
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .form-group {
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .form-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .form-input {
        padding: 10px 14px;
        padding-left: 40px;
        font-size: 0.9rem;
    }

    .help-link {
        font-size: 0.7rem;
    }

    /* Bill slider mobile - compact */
    .bill-input-section {
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    .bill-amount {
        font-size: 2rem;
    }

    .bill-label {
        font-size: 0.9rem;
    }

    .bill-display {
        margin-bottom: 8px;
    }

    .slider-labels {
        font-size: 0.7rem;
        margin-top: 6px;
    }

    /* Home size cards - horizontal scroll on mobile */
    .home-size-options {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        margin: 0 -12px;
        padding: 0 12px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-shrink: 0;
    }

    .home-size-options::-webkit-scrollbar {
        display: none;
    }

    .home-size-card {
        flex: 0 0 115px;
        padding: 10px 8px;
        text-align: center;
        display: block;
    }

    .home-size-icon {
        width: 32px;
        height: 32px;
        margin: 0 auto 6px;
    }

    .home-size-icon svg {
        width: 16px;
        height: 16px;
    }

    .home-size-title {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .home-size-bill {
        font-size: 0.6rem;
        margin-bottom: 6px;
    }

    .home-size-estimate {
        padding-top: 6px;
    }

    .estimate-label {
        font-size: 0.55rem;
    }

    .estimate-value {
        font-size: 0.8rem;
    }

    /* Utility cards */
    .utility-cards {
        grid-template-columns: 1fr;
        gap: 6px;
        flex: 1;
        overflow-y: auto;
    }

    .utility-card {
        padding: 12px;
    }

    .utility-card-name {
        font-size: 0.85rem;
    }

    .selected-utility {
        padding: 12px;
        margin-top: 12px;
    }

    /* Step footer - always at bottom */
    .step-footer {
        margin-top: auto;
        padding-top: 12px;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
        border-top: none;
    }

    .footer-hint {
        display: none;
    }

    .btn-next {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Map - smaller */
    #map-container {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    #map-container .form-label,
    #map-container .form-hint {
        flex-shrink: 0;
    }

    .map-wrapper {
        flex: 1;
        min-height: 120px;
        max-height: 180px;
    }

    .form-hint {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    /* Results - fit on screen */
    .results-step {
        text-align: center;
        overflow-y: auto;
    }

    .results-header {
        margin-bottom: 12px;
    }

    .results-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .results-title {
        font-size: 1.1rem;
    }

    .results-subtitle {
        font-size: 0.75rem;
    }

    .results-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-bottom: 12px;
    }

    .summary-card {
        padding: 8px 6px;
    }

    .summary-label {
        font-size: 0.55rem;
    }

    .summary-value {
        font-size: 0.9rem;
    }

    .savings-chart-container {
        padding: 10px;
        margin-bottom: 12px;
    }

    .chart-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .chart-wrapper {
        height: 140px;
    }

    .chart-legend {
        gap: 12px;
        margin-bottom: 8px;
    }

    .legend-item {
        font-size: 0.7rem;
    }

    .legend-color {
        width: 10px;
        height: 10px;
    }

    /* Hide 3D placeholder on mobile */
    .model-placeholder {
        display: none;
    }

    .results-cta {
        margin-top: auto;
        flex-shrink: 0;
    }

    .results-cta .btn-large {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .cta-note {
        font-size: 0.7rem;
        margin-top: 6px;
    }

    /* Quote form - scrollable */
    .quote-step {
        overflow-y: auto;
    }

    /* 3D View - compact */
    .3dview-step {
        overflow-y: auto;
    }

    .3dview-header {
        margin-bottom: 12px;
    }

    .3dview-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .3dview-placeholder {
        margin-bottom: 16px;
    }

    .3dview-model-area {
        padding: 30px 20px;
    }

    .3dview-model-area svg {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }

    .3dview-model-area h4 {
        font-size: 0.9rem;
    }

    .3dview-model-area p {
        font-size: 0.75rem;
    }

    .3dview-summary {
        gap: 8px;
        margin-bottom: 16px;
    }

    .3dview-summary .summary-item {
        padding: 10px 6px;
    }

    .3dview-summary .summary-label {
        font-size: 0.55rem;
    }

    .3dview-summary .summary-value {
        font-size: 0.95rem;
    }

    .quote-form {
        margin-top: 12px;
    }

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

    .quote-form .form-group {
        margin-bottom: 10px;
    }

    .contact-time-options {
        flex-direction: row;
        gap: 6px;
    }

    .radio-option {
        flex: 1;
        justify-content: center;
        padding: 6px 4px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--border-radius-sm);
    }

    .radio-label {
        font-size: 0.75rem;
    }

    .checkbox-label {
        font-size: 0.65rem;
    }

    .quote-form .btn-large {
        margin-top: 8px;
    }

    /* Success - compact */
    .success-step {
        justify-content: center;
    }

    .success-content {
        padding: 10px 0;
    }

    .success-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .success-icon svg {
        width: 24px;
        height: 24px;
    }

    .success-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .success-message {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }

    .success-summary {
        padding: 12px;
        margin-bottom: 16px;
    }

    .success-summary h4 {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .summary-row {
        font-size: 0.75rem;
        padding: 6px 0;
    }

    /* Hide mobile CTA bar in calculator */
    .mobile-cta-bar {
        display: none;
    }

    .help-fab {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }

    .help-fab svg {
        width: 18px;
        height: 18px;
    }

    .main-content {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .landing-section {
        padding: 16px 12px;
    }

    .landing-content {
        gap: 20px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .hero-text .btn-large {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .hero-features {
        gap: 8px;
    }

    .feature-card {
        padding: 10px 12px;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .feature-content h3 {
        font-size: 0.8rem;
    }

    .feature-content p {
        font-size: 0.7rem;
    }

    /* Even smaller wizard on very small screens */
    .wizard-container {
        padding: 10px;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.75rem;
        margin-bottom: 10px;
    }

    .bill-amount {
        font-size: 1.75rem;
    }

    .bill-slider {
        height: 6px;
    }

    .bill-slider::-webkit-slider-thumb {
        width: 22px;
        height: 22px;
    }

    .home-size-card {
        flex: 0 0 100px;
        padding: 8px 6px;
    }

    .home-size-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 4px;
    }

    .home-size-title {
        font-size: 0.7rem;
    }

    .home-size-bill {
        font-size: 0.55rem;
        margin-bottom: 4px;
    }

    .home-size-estimate {
        padding-top: 4px;
    }

    .estimate-label {
        font-size: 0.5rem;
    }

    .estimate-value {
        font-size: 0.75rem;
    }

    .map-wrapper {
        max-height: 140px;
    }

    .results-title {
        font-size: 1rem;
    }

    .chart-wrapper {
        height: 120px;
    }

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Selection */
::selection {
    background: var(--purple);
    color: var(--white);
}

/* Hide elements for specific states */
.calculator-section .mobile-cta-bar {
    display: none !important;
}

.landing-section ~ .mobile-cta-bar {
    display: flex;
}

@media (min-width: 769px) {
    .mobile-cta-bar {
        display: none !important;
    }
}
