#root .container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-block: 2.5rem;
}

/* Hero Section */
.hero-banner {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.25rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background-color: var(--navy-900);
    color: var(--navy-50);
    border: 1px solid var(--navy-100);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.05em;
    margin-bottom: 0.875rem;
}

.hero-banner .hero-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--navy-900);
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .hero-banner .hero-title {
        font-size: 1.5rem;
    }
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.6;
}


/* Product Catalog Toolbar */
.catalog-toolbar {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-btn:hover {
    background: var(--slate-200);
    color: var(--slate-900);
}

.filter-btn.active {
    background: var(--navy-900);
    color: #ffffff;
    border-color: var(--navy-900);
}

.search-input {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: #ffffff;
    min-width: 240px;
}

.search-input:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 2px rgba(229, 30, 37, 0.15);
}

/* Product Cards Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--slate-300);
}

.product-card-top {
    margin-bottom: 1rem;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.product-badge {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--amber-50);
    color: var(--color-secondary-container);
    border: 1px solid var(--color-secondary-container);
}

.product-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--navy-900);
    line-height: 1.25;
    margin-bottom: 0.25rem;
    padding-block: 0.75rem;
}

.product-model {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-family: monospace;
    margin-bottom: 0.75rem;
}

.product-image {
    /* background-color: var(--navy-700); */
    display: flex;
    place-items: center;
    place-content: center;
}

.product-image img {

    max-width: 680px;
    width: 100%;
    object-fit: cover;
}

.img-fluid {
    height: auto;
    max-width: 100%;
}

.product-tagline {
    font-size: 0.8125rem;
    color: var(--slate-600);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.product-warning {
    font-size: 0.7125rem;
    color: var(--red-600);
    line-height: 1.5;
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: 8px;
}

/* Specs Grid */
.specs-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-500);
}

.spec-val {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--navy-900);
}

.feature-list {
    list-style: none;
    font-size: 0.8125rem;
    color: var(--slate-700);
    margin-bottom: 1.25rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.375rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--emerald-600);
    font-weight: 900;
}

/* Card Pricing & Action */
.card-footer-pricing {
    border-top: 1px solid var(--slate-100);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.price-box-label {
    font-size: 0.6575rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--slate-500);
}

.price-box-val {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--navy-900);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-card-quote {
    flex: 1;
    background: var(--red-600);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8125rem;
    padding: 0.625rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}

.btn-card-quote:hover {
    background: var(--red-700);
}

.btn-card-details {
    background: var(--navy-800);
    color: var(--navy-100);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-card-details:hover {
    background: var(--navy-700);
}

/* Sizing & Quote Calculator Styles */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 1.5rem;
    align-items: start;
}

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

.calc-panel {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.calc-panel-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.slider-container {
    margin-bottom: 1.25rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.375rem;
}

.range-input {
    width: 100%;
    height: 6px;
    background: var(--slate-200);
    border-radius: 3px;
    outline: none;
    accent-color: var(--red-600);
}

/* Appliance Load Grid */
.appliance-category-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-500);
    margin: 1rem 0 0.5rem;
}

.appliance-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .appliance-list {
        grid-template-columns: 1fr;
    }
}

.appliance-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}

.appliance-check-item:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
}

.appliance-check-item.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Quote Sidebar Summary */
.quote-summary-card {
    background: #ffffff;
    border: 2px solid var(--navy-900);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 5rem;
}

.quote-matched-box {
    background: var(--navy-950);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.quote-matched-tag {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--amber-500);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.quote-matched-name {
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.quote-power-meter {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
    margin: 0.5rem 0 0.25rem;
}

.quote-power-meter-fill {
    background: var(--emerald-600);
    height: 100%;
    transition: width 0.3s ease;
}

.quote-line-items {
    list-style: none;
    font-size: 0.8125rem;
    border-top: 1px solid var(--slate-200);
    padding-top: 0.75rem;
    margin-bottom: 1rem;
}

.quote-line-items li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    color: var(--slate-700);
}

.quote-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--slate-300);
    padding-top: 0.75rem;
    margin-bottom: 1.25rem;
}

.quote-total-label {
    font-size: 1rem;
    font-weight: 900;
    color: var(--navy-900);
}

.quote-total-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--red-600);
}

.btn-book-survey {
    width: 100%;
    background: var(--red-600);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9375rem;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 30, 37, 0.3);
    transition: background 0.15s;
    margin-bottom: 0.75rem;
}

.btn-book-survey:hover {
    background: var(--red-700);
}

.btn-print-quote {
    width: 100%;
    background: var(--slate-100);
    color: var(--slate-800);
    font-weight: 700;
    font-size: 0.8125rem;
    padding: 0.625rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-print-quote:hover {
    background: var(--slate-200);
}

/* Service Portal Styles */
.portal-subnav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.portal-subnav-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    border: none;
    background: var(--slate-200);
    color: var(--slate-700);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.portal-subnav-btn.active {
    background: var(--navy-900);
    color: #ffffff;
}

.service-form {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--slate-700);
}

.form-control {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 2px rgba(229, 30, 37, 0.15);
}

.emergency-toggle-box {
    background: var(--red-50);
    border: 1px solid var(--red-100);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.emergency-toggle-box input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--red-600);
}

/* Maintenance Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.plan-card {
    background: #ffffff;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.plan-card.featured {
    border-color: var(--red-600);
    box-shadow: var(--shadow-lg);
}

.plan-title {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--slate-900);
    margin: 1rem 0;
}

.plan-price span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-500);
}

.plan-features {
    list-style: none;
    font-size: 0.8125rem;
    color: var(--slate-700);
    margin-bottom: 1.5rem;
}

.plan-features li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--emerald-600);
    font-weight: 900;
}

.btn-plan-enroll {
    width: 100%;
    padding: 0.75rem;
    font-weight: 800;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    background: var(--navy-900);
    color: #ffffff;
    transition: background 0.15s;
}

.plan-card.featured .btn-plan-enroll {
    background: var(--red-600);
}

.plan-card.featured .btn-plan-enroll:hover {
    background: var(--red-700);
}

/* Fault Codes Grid */
.fault-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.fault-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-size: 0.8125rem;
}

.fault-code-name {
    font-size: 1rem;
    font-weight: 900;
    color: var(--red-600);
    font-family: monospace;
    margin-bottom: 0.25rem;
}

/* Modal Window */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 19, 36, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Lock scroll when ANY dialog with the [open] attribute exists */
body:has(.modal-backdrop.open) {
    overflow: hidden;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    box-sizing: border-box;
    background: var(--navy-50);
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 96dvh;
    overflow: hidden;
    /* overflow-y: auto; */
    /* Allows the child to scroll vertically */
    /* overscroll-behavior: contain; */
    /* Prevents the parent from scrolling */
    padding-inline: 0px;
    padding-top: 0px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

@media (min-width: 768px) {
    .modal-box {
        padding-inline: 2rem;
        padding-top: 0px;
    }
}

.modal-head {
    position: relative;
    background-color: var(--navy-900);
    color: var(--navy-50);
    padding: 0.5rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.915rem;
    margin-block: 0;
    /* border-radius: 4px; */
}

.modal-body {
    position: relative;

    width: 100%;
    max-height: 85dvh;
    background-color: var(--navy-50);
    overflow-y: auto;
    overflow-x: hidden;
    /* Allows the child to scroll vertically */
    overscroll-behavior: contain;
    margin-inline: auto;
    padding-inline: 0.5rem;
    padding-block: 0;
}

.modal-close-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--red-500);
    border: none;
    border-radius: 50vh;
    width: 25px;
    /* height: 32px; */
    aspect-ratio: 1;
    font-size: 0.85rem;
    color: var(--red-100);
    display: flex;
    place-items: center;
    place-content: center;
    vertical-align: middle;
    cursor: pointer;
    z-index: 10;
}

.modal-table {
    width: 100%;
    font-size: 0.8125rem;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.modal-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--slate-200);
}

.modal-table td:first-child {
    font-weight: 700;
    color: var(--slate-600);
    width: 40%;
}

/* Live Async Specs API Inspector */
.api-inspector-container {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .api-inspector-container {
        grid-template-columns: 1fr;
    }
}

.api-tester-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.api-code-block {
    background: var(--navy-950);
    color: #38bdf8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    border: 1px solid var(--navy-900);
    max-height: 380px;
    white-space: pre-wrap;
    word-break: break-word;
}

.badge-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--emerald-500);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.btn-async-fetch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--navy-900);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-async-fetch:hover {
    background: var(--navy-800);
}

.btn-async-fetch:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.live-spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: all 0.15s;
}

.live-spec-badge:hover {
    background: var(--slate-200);
}

/* Site Footer */
/* .site-footer {
    background: var(--navy-950);
    color: var(--slate-300);
    border-top: 1px solid var(--navy-900);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    font-size: 0.8125rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

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

.footer-heading {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
}

 .footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links button {
    background: transparent;
    border: none;
    color: var(--slate-400);
    font-size: 0.8125rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

.footer-links button:hover {
    color: #ffffff;
} */

.service-cities-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.city-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.6875rem;
    color: var(--slate-300);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--slate-500);
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Print Styles */
@media print {

    .top-emergency-bar,
    .site-header,
    .catalog-toolbar,
    .btn-header-phone,
    .btn-quote-cta,
    .site-footer,
    .card-actions,
    .btn-book-survey,
    .btn-print-quote,
    .modal-backdrop {
        display: none !important;
    }

    body,
    main {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .quote-summary-card {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        position: static !important;
    }
}