:root {
    --primary: #0b2f6b;
    --brand-navy: #071a3d;
    --brand-blue: #0b2f6b;
    --brand-gold: #f2b72b;
    --brand-gold-soft: #fff3c4;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Figtree", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

a,
button,
input,
select,
textarea,
summary {
    touch-action: manipulation;
}

input,
select,
textarea {
    font-size: 16px;
}

.page-hero {
    background-image:
        linear-gradient(100deg, rgba(7, 26, 61, 0.90) 0%, rgba(7, 26, 61, 0.68) 54%, rgba(242, 183, 43, 0.12) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.nav-link {
    position: relative;
    color: #475569;
    transition: color 180ms ease;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

header > div > a[href="contact.html"] {
    background: var(--brand-navy) !important;
    box-shadow: 0 14px 28px -18px rgba(7, 26, 61, 0.7);
}

header > div > a[href="contact.html"]:hover {
    background: var(--brand-blue) !important;
}

.mobile-panel {
    position: fixed !important;
    inset: 0 0 0 auto !important;
    z-index: 9999 !important;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    border-left: 1px solid rgb(255 255 255 / 0.6);
    background:
        linear-gradient(155deg, rgb(255 255 255 / 0.92), rgb(226 246 255 / 0.78) 52%, rgb(255 255 255 / 0.68)),
        radial-gradient(circle at 18% 10%, rgb(255 255 255 / 0.9), transparent 34%) !important;
    box-shadow: -28px 0 70px -42px rgb(2 6 23 / 0.9), inset 1px 0 0 rgb(255 255 255 / 0.64);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    color: #0f172a;
    transform: translateX(100%);
    transition: transform 240ms ease;
    visibility: hidden;
    pointer-events: none;
}

.mobile-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgb(255 255 255 / 0.55), transparent 36%, rgb(14 165 233 / 0.08) 78%);
}

.mobile-panel > * {
    position: relative;
    z-index: 1;
}

.mobile-panel.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-panel:not(.active) {
    display: none !important;
}

.mobile-panel nav a {
    display: block;
    border: 1px solid transparent;
    color: #334155;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mobile-panel nav a:hover,
.mobile-panel nav a[class*="bg-sky-50"],
.mobile-panel nav a[class*="bg-emerald-50"] {
    border-color: rgb(255 255 255 / 0.68);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.7), rgb(224 242 254 / 0.58)) !important;
    color: #0369a1;
    box-shadow: 0 16px 38px -28px rgb(2 132 199 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.72);
    transform: translateX(-2px);
}

.mobile-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9998 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.mobile-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.lift-card {
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.lift-card:hover,
.animated-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 58px -28px rgb(15 23 42 / 0.42);
    border-color: rgb(14 165 233 / 0.28);
}

.project-solution-grid > article {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
}

.project-solution-grid > article > div {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.project-solution-grid > article > div > a:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    margin-top: auto;
    padding: 0.75rem 0.9rem;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.9rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-solution-grid > article > div > a:last-child:hover {
    border-color: #0284c7;
    background: #0284c7;
    color: #ffffff;
    transform: translateY(-1px);
}

.animated-card {
    position: relative;
    overflow: hidden;
    transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.animated-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgb(14 165 233 / 0.14), transparent 42%, rgb(16 185 129 / 0.10));
    opacity: 0;
    transition: opacity 260ms ease;
}

.animated-card:hover::before {
    opacity: 1;
}

.reveal-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .lift-card,
    .animated-card,
    .reveal-card {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (min-width: 1024px) and (max-width: 1280px) {
    header nav {
        gap: 1rem !important;
        font-size: 0.82rem;
    }

    header img[src$="solar-panel-logo.svg"] {
        max-width: 12rem !important;
    }
}

@media (min-width: 1024px) {
    header nav {
        flex: 1 1 auto;
        justify-content: center;
        gap: clamp(1rem, 1.35vw, 1.75rem) !important;
        font-size: clamp(0.8rem, 0.78vw, 0.9rem) !important;
        max-width: none;
        white-space: nowrap;
    }

    header > div:first-child {
        column-gap: clamp(1rem, 2vw, 2rem);
    }

    header nav .nav-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.75rem;
        width: auto;
        text-align: center;
    }

    header nav .nav-link[href="design-studio.html"] {
        min-width: 5.9rem;
    }

    header nav + a {
        flex: 0 0 auto;
        margin-left: clamp(0.75rem, 1.5vw, 1.5rem);
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        width: clamp(8.8rem, 10vw, 10.25rem);
        white-space: nowrap;
        padding-left: clamp(0.9rem, 1.25vw, 1.25rem) !important;
        padding-right: clamp(0.9rem, 1.25vw, 1.25rem) !important;
        font-size: clamp(0.76rem, 0.78vw, 0.9rem) !important;
    }

    header nav + a i {
        display: inline-block;
        flex: 0 0 1em;
        font-size: 0.9em;
        line-height: 1;
    }
}

body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    overflow-x: hidden;
}

.system-flow > span {
    flex: 0 0 auto;
}

#resources-packages .mt-10.grid > article {
    display: flex;
    flex-direction: column;
}

#resources-packages .mt-10.grid > article > a:last-child {
    margin-top: auto;
}

@media (max-width: 380px) {
    .system-flow {
        gap: .35rem !important;
        padding-left: .45rem !important;
        padding-right: .45rem !important;
    }

    .system-flow > span {
        width: 2rem;
        height: 2rem;
    }
}

img,
svg {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}

#calculator .grid > div,
input,
select,
textarea {
    min-width: 0;
    max-width: 100%;
    color: #0f172a !important;
}

#calculator,
#calculator * {
    box-sizing: border-box;
}

#calculator .calculator-shell,
#calculator .calculator-output,
#calculator .calculator-output-inner,
#calculator .calculator-results-grid,
#calculator .calculator-results-grid > div {
    min-width: 0;
    max-width: 100%;
}

#calculator .calculator-main-value,
#calculator .calculator-result-value {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.08;
}

#calculator.calculator-enterprise {
    padding-top: clamp(3rem, 5vw, 4.75rem) !important;
    padding-bottom: clamp(3rem, 5vw, 4.75rem) !important;
}

#calculator.calculator-enterprise > div {
    max-width: 62rem !important;
}

#calculator.calculator-enterprise .mb-10,
#calculator.calculator-enterprise .mb-12 {
    margin-bottom: 1.75rem !important;
}

#calculator.calculator-enterprise h1,
#calculator.calculator-enterprise h2 {
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
    letter-spacing: 0 !important;
}

#calculator.calculator-enterprise .calculator-shell {
    border-color: rgba(148, 163, 184, 0.35) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12) !important;
}

#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem !important;
    padding: clamp(1.1rem, 2.2vw, 1.65rem) !important;
}

#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > :not([hidden]) {
    margin-top: 0 !important;
}

#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#utilityProvider),
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#buildingType),
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#monthlyBillAmount),
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#location),
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#roofType),
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > #calculatorPackagePreview {
    grid-column: 1 / -1;
}

#calculator.calculator-enterprise label {
    font-size: 0.78rem !important;
    letter-spacing: 0.01em;
}

#calculator.calculator-enterprise select,
#calculator.calculator-enterprise .calculator-control {
    min-height: 2.55rem !important;
    padding: 0.58rem 0.75rem !important;
    border-color: #dbe3ed !important;
    border-radius: 0.65rem !important;
    font-size: 0.92rem !important;
}

#calculator.calculator-enterprise input[type="number"] {
    font-size: clamp(1.35rem, 2.45vw, 1.9rem) !important;
    line-height: 1.05 !important;
}

#calculator.calculator-enterprise div:has(> input[type="number"]) {
    min-height: 3.55rem !important;
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
}

#calculator.calculator-enterprise .calculator-mini-field {
    display: flex !important;
    flex-direction: column !important;
}

#calculator.calculator-enterprise .calculator-mini-field > label {
    display: flex !important;
    align-items: flex-start !important;
    min-height: 2.55rem !important;
}

#calculator.calculator-enterprise .calculator-mini-field > div {
    display: flex !important;
    align-items: center !important;
    min-height: 3.55rem !important;
    margin-top: 0.6rem !important;
    padding: 0.55rem 0.8rem !important;
}

#calculator.calculator-enterprise .calculator-mini-field input[type="number"] {
    font-size: clamp(1.55rem, 2.6vw, 2.05rem) !important;
}

#calculator.calculator-enterprise .calculator-mini-field p {
    min-height: 2.6rem !important;
    margin-top: 0.55rem !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
}

#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#monthlyKwh),
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#rate) {
    display: flex !important;
    flex-direction: column !important;
}

#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#monthlyKwh) > div,
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#rate) > div {
    min-height: 3.55rem !important;
    flex: 0 0 auto !important;
}

#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#monthlyKwh) > p,
#calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > div:has(#rate) > p {
    min-height: 2.55rem !important;
}

#calculator.calculator-enterprise input[type="number"] + span,
#calculator.calculator-enterprise .calculator-input-shell span,
#calculator.calculator-enterprise div:has(> input[type="number"]) > span {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
}

#calculator.calculator-enterprise .calculator-output {
    background: linear-gradient(145deg, #0369a1 0%, #0284c7 48%, #10b981 100%) !important;
    display: flex !important;
    align-items: stretch !important;
    padding: clamp(1.1rem, 2.2vw, 1.65rem) !important;
    color: #ffffff !important;
}

#calculator.calculator-enterprise .calculator-output-inner {
    justify-content: flex-start !important;
    height: 100% !important;
    min-height: 100% !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: clamp(1rem, 2vw, 1.45rem) !important;
    color: #ffffff !important;
}

#calculator.calculator-enterprise .calculator-output-inner > p:first-child {
    margin-top: 0 !important;
    color: #dcfce7 !important;
}

#calculator.calculator-enterprise .calculator-output,
#calculator.calculator-enterprise .calculator-output *:not(.calculator-results-grid):not(.calculator-results-grid *) {
    color: #ffffff !important;
}

#calculator.calculator-enterprise .calculator-main-value {
    font-size: clamp(2rem, 3.8vw, 3.35rem) !important;
    margin-bottom: 0.9rem !important;
}

#calculator.calculator-enterprise .calculator-results-grid {
    gap: 0.75rem !important;
}

#calculator.calculator-enterprise .calculator-results-grid > div {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.65rem !important;
    padding: 0.75rem !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

#calculator.calculator-enterprise .calculator-result-value {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem) !important;
}

#calculator.calculator-enterprise #systemSize,
#calculator.calculator-enterprise #payback {
    font-size: clamp(1.35rem, 2.9vw, 2rem) !important;
}

#calculator.calculator-enterprise #calculatorNote {
    color: rgba(240, 253, 250, 0.92) !important;
    font-size: 0.72rem !important;
    line-height: 1.45 !important;
    margin-top: 0.85rem !important;
}

#calculator.calculator-enterprise #calculatorUpdate,
#calculator.calculator-enterprise #sendEstimate {
    border-radius: 0.65rem !important;
    padding: 0.72rem 1rem !important;
    font-size: 0.92rem !important;
}

#calculator.calculator-enterprise #calculatorUpdate {
    margin-top: 1rem !important;
}

#calculator.calculator-enterprise #sendEstimate {
    margin-top: 0.65rem !important;
}

#calculator.calculator-enterprise #sendEstimate {
    color: #075985 !important;
}

#calculator.calculator-enterprise #calculatorPackagePreview {
    border-color: rgba(148, 163, 184, 0.38) !important;
    background: linear-gradient(145deg, #075985, #0f766e) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}

#calculator.calculator-enterprise #calculatorPackagePreview,
#calculator.calculator-enterprise #calculatorPackagePreview .calculator-package-grid {
    min-height: 100% !important;
}

#calculator.calculator-enterprise #calculatorPackagePreview > .grid {
    align-items: stretch !important;
}

#calculator.calculator-enterprise #calculatorPackagePreview .package-preview-media {
    display: flex !important;
    align-items: center !important;
    align-self: stretch !important;
    justify-content: center !important;
    min-height: 100% !important;
    padding: 0.55rem !important;
    background: #ffffff !important;
}

#calculator.calculator-enterprise #calculatorPackagePreview img {
    min-height: 0 !important;
    width: min(108%, 22rem) !important;
    height: auto !important;
    max-height: 19rem;
}

#calculator.calculator-enterprise #packagePreviewTitle {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem) !important;
}

#calculator.calculator-enterprise #packagePreviewMeta {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
}

@media (max-width: 767px) {
    #calculator.calculator-enterprise .calculator-shell > .grid > div:first-child {
        grid-template-columns: minmax(0, 1fr);
    }

    #calculator.calculator-enterprise .calculator-shell > .grid > div:first-child > * {
        grid-column: 1 / -1 !important;
    }
}

#quoteForm {
    scroll-margin-top: 7rem;
}

/* Premium three-step solar builder */
.kj-solar-builder { background: linear-gradient(180deg, #f5f8fc 0%, #fff 28%, #f7fafc 100%); color: #12213d; padding: clamp(2.5rem, 5vw, 5rem) 1rem; }
.kj-builder-wrap { max-width: 1180px; margin: 0 auto; }
.kj-builder-heading { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.kj-builder-heading h1 { color: #061b49; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin: .75rem 0; letter-spacing: -.03em; }
.kj-builder-heading p { color: #64748b; font-size: 1.05rem; }
.kj-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: #b77908; font-size: .7rem; font-weight: 800; letter-spacing: .18em; }
.kj-progress { display: flex; position: relative; justify-content: space-between; max-width: 650px; margin: 0 auto 1.5rem; }
.kj-progress-line { position: absolute; z-index: 0; top: 1rem; left: 10%; right: 10%; height: 2px; background: #d9e2ee; }
.kj-progress-line span { display: block; width: 0; height: 100%; background: #eab52e; transition: width .3s ease; }
.kj-step { position: relative; z-index: 1; display: grid; gap: .35rem; justify-items: center; border: 0; background: transparent; color: #74829a; font-size: .72rem; font-weight: 700; cursor: pointer; }
.kj-step b { display: grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid #d9e2ee; border-radius: 50%; background: #fff; color: #66758e; }
.kj-step.is-active, .kj-step.is-complete { color: #07275e; }
.kj-step.is-active b, .kj-step.is-complete b { border-color: #eab52e; background: #eab52e; color: #07275e; }
.kj-builder-form { margin: 0; }
.kj-builder-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr); gap: 1.25rem; align-items: start; }
.kj-builder-main, .kj-builder-aside, .kj-conversion, .kj-lead { border: 1px solid #dce5ef; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(6, 27, 73, .07); }
.kj-builder-main { min-width: 0; overflow: hidden; }
.kj-builder-step { padding: clamp(1.1rem, 3vw, 2rem); }
.kj-panel-heading { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.5rem; }
.kj-panel-heading h2 { margin: 0; color: #071f50; font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.kj-panel-heading p { margin: .3rem 0 0; color: #6b7b92; font-size: .9rem; }
.kj-panel-number { flex: 0 0 auto; color: #c99013; font-weight: 900; font-size: .8rem; letter-spacing: .12em; }
.kj-field-grid { display: grid; gap: 1rem; }
.kj-field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kj-field-grid label, .kj-lead-grid label, .kj-notes { display: grid; gap: .45rem; color: #293b59; font-size: .8rem; font-weight: 800; }
.kj-field-grid label small { display: block; margin-top: -.15rem; color: #7b8aa1; font-size: .7rem; font-weight: 500; }
.kj-field-grid input, .kj-field-grid select, .kj-lead input, .kj-lead select, .kj-lead textarea, .kj-appliance-row input, .kj-appliance-row select { width: 100%; min-width: 0; border: 1px solid #d5e0ec; border-radius: 8px; background: #fff; color: #10203c !important; font: inherit; padding: .78rem .85rem; outline: none; }
.kj-field-grid input:focus, .kj-field-grid select:focus, .kj-lead input:focus, .kj-lead select:focus, .kj-lead textarea:focus { border-color: #0b83c9; box-shadow: 0 0 0 3px rgba(11, 131, 201, .12); }
.kj-input-unit { display: flex; align-items: center; gap: .5rem; border: 1px solid #d5e0ec; border-radius: 8px; padding: 0 .85rem; background: #fff; }
.kj-input-unit:focus-within { border-color: #0b83c9; box-shadow: 0 0 0 3px rgba(11, 131, 201, .12); }
.kj-input-unit input { border: 0; padding-left: 0; padding-right: 0; box-shadow: none !important; }
.kj-input-unit span { color: #8a99ae; font-weight: 800; white-space: nowrap; }
.kj-helper { margin: 1.25rem 0 0; padding: .85rem 1rem; border-left: 3px solid #eab52e; background: #fffaf0; color: #62728b; font-size: .8rem; line-height: 1.55; }
.kj-helper i { margin-right: .35rem; color: #c99013; }
.kj-step-actions { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem clamp(1.1rem, 3vw, 2rem); border-top: 1px solid #e5ebf2; background: #fbfcfe; }
.kj-primary, .kj-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.85rem; border-radius: 8px; padding: .75rem 1rem; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.kj-primary { border: 1px solid #071f50; background: #071f50; color: #fff; box-shadow: 0 10px 22px rgba(7, 31, 80, .16); }
.kj-primary:hover { background: #0c347e; transform: translateY(-1px); }
.kj-secondary { border: 1px solid #cad8e7; background: #fff; color: #14345e; }
.kj-secondary:hover { border-color: #0b83c9; background: #f2f8fd; }
.kj-secondary:disabled { opacity: .4; cursor: not-allowed; }
.kj-builder-aside { display: grid; gap: 1rem; border: 0; background: transparent; box-shadow: none; }
.kj-aside-card { padding: 1.35rem; border: 1px solid #dce5ef; border-radius: 14px; background: #fff; box-shadow: 0 18px 50px rgba(6, 27, 73, .07); }
.kj-aside-card h3 { margin: .75rem 0 .45rem; color: #071f50; font-size: 1.1rem; }
.kj-aside-card p { margin: 0; color: #6b7b92; font-size: .85rem; line-height: 1.6; }
.kj-side-rule { height: 1px; margin: 1.25rem 0; background: #e4ebf3; }
.kj-side-item { display: flex; gap: .75rem; align-items: center; margin-top: .9rem; }
.kj-side-item > i { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 7px; background: #edf6fc; color: #087db8; }
.kj-side-item span { display: grid; gap: .05rem; }
.kj-side-item b { color: #132b50; font-size: .9rem; }
.kj-side-item small { color: #76859b; font-size: .7rem; }
.kj-aside-gold { border-color: #f1dda0; background: #fffaf0; }
.kj-aside-gold > i { color: #c99013; font-size: 1.35rem; }
.kj-aside-gold a { display: inline-flex; gap: .5rem; margin-top: 1rem; color: #0a67a1; font-size: .82rem; font-weight: 800; }
.kj-appliance-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #e5ebf2; }
.kj-appliance-header h3 { margin: 0; color: #112c54; font-size: 1rem; }
.kj-appliance-header p { margin: .25rem 0 0; color: #728199; font-size: .78rem; }
.kj-appliance-list { display: grid; gap: .6rem; margin-top: 1rem; }
.kj-appliance-labels { display: grid; grid-template-columns: minmax(0, 1.7fr) 4.5rem 5.5rem 7rem 2rem; gap: .5rem; margin-top: 1.1rem; padding: 0 .65rem; color: #7b8aa1; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.kj-appliance-row { display: grid; grid-template-columns: minmax(0, 1.7fr) 4.5rem 5.5rem 7rem 2rem; gap: .5rem; align-items: center; }
.kj-appliance-row input, .kj-appliance-row select { padding: .62rem .65rem; font-size: .78rem; }
.kj-row-total { color: #1f5d7e; font-size: .72rem; font-weight: 800; }
.kj-remove { border: 0; background: transparent; color: #a2adbc; cursor: pointer; }
.kj-remove:hover { color: #c34444; }
.kj-load-total { margin-top: .85rem; color: #64748b; font-size: .8rem; font-weight: 700; }
.kj-results-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.35rem; border-radius: 10px; background: linear-gradient(135deg, #071f50, #0b5e8b); color: #fff; }
.kj-results-hero span { display: block; color: #efd07a; font-size: .65rem; font-weight: 800; letter-spacing: .18em; }
.kj-results-hero strong { display: block; margin-top: .3rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.kj-results-hero small { display: block; margin-top: .25rem; color: #c8d8e8; font-size: .8rem; }
.kj-results-hero-icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #f3c440; font-size: 1.4rem; }
.kj-results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.kj-result-card { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; align-items: center; min-width: 0; padding: .85rem; border: 1px solid #dce5ef; border-radius: 9px; background: #fff; }
.kj-result-card i { grid-row: span 2; color: #0a83c5; }
.kj-result-card span { color: #708098; font-size: .68rem; font-weight: 700; }
.kj-result-card strong { min-width: 0; color: #102342; font-size: .9rem; overflow-wrap: anywhere; }
.kj-estimate-note { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: 8px; background: #fff8e8; color: #65748c; font-size: .76rem; line-height: 1.55; }
.kj-estimate-note i { color: #bd8610; margin-right: .35rem; }
.kj-result-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.kj-conversion, .kj-lead { margin-top: 1.25rem; padding: clamp(1.1rem, 3vw, 1.75rem); }
.kj-conversion { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-color: #d9c37b; background: linear-gradient(135deg, #fffdf6, #fff8e4); }
.kj-conversion h2 { margin: .45rem 0; color: #071f50; font-size: clamp(1.25rem, 2.5vw, 1.8rem); }
.kj-conversion p { margin: 0; color: #687890; font-size: .85rem; }
.kj-conversion-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.kj-lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.kj-lead input, .kj-lead select, .kj-lead textarea { margin-top: .1rem; }
.kj-upload input { padding: .62rem; }
.kj-notes { margin-top: 1rem; }
.kj-submit { margin-top: 1rem; }
@media (max-width: 850px) { .kj-builder-grid { grid-template-columns: 1fr; } .kj-builder-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kj-solar-builder { padding: 2rem .75rem 4rem; } .kj-field-grid.two, .kj-lead-grid, .kj-results-grid, .kj-builder-aside { grid-template-columns: 1fr; } .kj-progress { margin-bottom: 1.25rem; } .kj-step span { max-width: 5rem; text-align: center; font-size: .65rem; } .kj-appliance-header, .kj-conversion { align-items: stretch; flex-direction: column; } .kj-appliance-labels { display: none; } .kj-appliance-row { grid-template-columns: minmax(0, 1fr) 3.5rem 4.5rem 5.5rem 1.5rem; } .kj-appliance-row select { grid-column: 1 / -1; } .kj-row-total { font-size: .65rem; } .kj-conversion-actions { display: grid; grid-template-columns: 1fr; } .kj-conversion-actions > * { width: 100%; } .kj-step-actions { position: sticky; bottom: 0; z-index: 3; } }
@media print { body > *:not(main), header, footer, .kj-builder-heading, .kj-progress, .kj-builder-aside, .kj-step-actions, .kj-conversion, .kj-lead { display: none !important; } .kj-solar-builder { padding: 0; background: #fff; } .kj-builder-grid { display: block; } .kj-builder-main { border: 0; box-shadow: none; } .kj-builder-step { display: none !important; } .kj-builder-step[data-panel="3"] { display: block !important; } }

.mobile-quick-actions {
    display: none;
}

#service-packages article {
    display: flex;
    flex-direction: column;
}

#service-packages article > a:last-child {
    min-height: 3.25rem;
    margin-top: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .mobile-quick-actions {
        position: fixed;
        right: 1.25rem;
        bottom: 1.25rem;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        width: 16rem;
        border: 1px solid rgb(255 255 255 / 0.34);
        border-radius: 1rem;
        background: linear-gradient(145deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.12));
        padding: 0.45rem;
        box-shadow: 0 24px 60px -28px rgb(2 6 23 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.5);
        backdrop-filter: blur(18px) saturate(1.45);
        -webkit-backdrop-filter: blur(18px) saturate(1.45);
    }

    .mobile-quick-actions a,
    .mobile-quick-actions button {
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.22rem;
        min-height: 2.6rem;
        border: 1px solid rgb(255 255 255 / 0.36);
        border-radius: 0.75rem;
        padding: 0.45rem 0.28rem;
        color: #ffffff;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.62rem;
        line-height: 1;
        font-weight: 800;
        text-shadow: 0 1px 10px rgb(2 6 23 / 0.28);
        text-decoration: none;
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32), 0 14px 32px -24px rgb(15 23 42 / 0.85);
        transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
    }

    .mobile-quick-actions a::before,
    .mobile-quick-actions button::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 0.38) 42%, transparent 70%);
        transform: translateX(-120%);
        transition: transform 360ms ease;
    }

    .mobile-quick-actions a i,
    .mobile-quick-actions button i {
        position: relative;
        z-index: 1;
        display: grid;
        height: 1.25rem;
        width: 1.25rem;
        font-size: 0.72rem;
        place-items: center;
        border-radius: 999px;
        background: rgb(255 255 255 / 0.22);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.32);
    }

    .mobile-quick-actions a,
    .mobile-quick-actions button {
        isolation: isolate;
    }

    .mobile-quick-actions a:hover,
    .mobile-quick-actions button:hover {
        transform: translateY(-2px);
        box-shadow: 0 24px 45px -24px rgb(15 23 42 / 0.9);
        filter: brightness(1.04);
        border-color: rgb(255 255 255 / 0.6);
    }

    .mobile-quick-actions a:hover::before,
    .mobile-quick-actions button:hover::before {
        transform: translateX(120%);
    }

    .mobile-quick-actions .call-action {
        background: linear-gradient(135deg, rgb(16 185 129 / 0.88), rgb(5 150 105 / 0.72));
    }

    .mobile-quick-actions .message-action {
        background: linear-gradient(135deg, rgb(59 130 246 / 0.9), rgb(37 99 235 / 0.74));
    }

    .mobile-quick-actions .quote-action {
        background: linear-gradient(135deg, rgb(14 165 233 / 0.9), rgb(2 132 199 / 0.74));
    }
}

.message-chooser-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgb(2 6 23 / 0.56);
    padding: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.message-chooser-backdrop.active {
    display: flex;
}

.message-chooser-panel {
    width: min(100%, 30rem);
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.5);
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.97);
    box-shadow: 0 30px 90px -36px rgb(2 6 23 / 0.9);
}

.message-chooser-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.1rem;
}

.message-chooser-close {
    display: grid;
    flex: 0 0 auto;
    height: 2.5rem;
    width: 2.5rem;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.message-chooser-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
}

.message-channel {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    min-height: 5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.9rem;
    color: #0f172a;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.message-channel:hover {
    transform: translateY(-2px);
    border-color: #bae6fd;
    box-shadow: 0 16px 35px -24px rgb(15 23 42 / 0.5);
}

.message-channel > i {
    display: grid;
    flex: 0 0 auto;
    height: 2.5rem;
    width: 2.5rem;
    place-items: center;
    border-radius: 0.7rem;
    color: #fff;
    font-size: 1.15rem;
}

.message-channel span,
.message-channel strong,
.message-channel small {
    display: block;
    min-width: 0;
}

.message-channel strong {
    font-size: 0.9rem;
}

.message-channel small {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.messenger-channel > i { background: #168aff; }
.whatsapp-channel > i { background: #16a86b; }
.viber-channel > i { background: #7360f2; }
.sms-channel > i { background: #0f766e; }

.solar-assistant-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgb(2 6 23 / 0.52);
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.solar-assistant-backdrop.active {
    display: flex;
}

.solar-assistant-panel {
    width: min(100%, 27rem);
    max-height: min(34rem, calc(100vh - 1.5rem));
    overflow-y: auto;
    border: 1px solid rgb(255 255 255 / 0.36);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgb(255 255 255 / 0.96), rgb(240 249 255 / 0.94));
    box-shadow: 0 28px 80px -34px rgb(2 6 23 / 0.88), inset 0 1px 0 rgb(255 255 255 / 0.72);
}

.solar-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.68rem 0.78rem;
}

.solar-assistant-body {
    padding: 0.72rem 0.78rem;
}

.assistant-question-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.assistant-question {
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.7rem 0.78rem;
    color: #0f172a;
    background: #fff;
    outline: none;
}

.assistant-question:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(242, 183, 43, 0.2);
}

.assistant-question-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 0.5rem;
    padding: 0.7rem 0.85rem;
    background: var(--brand-navy);
    color: #fff;
    font-weight: 800;
}

.assistant-question-answer {
    display: none;
    margin-top: 0.55rem;
    border-left: 3px solid var(--brand-gold);
    border-radius: 0.4rem;
    background: #fff8dc;
    padding: 0.65rem 0.75rem;
    color: #334155;
    font-size: 0.8rem;
    line-height: 1.5;
}

.assistant-question-answer.active {
    display: block;
}

.solar-assistant-header .text-xs {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    line-height: 1.1;
}

.solar-assistant-header h2 {
    font-size: 0.96rem;
    line-height: 1.2;
}

.solar-assistant-step h3 {
    font-size: 0.9rem;
    line-height: 1.25;
}

.solar-assistant-step {
    display: none;
}

.solar-assistant-step.active {
    display: block;
}

.assistant-options {
    display: grid;
    gap: 0.34rem;
    margin-top: 0.55rem;
}

.assistant-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    border: 1px solid #dbeafe;
    border-radius: 0.65rem;
    background: #ffffff;
    padding: 0.5rem 0.65rem;
    text-align: left;
    font-weight: 800;
    font-size: 0.8rem;
    color: #0f172a;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.assistant-option:hover,
.assistant-option.selected {
    border-color: #0284c7;
    background: #f0f9ff;
    transform: translateY(-1px);
}

.solar-assistant-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    border-top: 1px solid #e2e8f0;
    padding: 0.62rem 0.78rem;
}

.assistant-secondary,
.assistant-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.6rem;
    padding: 0.5rem 0.68rem;
    font-weight: 800;
    font-size: 0.78rem;
}

.assistant-secondary {
    border: 1px solid #cbd5e1;
    color: #334155;
}

.assistant-primary {
    background: #0284c7;
    color: #ffffff;
}

@media (max-width: 640px) {
    #calculator .calculator-output {
        padding: 1rem;
    }

    #calculator .calculator-output-inner {
        padding: 1rem;
    }

    #calculator .calculator-main-value {
        font-size: clamp(2.05rem, 11vw, 3rem);
    }

    #calculator .calculator-result-value {
        font-size: clamp(1.15rem, 5.8vw, 1.55rem);
    }

    #calculator .calculator-results-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #calculator .calculator-results-grid > div {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    body {
        padding-bottom: calc(3.85rem + env(safe-area-inset-bottom, 0px));
    }

    header > div:first-child {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    header img[src$="solar-panel-logo.svg"] {
        height: 4.75rem !important;
        max-width: 12.25rem !important;
    }

    .page-hero {
        background-position: 58% center;
    }

    .page-hero h1,
    #home h1 {
        font-size: clamp(2.25rem, 10vw, 3.4rem) !important;
        line-height: 1.04 !important;
    }

    .page-hero p,
    #home p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .mobile-panel {
        width: clamp(12.5rem, 56vw, 14rem) !important;
        padding: 1rem !important;
    }

    .mobile-panel img[src$="solar-panel-logo.svg"] {
        height: 3.35rem !important;
        max-width: 8.75rem !important;
    }

    .mobile-panel #closeMenu {
        height: 2.35rem !important;
        width: 2.35rem !important;
        border: 1px solid rgb(255 255 255 / 0.72) !important;
        background: linear-gradient(145deg, rgb(255 255 255 / 0.82), rgb(226 232 240 / 0.62)) !important;
        box-shadow: 0 14px 34px -24px rgb(15 23 42 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.84);
    }

    .mobile-panel nav {
        margin-top: 1.15rem !important;
        gap: 0.18rem !important;
        font-size: 0.9rem;
    }

    .mobile-panel nav a {
        min-height: 2.55rem;
        padding: 0.68rem 0.75rem !important;
    }

    .mobile-panel > a:last-child {
        margin-top: 1rem !important;
        min-height: 2.8rem;
        padding: 0.75rem 0.75rem !important;
        font-size: 0.86rem;
        border: 1px solid rgb(255 255 255 / 0.44) !important;
        background: linear-gradient(135deg, rgb(14 165 233 / 0.92), rgb(2 132 199 / 0.76)) !important;
        box-shadow: 0 18px 44px -26px rgb(2 132 199 / 0.95), inset 0 1px 0 rgb(255 255 255 / 0.36);
    }

    .mobile-quick-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.24rem;
        border-top: 1px solid rgb(255 255 255 / 0.34);
        border-radius: 1rem 1rem 0 0;
        background: linear-gradient(145deg, rgb(15 23 42 / 0.74), rgb(2 132 199 / 0.26));
        padding: 0.34rem 0.38rem calc(0.34rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -18px 48px -28px rgb(2 6 23 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.35);
        backdrop-filter: blur(18px) saturate(1.45);
        -webkit-backdrop-filter: blur(18px) saturate(1.45);
    }

    .mobile-quick-actions a,
    .mobile-quick-actions button {
        position: relative;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.12rem;
        border: 1px solid rgb(255 255 255 / 0.34);
        border-radius: 0.62rem;
        min-height: 2.2rem;
        padding: 0.32rem 0.12rem;
        font-size: 0.58rem;
        line-height: 1;
        font-weight: 800;
        color: #ffffff;
        cursor: pointer;
        font-family: inherit;
        text-align: center;
        text-shadow: 0 1px 10px rgb(2 6 23 / 0.28);
        text-decoration: none;
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 14px 32px -24px rgb(15 23 42 / 0.82);
    }

    .mobile-quick-actions a::before,
    .mobile-quick-actions button::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 0.35) 42%, transparent 70%);
        transform: translateX(-120%);
        transition: transform 360ms ease;
    }

    .mobile-quick-actions a:active::before,
    .mobile-quick-actions button:active::before {
        transform: translateX(120%);
    }

    .mobile-quick-actions a i,
    .mobile-quick-actions button i {
        position: relative;
        z-index: 1;
        font-size: 0.7rem;
    }

    .solar-assistant-backdrop {
        align-items: flex-end;
        padding: 0.55rem;
    }

    .solar-assistant-panel {
        width: 100%;
        max-height: calc(100vh - 3.75rem);
        border-radius: 0.85rem 0.85rem 0 0;
    }

    .solar-assistant-header {
        padding: 0.52rem 0.68rem;
    }

    .solar-assistant-header .text-xs {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }

    .solar-assistant-header h2 {
        font-size: 0.86rem;
    }

    .assistant-close {
        width: 2rem !important;
        height: 2rem !important;
    }

    .solar-assistant-body {
        padding: 0.6rem 0.68rem;
    }

    .solar-assistant-step h3 {
        font-size: 0.82rem;
    }

    .solar-assistant-step p {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .assistant-options {
        gap: 0.32rem;
        margin-top: 0.48rem;
    }

    .assistant-option {
        min-height: 2rem;
        padding: 0.36rem 0.52rem;
        font-size: 0.7rem;
    }

    .solar-assistant-footer {
        gap: 0.3rem;
        padding: 0.52rem 0.68rem;
    }

    .assistant-secondary,
    .assistant-primary {
        flex: 1 1 auto;
        padding: 0.48rem 0.55rem;
        font-size: 0.72rem;
    }

    .mobile-quick-actions .call-action {
        background: linear-gradient(135deg, rgb(16 185 129 / 0.86), rgb(5 150 105 / 0.68));
    }

    .mobile-quick-actions .message-action {
        background: linear-gradient(135deg, rgb(59 130 246 / 0.88), rgb(37 99 235 / 0.7));
    }

    .mobile-quick-actions .quote-action {
        background: linear-gradient(135deg, rgb(14 165 233 / 0.88), rgb(2 132 199 / 0.7));
    }

    footer p,
    footer a {
        overflow-wrap: anywhere;
    }

    .message-chooser-backdrop {
        align-items: flex-end;
        padding: 0.55rem;
    }

    .message-chooser-panel {
        border-radius: 0.9rem 0.9rem 0 0;
    }

    .message-chooser-header {
        padding: 0.75rem;
    }

    .message-chooser-header h2 {
        font-size: 1rem;
    }

    .message-chooser-grid {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .message-channel {
        min-height: 4.25rem;
        gap: 0.5rem;
        padding: 0.65rem;
    }

    .message-channel > i {
        height: 2rem;
        width: 2rem;
        font-size: 0.95rem;
    }
}
