:root {
    --primary: #000881;
    --success: #007003;
    --dark: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --bg: #f4f6f9;
    --card: #ffffff;
    --soft-blue: #eef2ff;
    --soft-green: #f0fff4;
    --warning-bg: #fff8db;
    --warning-border: #fde68a;
    --warning-text: #6b5600;
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.35;
}

button,
input,
a {
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 900;
    flex: 0 0 auto;
}

.brand h1 {
    font-size: 22px;
    line-height: 1.1;
}

.brand p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 3px;
}

/* MAIN SECTIONS */
.section {
    display: none;
    padding: 24px 0;
}

.section.active {
    display: block;
}

.hero-card,
.wizard-card,
.result-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.hero-card {
    margin-bottom: 20px;
}

.small-label {
    display: inline-flex;
    background: var(--soft-blue);
    color: var(--primary);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 12px;
}

.hero-card h2,
.result-card h2 {
    font-size: 34px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero-card p {
    max-width: 700px;
    color: var(--muted);
    font-size: 16px;
}

/* INCLUDED NOTICE */
.included-notice {
    margin-top: 18px;
    background: #f0fff4;
    border: 1px solid #b7efc5;
    color: #075e16;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

/* GRIDS AND CARDS */
.category-grid,
.option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card,
.option-card {
    background: var(--card);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.18s ease;
    min-width: 0;
}

.category-card:hover,
.option-card:hover {
    transform: translateY(-3px);
}

.category-card.selected,
.option-card.selected {
    border-color: var(--success);
    background: var(--soft-green);
}

.category-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.category-card.disabled:hover {
    transform: none;
}

.category-icon,
.option-media {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: grid;
    place-items: center;
    font-size: 42px;
    margin-bottom: 14px;
    overflow: hidden;
}

.option-media {
    background: #f3f4f6;
    position: relative;
}

.option-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card h3,
.option-card h4 {
    font-size: 19px;
    margin-bottom: 7px;
}

.category-card p,
.option-card p {
    color: var(--muted);
    font-size: 14px;
}

.option-price {
    margin-top: 12px;
    color: var(--success);
    font-weight: 900;
    font-size: 15px;
}

.coming-soon {
    display: inline-block;
    margin-top: 12px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

/* WIZARD TOP */
.wizard-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
}

.wizard-top > div:first-child {
    display: none;
}

.text-btn {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 8px;
}

.step-pill {
    background: var(--primary);
    color: #fff;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    margin-top: 0;
}

.progress-track {
    width: 100%;
    height: 9px;
    background: #eef0f4;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 24px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--success);
    border-radius: 999px;
    transition: 0.2s ease;
}

.question-area h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.question-area > p {
    color: var(--muted);
    margin-bottom: 18px;
}

/* FALLBACK KITCHEN DRAWINGS */
.visual-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-fallback.hide {
    display: none;
}

.kitchen-drawing {
    width: 120px;
    height: 100px;
    position: relative;
}

.kitchen-block {
    position: absolute;
    background: #b97845;
    border: 3px solid #74451f;
    border-radius: 7px;
}

.kitchen-drawing.straight .block-1 {
    width: 120px;
    height: 30px;
    left: 0;
    top: 35px;
}

.kitchen-drawing.lshape .block-1 {
    width: 100px;
    height: 30px;
    left: 0;
    top: 65px;
}

.kitchen-drawing.lshape .block-2 {
    width: 30px;
    height: 95px;
    left: 0;
    top: 0;
}

.kitchen-drawing.ushape .block-1 {
    width: 110px;
    height: 30px;
    left: 5px;
    top: 65px;
}

.kitchen-drawing.ushape .block-2 {
    width: 30px;
    height: 95px;
    left: 5px;
    top: 0;
}

.kitchen-drawing.ushape .block-3 {
    width: 30px;
    height: 95px;
    right: 5px;
    top: 0;
}

/* WIZARD BUTTONS */
.wizard-actions,
.result-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.wizard-actions {
    align-items: center;
    justify-content: space-between;
}

.wizard-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.primary-btn {
    background: var(--primary);
    color: #fff;
}

.secondary-btn {
    background: #e5e7eb;
    color: var(--dark);
}

.whatsapp-btn {
    background: #25D366;
    color: #fff;
}

.live-estimate-box {
    margin-left: auto;
    background: var(--soft-green);
    border: 2px solid var(--success);
    border-radius: 18px;
    padding: 10px 16px;
    min-width: 210px;
    text-align: right;
}

.live-estimate-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 2px;
}

.live-estimate-box strong {
    display: block;
    color: var(--success);
    font-size: 24px;
    font-weight: 900;
}

/* RESULT */
.final-price {
    font-size: 42px;
    font-weight: 900;
    color: var(--success);
    margin: 14px 0 18px;
}

.summary-list {
    border-top: 1px solid var(--line);
    margin-top: 8px;
}

.summary-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.summary-item strong {
    display: block;
    margin-bottom: 3px;
}

.summary-item span {
    color: var(--muted);
}

.summary-price {
    font-weight: 900;
    color: var(--dark);
    white-space: nowrap;
}

.estimate-note {
    margin-top: 18px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
}

.site-footer {
    padding: 24px 0;
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

.noscript-box {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #fee2e2;
    color: #7f1d1d;
    padding: 14px;
    border-radius: 12px;
    z-index: 99;
    text-align: center;
    font-weight: 900;
}

/* DIMENSION SECTION */
.dimension-wrapper {
    display: block;
}

.dimension-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.size-choice-box {
    background: var(--soft-blue);
    border-radius: 16px;
    padding: 14px;
}

.size-choice-box h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.size-choice-box p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.size-choice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-choice-btn {
    border: 2px solid transparent;
    background: #ffffff;
    color: var(--dark);
    border-radius: 14px;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.size-choice-btn.selected {
    border-color: var(--success);
    background: var(--soft-green);
    color: var(--success);
}

.size-choice-btn strong {
    display: block;
    font-size: 16px;
    line-height: 1.1;
}

.size-choice-btn span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
}

.size-choice-btn.selected span {
    color: var(--success);
}

.size-help-text {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
}

.shape-preview-box {
    background: #f3f4f6;
    border-radius: 18px;
    height: 245px;
    padding: 20px 0 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    margin-bottom: 0;
    overflow: hidden;
}

.shape-guide {
    position: relative;
    width: 300px;
    height: 185px;
}

.guide-counter {
    position: absolute;
    background: #bd7b42;
    border: 5px solid #73451f;
    border-radius: 12px;
}

.guide-line {
    position: absolute;
    height: 4px;
    background: #111;
}

.guide-vline {
    position: absolute;
    width: 4px;
    background: #111;
}

.guide-label {
    position: absolute;
    color: #000;
    font-size: 34px;
    font-weight: 900;
}

.guide-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #73451f;
    border-radius: 50%;
    left: 144px;
    top: 18px;
}

/* Straight guide */
.straight-counter {
    width: 160px;
    height: 42px;
    left: 70px;
    top: 62px;
}

.straight-line {
    width: 160px;
    left: 70px;
    top: 116px;
}

.straight-label {
    left: 143px;
    top: 118px;
}

/* L guide */
.l-counter-a {
    width: 42px;
    height: 130px;
    left: 95px;
    top: 15px;
}

.l-counter-b {
    width: 115px;
    height: 42px;
    left: 128px;
    top: 103px;
}

.l-line-a {
    height: 130px;
    left: 72px;
    top: 15px;
}

.l-label-a {
    left: 35px;
    top: 56px;
}

.l-line-b {
    width: 160px;
    left: 95px;
    top: 154px;
}

.l-label-b {
    left: 165px;
    top: 145px;
}

/* U guide */
.u-counter-a {
    width: 42px;
    height: 130px;
    left: 70px;
    top: 15px;
}

.u-counter-b {
    width: 122px;
    height: 42px;
    left: 105px;
    top: 103px;
}

.u-counter-c {
    width: 42px;
    height: 130px;
    left: 220px;
    top: 15px;
}

.u-line-a {
    height: 130px;
    left: 48px;
    top: 15px;
}

.u-label-a {
    left: 12px;
    top: 56px;
}

.u-line-c {
    height: 130px;
    left: 278px;
    top: 15px;
}

.u-label-c {
    left: 288px;
    top: 56px;
}

.u-line-b {
    width: 190px;
    left: 70px;
    top: 154px;
}

.u-label-b {
    left: 157px;
    top: 145px;
}

.custom-length-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.custom-length-panel.show {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 14px;
}

.custom-length-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 10px;
}

.length-input-grid,
.floor-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

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

.length-input-card,
.floor-input-card {
    display: block;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px;
}

.length-input-card span,
.floor-input-card span {
    display: block;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
}

.length-input-card input,
.floor-input-card input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px;
    font-size: 16px;
    font-weight: 800;
    outline: none;
}

.length-input-card input:focus,
.floor-input-card input:focus {
    border-color: var(--primary);
}

/* FLOORING INLINE */
.flooring-wrapper {
    display: block;
}

.flooring-wrapper .option-grid {
    margin-bottom: 14px;
}

.floor-inline-box {
    background: var(--soft-blue);
    border-radius: 18px;
    padding: 16px;
    margin-top: 14px;
}

.floor-inline-box h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.floor-inline-box p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 700;
}

.floor-help-box {
    margin-top: 12px;
    background: var(--soft-blue);
    border-radius: 14px;
    padding: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

/* TABLET */
@media (max-width: 900px) {
    .category-grid,
    .option-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card h2,
    .result-card h2 {
        font-size: 29px;
    }
}

/* MOBILE COMPACT */
@media (max-width: 640px) {
    body {
        background: #f6f7fb;
    }

    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .header-inner {
        padding: 8px 0;
    }

    .brand {
        gap: 9px;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 20px;
    }

    .brand h1 {
        font-size: 17px;
    }

    .brand p {
        font-size: 11px;
        line-height: 1.15;
    }

    .included-notice {
        margin-top: 10px;
        font-size: 11px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .section {
        padding: 10px 0;
    }

    .hero-card,
    .wizard-card,
    .result-card {
        padding: 12px;
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .small-label {
        font-size: 10px;
        padding: 5px 8px;
        margin-bottom: 7px;
    }

    .hero-card {
        margin-bottom: 10px;
    }

    .hero-card h2,
    .result-card h2 {
        font-size: 21px;
        line-height: 1.12;
        margin-bottom: 7px;
    }

    .hero-card p {
        font-size: 12.5px;
        line-height: 1.25;
    }

    .wizard-top {
        display: flex;
        flex-direction: row;
        margin-bottom: 8px;
    }

    .step-pill {
        padding: 6px 10px;
        font-size: 11px;
        margin-top: 0;
    }

    .progress-track {
        height: 7px;
        margin-bottom: 12px;
    }

    .question-area h3 {
        font-size: 19px;
        line-height: 1.15;
        margin-bottom: 4px;
    }

    .question-area > p {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 9px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }

    .option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .category-card,
    .option-card {
        padding: 7px;
        border-radius: 14px;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    }

    .category-icon {
        height: 62px;
        border-radius: 11px;
        font-size: 24px;
        margin-bottom: 6px;
    }

    .option-media {
        height: 48px;
        border-radius: 11px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .category-card h3,
    .option-card h4 {
        font-size: 12px;
        line-height: 1.1;
        margin-bottom: 3px;
    }

    .category-card p,
    .option-card p {
        font-size: 9.5px;
        line-height: 1.18;
    }

    .option-price {
        margin-top: 5px;
        font-size: 10.5px;
        line-height: 1.05;
    }

    .coming-soon {
        margin-top: 5px;
        font-size: 8.5px;
        padding: 3px 6px;
    }

    .kitchen-drawing {
        width: 58px;
        height: 48px;
    }

    .kitchen-block {
        border-width: 2px;
        border-radius: 5px;
    }

    .kitchen-drawing.straight .block-1 {
        width: 56px;
        height: 14px;
        left: 1px;
        top: 18px;
    }

    .kitchen-drawing.lshape .block-1 {
        width: 46px;
        height: 14px;
        left: 3px;
        top: 31px;
    }

    .kitchen-drawing.lshape .block-2 {
        width: 14px;
        height: 44px;
        left: 3px;
        top: 2px;
    }

    .kitchen-drawing.ushape .block-1 {
        width: 48px;
        height: 14px;
        left: 5px;
        top: 31px;
    }

    .kitchen-drawing.ushape .block-2 {
        width: 14px;
        height: 44px;
        left: 5px;
        top: 2px;
    }

    .kitchen-drawing.ushape .block-3 {
        width: 14px;
        height: 44px;
        right: 5px;
        top: 2px;
    }

    .dimension-box {
        padding: 8px;
        border-radius: 15px;
    }

    .size-choice-box {
        padding: 8px;
        border-radius: 13px;
    }

    .size-choice-box h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .size-choice-box p {
        font-size: 10.5px;
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .size-choice-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .size-choice-btn {
        padding: 8px 6px;
        font-size: 11px;
        border-radius: 11px;
    }

    .size-choice-btn strong {
        font-size: 12px;
    }

    .size-choice-btn span {
        font-size: 9.5px;
        margin-top: 2px;
    }

    .size-help-text {
        font-size: 10px;
        margin-top: 6px;
    }

    .shape-preview-box {
        height: 105px;
        padding: 5px 0 14px;
        margin-top: 8px;
        border-radius: 13px;
    }

    .shape-guide {
        transform: scale(0.50);
        height: 185px;
    }

    .custom-length-panel.show {
        margin-top: 8px;
        max-height: 220px;
    }

    .custom-length-title {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .length-input-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .floor-input-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .length-input-card,
    .floor-input-card {
        padding: 7px;
        border-radius: 12px;
    }

    .length-input-card span,
    .floor-input-card span {
        font-size: 10.5px;
        margin-bottom: 4px;
    }

    .length-input-card input,
    .floor-input-card input {
        padding: 8px;
        font-size: 13px;
        border-radius: 9px;
    }

    .flooring-wrapper .option-grid {
        margin-bottom: 8px;
    }

    .floor-inline-box {
        padding: 8px;
        border-radius: 13px;
        margin-top: 8px;
    }

    .floor-inline-box h4 {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .floor-inline-box p {
        font-size: 10.5px;
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .wizard-actions {
        position: sticky;
        bottom: 0;
        z-index: 40;
        background: rgba(246, 247, 251, 0.96);
        backdrop-filter: blur(8px);
        margin: 10px -12px -12px;
        padding: 8px 12px;
        border-top: 1px solid var(--line);
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 7px;
    }

    .wizard-buttons {
        display: flex;
        gap: 7px;
        flex-wrap: nowrap;
        width: auto;
    }

    .btn {
        border-radius: 11px;
        padding: 9px 11px;
        font-size: 12px;
        white-space: nowrap;
    }

    .live-estimate-box {
        min-width: 112px;
        margin-left: 0;
        padding: 7px 9px;
        border-radius: 13px;
        text-align: right;
    }

    .live-estimate-box span {
        font-size: 9px;
        margin-bottom: 0;
    }

    .live-estimate-box strong {
        font-size: 14px;
        line-height: 1.1;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .btn {
        width: 100%;
    }

    .final-price {
        font-size: 28px;
    }

    .summary-item {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 11px 0;
    }

    .estimate-note {
        font-size: 12px;
        padding: 11px;
    }

    .site-footer {
        padding: 12px 0;
        font-size: 11px;
    }
}

/* VERY SMALL PHONES */
@media (max-width: 380px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-card,
    .wizard-card,
    .result-card {
        padding: 10px;
    }

    .option-grid,
    .category-grid {
        gap: 5px;
    }

    .option-card,
    .category-card {
        padding: 6px;
    }

    .option-media {
        height: 42px;
    }

    .category-icon {
        height: 55px;
    }

    .option-card h4,
    .category-card h3 {
        font-size: 11px;
    }

    .option-card p,
    .category-card p {
        font-size: 8.8px;
    }

    .option-price {
        font-size: 9.8px;
    }

    .btn {
        padding: 8px 9px;
        font-size: 11px;
    }

    .live-estimate-box {
        min-width: 102px;
    }

    .live-estimate-box strong {
        font-size: 13px;
    }

    .shape-guide {
        transform: scale(0.46);
    }
}

/* FINAL UI/UX HEADER */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    text-decoration: none;
    color: var(--dark);
    min-width: 0;
}

.brand-logo-img {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    flex: 0 0 auto;
}

.brand-text {
    min-width: 0;
}

.header-phone-btn {
    flex: 0 0 auto;
    background: var(--success);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 112, 3, 0.18);
}

.header-phone-btn span {
    font-size: 16px;
}

.header-phone-btn strong {
    font-size: 14px;
}

/* BETTER OPTION CARDS AFTER REMOVING GREY BOXES */
.option-card:not(:has(.option-media)) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

/* MOBILE ONE-SCREEN COMPACT OVERRIDES */
@media (max-width: 640px) {
    html,
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-inner {
        padding: 7px 0;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo-img,
    .brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 18px;
    }

    .brand h1 {
        font-size: 15px;
        line-height: 1.05;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand p {
        font-size: 10px;
        line-height: 1.1;
        margin-top: 2px;
    }

    .header-phone-btn {
        padding: 9px 12px;
        border-radius: 999px;
        gap: 5px;
    }

    .header-phone-btn span {
        font-size: 14px;
    }

    .header-phone-btn strong {
        font-size: 12px;
    }

    .included-notice {
        display: none;
    }

    .section {
        padding: 8px 0;
    }

    .wizard-card {
        padding: 10px;
        border-radius: 18px;
        min-height: calc(100dvh - 70px);
        display: flex;
        flex-direction: column;
    }

    .wizard-top {
        margin-bottom: 7px;
    }

    .step-pill {
        padding: 6px 10px;
        font-size: 11px;
    }

    .progress-track {
        height: 6px;
        margin-bottom: 10px;
    }

    .question-area {
        flex: 1;
        min-height: 0;
    }

    .question-area h3 {
        font-size: 18px;
        line-height: 1.12;
        margin-bottom: 3px;
    }

    .question-area > p {
        font-size: 11.5px;
        line-height: 1.2;
        margin-bottom: 8px;
    }

    .option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .option-card {
        padding: 9px;
        border-radius: 14px;
        min-height: 105px;
        box-shadow: 0 5px 13px rgba(15, 23, 42, 0.05);
    }

    .option-card:not(:has(.option-media)) {
        min-height: 98px;
    }

    .option-media {
        height: 48px;
        margin-bottom: 6px;
    }

    .option-card h4 {
        font-size: 12px;
        line-height: 1.12;
        margin-bottom: 4px;
    }

    .option-card p {
        font-size: 9.5px;
        line-height: 1.18;
    }

    .option-price {
        font-size: 10.5px;
        margin-top: 5px;
    }

    .wizard-actions {
        margin: 8px -10px -10px;
        padding: 8px 10px;
        gap: 7px;
    }

    .btn {
        padding: 9px 11px;
        font-size: 12px;
        border-radius: 11px;
    }

    .live-estimate-box {
        min-width: 108px;
        padding: 7px 9px;
        border-radius: 13px;
    }

    .live-estimate-box span {
        font-size: 9px;
    }

    .live-estimate-box strong {
        font-size: 13px;
    }

    .site-footer {
        display: none;
    }
}

/* VERY SMALL PHONE */
@media (max-width: 380px) {
    .brand h1 {
        font-size: 14px;
    }

    .header-phone-btn strong {
        display: none;
    }

    .header-phone-btn {
        padding: 9px 10px;
    }

    .option-card {
        min-height: 92px;
        padding: 7px;
    }

    .option-card:not(:has(.option-media)) {
        min-height: 86px;
    }

    .option-card h4 {
        font-size: 11px;
    }

    .option-card p {
        font-size: 8.8px;
    }

    .option-price {
        font-size: 9.5px;
    }
}

/* Website popup instead of browser alert */
.site-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.site-popup-overlay.show {
    display: flex;
}

.site-popup-box {
    width: min(360px, 100%);
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    animation: popupIn 0.18s ease;
}

.site-popup-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: var(--primary);
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    font-size: 24px;
    font-weight: 900;
}

.site-popup-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--dark);
}

.site-popup-box p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.4;
}

.site-popup-box button {
    border: none;
    background: var(--primary);
    color: #ffffff;
    border-radius: 14px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

@keyframes popupIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .site-popup-box {
        border-radius: 20px;
        padding: 22px 18px;
    }

    .site-popup-box h3 {
        font-size: 19px;
    }

    .site-popup-box p {
        font-size: 14px;
    }
}

/* Estimate / quotation screen */
.estimate-sheet-screen {
    max-width: 980px;
    margin: 0 auto;
}

.estimate-screen-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 16px;
}

.estimate-company {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.estimate-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.estimate-company h2 {
    font-size: 26px;
    line-height: 1.1;
    margin: 0 0 4px;
}

.estimate-company p {
    color: var(--muted);
    font-weight: 700;
}

.estimate-total-box {
    background: var(--soft-green);
    border: 2px solid var(--success);
    border-radius: 18px;
    padding: 12px 18px;
    text-align: right;
    min-width: 210px;
}

.estimate-total-box span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.estimate-total-box strong {
    display: block;
    color: var(--success);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
}

.estimate-info-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.estimate-info-strip div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}

.estimate-info-strip strong {
    display: block;
    font-size: 13px;
    margin-bottom: 3px;
}

.estimate-info-strip span {
    color: var(--muted);
    font-size: 14px;
}

.estimate-section-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
}

.estimate-summary-list {
    border-top: 1px solid var(--line);
}

.estimate-summary-list .summary-item {
    grid-template-columns: 1fr 130px;
    align-items: start;
}

.estimate-summary-list .summary-item span {
    font-size: 14px;
    line-height: 1.35;
}

/* Hidden A4 PDF template */
.pdf-estimate {
    position: fixed;
    left: -99999px;
    top: 0;
    width: 794px;
    min-height: 1123px;
    background: #ffffff;
    color: #111827;
    padding: 34px;
    font-family: Arial, Helvetica, sans-serif;
}

.pdf-page {
    width: 100%;
    min-height: 1055px;
    border: 1px solid #e5e7eb;
    padding: 28px;
    background: #ffffff;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    border-bottom: 2px solid #111827;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.pdf-company {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pdf-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.pdf-company h1 {
    font-size: 25px;
    line-height: 1.1;
    margin: 0 0 5px;
}

.pdf-company p {
    font-size: 12px;
    color: #667085;
    margin: 0;
}

.pdf-meta {
    text-align: right;
    font-size: 12px;
    color: #475467;
}

.pdf-meta strong {
    display: block;
    color: #111827;
    font-size: 15px;
    margin-bottom: 4px;
}

.pdf-total {
    background: #f0fff4;
    border: 2px solid #007003;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-total span {
    font-size: 13px;
    font-weight: 900;
    color: #667085;
}

.pdf-total strong {
    font-size: 27px;
    color: #007003;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.pdf-table th {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 9px;
    font-size: 12px;
    text-align: left;
}

.pdf-table td {
    border: 1px solid #e5e7eb;
    padding: 8px 9px;
    font-size: 11.5px;
    vertical-align: top;
}

.pdf-table td:last-child,
.pdf-table th:last-child {
    text-align: right;
    white-space: nowrap;
    width: 100px;
}

.pdf-item-title {
    font-weight: 900;
    margin-bottom: 2px;
}

.pdf-item-detail {
    color: #475467;
    line-height: 1.35;
}

.pdf-included {
    margin-top: 16px;
    background: #f0fff4;
    border: 1px solid #b7efc5;
    color: #075e16;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 800;
}

.pdf-note {
    margin-top: 12px;
    background: #fff8db;
    border: 1px solid #fde68a;
    color: #6b5600;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.35;
}

.pdf-footer {
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    text-align: center;
    font-size: 11px;
    color: #667085;
}

/* Mobile result */
@media (max-width: 640px) {
    .estimate-screen-header {
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .estimate-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .estimate-company {
        gap: 9px;
    }

    .estimate-company h2 {
        font-size: 18px;
    }

    .estimate-company p {
        font-size: 11px;
    }

    .estimate-total-box {
        min-width: 125px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .estimate-total-box span {
        font-size: 10px;
    }

    .estimate-total-box strong {
        font-size: 17px;
    }

    .estimate-info-strip {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
        margin-bottom: 12px;
    }

    .estimate-info-strip div {
        padding: 8px;
        border-radius: 11px;
    }

    .estimate-info-strip strong {
        font-size: 10.5px;
    }

    .estimate-info-strip span {
        font-size: 11px;
    }

    .estimate-section-title {
        font-size: 15px;
    }

    .estimate-summary-list .summary-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .estimate-summary-list .summary-item span {
        font-size: 11.5px;
    }
}

/* Better PDF header */
.pdf-header {
    display: grid;
    grid-template-columns: 90px 1fr 170px;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #111827;
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.pdf-logo-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.pdf-title-box {
    text-align: center;
}

.pdf-title-box h1 {
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 6px;
    color: #111827;
}

.pdf-title-box p {
    font-size: 11.5px;
    color: #475467;
    margin: 0;
    line-height: 1.35;
}

.pdf-meta {
    text-align: right;
    font-size: 12px;
    color: #475467;
}

.pdf-meta strong {
    display: block;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}