/* ==========================================================
   HomeDen — Complete Home Interior Cost Calculator
   File:
   static/css/estimates/interior_calculator.css
========================================================== */


/* ==========================================================
   Calculator Variables
========================================================== */

.interior-estimator-page {
    --estimator-brand: var(--color-brand, #0f6e56);
    --estimator-brand-dark: #0b5946;
    --estimator-brand-soft: #eaf5f1;

    --estimator-primary: var(--color-primary, #e07a3f);
    --estimator-primary-hover:
        var(--color-primary-hover, #c96932);
    --estimator-primary-soft: #fff4ec;

    --estimator-heading:
        var(--color-heading-primary, #1a1a1a);
    --estimator-heading-secondary:
        var(--color-heading-secondary, #3d3d3d);

    --estimator-body:
        var(--color-body, #6b6b6b);
    --estimator-caption:
        var(--color-caption, #9a9a9a);

    --estimator-border:
        var(--color-border, #eaeaea);
    --estimator-border-strong: #d9dfdc;

    --estimator-page-bg:
        var(--color-page-bg, #faf8f5);
    --estimator-surface: #ffffff;
    --estimator-surface-muted: #f7f8f7;

    --estimator-danger:
        var(--color-danger, #b5352e);
    --estimator-success:
        var(--color-success, #4c8c3c);

    --estimator-radius-sm: 8px;
    --estimator-radius-md: 14px;
    --estimator-radius-lg: 22px;

    --estimator-shadow-sm:
        var(
            --shadow-sm,
            0 8px 24px rgba(26, 26, 26, 0.06)
        );

    --estimator-shadow-md:
        var(
            --shadow-md,
            0 18px 48px rgba(26, 26, 26, 0.10)
        );

    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--estimator-page-bg);
    color: var(--estimator-body);
}


/* ==========================================================
   Shared Container
========================================================== */

.interior-estimator-page .container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* ==========================================================
   Interior Estimator Hero
========================================================== */

.interior-estimator-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 64px 0 82px;


    border-bottom:
        1px solid
        rgba(15, 110, 86, 0.10);
}


/* Architectural grid decoration */




.interior-estimator-hero .container {
    position: relative;
    z-index: 2;
}


/* Hero content width */

.interior-estimator-hero-content {
    max-width: 820px;
}


/* Eyebrow */

.interior-estimator-hero .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;
    padding: 7px 12px;

    background:
        rgba(15, 110, 86, 0.08);

    border:
        1px solid
        rgba(15, 110, 86, 0.12);

    border-radius: 999px;

    color: var(--color-brand, #0f6e56);

    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* Hero heading */

.interior-estimator-hero h1 {
    max-width: 840px;

    margin: 0 0 20px;

    color:
        var(--color-heading-primary, #1a1a1a);

    font-size:
        clamp(42px, 5.2vw, 68px);

    font-weight: 750;
    line-height: 1.06;
    letter-spacing: -0.045em;
}


/* Highlighted heading text */

.interior-estimator-hero h1 span {
    position: relative;

    color:
        var(--color-brand, #0f6e56);
}


/* Small underline under highlighted text */

.interior-estimator-hero h1 span::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;

    height: 7px;

    content: "";

    background:
        rgba(224, 122, 63, 0.25);

    border-radius: 999px;

    transform: rotate(-1deg);

    z-index: -1;
}


/* Hero description */

.interior-estimator-hero-content > p,
.interior-estimator-hero > .container > p {
    max-width: 690px;

    margin: 0 0 28px;

    color:
        var(--color-body, #6b6b6b);

    font-size: 17px;
    line-height: 1.78;
}


/* Hero actions */

.interior-estimator-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;

    margin-top: 28px;
}


.interior-estimator-hero-primary,
.interior-estimator-hero-secondary {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 22px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.interior-estimator-hero-primary {
    background:
        var(--color-primary, #e07a3f);

    border:
        1px solid
        var(--color-primary, #e07a3f);

    color: #ffffff;

    box-shadow:
        0 12px 26px
        rgba(224, 122, 63, 0.22);
}


.interior-estimator-hero-primary:hover {
    background:
        var(--color-primary-hover, #c96832);

    border-color:
        var(--color-primary-hover, #c96832);

    color: #ffffff;

    transform: translateY(-2px);
}


.interior-estimator-hero-secondary {
    background:
        rgba(255, 255, 255, 0.82);

    border:
        1px solid
        rgba(15, 110, 86, 0.20);

    color:
        var(--color-brand, #0f6e56);

    backdrop-filter: blur(8px);
}


.interior-estimator-hero-secondary:hover {
    background:
        var(--color-brand, #0f6e56);

    border-color:
        var(--color-brand, #0f6e56);

    color: #ffffff;

    transform: translateY(-2px);
}


/* Hero trust points */

.interior-estimator-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;

    margin-top: 28px;
}


.interior-estimator-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color:
        var(--color-heading-secondary, #3d3d3d);

    font-size: 13px;
    font-weight: 600;
}


.interior-estimator-hero-points i {
    color:
        var(--color-success, #4c8c3c);

    font-size: 15px;
}


/* ==========================================================
   Breadcrumb
========================================================== */

.interior-estimator-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    color: var(--estimator-caption);
    font-size: 12px;
    line-height: 1.5;
}

.interior-estimator-breadcrumb a {
    color: var(--estimator-brand);
    font-weight: 600;
    text-decoration: none;
}

.interior-estimator-breadcrumb a:hover {
    color: var(--estimator-primary);
}

.interior-estimator-breadcrumb span:last-child {
    color: var(--estimator-heading-secondary);
}


/* ==========================================================
   Hero Grid
========================================================== */

.interior-estimator-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(300px, 0.55fr);
    align-items: end;
    gap: 56px;
}

.interior-estimator-hero-content {
    max-width: 760px;
}

.interior-estimator-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--estimator-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1.4;
    text-transform: uppercase;
}

.interior-estimator-eyebrow::before {
    width: 34px;
    height: 2px;
    content: "";
    background: var(--estimator-primary);
    border-radius: 999px;
}

.interior-estimator-hero-content h1 {
    max-width: 760px;
    margin: 0;
    color: var(--estimator-heading);
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 750;
    letter-spacing: -2px;
    line-height: 1.06;
}

.interior-estimator-hero-content > p {
    max-width: 670px;
    margin: 22px 0 0;
    color: var(--estimator-body);
    font-size: 17px;
    line-height: 1.8;
}

.interior-estimator-hero-points {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 28px;
}

.interior-estimator-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--estimator-heading-secondary);
    font-size: 13px;
    font-weight: 600;
}

.interior-estimator-hero-points i {
    color: var(--estimator-success);
    font-size: 15px;
}


/* ==========================================================
   Hero Note
========================================================== */

.interior-estimator-hero-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    background:
        rgba(255, 255, 255, 0.84);
    border: 1px solid
        rgba(15, 110, 86, 0.12);
    border-radius: var(--estimator-radius-md);
    box-shadow: var(--estimator-shadow-sm);
    backdrop-filter: blur(12px);
}

.interior-estimator-hero-note > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    background: var(--estimator-brand-soft);
    border-radius: 50%;
    color: var(--estimator-brand);
    font-size: 20px;
}

.interior-estimator-hero-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--estimator-heading);
    font-size: 14px;
}

.interior-estimator-hero-note p {
    margin: 0;
    color: var(--estimator-body);
    font-size: 12px;
    line-height: 1.7;
}


/* ==========================================================
   Main Calculator Area
========================================================== */

.interior-estimator-main {
    position: relative;
    z-index: 3;
    padding: 0 0 96px;
}

.interior-estimator-form {
    margin-top: -30px;
}


/* ==========================================================
   Progress Card
========================================================== */

.interior-estimator-progress {
    margin-bottom: 24px;
    padding: 24px 26px;
    background: var(--estimator-surface);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    box-shadow: var(--estimator-shadow-sm);
}

.interior-estimator-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.interior-estimator-progress-label {
    display: block;
    margin-bottom: 4px;
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-progress-top strong {
    display: block;
    color: var(--estimator-heading);
    font-size: 17px;
    line-height: 1.4;
}

#estimator-progress-count {
    flex-shrink: 0;
    color: var(--estimator-brand);
    font-size: 12px;
    font-weight: 700;
}

.interior-estimator-progress-track {
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: #edf1ef;
    border-radius: 999px;
}

.interior-estimator-progress-track span {
    display: block;
    height: 100%;
    background:
        linear-gradient(
            90deg,
            var(--estimator-brand),
            var(--estimator-primary)
        );
    border-radius: inherit;
    transition: width 0.35s ease;
}

.interior-estimator-progress-steps {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.interior-estimator-progress-steps li {
    min-width: 0;
    text-align: center;
}

.interior-estimator-progress-steps li span {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    background: #f0f2f1;
    border: 1px solid #e1e5e3;
    border-radius: 50%;
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 800;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.interior-estimator-progress-steps li small {
    display: block;
    overflow: hidden;
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.interior-estimator-progress-steps li.is-active span {
    background: var(--estimator-brand);
    border-color: var(--estimator-brand);
    color: #ffffff;
    transform: scale(1.08);
}

.interior-estimator-progress-steps li.is-active small {
    color: var(--estimator-brand);
}

.interior-estimator-progress-steps li.is-complete span {
    background: var(--estimator-brand-soft);
    border-color: rgba(15, 110, 86, 0.24);
    color: var(--estimator-brand);
}

.interior-estimator-progress-steps li.is-complete small {
    color: var(--estimator-heading-secondary);
}


/* ==========================================================
   Main Layout
========================================================== */

.interior-estimator-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        330px;
    align-items: start;
    gap: 24px;
}


/* ==========================================================
   Wizard Surface
========================================================== */

.interior-estimator-wizard {
    min-width: 0;
    overflow: hidden;
    background: var(--estimator-surface);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-lg);
    box-shadow: var(--estimator-shadow-md);
}

.interior-estimator-step {
    min-height: 560px;
    padding: 38px 40px 36px;
    animation: interiorEstimatorFade 0.28s ease;
}

.interior-estimator-step[hidden] {
    display: none !important;
}

.interior-estimator-step.is-active {
    display: block;
}

@keyframes interiorEstimatorFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   Step Heading
========================================================== */

.interior-estimator-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
}

.interior-estimator-step-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    background: var(--estimator-brand-soft);
    border: 1px solid
        rgba(15, 110, 86, 0.14);
    border-radius: 50%;
    color: var(--estimator-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.interior-estimator-step-heading h2,
.interior-estimator-results-heading h2 {
    margin: 0;
    color: var(--estimator-heading);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 750;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.interior-estimator-step-heading p,
.interior-estimator-results-heading p {
    max-width: 660px;
    margin: 9px 0 0;
    color: var(--estimator-body);
    font-size: 14px;
    line-height: 1.75;
}


/* ==========================================================
   Choice Cards
========================================================== */

.interior-estimator-option-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.interior-estimator-choice-card,
.interior-estimator-toggle-card,
.interior-estimator-accessory-card {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.interior-estimator-choice-card {
    min-height: 190px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
    background: var(--estimator-surface);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.interior-estimator-choice-card:hover {
    border-color:
        rgba(15, 110, 86, 0.35);
    box-shadow: var(--estimator-shadow-sm);
    transform: translateY(-3px);
}

.interior-estimator-choice-card input,
.interior-estimator-toggle-card input,
.interior-estimator-chip input,
.interior-estimator-accessory-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.interior-choice-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--estimator-border-strong);
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
}

.interior-choice-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: var(--estimator-brand-soft);
    border-radius: 14px;
    color: var(--estimator-brand);
    font-size: 23px;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease;
}

.interior-estimator-choice-card strong,
.interior-estimator-toggle-card strong,
.interior-estimator-accessory-card strong {
    display: block;
    color: var(--estimator-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.interior-estimator-choice-card small,
.interior-estimator-toggle-card small,
.interior-estimator-accessory-card small {
    display: block;
    margin-top: 7px;
    color: var(--estimator-body);
    font-size: 11px;
    line-height: 1.65;
}

.interior-estimator-choice-card:has(input:checked),
.interior-estimator-toggle-card:has(input:checked),
.interior-estimator-accessory-card:has(input:checked) {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--estimator-brand-soft)
        );
    border-color: var(--estimator-brand);
    box-shadow:
        0 12px 28px
        rgba(15, 110, 86, 0.12);
}

.interior-estimator-choice-card:has(input:checked)
.interior-choice-check,
.interior-estimator-accessory-card:has(input:checked)
.interior-choice-check {
    background: var(--estimator-brand);
    border-color: var(--estimator-brand);
    color: #ffffff;
}

.interior-estimator-choice-card:has(input:checked)
.interior-choice-icon,
.interior-estimator-toggle-card:has(input:checked)
.interior-choice-icon {
    background: var(--estimator-brand);
    color: #ffffff;
    transform: scale(1.04);
}


/* ==========================================================
   Keyboard Focus
========================================================== */

.interior-estimator-choice-card:has(input:focus-visible),
.interior-estimator-toggle-card:has(input:focus-visible),
.interior-estimator-chip:has(input:focus-visible),
.interior-estimator-accessory-card:has(input:focus-visible) {
    outline: 3px solid
        rgba(224, 122, 63, 0.28);
    outline-offset: 3px;
}


/* ==========================================================
   BHK Chips
========================================================== */

.interior-estimator-field-group {
    margin-bottom: 24px;
}

.interior-estimator-field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--estimator-heading-secondary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.interior-estimator-bhk-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.interior-estimator-chip {
    position: relative;
    cursor: pointer;
}

.interior-estimator-chip span {
    min-width: 76px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: 999px;
    color: var(--estimator-heading-secondary);
    font-size: 12px;
    font-weight: 700;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.interior-estimator-chip:hover span {
    border-color:
        rgba(15, 110, 86, 0.35);
}

.interior-estimator-chip input:checked + span {
    background: var(--estimator-brand);
    border-color: var(--estimator-brand);
    color: #ffffff;
    transform: translateY(-1px);
}


/* ==========================================================
   Inputs, Selects and Units
========================================================== */

.interior-estimator-page input[type="text"],
.interior-estimator-page input[type="email"],
.interior-estimator-page input[type="tel"],
.interior-estimator-page input[type="number"],
.interior-estimator-page select,
.interior-estimator-page textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    background: #ffffff;
    border: 1px solid var(--estimator-border-strong);
    border-radius: var(--estimator-radius-sm);
    color: var(--estimator-heading);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.interior-estimator-page input::placeholder,
.interior-estimator-page textarea::placeholder {
    color: #b0b5b2;
}

.interior-estimator-page input:hover,
.interior-estimator-page select:hover,
.interior-estimator-page textarea:hover {
    border-color: #bec8c3;
}

.interior-estimator-page input:focus,
.interior-estimator-page select:focus,
.interior-estimator-page textarea:focus {
    border-color: var(--estimator-brand);
    box-shadow:
        0 0 0 4px
        rgba(15, 110, 86, 0.10);
}

.interior-estimator-input-unit {
    position: relative;
    display: flex;
    align-items: stretch;
}

.interior-estimator-input-unit input {
    padding-right: 78px !important;
}

.interior-estimator-input-unit > span {
    position: absolute;
    top: 50%;
    right: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding-left: 11px;
    border-left: 1px solid var(--estimator-border);
    color: var(--estimator-caption);
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    transform: translateY(-50%);
}

.interior-estimator-field-help {
    display: block;
    margin-top: 8px;
    color: var(--estimator-caption);
    font-size: 11px;
    line-height: 1.6;
}

.interior-estimator-field-error {
    min-height: 18px;
    margin: 7px 0 0;
    color: var(--estimator-danger);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}


/* ==========================================================
   Measure Grid and Sample Card
========================================================== */

.interior-estimator-measure-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.interior-estimator-sample-card {
    align-self: stretch;
    padding: 20px;
    background:
        linear-gradient(
            145deg,
            #fff7f0,
            #ffffff
        );
    border: 1px solid
        rgba(224, 122, 63, 0.18);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-sample-card > span {
    display: block;
    margin-bottom: 8px;
    color: var(--estimator-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-sample-card strong {
    display: block;
    color: var(--estimator-heading);
    font-size: 15px;
}

.interior-estimator-sample-card p {
    margin: 7px 0 0;
    color: var(--estimator-body);
    font-size: 12px;
    line-height: 1.6;
}


/* ==========================================================
   Yes / No Toggle Cards
========================================================== */

.interior-estimator-toggle-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.interior-estimator-toggle-card {
    min-height: 180px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.interior-estimator-toggle-card:hover {
    border-color:
        rgba(15, 110, 86, 0.35);
    box-shadow: var(--estimator-shadow-sm);
    transform: translateY(-2px);
}


/* ==========================================================
   Conditional Fields
========================================================== */

.interior-estimator-conditional {
    margin-top: 20px;
    padding: 22px;
    background: var(--estimator-surface-muted);
    border: 1px dashed
        rgba(15, 110, 86, 0.28);
    border-radius: var(--estimator-radius-md);
    animation: interiorEstimatorFade 0.25s ease;
}

.interior-estimator-conditional[hidden] {
    display: none !important;
}

.interior-estimator-conditional
.interior-estimator-field-group:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Add-on List
========================================================== */

.interior-estimator-addon-list {
    display: grid;
    gap: 12px;
}

.interior-estimator-addon {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.interior-estimator-addon:has(
    .interior-estimator-addon-main
    input:checked
) {
    border-color:
        rgba(15, 110, 86, 0.45);
    box-shadow:
        0 10px 24px
        rgba(15, 110, 86, 0.08);
}

.interior-estimator-addon-main {
    display: grid;
    grid-template-columns:
        auto
        auto
        minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 17px 18px;
    cursor: pointer;
}

.interior-estimator-addon-main input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--estimator-brand);
}

.interior-addon-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    background: var(--estimator-brand-soft);
    border-radius: 11px;
    color: var(--estimator-brand);
    font-size: 18px;
}

.interior-estimator-addon-main strong {
    display: block;
    color: var(--estimator-heading);
    font-size: 13px;
}

.interior-estimator-addon-main small {
    display: block;
    margin-top: 4px;
    color: var(--estimator-body);
    font-size: 11px;
    line-height: 1.6;
}

.interior-estimator-addon-detail {
    padding: 0 18px 18px 76px;
    animation: interiorEstimatorFade 0.22s ease;
}

.interior-estimator-addon-detail[hidden] {
    display: none !important;
}

.interior-estimator-addon-detail > label {
    display: block;
    margin-bottom: 8px;
    color: var(--estimator-heading-secondary);
    font-size: 11px;
    font-weight: 700;
}


/* ==========================================================
   Subheading
========================================================== */

.interior-estimator-subheading {
    margin: 32px 0 17px;
}

.interior-estimator-subheading h3 {
    margin: 0;
    color: var(--estimator-heading);
    font-size: 19px;
    font-weight: 700;
}

.interior-estimator-subheading p {
    margin: 6px 0 0;
    color: var(--estimator-body);
    font-size: 12px;
    line-height: 1.6;
}


/* ==========================================================
   Accessory Cards
========================================================== */

.interior-estimator-accessory-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.interior-estimator-accessory-card {
    min-height: 150px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.interior-estimator-accessory-card:hover {
    border-color:
        rgba(15, 110, 86, 0.35);
    box-shadow: var(--estimator-shadow-sm);
    transform: translateY(-2px);
}

.interior-estimator-accessory-card
.interior-addon-icon {
    margin-bottom: 15px;
}


/* ==========================================================
   Location
========================================================== */

.interior-estimator-location-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(250px, 0.7fr);
    gap: 18px;
    padding: 22px;
    background: var(--estimator-surface-muted);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-location-panel
.interior-estimator-field-group {
    margin-bottom: 0;
}

.interior-estimator-location-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-sm);
}

.interior-estimator-location-note > i {
    color: var(--estimator-primary);
    font-size: 20px;
}

.interior-estimator-location-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--estimator-heading);
    font-size: 12px;
}

.interior-estimator-location-note p {
    margin: 0;
    color: var(--estimator-body);
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   Review
========================================================== */

.interior-estimator-review {
    margin-top: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background:
        linear-gradient(
            135deg,
            var(--estimator-brand-soft),
            #ffffff
        );
    border-bottom: 1px solid var(--estimator-border);
}

.interior-estimator-review-heading span {
    display: block;
    margin-bottom: 3px;
    color: var(--estimator-brand);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-review-heading h3 {
    margin: 0;
    color: var(--estimator-heading);
    font-size: 17px;
}

.interior-estimator-review-heading > i {
    color: var(--estimator-brand);
    font-size: 24px;
}

.interior-estimator-review-list {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    margin: 0;
}

.interior-estimator-review-list > div {
    display: grid;
    grid-template-columns:
        minmax(90px, 0.45fr)
        minmax(0, 1fr);
    gap: 12px;
    padding: 13px 18px;
    border-right: 1px solid var(--estimator-border);
    border-bottom: 1px solid var(--estimator-border);
}

.interior-estimator-review-list > div:nth-child(2n) {
    border-right: 0;
}

.interior-estimator-review-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.interior-estimator-review-list dt {
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 700;
}

.interior-estimator-review-list dd {
    min-width: 0;
    margin: 0;
    color: var(--estimator-heading-secondary);
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


/* ==========================================================
   Navigation Footer
========================================================== */

.interior-estimator-navigation {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;
    align-items: center;
    gap: 16px;
    padding: 20px 40px;
    background: #fbfcfb;
    border-top: 1px solid var(--estimator-border);
}

.interior-estimator-navigation button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.interior-estimator-back {
    background: #ffffff;
    border: 1px solid var(--estimator-border-strong);
    color: var(--estimator-heading-secondary);
}

.interior-estimator-back:hover:not(:disabled) {
    border-color: var(--estimator-brand);
    color: var(--estimator-brand);
}

.interior-estimator-back:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.interior-estimator-next,
.interior-estimator-calculate {
    background: var(--estimator-primary);
    border: 1px solid var(--estimator-primary);
    color: #ffffff;
    box-shadow:
        0 8px 20px
        rgba(224, 122, 63, 0.20);
}

.interior-estimator-next:hover,
.interior-estimator-calculate:hover {
    background: var(--estimator-primary-hover);
    border-color: var(--estimator-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
}

.interior-estimator-navigation-status {
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}


/* ==========================================================
   Sidebar
========================================================== */

.interior-estimator-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.interior-estimator-summary-card,
.interior-estimator-assurance-card,
.interior-estimator-help-card {
    background: var(--estimator-surface);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    box-shadow: var(--estimator-shadow-sm);
}

.interior-estimator-summary-card {
    overflow: hidden;
}

.interior-estimator-summary-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    background:
        linear-gradient(
            135deg,
            var(--estimator-brand),
            #14604e
        );
}

.interior-estimator-summary-header > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    background:
        rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
}

.interior-estimator-summary-header span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-summary-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
}

.interior-estimator-summary-list {
    margin: 0;
    padding: 8px 20px 12px;
}

.interior-estimator-summary-list > div {
    display: grid;
    grid-template-columns:
        minmax(90px, 0.48fr)
        minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--estimator-border);
}

.interior-estimator-summary-list > div:last-child {
    border-bottom: 0;
}

.interior-estimator-summary-list dt {
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 700;
}

.interior-estimator-summary-list dd {
    min-width: 0;
    margin: 0;
    color: var(--estimator-heading-secondary);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}


/* ==========================================================
   Assurance Card
========================================================== */

.interior-estimator-assurance-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
}

.interior-estimator-assurance-card > i {
    color: var(--estimator-success);
    font-size: 22px;
}

.interior-estimator-assurance-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--estimator-heading);
    font-size: 12px;
}

.interior-estimator-assurance-card p {
    margin: 0;
    color: var(--estimator-body);
    font-size: 10px;
    line-height: 1.6;
}


/* ==========================================================
   Help Card
========================================================== */

.interior-estimator-help-card {
    padding: 20px;
    background:
        linear-gradient(
            145deg,
            #fff7f0,
            #ffffff
        );
    border-color:
        rgba(224, 122, 63, 0.18);
}

.interior-estimator-help-card > span {
    display: block;
    margin-bottom: 6px;
    color: var(--estimator-primary);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-help-card h3 {
    margin: 0 0 14px;
    color: var(--estimator-heading);
    font-size: 17px;
    line-height: 1.4;
}

.interior-estimator-help-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--estimator-brand);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.interior-estimator-help-card a:hover {
    color: var(--estimator-primary);
}


/* ==========================================================
   Results Heading
========================================================== */

.interior-estimator-results-step {
    min-height: auto;
}

.interior-estimator-results-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}


/* ==========================================================
   Loading
========================================================== */

.interior-estimator-loading {
    padding: 46px 24px;
    text-align: center;
    background: var(--estimator-surface-muted);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-loading[hidden] {
    display: none !important;
}

.interior-estimator-spinner {
    width: 46px;
    height: 46px;
    display: inline-block;
    margin-bottom: 15px;
    border: 4px solid
        rgba(15, 110, 86, 0.14);
    border-top-color: var(--estimator-brand);
    border-radius: 50%;
    animation:
        interiorEstimatorSpin 0.8s linear infinite;
}

@keyframes interiorEstimatorSpin {
    to {
        transform: rotate(360deg);
    }
}

.interior-estimator-loading strong {
    display: block;
    color: var(--estimator-heading);
    font-size: 15px;
}

.interior-estimator-loading p {
    max-width: 500px;
    margin: 7px auto 0;
    color: var(--estimator-body);
    font-size: 12px;
    line-height: 1.6;
}


/* ==========================================================
   API Error
========================================================== */

.interior-estimator-api-error {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: #fff5f3;
    border: 1px solid
        rgba(181, 53, 46, 0.18);
    border-left: 4px solid
        var(--estimator-danger);
    border-radius: var(--estimator-radius-sm);
}

.interior-estimator-api-error[hidden] {
    display: none !important;
}

.interior-estimator-api-error > i {
    color: var(--estimator-danger);
    font-size: 20px;
}

.interior-estimator-api-error strong {
    display: block;
    color: var(--estimator-danger);
    font-size: 13px;
}

.interior-estimator-api-error p {
    margin: 4px 0 0;
    color: #70514e;
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   Tier Results
========================================================== */

.interior-estimator-tier-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.interior-estimator-tier-grid[hidden] {
    display: none !important;
}

.interior-estimator-tier-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.interior-estimator-tier-card:hover {
    border-color:
        rgba(15, 110, 86, 0.36);
    box-shadow: var(--estimator-shadow-sm);
    transform: translateY(-2px);
}

.interior-estimator-tier-card.is-recommended {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--estimator-brand-soft)
        );
    border: 2px solid var(--estimator-brand);
}

.interior-tier-recommended {
    position: absolute;
    top: 0;
    right: 18px;
    padding: 6px 11px;
    background: var(--estimator-brand);
    border-radius: 0 0 8px 8px;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.interior-tier-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 70px;
}

.interior-tier-order {
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 39px;
    background: var(--estimator-brand-soft);
    border-radius: 50%;
    color: var(--estimator-brand);
    font-size: 10px;
    font-weight: 800;
}

.interior-tier-card-header h3 {
    margin: 0;
    color: var(--estimator-heading);
    font-size: 18px;
}

.interior-tier-card-header p {
    margin: 3px 0 0;
    color: var(--estimator-body);
    font-size: 10px;
}

.interior-tier-price {
    margin-top: 22px;
    padding: 17px;
    background: var(--estimator-surface-muted);
    border-radius: var(--estimator-radius-sm);
}

.interior-tier-price > span {
    display: block;
    margin-bottom: 8px;
    color: var(--estimator-caption);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.interior-tier-price strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: var(--estimator-heading);
    font-size: 20px;
    line-height: 1.35;
}

.interior-tier-price small {
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 600;
}

.interior-tier-description {
    margin: 15px 0 0;
    color: var(--estimator-body);
    font-size: 11px;
    line-height: 1.65;
}

.interior-tier-breakdown-button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 11px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--estimator-border);
    color: var(--estimator-brand);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.interior-tier-breakdown-button:hover {
    color: var(--estimator-primary);
}


/* ==========================================================
   Cost Breakdown
========================================================== */

.interior-estimator-breakdown {
    margin-top: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-breakdown[hidden] {
    display: none !important;
}

.interior-estimator-breakdown-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background:
        linear-gradient(
            135deg,
            var(--estimator-brand),
            #14604e
        );
}

.interior-estimator-breakdown-heading span {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-breakdown-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
}

.interior-estimator-breakdown-heading button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid
        rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
}

.interior-estimator-breakdown-list {
    padding: 7px 20px;
}

.interior-estimator-breakdown-list > div {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--estimator-border);
}

.interior-estimator-breakdown-list > div:last-child {
    border-bottom: 0;
}

.interior-estimator-breakdown-list span {
    color: var(--estimator-heading-secondary);
    font-size: 11px;
    font-weight: 600;
}

.interior-estimator-breakdown-list strong {
    color: var(--estimator-heading);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.interior-estimator-breakdown-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 20px;
    background: var(--estimator-brand-soft);
    border-top: 1px solid
        rgba(15, 110, 86, 0.12);
}

.interior-estimator-breakdown-total span {
    color: var(--estimator-brand);
    font-size: 11px;
    font-weight: 800;
}

.interior-estimator-breakdown-total strong {
    color: var(--estimator-heading);
    font-size: 15px;
}


/* ==========================================================
   Assumptions
========================================================== */

.interior-estimator-assumptions {
    margin-top: 20px;
    padding: 19px;
    background: #fffaf5;
    border: 1px solid
        rgba(224, 122, 63, 0.18);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-assumptions[hidden] {
    display: none !important;
}

.interior-estimator-assumptions h3 {
    margin: 0 0 11px;
    color: var(--estimator-heading);
    font-size: 14px;
}

.interior-estimator-assumptions ul {
    margin: 0;
    padding-left: 19px;
}

.interior-estimator-assumptions li {
    margin-bottom: 7px;
    color: var(--estimator-body);
    font-size: 11px;
    line-height: 1.65;
}

.interior-estimator-assumptions li:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   Disclaimer
========================================================== */

.interior-estimator-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    background: var(--estimator-surface-muted);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-sm);
}

.interior-estimator-disclaimer[hidden] {
    display: none !important;
}

.interior-estimator-disclaimer > i {
    color: var(--estimator-brand);
    font-size: 18px;
}

.interior-estimator-disclaimer p {
    margin: 0;
    color: var(--estimator-body);
    font-size: 10px;
    line-height: 1.7;
}


/* ==========================================================
   Result Actions
========================================================== */

.interior-estimator-result-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px;
}

.interior-estimator-result-actions[hidden] {
    display: none !important;
}

.interior-estimator-result-actions .button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.interior-estimator-result-actions
.button-primary {
    background: var(--estimator-primary);
    border: 1px solid var(--estimator-primary);
    color: #ffffff;
}

.interior-estimator-result-actions
.button-primary:hover {
    background: var(--estimator-primary-hover);
    border-color: var(--estimator-primary-hover);
    color: #ffffff;
}

.interior-estimator-result-actions
.button-secondary {
    background: #ffffff;
    border: 1px solid var(--estimator-brand);
    color: var(--estimator-brand);
}

.interior-estimator-result-actions
.button-secondary:hover {
    background: var(--estimator-brand);
    color: #ffffff;
}

.interior-estimator-recalculate {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: transparent;
    border: 0;
    color: var(--estimator-heading-secondary);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.interior-estimator-recalculate:hover {
    color: var(--estimator-primary);
}


/* ==========================================================
   Empty State
========================================================== */

.interior-estimator-empty {
    grid-column: 1 / -1;
    padding: 26px;
    text-align: center;
    background: var(--estimator-surface-muted);
    border: 1px dashed var(--estimator-border-strong);
    border-radius: var(--estimator-radius-md);
}

.interior-estimator-empty i {
    display: block;
    margin-bottom: 9px;
    color: var(--estimator-primary);
    font-size: 23px;
}

.interior-estimator-empty p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--estimator-body);
    font-size: 12px;
    line-height: 1.7;
}


/* ==========================================================
   Utility Hidden State
========================================================== */

.interior-estimator-page [hidden] {
    display: none !important;
}


/* ==========================================================
   Tier Selection Button
========================================================== */

.interior-tier-select-button {
    width: 100%;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    padding: 10px 16px;
    background: var(--estimator-primary);
    border: 1px solid var(--estimator-primary);
    border-radius: 999px;
    color: #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.interior-tier-select-button:hover {
    background: var(--estimator-primary-hover);
    border-color: var(--estimator-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 8px 18px
        rgba(224, 122, 63, 0.20);
}

.interior-tier-select-button[aria-pressed="true"] {
    background: var(--estimator-brand);
    border-color: var(--estimator-brand);
}

.interior-estimator-tier-card.is-selected {
    border-color: var(--estimator-brand);
    box-shadow:
        0 16px 34px
        rgba(15, 110, 86, 0.15);
}


/* ==========================================================
   Save Estimate Panel
========================================================== */

.interior-estimator-save-panel {
    margin-top: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-lg);
    box-shadow: var(--estimator-shadow-sm);
}

.interior-estimator-save-panel[hidden] {
    display: none !important;
}

.interior-estimator-save-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background:
        linear-gradient(
            135deg,
            var(--estimator-brand),
            #125c4a
        );
}

.interior-estimator-save-heading > div > span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interior-estimator-save-heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
}

.interior-estimator-save-heading p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
}

.interior-estimator-save-heading > i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    background: rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
}

#interior-estimator-save-form-content {
    padding: 26px 24px;
}

.interior-estimator-save-intro {
    margin-bottom: 22px;
}

.interior-estimator-save-intro h3 {
    margin: 0;
    color: var(--estimator-heading);
    font-size: 20px;
}

.interior-estimator-save-intro p {
    margin: 7px 0 0;
    color: var(--estimator-body);
    font-size: 12px;
    line-height: 1.7;
}

.interior-estimator-customer-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.interior-estimator-field-label span {
    color: var(--estimator-caption);
    font-size: 10px;
    font-weight: 500;
}

.interior-estimator-page textarea {
    min-height: 110px;
    resize: vertical;
}


/* ==========================================================
   Consent
========================================================== */

.interior-estimator-consent {
    display: grid;
    grid-template-columns:
        auto
        minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--estimator-surface-muted);
    border: 1px solid var(--estimator-border);
    border-radius: var(--estimator-radius-sm);
    cursor: pointer;
}

.interior-estimator-consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--estimator-brand);
}

.interior-estimator-consent strong {
    display: block;
    margin-bottom: 3px;
    color: var(--estimator-heading);
    font-size: 12px;
}

.interior-estimator-consent small {
    display: block;
    color: var(--estimator-body);
    font-size: 10px;
    line-height: 1.65;
}


/* ==========================================================
   Save Button and Error
========================================================== */

.interior-estimator-save-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 11px 20px;
    background: var(--estimator-primary);
    border: 1px solid var(--estimator-primary);
    border-radius: 999px;
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.interior-estimator-save-button:hover:not(:disabled) {
    background: var(--estimator-primary-hover);
    border-color: var(--estimator-primary-hover);
    transform: translateY(-1px);
}

.interior-estimator-save-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.interior-estimator-save-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 15px;
    background: #fff5f3;
    border: 1px solid
        rgba(181, 53, 46, 0.18);
    border-radius: var(--estimator-radius-sm);
    color: var(--estimator-danger);
}

.interior-estimator-save-error[hidden] {
    display: none !important;
}

.interior-estimator-save-error p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   Save Success
========================================================== */

.interior-estimator-save-success {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 24px;
    background:
        linear-gradient(
            145deg,
            var(--estimator-brand-soft),
            #ffffff
        );
}

.interior-estimator-save-success[hidden] {
    display: none !important;
}

.interior-save-success-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    background: var(--estimator-success);
    border-radius: 50%;
    color: #ffffff;
    font-size: 25px;
}

.interior-estimator-save-success > div > span {
    display: block;
    margin-bottom: 5px;
    color: var(--estimator-success);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.interior-estimator-save-success h3 {
    margin: 0;
    color: var(--estimator-heading);
    font-size: 22px;
}

.interior-estimator-save-success p {
    margin: 7px 0 0;
    color: var(--estimator-body);
    font-size: 11px;
    line-height: 1.65;
}


.interior-estimator-view-result {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 17px;
    background: var(--estimator-brand);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.interior-estimator-view-result:hover {
    background: var(--estimator-primary);
    color: #ffffff;
}

.interior-estimator-view-result[hidden] {
    display: none !important;
}



/* ==========================================================
   Large Tablet
========================================================== */

@media (max-width: 1100px) {

    .interior-estimator-hero-grid {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(280px, 0.8fr);
        gap: 32px;
    }

    .interior-estimator-layout {
        grid-template-columns:
            minmax(0, 1fr)
            290px;
    }

    .interior-estimator-step {
        padding-inline: 30px;
    }

    .interior-estimator-navigation {
        padding-inline: 30px;
    }

    .interior-estimator-option-grid,
    .interior-estimator-accessory-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 900px) {

    .interior-estimator-hero {
        padding: 34px 0 54px;
    }

    .interior-estimator-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .interior-estimator-hero-note {
        max-width: 620px;
    }

    .interior-estimator-layout {
        grid-template-columns: 1fr;
    }

    .interior-estimator-sidebar {
        position: static;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .interior-estimator-summary-card {
        grid-column: 1 / -1;
    }

    .interior-estimator-summary-list {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 0 24px;
    }

    .interior-estimator-progress-steps {
        overflow-x: auto;
        grid-template-columns:
            repeat(8, minmax(72px, 1fr));
        padding-bottom: 5px;
        scrollbar-width: thin;
    }

}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {

    .interior-estimator-page .container {
        width: min(100% - 24px, 1180px);
    }

    .interior-estimator-hero {
        padding: 26px 0 48px;
    }

    .interior-estimator-breadcrumb {
        margin-bottom: 23px;
    }

    .interior-estimator-hero-content h1 {
        font-size: clamp(32px, 10vw, 46px);
        letter-spacing: -1.3px;
    }

    .interior-estimator-hero-content > p {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.7;
    }

    .interior-estimator-hero-points {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .interior-estimator-main {
        padding-bottom: 66px;
    }

    .interior-estimator-form {
        margin-top: -22px;
    }

    .interior-estimator-progress {
        padding: 19px 18px;
    }

    .interior-estimator-progress-top {
        align-items: flex-start;
    }

    .interior-estimator-progress-top strong {
        font-size: 15px;
    }

    .interior-estimator-progress-steps {
        margin-top: 16px;
    }

    .interior-estimator-wizard {
        border-radius: 16px;
    }

    .interior-estimator-step {
        min-height: auto;
        padding: 27px 20px 30px;
    }

    .interior-estimator-step-heading,
    .interior-estimator-results-heading {
        gap: 13px;
        margin-bottom: 25px;
    }

    .interior-estimator-step-number {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
        font-size: 10px;
    }

    .interior-estimator-step-heading h2,
    .interior-estimator-results-heading h2 {
        font-size: 25px;
    }

    .interior-estimator-step-heading p,
    .interior-estimator-results-heading p {
        font-size: 12px;
        line-height: 1.65;
    }

    .interior-estimator-option-grid,
    .interior-estimator-toggle-grid,
    .interior-estimator-accessory-grid,
    .interior-estimator-measure-grid,
    .interior-estimator-location-panel,
    .interior-estimator-tier-grid {
        grid-template-columns: 1fr;
    }

    .interior-estimator-choice-card {
        min-height: 155px;
    }

    .interior-estimator-toggle-card {
        min-height: 150px;
    }

    .interior-estimator-choice-card,
    .interior-estimator-toggle-card {
        padding: 19px;
    }

    .interior-choice-icon {
        width: 47px;
        height: 47px;
        margin-bottom: 17px;
    }

    .interior-estimator-addon-main {
        grid-template-columns:
            auto
            auto
            minmax(0, 1fr);
        padding: 15px;
    }

    .interior-estimator-addon-detail {
        padding:
            0
            15px
            15px
            64px;
    }

    .interior-estimator-review-list {
        grid-template-columns: 1fr;
    }

    .interior-estimator-review-list > div {
        border-right: 0;
        border-bottom:
            1px solid
            var(--estimator-border);
    }

    .interior-estimator-review-list
    > div:nth-last-child(-n + 2) {
        border-bottom:
            1px solid
            var(--estimator-border);
    }

    .interior-estimator-review-list
    > div:last-child {
        border-bottom: 0;
    }

    .interior-estimator-navigation {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        padding: 16px 18px;
    }

    .interior-estimator-navigation-status {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .interior-estimator-back {
        grid-column: 1;
        grid-row: 2;
    }

    .interior-estimator-next,
    .interior-estimator-calculate {
        grid-column: 2;
        grid-row: 2;
    }

    .interior-estimator-navigation button {
        width: 100%;
        padding-inline: 12px;
    }

    .interior-estimator-sidebar {
        grid-template-columns: 1fr;
    }

    .interior-estimator-summary-list {
        grid-template-columns: 1fr;
    }

    .interior-estimator-result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .interior-estimator-result-actions .button,
    .interior-estimator-recalculate {
        width: 100%;
    }

    .interior-estimator-breakdown-total {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

}


/* ==========================================================
   Small Mobile
========================================================== */

@media (max-width: 480px) {

    .interior-estimator-page .container {
        width: min(100% - 16px, 1180px);
    }

    .interior-estimator-hero {
        padding-top: 22px;
    }

    .interior-estimator-hero-content h1 {
        font-size: 31px;
    }

    .interior-estimator-hero-note {
        padding: 17px;
    }

    .interior-estimator-progress {
        padding: 16px;
        border-radius: 12px;
    }

    .interior-estimator-progress-top {
        gap: 10px;
    }

    .interior-estimator-progress-steps {
        grid-template-columns:
            repeat(8, minmax(62px, 1fr));
    }

    .interior-estimator-wizard {
        border-radius: 13px;
    }

    .interior-estimator-step {
        padding:
            23px
            15px
            26px;
    }

    .interior-estimator-step-heading {
        align-items: flex-start;
    }

    .interior-estimator-step-heading h2,
    .interior-estimator-results-heading h2 {
        font-size: 22px;
    }

    .interior-estimator-choice-card,
    .interior-estimator-toggle-card,
    .interior-estimator-accessory-card {
        border-radius: 11px;
    }

    .interior-estimator-bhk-grid {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .interior-estimator-chip span {
        width: 100%;
        min-width: 0;
    }

    .interior-estimator-addon-main {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .interior-estimator-addon-main
    > input {
        grid-row: 1;
    }

    .interior-addon-icon {
        display: none;
    }

    .interior-estimator-addon-detail {
        padding:
            0
            14px
            14px
            46px;
    }

    .interior-estimator-location-panel,
    .interior-estimator-review,
    .interior-estimator-breakdown,
    .interior-estimator-assumptions {
        border-radius: 11px;
    }

    .interior-estimator-review-list > div {
        grid-template-columns:
            minmax(80px, 0.42fr)
            minmax(0, 1fr);
        padding-inline: 14px;
    }

    .interior-estimator-navigation {
        gap: 9px;
        padding: 14px;
    }

    .interior-estimator-navigation button {
        min-height: 42px;
        font-size: 11px;
    }

    .interior-tier-card-header {
        padding-right: 55px;
    }

    .interior-tier-price strong {
        font-size: 17px;
    }

    .interior-estimator-breakdown-list {
        padding-inline: 15px;
    }

    .interior-estimator-breakdown-list > div {
        align-items: flex-start;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .interior-estimator-breakdown-list strong {
        text-align: left;
        white-space: normal;
    }

}


/* ==========================================================
   Interior Estimator Hero Responsive
========================================================== */

@media (max-width: 991px) {

    .interior-estimator-hero {
        padding: 54px 0 68px;
    }

    .interior-estimator-hero::after {
        top: -220px;
        right: -230px;

        width: 470px;
        height: 470px;
    }

    .interior-estimator-hero h1 {
        max-width: 720px;

        font-size:
            clamp(40px, 7vw, 58px);
    }

}


@media (max-width: 767px) {

    .interior-estimator-hero {
        padding: 42px 0 56px;
    }

    .interior-estimator-hero::before {
        background-size: 34px 34px;
    }

    .interior-estimator-hero::after {
        top: -180px;
        right: -250px;

        width: 420px;
        height: 420px;

        opacity: 0.75;
    }

    .interior-estimator-hero .section-eyebrow {
        margin-bottom: 13px;

        padding: 6px 10px;

        font-size: 11px;
    }

    .interior-estimator-hero h1 {
        margin-bottom: 18px;

        font-size:
            clamp(36px, 10vw, 48px);

        line-height: 1.1;
        letter-spacing: -0.035em;
    }

    .interior-estimator-hero-content > p,
    .interior-estimator-hero > .container > p {
        font-size: 16px;
        line-height: 1.72;
    }

    .interior-estimator-hero-actions {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;
    }

    .interior-estimator-hero-primary,
    .interior-estimator-hero-secondary {
        width: 100%;
        min-height: 52px;
    }

    .interior-estimator-hero-points {
        display: grid;
        grid-template-columns: 1fr;

        gap: 11px;

        margin-top: 24px;
    }

}


@media (max-width: 575px) {

    .interior-estimator-hero {
        padding: 36px 0 48px;
    }

    .interior-estimator-hero h1 {
        font-size: 36px;
    }

    .interior-estimator-hero h1 span::after {
        bottom: -3px;
        height: 5px;
    }

    .interior-estimator-hero-content > p,
    .interior-estimator-hero > .container > p {
        margin-bottom: 24px;

        font-size: 15px;
    }

    .interior-estimator-hero-points span {
        font-size: 13px;
    }

}


/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {

    .interior-estimator-page *,
    .interior-estimator-page *::before,
    .interior-estimator-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

input[data-customer-account-field="true"] {
    background-color: #f5f7f6;
    border-color: #d9e2de;
    color: #45534e;
    cursor: not-allowed;
}

input[data-customer-account-field="true"]:focus {
    border-color: #0f6e56;
    box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.1);
}

.estimate-account-prefill-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0 0;
    color: #5f6f68;
    font-size: 0.82rem;
    line-height: 1.5;
}

.estimate-account-prefill-note i {
    color: #0f6e56;
}


/* ============================================================
 * ESTIMATE AUTH REQUIRED
 * ============================================================ */

.estimate-auth-required {
    margin-top: 14px;
    padding: 16px 18px;

    display: flex;
    align-items: center;
    gap: 14px;

    border: 1px solid #f0c9a8;
    border-radius: 12px;

    background: #fff8f2;
}

.estimate-auth-required[hidden] {
    display: none;
}

.estimate-auth-required-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff;
}

.estimate-auth-required-content {
    flex: 1;
}

.estimate-auth-required-content strong {
    display: block;

    margin-bottom: 4px;

    color: #173f35;
    font-size: 15px;
}

.estimate-auth-required-content p {
    margin: 0;

    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.estimate-auth-register-btn {
    margin-top: 10px;

    padding: 9px 16px;

    border: 0;
    border-radius: 7px;

    background: #d96f32;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.estimate-auth-register-btn:hover {
    opacity: 0.92;
}