/* ==========================================================================
   Solar Solutions Hawaii - Styles
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* AEH Brand Colors */
    --primary: #88bf5a;
    --primary-light: #9fd174;
    --primary-dark: #5a8a2f;
    --accent: #88bf5a;
    --accent-light: #b8e08a;
    --accent-dark: #6a9e3a;
    --success: #88bf5a;
    --success-light: #e8f5d8;
    --success-dark: #5a8a2f;
    --blue: #1ea3b1;
    --danger: #dc3131;
    --danger-light: #feedec;
    --text: #232323;
    --text-light: #717580;
    --text-lighter: #a8a8a8;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --bg-dark: #202329;
    --border: #eaeaeb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.hero-heading-white {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #b8e08a, #88bf5a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-success { color: var(--success) !important; }
.text-blue { color: var(--blue) !important; }
.text-danger { color: var(--danger) !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 175, 107, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 175, 107, 0.45);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: transparent;
}
.btn-ghost:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    color: #ffffff;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 100px;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 12px; }
.btn-full { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 8px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    z-index: 10;
}
.nav-logo strong { font-weight: 800; }
.logo-icon { flex-shrink: 0; }

.logo-img {
    height: 36px;
    width: auto;
}
.footer-logo-img {
    height: 32px;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
    z-index: 10;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2a3a1e 0%, #3d5a28 40%, var(--primary-dark) 100%);
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(253,150,30,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(136,191,90,0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text { color: white; }

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(136,191,90,0.15);
    border: 1px solid rgba(136,191,90,0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b8e08a;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #b8e08a;
}
.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}
.hero-house { max-width: 480px; width: 100%; }
.house-illustration { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2)); }

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
}
.hero-wave svg { display: block; width: 100%; }

/* Sun and panel animations */
.sun-glow { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse {
    0%, 100% { opacity: 0.5; r: 40; }
    50% { opacity: 0.8; r: 45; }
}

.sun-rays { animation: spin 30s linear infinite; transform-origin: 420px 60px; }
@keyframes spin { to { transform: rotate(360deg); } }

.panel {
    animation: panelGlow 2s ease-in-out infinite;
}
@keyframes panelGlow {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; fill: #2a3448; }
}

.energy-flow {
    animation: flowDash 2s linear infinite;
}
@keyframes flowDash {
    to { stroke-dashoffset: -20; }
}

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* ---------- How It Works ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.step-icon {
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 { margin-bottom: 12px; }
.step-card p { color: var(--text-light); font-size: 0.95rem; }

/* ---------- Calculator ---------- */
.calculator-section {
    background: var(--bg-alt);
}

.calculator-wrapper {
    max-width: 720px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.calc-progress {
    padding: 24px 32px 0;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 0.8rem;
    color: var(--text-lighter);
    font-weight: 500;
    padding: 0;
    transition: color var(--transition);
}
.progress-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border);
    font-size: 0.7rem;
    font-weight: 700;
    transition: all var(--transition);
}
.progress-step.active { color: var(--primary); }
.progress-step.active span {
    background: var(--accent);
    color: var(--primary-dark);
}
.progress-step.completed span {
    background: var(--success);
    color: white;
}

.calc-step {
    display: none;
    padding: 32px;
}
.calc-step.active { display: block; animation: fadeIn 0.4s ease; }

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

.step-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}
.step-subtitle {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 24px;
}
.step-title + .form-group { margin-top: 24px; }

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.label-optional {
    font-weight: 400;
    color: var(--text-lighter);
    font-size: 0.85rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    transition: border-color var(--transition);
    background: white;
    outline: none;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(136,191,90,0.12);
}

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

.input-hint {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 6px;
}

/* Island Select */
.island-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.island-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: 100px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.island-btn:hover { border-color: var(--accent); }
.island-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
}

/* Range Input */
.range-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(136,191,90,0.35);
    transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(136,191,90,0.35);
}

.range-value-input {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 130px;
}
.range-value-input input {
    width: 85px;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    color: var(--primary);
    outline: none;
}
.range-value-input input:focus { border-color: var(--accent); }
.input-suffix, .input-prefix {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Toggle Group (Stories) */
.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-light);
    transition: all var(--transition);
}
.toggle-btn:hover { border-color: var(--accent); color: var(--text); }
.toggle-btn.active {
    border-color: var(--accent);
    background: rgba(136,191,90,0.06);
    color: var(--primary);
}
.toggle-btn span { font-weight: 600; font-size: 0.9rem; }

.toggle-compact {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.toggle-compact .toggle-btn {
    padding: 14px 12px;
    flex-direction: row;
    justify-content: center;
}
.toggle-compact .toggle-btn svg { display: none; }

/* Load Cards */
.load-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.load-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}
.load-card:hover { border-color: var(--accent); }
.load-card.active {
    border-color: var(--accent);
    background: rgba(136,191,90,0.06);
}
.load-icon { color: var(--primary); }
.load-card strong { font-size: 0.95rem; color: var(--primary); }
.load-card span { font-size: 0.75rem; color: var(--text-light); line-height: 1.4; }

/* Bill Input */
.bill-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: border-color var(--transition);
}
.bill-input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(136,191,90,0.12); }
.bill-input-group .input-prefix { font-size: 1.2rem; font-weight: 600; color: var(--text); }
.bill-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 0;
}

/* Checkbox Cards */
.checkbox-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.checkbox-card {
    cursor: pointer;
}
.checkbox-card input { display: none; }
.checkbox-card-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    color: var(--text-light);
}
.checkbox-card-content span { font-size: 0.85rem; font-weight: 500; }
.checkbox-card input:checked + .checkbox-card-content {
    border-color: var(--accent);
    background: rgba(136,191,90,0.06);
    color: var(--primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ---------- Results ---------- */
.results-loading {
    text-align: center;
    padding: 80px 32px;
}
.loading-spinner { margin-bottom: 20px; }
.spinner-arc {
    animation: spinArc 1s linear infinite;
    transform-origin: center;
}
@keyframes spinArc { to { transform: rotate(360deg); } }
.results-loading p { color: var(--text-light); font-weight: 500; }

.results-content { padding: 0; }

.results-header {
    text-align: center;
    margin-bottom: 32px;
}
.results-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(56,161,105,0.1);
    color: var(--success);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.result-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-alt);
    transition: transform var(--transition);
}
.result-card:hover { transform: translateY(-2px); }

.result-card-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: transparent;
    color: white;
}
.result-card-primary h4 { color: rgba(255,255,255,0.9); }
.result-card-primary .result-label { color: rgba(255,255,255,0.7); }
.result-card-primary .result-detail { color: rgba(255,255,255,0.8); }
.result-card-primary .result-sub { color: rgba(255,255,255,0.6); }

.result-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.result-card-header h4 { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }

.result-big-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.result-detail {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.result-card-primary .result-detail { border-top-color: rgba(255,255,255,0.15); }

.result-sub {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 4px;
}

/* Financial Breakdown */
.financial-breakdown {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 32px;
}
.financial-breakdown h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.finance-grid { display: flex; flex-direction: column; gap: 12px; }

.finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}
.finance-row.highlight {
    padding: 8px 12px;
    background: rgba(56,161,105,0.06);
    border-radius: var(--radius);
}
.finance-row.total {
    font-weight: 700;
    color: var(--text);
    font-size: 1rem;
}
.finance-value { font-weight: 600; }
.finance-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Comparison Bars */
.comparison-section {
    margin-bottom: 32px;
}
.comparison-section h4 { font-size: 1rem; margin-bottom: 20px; }

.comparison-bars { display: flex; flex-direction: column; gap: 16px; }

.comparison-item {}
.comparison-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.comparison-amount { font-weight: 700; }

.comparison-bar-track {
    height: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
}
.comparison-bar {
    height: 100%;
    border-radius: var(--radius);
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bar-danger { background: linear-gradient(90deg, #fc8181, #e53e3e); }
.bar-success { background: linear-gradient(90deg, #9fd174, #88bf5a); }

.comparison-note {
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-top: 12px;
    text-align: center;
}

/* Customize Section */
.customize-section {
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.customize-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-alt);
    cursor: pointer;
}
.customize-header h4 { font-size: 0.95rem; margin: 0; }

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-text:hover { text-decoration: underline; }
.customize-section.open .btn-text svg { transform: rotate(180deg); }

.customize-body {
    padding: 24px;
    animation: fadeIn 0.3s ease;
}

.customize-group {
    margin-bottom: 24px;
}
.customize-group > label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.backup-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.backup-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition);
}
.backup-btn:hover { border-color: var(--primary); }
.backup-btn.active {
    border-color: var(--primary);
    background: rgba(136,191,90,0.06);
}

.backup-btn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.backup-btn-header strong { font-size: 0.88rem; color: var(--text); }

.backup-tag {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--bg-alt);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.tag-recommended { background: rgba(136,191,90,0.15); color: var(--primary-dark); }
.tag-premium { background: rgba(30,163,177,0.1); color: var(--blue); }
.tag-max { background: rgba(114,74,222,0.1); color: #724ade; }

.backup-btn span {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

.customize-row {
    display: flex;
    gap: 24px;
}
.customize-slider-group {
    flex: 1;
}
.customize-slider-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

/* Results CTA */
.results-cta {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, rgba(246,173,85,0.08), rgba(56,161,105,0.08));
    border-radius: var(--radius-lg);
    margin-top: 8px;
}
.results-cta h4 { font-size: 1.3rem; margin-bottom: 10px; }
.results-cta p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.results-cta .btn { margin: 0 6px; }

/* ---------- Benefits ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: white;
    transition: all var(--transition);
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
}
.icon-savings { background: rgba(56,161,105,0.1); color: var(--success); }
.icon-battery { background: rgba(66,153,225,0.1); color: var(--blue); }
.icon-tax { background: rgba(246,173,85,0.1); color: var(--accent-dark); }
.icon-value { background: rgba(128,90,213,0.1); color: #805ad5; }
.icon-grid { background: rgba(237,100,166,0.1); color: #ed64a6; }
.icon-eco { background: rgba(56,161,105,0.1); color: var(--success); }

.benefit-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.benefit-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--bg-alt); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-lighter); }

/* ---------- Contact / Lead Capture ---------- */
.contact-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 { color: white; line-height: 1.3; }
.contact-info p {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.contact-benefits { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-xl);
}

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

.lead-system-summary {
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.lead-system-summary h4 { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.summary-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.summary-item {
    font-size: 0.8rem;
    color: var(--text);
}
.summary-item strong { color: var(--primary); }

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-lighter);
    margin-top: 12px;
    line-height: 1.5;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}
.form-success h3 { color: var(--success); margin: 20px 0 12px; font-size: 1.5rem; }
.form-success p { color: var(--text-light); line-height: 1.7; }
.success-lead-id {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-lighter);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand { max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo span { color: white; font-size: 1rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

.footer-links h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    font-size: 0.85rem;
    padding: 4px 0;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-hours { font-size: 0.8rem; margin-top: 8px; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-legal { color: rgba(255,255,255,0.4); max-width: 500px; text-align: right; }

/* ---------- AC Selection ---------- */
.ac-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ac-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    color: var(--text-light);
}
.ac-btn:hover { border-color: var(--accent); }
.ac-btn.active {
    border-color: var(--accent);
    background: rgba(136,191,90,0.06);
    color: var(--primary);
}
.ac-btn strong { font-size: 0.85rem; }
.ac-btn span { font-size: 0.7rem; color: var(--text-lighter); line-height: 1.3; }
.ac-btn.active span { color: var(--text-light); }

.ac-units-row {
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    animation: fadeIn 0.3s ease;
}
.ac-units-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.ac-units-select {
    display: flex;
    gap: 8px;
}
.ac-unit-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}
.ac-unit-btn:hover { border-color: var(--accent); }
.ac-unit-btn.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--primary-dark);
}

/* ---------- Rate Input ---------- */
.rate-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rate-input-group-sm {
    max-width: 220px;
}
.rate-source {
    font-size: 0.8rem;
    color: var(--text-lighter);
    font-style: italic;
}

/* ---------- HECO Programs Section ---------- */
.programs-section {
    margin-bottom: 32px;
}
.programs-section h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.programs-intro {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.program-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.program-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    background: white;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.program-header h5 {
    font-size: 0.95rem;
    color: var(--primary);
}

.program-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.badge-sre { background: rgba(136,191,90,0.12); color: var(--accent-dark); }
.badge-byod { background: rgba(66,153,225,0.15); color: var(--blue); }

.program-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.program-rates {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.program-rate {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    text-align: center;
}
.program-rate.rate-highlight {
    background: rgba(246,173,85,0.1);
    border: 1px solid rgba(246,173,85,0.3);
}
.rate-period { font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.rate-time { font-size: 0.65rem; color: var(--text-lighter); }
.rate-value { font-size: 0.85rem; font-weight: 700; color: var(--success); }

.program-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(56,161,105,0.06);
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}
.program-value-amount { font-weight: 700; font-size: 1rem; }

.program-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.program-detail {
    padding: 8px 12px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.detail-label { display: block; font-size: 0.7rem; color: var(--text-lighter); margin-bottom: 2px; }
.detail-value { font-size: 0.85rem; font-weight: 600; color: var(--primary); }

.program-tip {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
    padding: 10px 12px;
    background: rgba(66,153,225,0.05);
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.program-comparison-summary {
    background: linear-gradient(135deg, rgba(56,161,105,0.06), rgba(66,153,225,0.06));
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.program-comparison-summary h5 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 16px;
}
.program-summary-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.summary-stat { text-align: center; }
.summary-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
}
.summary-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}
.summary-stat-divider {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-lighter);
}
.summary-total { font-size: 1.6rem; }

/* ---------- FAQ Section ---------- */
.faq-section { background: var(--bg-alt); }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.faq-column { display: flex; flex-direction: column; gap: 32px; }

.faq-category-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    overflow: hidden;
    margin-bottom: 8px;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 18px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: color var(--transition);
    gap: 12px;
}
.faq-question:hover { color: var(--primary); }
.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-lighter);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 18px;
}
.faq-item.open .faq-answer {
    max-height: 600px;
    padding: 0 18px 18px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.faq-answer li {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
    padding: 4px 0 4px 20px;
    position: relative;
}
.faq-answer li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ---------- Dropdown Navigation ---------- */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    transition: color var(--transition);
}
.nav-dropdown-toggle:hover { color: var(--primary); }
.dropdown-arrow {
    transition: transform var(--transition);
}
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
    pointer-events: none;
    padding-top: 8px; /* invisible hover bridge between toggle and menu */
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu-inner {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    padding: 8px;
    min-width: 280px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: background var(--transition);
    color: var(--text);
}
.dropdown-item:hover {
    background: var(--bg-alt);
}
.dropdown-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.dropdown-item strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
}
.dropdown-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1px;
}
.dropdown-item-sm {
    padding: 8px 14px;
}
.dropdown-item-sm span {
    font-size: 0.85rem;
    font-weight: 500;
}
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 8px;
}

/* ---------- Quick Savings Estimator ---------- */
.quick-estimator-section {
    background: var(--bg-alt);
    padding: 80px 0;
}
.quick-estimator {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    background: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.quick-estimator-input h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.quick-estimator-input > p {
    color: var(--text-light);
    margin-bottom: 28px;
}
.quick-bill-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.quick-bill-prefix {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}
.quick-bill-group input[type="number"] {
    width: 120px;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    border: none;
    border-bottom: 3px solid var(--primary);
    background: transparent;
    text-align: center;
    padding: 4px 0;
    outline: none;
}
.quick-bill-group input[type="number"]::-webkit-inner-spin-button,
.quick-bill-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}
.quick-bill-suffix {
    font-size: 1rem;
    color: var(--text-light);
}
.quick-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primary-light), var(--primary-dark));
    border-radius: 3px;
    outline: none;
    margin-bottom: 8px;
}
.quick-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.quick-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
}
.quick-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-lighter);
}

.quick-estimator-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.quick-result {
    text-align: center;
    padding: 16px 8px;
    border-radius: var(--radius);
    background: var(--bg-alt);
}
.quick-result-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}
.quick-result-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.quick-estimator-cta {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 8px;
}

/* ---------- Services Grid ---------- */
.services-section {
    background: white;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: white;
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.service-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #f0f9e8, #ffffff);
    border-color: var(--primary-light);
}
.service-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text);
}
.service-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    flex: 1;
}
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    background: var(--bg-dark);
    padding: 40px 0;
}
.trust-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.trust-item {
    text-align: center;
}
.trust-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.2;
}
.trust-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ---------- Footer Enhancements ---------- */
.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.cert-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.footer-phone {
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-address, .footer-hours {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    line-height: 1.5;
}

/* ---------- FAQ Preview (Homepage) ---------- */
.faq-preview-section {
    background: var(--bg-alt);
}
.faq-preview-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-see-all {
    text-align: center;
    margin-top: 32px;
}
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    transition: all var(--transition);
}
.btn-outline-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Contact Enhancements ---------- */
.contact-direct {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-direct p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.contact-phone {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-light) !important;
}
.contact-details-box {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.contact-details-box h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    margin: 16px 0 4px;
}
.contact-details-box h4:first-child { margin-top: 0; }
.contact-details-box p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}
.contact-details-box a {
    color: var(--primary-light);
}
.checkbox-cards-sm {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
}
.checkbox-cards-sm .checkbox-card-content {
    padding: 8px 12px;
    font-size: 0.82rem;
}
textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ---------- Page Hero (Subpages) ---------- */
.page-hero {
    background: linear-gradient(135deg, #2a3a1e, var(--primary-dark));
    padding: 140px 0 60px;
    text-align: center;
    color: white;
}
.page-hero h1 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}
.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}
.page-hero-compact {
    padding: 120px 0 40px;
}
.page-hero .hero-badge {
    margin-bottom: 16px;
}

/* ---------- Service Page Template ---------- */
.service-hero {
    background: linear-gradient(135deg, #2a3a1e, var(--primary-dark));
    padding: 140px 0 60px;
    color: white;
}
.service-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.service-hero-text h1 {
    color: white;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
}
.service-hero-text p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.service-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}
.service-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(136,191,90,0.15);
    border: 1px solid rgba(136,191,90,0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: #b8e08a;
}
.service-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.service-hero-icon {
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
}
.service-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Service Content Sections */
.service-content {
    padding: 80px 0;
}
.service-content.alt-bg {
    background: var(--bg-alt);
}
.service-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
}
.service-content > .container > p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 40px;
}
.service-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Spec Grid - for equipment specifications */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.spec-card {
    padding: 32px 28px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.spec-card:hover {
    box-shadow: var(--shadow);
}
.spec-card-featured {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, #f0f9e8, #ffffff);
}
.spec-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.spec-card-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    background: var(--primary);
    color: white;
}
.spec-card h3 {
    margin-bottom: 4px;
}
.spec-card .spec-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.spec-list {
    list-style: none;
    padding: 0;
}
.spec-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .spec-label { color: var(--text-light); }
.spec-list .spec-value { font-weight: 600; color: var(--text); }

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: timeline;
}
.process-step {
    position: relative;
    padding: 28px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    counter-increment: timeline;
}
.process-step::before {
    content: counter(timeline);
    position: absolute;
    top: -12px;
    left: 24px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.process-step h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text);
}
.process-step p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}
.process-step .process-time {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    background: var(--success-light);
    border-radius: 4px;
}

/* Pricing Callout */
.pricing-callout {
    background: linear-gradient(135deg, #f0f9e8, #e8f5d8);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
}
.pricing-callout h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.pricing-callout .pricing-range {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 16px 0;
}
.pricing-callout .pricing-note {
    font-size: 0.88rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 24px;
}

/* Incentive Cards */
.incentive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.incentive-card {
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.incentive-card h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
}
.incentive-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}
.incentive-card p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}
.incentive-expired {
    opacity: 0.5;
}
.incentive-expired .incentive-value {
    text-decoration: line-through;
    color: var(--text-lighter);
}

/* Service FAQ (inline on service pages) */
.service-faq {
    max-width: 800px;
    margin: 0 auto;
}

/* Service CTA Section */
.service-cta-section {
    background: var(--bg-dark);
    padding: 80px 0;
    text-align: center;
    color: white;
}
.service-cta-section h2 {
    color: white;
    margin-bottom: 12px;
}
.service-cta-section p {
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 28px;
}
.service-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    background: transparent;
    transition: all var(--transition);
}
.btn-outline-light:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

/* Feature Grid (2-col with icon) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius);
    color: var(--primary);
}
.feature-item h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 4px;
}
.feature-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.comparison-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
}
.comparison-table td {
    padding: 12px 20px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .highlight-row {
    background: #f0f9e8;
}
.comparison-table .checkmark {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive for service pages */
@media (max-width: 1024px) {
    .service-hero .container { grid-template-columns: 1fr; text-align: center; }
    .service-hero-highlights { justify-content: center; }
    .service-hero-cta { justify-content: center; }
    .service-hero-visual { display: none; }
}
@media (max-width: 768px) {
    .spec-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .incentive-grid { grid-template-columns: 1fr; }
    .pricing-callout { padding: 28px 20px; }
    .comparison-table { font-size: 0.82rem; }
    .comparison-table th, .comparison-table td { padding: 10px 12px; }
}

/* ---------- Customer Stories ---------- */
.stories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.stories-filter-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
}
.stories-filter-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.stories-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.story-card {
    padding: 28px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}
.story-card.hidden {
    display: none;
}
.story-card-service {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    background: var(--bg-alt);
    color: var(--text-light);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.story-quote {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
    margin: 12px 0 16px;
}
.story-card-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
}
.result-before {
    color: var(--danger);
    text-decoration: line-through;
    font-size: 0.9rem;
}
.result-arrow {
    color: var(--text-lighter);
    font-size: 0.85rem;
}
.result-after {
    color: var(--primary-dark);
    font-size: 1.1rem;
}
.story-card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

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

/* ---------- SWH Calculator ---------- */
.swh-calc-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.swh-calc-form {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.swh-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}
.swh-calc-input-group {
    width: 100%;
    text-align: center;
}
.swh-calc-input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.swh-calc-occupant-btns {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.swh-occ-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.swh-occ-btn:hover { border-color: var(--primary-light); background: #f0f9e8; }
.swh-occ-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.swh-calc-results {
    margin-top: 40px;
}
.swh-calc-location {
    margin-bottom: 28px;
}
.swh-calc-location-badge {
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
}
.swh-calc-location-badge.sun-excellent { background: linear-gradient(135deg, #f0f9e8, #e8f5d8); border: 1px solid var(--primary-light); }
.swh-calc-location-badge.sun-good { background: linear-gradient(135deg, #f0f9e8, #ffffff); border: 1px solid var(--primary-light); }
.swh-calc-location-badge.sun-moderate { background: linear-gradient(135deg, #fff9e8, #ffffff); border: 1px solid #f6ad55; }
.swh-calc-location-badge.sun-low { background: var(--bg-alt); border: 1px solid var(--border); }
.swh-sun-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}
.swh-sun-rating {
    display: block;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 2px;
}
.swh-sun-note {
    display: block;
    font-size: 0.78rem;
    color: var(--text-lighter);
    font-style: italic;
    margin-top: 4px;
}

.swh-calc-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.swh-calc-card {
    padding: 20px 16px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}
.swh-calc-card-primary {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, #f0f9e8, #ffffff);
}
.swh-calc-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}
.swh-calc-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}
.swh-calc-card-detail {
    font-size: 0.75rem;
    color: var(--text-lighter);
}

.swh-calc-breakdown {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 28px;
}
.swh-calc-breakdown h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}
.swh-calc-compare {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 28px;
}
.swh-calc-compare h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}
.swh-calc-cta {
    background: linear-gradient(135deg, #f0f9e8, #e8f5d8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-light);
    padding: 32px;
}
.swh-calc-cta h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text);
}
.swh-calc-cta p {
    color: var(--text-light);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .swh-calc-cards { grid-template-columns: repeat(2, 1fr); }
    .swh-calc-form { padding: 24px; }
    .swh-occ-btn { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
    .swh-calc-cards { grid-template-columns: 1fr 1fr; }
}

/* ---------- Interactive Tools ---------- */

/* HECO Navigator */
.heco-navigator {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.heco-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-light);
}
.heco-progress-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.heco-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}
.heco-step {
    padding: 40px 32px;
    animation: fadeSlideIn 0.3s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.heco-question {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}
.heco-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.heco-option {
    display: block;
    width: 100%;
    padding: 16px 20px;
    text-align: left;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
}
.heco-option:hover {
    border-color: var(--primary-light);
    background: #f0f9e8;
}
.heco-option.selected {
    border-color: var(--primary);
    background: #f0f9e8;
    color: var(--primary-dark);
}
.heco-option small {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 2px;
}
.heco-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 16px;
}
.heco-back:hover { color: var(--primary); }

.heco-results {
    padding: 40px 32px;
    animation: fadeSlideIn 0.4s ease;
}
.heco-program-card {
    padding: 28px;
    background: linear-gradient(135deg, #f0f9e8, #ffffff);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.heco-program-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    margin-bottom: 12px;
}
.heco-program-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.heco-program-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}
.heco-rate-table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
}
.heco-rate-table th, .heco-rate-table td {
    padding: 8px 12px;
    font-size: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.heco-rate-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.78rem;
    text-transform: uppercase;
}
.heco-rate-table .peak-rate {
    color: var(--primary-dark);
    font-weight: 700;
}
.heco-next-steps {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.heco-next-steps h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 8px;
}
.heco-next-steps ol {
    padding-left: 20px;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* SWH Advisor */
.swh-advisor {
    max-width: 800px;
    margin: 0 auto;
}
.swh-form {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 40px;
}
.swh-question {
    margin-bottom: 28px;
}
.swh-question label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}
.swh-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.swh-option {
    padding: 10px 18px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text);
}
.swh-option:hover { border-color: var(--primary-light); }
.swh-option.selected {
    border-color: var(--primary);
    background: #f0f9e8;
    color: var(--primary-dark);
}
.swh-submit {
    margin-top: 20px;
    text-align: center;
}

.swh-results {
    margin-top: 32px;
    animation: fadeSlideIn 0.4s ease;
}
.swh-recommendation {
    text-align: center;
    padding: 32px;
    background: linear-gradient(135deg, #f0f9e8, #e8f5d8);
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-light);
    margin-bottom: 28px;
}
.swh-recommendation h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.swh-confidence {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 12px;
}
.swh-confidence.strong { background: var(--primary); color: white; }
.swh-confidence.moderate { background: #ffd43b; color: #333; }
.swh-confidence.consider { background: var(--bg-alt); color: var(--text-light); border: 1px solid var(--border); }

.swh-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.swh-card {
    padding: 28px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
}
.swh-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(136,191,90,0.15);
}
.swh-card h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text); }
.swh-card .swh-card-cost {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

/* Financing Calculator */
.fin-calc {
    max-width: 900px;
    margin: 0 auto;
}
.fin-inputs {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 32px;
}
.fin-input-group {
    margin-bottom: 24px;
}
.fin-input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.fin-results {
    animation: fadeSlideIn 0.3s ease;
}
.fin-summary {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    padding: 32px;
    margin-bottom: 24px;
}
.fin-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.fin-card {
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    text-align: center;
    transition: all var(--transition);
}
.fin-card.fin-highlight {
    border-color: var(--primary);
    background: #f0f9e8;
}
.fin-card h4 {
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 8px;
}
.fin-card .fin-payment {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.fin-card .fin-payment-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.fin-card .fin-detail {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}
.fin-breakdown {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.fin-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
}

@media (max-width: 768px) {
    .heco-step, .heco-results { padding: 24px 20px; }
    .heco-progress { padding: 16px 20px; }
    .swh-form { padding: 24px; }
    .swh-comparison { grid-template-columns: 1fr; }
    .swh-options { flex-direction: column; }
    .fin-inputs { padding: 24px; }
    .fin-comparison { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .fin-comparison { grid-template-columns: 1fr; }
}

/* ---------- FAQ Page Styles ---------- */
.faq-page-hero {
    background: linear-gradient(135deg, #2a3a1e, var(--primary-dark));
    padding: 140px 0 60px;
    text-align: center;
    color: white;
}
.faq-page-hero h1 {
    color: white;
    margin-bottom: 12px;
}
.faq-page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
}
.faq-search-wrapper {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
.faq-search-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    background: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    transition: all var(--transition);
}
.faq-search-wrapper input::placeholder { color: rgba(255,255,255,0.5); }
.faq-search-wrapper input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.15);
}
.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
}

.faq-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 32px 0 0;
    max-width: 900px;
    margin: 0 auto;
}
.faq-tab {
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--transition);
}
.faq-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.faq-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.faq-page-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 0 80px;
}
.faq-page-grid .faq-category {
    margin-bottom: 48px;
    transition: opacity 0.3s ease;
}
.faq-page-grid .faq-category.hidden {
    display: none;
}
.faq-page-grid .faq-category-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}
.faq-page-grid .faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-page-grid .faq-item.hidden {
    display: none;
}
.faq-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.faq-no-results h3 {
    color: var(--text);
    margin-bottom: 8px;
}

/* FAQ Table */
.faq-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.85rem;
}
.faq-table th,
.faq-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.faq-table th {
    background: var(--bg-alt);
    font-weight: 600;
    color: var(--text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.faq-table td {
    color: var(--text-light);
}
.faq-table tr:last-child td {
    border-bottom: none;
}

/* FAQ CTA Section */
.faq-cta-section {
    background: var(--bg-alt);
}
.faq-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.faq-cta h2 {
    margin-bottom: 12px;
}
.faq-cta p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 24px;
}
.faq-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .program-cards { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .quick-estimator { grid-template-columns: 1fr; gap: 40px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card-featured { grid-column: span 1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(50,75,30,0.98);
        justify-content: center;
        align-items: center;
        gap: 16px;
        z-index: 5;
        overflow-y: auto;
        padding: 80px 24px;
    }
    .nav-links.open a,
    .nav-links.open .nav-dropdown-toggle { font-size: 1.2rem; color: white; }
    .nav-links.open .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }
    .nav-links.open .nav-dropdown.open .nav-dropdown-menu { display: block; }
    .nav-links.open .dropdown-menu-inner {
        background: rgba(255,255,255,0.1);
        border: none;
        padding: 4px;
    }
    .nav-links.open .dropdown-item { color: white; padding: 8px 12px; }
    .nav-links.open .dropdown-item:hover { background: rgba(255,255,255,0.1); }
    .nav-links.open .dropdown-item strong { font-size: 0.95rem; }
    .nav-links.open .dropdown-item small { color: rgba(255,255,255,0.6); }
    .nav-links.open .dropdown-icon { background: rgba(255,255,255,0.1); }
    .nav-links.open .dropdown-divider { background: rgba(255,255,255,0.15); }
    .nav-toggle { display: flex; }

    .section { padding: 60px 0; }
    .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .load-cards { grid-template-columns: 1fr; }
    .checkbox-cards { grid-template-columns: 1fr; }
    .ac-select { grid-template-columns: 1fr; }
    .backup-options { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .results-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .quick-estimator { padding: 32px 24px; }
    .quick-estimator-results { grid-template-columns: repeat(2, 1fr); }
    .quick-result:last-of-type { grid-column: 1 / -1; }
    .trust-items { gap: 16px; }
    .trust-value { font-size: 1.4rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { text-align: center; }

    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero { padding: 100px 0 60px; }

    .faq-category-tabs { gap: 6px; }
    .faq-tab { padding: 6px 14px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .calculator-wrapper { border-radius: var(--radius-lg); }
    .calc-step { padding: 24px 20px; }
    .toggle-group { grid-template-columns: 1fr; }
    .progress-step { font-size: 0; }
    .progress-step span { font-size: 0.7rem; }

    .contact-form-wrapper { padding: 24px; }
    .result-big-number { font-size: 2rem; }
}

/* ---------- System Type Selector ---------- */
.system-type-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.system-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: white;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-light);
}
.system-type-btn:hover { border-color: var(--primary); color: var(--text); }
.system-type-btn.active {
    border-color: var(--primary);
    background: rgba(136,191,90,0.06);
    color: var(--primary-dark);
}
.system-type-btn strong { font-size: 0.85rem; color: inherit; }
.system-type-btn span { font-size: 0.7rem; color: var(--text-lighter); line-height: 1.3; }
.system-type-btn.active span { color: var(--text-light); }

@media (max-width: 480px) {
    .system-type-select { grid-template-columns: 1fr; }
}

/* ==========================================================================
   AC Sizing Tool
   ========================================================================== */

.tool-hero {
    background: linear-gradient(135deg, #2a3a1e, var(--primary-dark));
    padding: 100px 0 50px;
    color: white;
    text-align: center;
}
.tool-hero h1 { color: white; margin-bottom: 12px; }
.tool-hero p { color: rgba(255,255,255,0.75); max-width: 550px; margin: 0 auto; font-size: 1.05rem; }
.tool-hero .hero-badge { margin-bottom: 16px; }

.ac-tool-section { background: var(--bg-alt); }

.ac-tool-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.ac-step-header { text-align: center; margin-bottom: 32px; }
.ac-step-header h2 { margin-bottom: 8px; }
.ac-step-header p { color: var(--text-light); }

/* Room Type Grid */
.room-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}
.room-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    color: var(--text-light);
}
.room-type-btn:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow); }
.room-type-btn strong { font-size: 0.8rem; color: var(--text); }
.room-type-btn span { font-size: 0.7rem; color: var(--text-lighter); }

/* Rooms List */
.rooms-list { margin-top: 24px; }
.rooms-list h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.room-count {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 700;
}

/* Room Cards */
.room-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.room-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px;
    background: var(--bg-alt);
    font-size: 0.9rem;
}
.room-remove-btn {
    background: none; border: none; color: var(--text-lighter);
    font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 4px;
}
.room-remove-btn:hover { color: var(--danger); }

.room-card-body {
    padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.room-sqft-edit {
    display: flex; align-items: center; gap: 4px;
}
.room-sqft-input {
    width: 65px; padding: 6px 8px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 600; text-align: right;
    font-family: var(--font);
}
.room-sqft-input:focus { border-color: var(--primary); outline: none; }
.room-sqft-edit span { font-size: 0.8rem; color: var(--text-lighter); }

.room-adjustments { display: flex; gap: 6px; flex-wrap: wrap; }
.room-adj-chip {
    display: inline-flex; align-items: center; gap: 2px;
    padding: 4px 10px; border: 1px solid var(--border);
    border-radius: 100px; font-size: 0.7rem; cursor: pointer;
    transition: all var(--transition); color: var(--text-light);
}
.room-adj-chip input { display: none; }
.room-adj-chip.active { border-color: var(--primary); background: rgba(136,191,90,0.06); color: var(--primary-dark); }

.room-btu-result {
    margin-left: auto; display: flex; align-items: center; gap: 8px;
}
.btu-badge {
    background: var(--primary); color: white;
    padding: 4px 10px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
}
.btu-model { font-size: 0.75rem; color: var(--text-lighter); }

.ac-actions { margin-top: 24px; text-align: center; }

/* AC Back Button */
.ac-back-btn { margin-bottom: 20px; }

/* Results Header */
.ac-results-header { text-align: center; margin-bottom: 28px; }
.ac-results-header h2 { margin-bottom: 6px; }
.ac-results-header p { color: var(--text-light); }

/* Options Grid */
.ac-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.ac-option-card {
    background: white; border: 2px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    position: relative; transition: all var(--transition);
}
.ac-option-card:hover { box-shadow: var(--shadow-lg); }
.ac-option-card.recommended { border-color: var(--primary); }
.option-badge {
    position: absolute; top: -10px; left: 20px;
    background: var(--primary); color: white;
    padding: 3px 12px; border-radius: 100px;
    font-size: 0.7rem; font-weight: 700;
}
.ac-option-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.option-desc { font-size: 0.8rem; color: var(--text-light); margin-bottom: 16px; }

.option-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.option-stat { flex: 1; text-align: center; padding: 8px; background: var(--bg-alt); border-radius: var(--radius); }
.option-stat .stat-val { display: block; font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.option-stat .stat-label { font-size: 0.65rem; color: var(--text-lighter); text-transform: uppercase; }

.option-price { margin-bottom: 8px; }
.price-range { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.price-label { display: block; font-size: 0.75rem; color: var(--text-lighter); }
.option-rebate { font-size: 0.8rem; color: var(--primary); font-weight: 600; margin-bottom: 14px; }

.option-pros { border-top: 1px solid var(--border); padding-top: 12px; }
.pro, .con { font-size: 0.8rem; padding: 3px 0; }
.pro { color: var(--text); }
.con { color: var(--text-light); }

/* Room Breakdown */
.ac-room-breakdown {
    background: white; border-radius: var(--radius-lg); padding: 24px;
    margin-bottom: 24px; border: 1px solid var(--border);
}
.ac-room-breakdown h3 { font-size: 1rem; margin-bottom: 16px; }
.breakdown-header, .breakdown-row {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 8px; padding: 8px 0; font-size: 0.85rem;
}
.breakdown-header { font-weight: 600; color: var(--text-light); border-bottom: 1px solid var(--border); font-size: 0.75rem; text-transform: uppercase; }
.breakdown-row { border-bottom: 1px solid var(--bg-alt); }
.breakdown-row:last-child { border: none; }

/* Electrical Check */
.ac-electrical-check {
    background: white; border-radius: var(--radius-lg); padding: 24px;
    margin-bottom: 24px; border: 1px solid var(--border);
}
.ac-electrical-check h3 { font-size: 1rem; margin-bottom: 4px; }
.ac-electrical-check > p { color: var(--text-light); font-size: 0.85rem; margin-bottom: 14px; }

.panel-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.panel-btn {
    padding: 8px 18px; border: 2px solid var(--border); border-radius: var(--radius);
    background: white; font-size: 0.85rem; font-weight: 500; cursor: pointer;
    transition: all var(--transition); font-family: var(--font);
}
.panel-btn:hover { border-color: var(--primary); }
.panel-btn.active { border-color: var(--primary); background: rgba(136,191,90,0.06); color: var(--primary-dark); font-weight: 600; }

.panel-result { font-size: 0.88rem; }
.panel-ok { color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.panel-warn { color: #d97706; font-weight: 700; margin-bottom: 6px; }
.panel-note { color: var(--text-light); font-style: italic; }
.panel-result p { color: var(--text-light); line-height: 1.6; }

/* Energy Estimate */
.ac-energy-estimate {
    background: white; border-radius: var(--radius-lg); padding: 24px;
    margin-bottom: 24px; border: 1px solid var(--border);
}
.ac-energy-estimate h3 { font-size: 1rem; margin-bottom: 4px; }
.energy-note { font-size: 0.8rem; color: var(--text-lighter); margin-bottom: 16px; }
.energy-compare { display: flex; gap: 12px; }
.energy-item {
    flex: 1; text-align: center; padding: 14px;
    background: var(--bg-alt); border-radius: var(--radius);
}
.energy-item span { display: block; font-size: 0.8rem; color: var(--text-light); }
.energy-item strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 4px 0; }
.energy-kwh { font-size: 0.7rem !important; color: var(--text-lighter) !important; }
.energy-solar { background: rgba(136,191,90,0.08); }
.energy-solar strong { color: var(--primary); }

/* AC CTA */
.ac-cta {
    text-align: center; padding: 32px;
    background: linear-gradient(135deg, rgba(136,191,90,0.06), rgba(136,191,90,0.12));
    border-radius: var(--radius-lg);
}
.ac-cta h3 { margin-bottom: 8px; }
.ac-cta > p { color: var(--text-light); margin-bottom: 20px; }
.ac-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ac-cta-note { font-size: 0.8rem; color: var(--primary-dark); margin-top: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .room-type-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-options-grid { grid-template-columns: 1fr; }
    .breakdown-header, .breakdown-row { grid-template-columns: 1fr 1fr; font-size: 0.8rem; }
    .energy-compare { flex-direction: column; }
    .room-card-body { flex-direction: column; align-items: flex-start; }
    .room-btu-result { margin-left: 0; }
    .panel-toggle { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .room-type-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .room-type-btn { padding: 12px 6px; }
}

/* ==========================================================================
   Chat Widget
   ========================================================================== */

#chatWidget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font);
}

.chat-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all var(--transition);
}
.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.chat-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-height: 520px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.25s ease;
}
.chat-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--primary);
    color: white;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-header-info strong { font-size: 0.9rem; }
.chat-status {
    display: block;
    font-size: 0.7rem;
    opacity: 0.75;
}
.chat-header-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.chat-header-btn:hover { opacity: 1; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 280px;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-welcome p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
    background: var(--bg-alt);
    padding: 12px 14px;
    border-radius: var(--radius) var(--radius) var(--radius) 4px;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chat-chip {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: white;
    font-size: 0.75rem;
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}
.chat-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(136,191,90,0.06);
}

.chat-msg {
    display: flex;
}
.chat-msg-user {
    justify-content: flex-end;
}
.chat-msg-assistant {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg-user .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-msg-assistant .chat-bubble {
    background: var(--bg-alt);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chat-typing .chat-bubble {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-lighter);
    animation: dotBounce 1.4s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border);
    background: white;
}
.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font);
    transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: var(--text-lighter); }

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition);
}
.chat-send-btn:hover { background: var(--primary-dark); }

/* Mobile: full-width panel */
@media (max-width: 480px) {
    #chatWidget { bottom: 16px; right: 16px; }
    .chat-panel {
        width: calc(100vw - 32px);
        right: 0;
        max-height: calc(100vh - 120px);
    }
}
