:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --ui-gap: 12px;
    --accent: #fbf100;
    --accent-hover: #e3db00;
}

@supports (padding: constant(safe-area-inset-bottom)) {
    :root {
        --safe-top: constant(safe-area-inset-top);
        --safe-right: constant(safe-area-inset-right);
        --safe-bottom: constant(safe-area-inset-bottom);
        --safe-left: constant(safe-area-inset-left);
    }
}

.container-fluid.sticky-top {
    padding-top: var(--safe-top);
}

.section-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle,
.small-text {
    color: #6c757d;
}

.small-text {
    font-size: 0.9rem;
}

.quiz-card,
.card-soft {
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, .08);
}

.quiz {
    min-height: 600px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: quizFadeIn 160ms ease-out;
}

html.quiz-loader-restoring #quizForm,
html.quiz-loader-restoring #quizProgressHeader {
    display: none !important;
}

.quiz-final-loader {
    min-height: 500px;
    padding: 48px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.quiz-final-loader.d-none {
    display: none;
}

.quiz-final-loader-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
}

.quiz-final-loader-circle svg {
    transform: rotate(-90deg);
}

.quiz-final-loader-bg,
.quiz-final-loader-bar {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
}

.quiz-final-loader-bg {
    stroke: #eef1f4;
}

.quiz-final-loader-bar {
    stroke: #0d6efd;
    transition: stroke-dashoffset 0.25s ease;
}

.quiz-final-loader-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 2rem;
    font-weight: 900;
}

.quiz-final-loader-title {
    color: #111827;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 10px;
}

.quiz-final-loader-status {
    min-height: 28px;
    max-width: 480px;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.45;
    transition: opacity 0.25s ease;
}

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

.quiz-description {
    color: #6c757d;
}

.quiz-description ol {
    padding-left: 1.2rem;
}

.quiz-info-promo {
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    /* min-height: 430px; */
}

.quiz-info-copy {
    max-width: 640px;
}

.quiz-info-title {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 18px;
}

.quiz-info-description {
    font-size: 1.05rem;
    line-height: 1.6;
}

.quiz-info-description p:last-child,
.quiz-info-description ol:last-child {
    margin-bottom: 0;
}

.quiz-info-media {
    max-height: 320px;
    background: #f8f9fa;
}

.materials-offer {
    color: #111827;
}

.materials-offer-hero {
    max-width: 760px;
    margin-bottom: 22px;
}

.materials-offer-eyebrow {
    color: #0d6efd;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.materials-offer-title {
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    line-height: 1.12;
    font-weight: 900;
    margin-bottom: 12px;
}

.materials-offer-lead {
    color: #495057;
    font-size: 1.04rem;
    line-height: 1.58;
    margin: 0;
}

.materials-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.materials-offer-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #fff;
}

.materials-offer-card:nth-child(4) {
    border-color: #fdba74;
    background: #fff8ef;
}

.materials-offer-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f6ff;
    color: #0d6efd;
    font-weight: 900;
    font-size: 1.05rem;
}

.materials-offer-card:nth-child(4) .materials-offer-number {
    background: #f59e0b;
    color: #fff;
}

.materials-offer-card h3,
.materials-offer-supplies h3 {
    color: #111827;
    font-size: 1rem;
    line-height: 1.28;
    font-weight: 900;
    margin: 0 0 6px;
}

.materials-offer-card p,
.materials-offer-supplies p {
    color: #495057;
    font-size: 0.94rem;
    line-height: 1.45;
    margin: 0;
}

.materials-offer-supplies {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #f8f9fa;
}

.materials-offer-supplies ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.materials-offer-supplies li {
    position: relative;
    padding-left: 18px;
    color: #111827;
    font-size: 0.92rem;
    line-height: 1.35;
}

.materials-offer-supplies li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0d6efd;
}

.price-monitoring {
    color: #111827;
}

.price-monitoring-copy {
    max-width: 760px;
    margin-bottom: 20px;
}

.price-monitoring-eyebrow {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.price-monitoring-title {
    font-size: clamp(1.65rem, 2.7vw, 2.25rem);
    line-height: 1.12;
    font-weight: 900;
    margin: 0 0 10px;
}

.price-monitoring-lead {
    color: #495057;
    font-size: 0.98rem;
    line-height: 1.48;
    margin: 0;
}

.price-monitoring-date {
    color: #94a3b8;
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 12px 0 0;
}

.price-compare-panel-head p {
    color: #64748b;
}

.price-compare-panel {
    padding: 12px;
    border: 1px solid #d8dee5;
    border-radius: var(--bs-border-radius);
    background: #fff;
}

.price-compare-panel-head {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(250px, 0.9fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 8px;
    padding: 0 6px 0 10px;
}

.price-compare-panel-head h3 {
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    margin: 0;
}

.price-compare-panel-head p {
    font-size: 0.82rem;
    line-height: 1.32;
    margin: 4px 0 0;
}

.price-compare-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    gap: 5px;
    width: 100%;
}

.price-compare-legend span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px;
    border-radius: var(--bs-border-radius);
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.price-compare-legend img {
    display: block;
    width: auto;
    max-width: 74px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
}

.price-compare-legend span.is-best {
    background: #ccfbf1;
    color: #0f766e;
}

.price-compare-legend span.is-best img {
    max-width: 28px;
    max-height: 28px;
}

.price-compare-list {
    display: grid;
    gap: 4px;
}

.price-compare-group-label {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    margin: 4px 0 2px;
}

.price-compare-material-label {
    margin-top: 10px;
}

.price-compare-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(250px, 0.9fr);
    gap: 10px;
    align-items: center;
    min-height: 38px;
    padding: 5px 6px 5px 10px;
    border-radius: var(--bs-border-radius);
    background: #f8fafc;
}

.price-compare-row-material {
    background: #fbfdff;
}

.price-compare-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 800;
}

.price-compare-name i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef2f7;
    color: #64748b;
    font-size: 0.82rem;
}

.price-compare-row-material .price-compare-name {
    padding-left: 12px;
    color: #334155;
    font-weight: 760;
}

.price-compare-row-material .price-compare-name::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 1px;
    background: #cbd5e1;
}

.price-compare-row-material .price-compare-name i {
    background: #f1f5f9;
    color: #0d9488;
}

.price-compare-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    gap: 5px;
}

.price-compare-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 4px 6px;
    border-radius: var(--bs-border-radius);
    background: #fff;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

.price-compare-chip.is-best {
    background: #ccfbf1;
    color: #0f766e;
    font-weight: 900;
}

.price-compare-total {
    margin-top: 4px;
    background: #fff7ed;
}

.price-compare-total .price-compare-name span {
    display: block;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 900;
}

.price-compare-total .price-compare-name em {
    display: block;
    color: #ea580c;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    margin-top: 2px;
}

.price-compare-total .price-compare-chip {
    color: #111827;
    font-size: 0.88rem;
    font-weight: 900;
}

.price-compare-total .price-compare-chip.is-best {
    background: #0d9488;
    color: #fff;
}

.finish-materials {
    color: #111827;
}

.finish-materials-copy {
    max-width: 760px;
    margin-bottom: 20px;
}

.finish-materials-eyebrow {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.finish-materials-title {
    font-size: clamp(1.65rem, 2.7vw, 2.25rem);
    line-height: 1.12;
    font-weight: 900;
    margin: 0 0 10px;
}

.finish-materials-lead {
    color: #495057;
    font-size: 0.98rem;
    line-height: 1.48;
    margin: 0;
}

.finish-materials-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
    border: 1px solid #d8dee5;
    border-radius: var(--bs-border-radius);
    background: #fff;
    margin-bottom: 12px;
}

.finish-materials-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-content: start;
    padding: 4px 12px 4px 4px;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    background: transparent;
}

.finish-materials-card:last-child {
    border-right: 0;
    padding-right: 4px;
}

.finish-materials-designer {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: var(--bs-border-radius);
    background: #fff7ed;
    margin-bottom: 12px;
}

.finish-materials-card i,
.finish-materials-designer i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0d9488;
    font-size: 1rem;
}

.finish-materials-designer i {
    width: 46px;
    height: 46px;
    background: #ffedd5;
    color: #ea580c;
    font-size: 1.22rem;
}

.finish-materials-card h3,
.finish-materials-designer h3,
.finish-materials-list h3 {
    color: #111827;
    font-size: 0.98rem;
    line-height: 1.25;
    font-weight: 900;
    margin: 0 0 6px;
}

.finish-materials-card p,
.finish-materials-designer p,
.finish-materials-list p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.48;
    margin: 0;
}

.finish-materials-list {
    display: grid;
    grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.38fr);
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid #d8dee5;
    border-radius: var(--bs-border-radius);
    background: #f8fafc;
}

.finish-materials-list ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.finish-materials-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 800;
}

.finish-materials-list li::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d9488;
}

.geo-map {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #f8f9fa;
}

.geo-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.review-card {
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #fff;
    padding: 12px;
}

.review-video {
    position: relative;
    width: 100%;
    padding-top: 177.78%;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    background: #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.review-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.review-body {
    height: 100%;
    padding: 22px 18px;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f3f6ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.review-name {
    color: #111827;
    font-weight: 800;
    line-height: 1.2;
}

.review-meta {
    color: #6c757d;
    font-size: 0.92rem;
}

.stars {
    color: #f5b301;
    letter-spacing: 1px;
    font-weight: 800;
}

.review-text {
    color: #111827;
    font-size: 1rem;
    line-height: 1.55;
}

.review-watch-note {
    color: #6c757d;
    font-size: 0.92rem;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
}

.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.option-card,
.checkbox-card {
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
    background: #ffffff;
    padding: 18px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s;
    min-height: 76px;
}

.checkbox-card-with-stepper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    cursor: default;
}

.checkbox-card-with-stepper:has(.checkbox-card-stepper.d-none) {
    grid-template-columns: minmax(0, 1fr) auto;
}

.checkbox-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    cursor: pointer;
}

.checkbox-card-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.checkbox-card-check .checkbox-square {
    margin-left: 0;
}

.checkbox-card-stepper {
    flex: 0 0 auto;
}

.checkbox-card-stepper .number-stepper-control {
    grid-template-columns: 38px 42px 38px;
    gap: 8px;
}

.checkbox-card-stepper .number-stepper-btn {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
}

.checkbox-card-stepper .number-stepper-input {
    width: 42px;
    font-size: 1.28rem;
}

.conditional-upload-box {
    border: 1px dashed #cfd6dd;
    border-radius: var(--bs-border-radius);
    background: #f8f9fa;
    padding: 16px;
}

.conditional-upload-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.45;
}

.option-card:hover,
.checkbox-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.option-icon {
    font-size: 28px;
    line-height: 1;
    margin-right: 12px;
    padding-right: 8px;
}

.option-icon img {
    object-fit: contain;
}

.option-title {
    font-weight: 600;
    margin-bottom: 2px;
}

.option-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.option-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ced4da;
    position: relative;
    flex-shrink: 0;
    margin-left: 12px;
}

.option-circle::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #0d6efd;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.btn-check:checked + .option-card,
.btn-check:checked + .checkbox-card {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.25);
    background: #f3f6ff;
}

.btn-check:checked + .option-card .option-circle {
    border-color: #0d6efd;
}

.btn-check:checked + .option-card .option-circle::after {
    opacity: 1;
}

.checkbox-square {
    width: 22px;
    height: 22px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: 12px;
    background: #fff;
    color: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.checkbox-card-icon {
    opacity: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
}

.btn-check:checked + .checkbox-card .checkbox-square {
    border-color: #0d6efd;
    background: #0d6efd;
    box-shadow: 0 0 0 0.14rem rgba(13, 110, 253, 0.14);
}

.btn-check:checked + .checkbox-card .checkbox-card-icon {
    opacity: 1;
}

.upload-box {
    /* border: 1px dashed #ced4da;
    border-radius: var(--bs-border-radius);
    padding: 18px; */
    background: #fff;
}

.quiz-upload-progress {
    margin-top: 10px;
}

.quiz-upload-progress-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e9ecef;
}

.quiz-upload-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #6c757d;
    transition: width 0.18s ease;
}

.quiz-upload-progress-label {
    margin-top: 6px;
    color: #6c757d;
    font-size: 0.86rem;
    font-weight: 700;
    text-align: right;
}

.quiz-upload-progress.is-error .quiz-upload-progress-fill {
    background: #dc3545;
}

.quiz-upload-progress.is-error .quiz-upload-progress-label {
    color: #dc3545;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.photo-preview-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #f8f9fa;
}

.photo-preview-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview-replace {
    position: absolute;
    inset-inline: 6px;
    bottom: 6px;
    min-height: 30px;
    border: 0;
    border-radius: var(--bs-border-radius);
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.photo-preview-count {
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.uploaded-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #fff;
}

.uploaded-file-name {
    flex: 1 1 auto;
    min-width: 0;
    color: #111827;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.uploaded-video-preview {
    width: 88px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    background: #111827;
    flex: 0 0 auto;
}

.uploaded-video-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.roomplanner-upload {
    display: block;
}

.roomplanner-draw-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 340px;
    padding: 0;
    overflow: hidden;
    border: 1px dashed #cbd5e1;
    border-radius: var(--bs-border-radius);
    background: #f8fafc;
    color: #0d6efd;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.roomplanner-draw-card:hover,
.roomplanner-draw-card:focus-visible {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
    outline: none;
}

.roomplanner-draw-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: var(--bs-border-radius);
    background: #0d6efd;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.roomplanner-preview {
    position: absolute;
    inset: 0;
    display: none;
}

.roomplanner-draw-card.has-preview {
    border-style: solid;
    background: #fff;
}

.roomplanner-draw-card.has-preview .roomplanner-preview {
    display: block;
}

.roomplanner-draw-card.has-preview .roomplanner-draw-empty {
    display: none;
}

.roomplanner-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8fafc;
}

.roomplanner-draw-edit {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    font-size: 1.15rem;
}

.roomplanner-draw-card.has-preview .roomplanner-draw-edit {
    display: inline-flex;
}

@media (max-width: 575.98px) {
    .roomplanner-draw-card {
        min-height: 240px;
    }

    .roomplanner-draw-edit {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

.roomplanner-modal .modal-content {
    min-height: 100vh;
}

.roomplanner-modal .modal-body {
    min-height: 0;
}

.roomplanner-frame {
    display: block;
    width: 100%;
    height: calc(100vh - 57px);
    border: 0;
    background: #f6f7fb;
}

.quiz-range {
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
    padding: 18px;
    background: #fff;
}

.quiz-budget-range {
    padding: 22px;
}

.budget-demand-card {
    margin-bottom: 24px;
}

.budget-demand-copy {
    max-width: 720px;
}

.budget-demand-title {
    color: #b45309;
    font-weight: 900;
    font-size: 1.05rem;
    line-height: 1.25;
    margin-bottom: 6px;
}

.budget-demand-copy p {
    color: #495057;
    margin: 0;
    line-height: 1.45;
}

.budget-people {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.budget-person {
    position: relative;
    display: block;
    width: 18px;
    height: 28px;
    opacity: 0.38;
}

.budget-person::before,
.budget-person::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
}

.budget-person::before {
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.budget-person::after {
    bottom: 0;
    width: 16px;
    height: 15px;
    border-radius: 8px 8px 4px 4px;
}

.budget-person.is-active {
    opacity: 1;
}

.budget-value-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.budget-value-row strong {
    color: #111827;
    font-size: 1.85rem;
    line-height: 1;
    font-weight: 900;
}

.budget-range-limits {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
    color: #6c757d;
    font-size: 0.84rem;
    white-space: nowrap;
}

.budget-range-wrap {
    position: relative;
    padding-top: 28px;
}

.budget-default-marker {
    position: absolute;
    top: 0;
    left: calc(12px + (100% - 24px) * var(--budget-default-ratio));
    transform: translateX(-50%);
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
}

.budget-default-marker::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    width: 2px;
    height: 18px;
    border-radius: 999px;
    background: #adb5bd;
    transform: translateX(-50%);
}

.budget-mid-marker {
    position: absolute;
    left: calc(12px + (100% - 24px) * 0.5);
    bottom: 10px;
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: #adb5bd;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 3;
}

.budget-range-input {
    --budget-progress: 0%;
    position: relative;
    z-index: 2;
    height: 32px;
    padding: 0;
    background: transparent;
}

.budget-range-input::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #f59e0b var(--budget-progress), #e9ecef var(--budget-progress), #e9ecef 100%);
}

.budget-range-input::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #e9ecef;
}

.budget-range-input::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: #f59e0b;
}

.budget-range-input::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.36);
    appearance: none;
}

.budget-range-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.36);
}

.number-stepper-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 108px;
    padding: 24px 26px;
    border: 1px solid #d7dde3;
    border-radius: var(--bs-border-radius);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.number-stepper-card:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.14);
}

.number-stepper-copy {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

.number-stepper-title {
    display: block;
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.22;
    font-weight: 800;
}

.number-stepper-subtitle {
    display: block;
    margin-top: 4px;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.35;
}

.number-stepper-control {
    display: grid;
    grid-template-columns: 44px 54px 44px;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.number-stepper-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #cfd6dd;
    border-radius: var(--bs-border-radius);
    background: #fff;
    color: #111827;
    font-size: 1.55rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.number-stepper-btn:hover,
.number-stepper-btn:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.18rem rgba(13, 110, 253, 0.14);
}

.number-stepper-input {
    width: 54px;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 1.45rem;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    appearance: textfield;
    padding: 0;
}

.number-stepper-input:focus {
    outline: 0;
}

.number-stepper-input::-webkit-outer-spin-button,
.number-stepper-input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.client-fields {
    max-width: 640px;
}

.client-privacy-note {
    max-width: 640px;
    margin: 0 0 22px;
    color: #7a838d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.client-field {
    margin-bottom: 22px;
}

.client-field-wide {
    width: 100%;
}

.client-field-date {
    max-width: 260px;
}

.client-field-label {
    display: block;
    margin-bottom: 10px;
    color: #30343b;
    font-size: 1rem;
    font-weight: 500;
}

.client-fields .form-control {
    border-color: #d8dee5;
    border-radius: var(--bs-border-radius);
    color: #30343b;
    font-size: 1.05rem;
    min-height: 46px;
    padding: 10px 14px;
}

.client-fields textarea.form-control {
    min-height: 108px;
    resize: vertical;
}

.quiz-calendar-input {
    position: relative;
}

.quiz-calendar-input::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 32px;
    height: 32px;
    background: url("/images/calendar.png") no-repeat center;
    background-size: contain;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 2;
}

.quiz-calendar-input .form-control {
    padding-right: 44px;
}

.ui-datepicker {
    z-index: 2000 !important;
}

.client-passport-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-bottom: 1px dashed #8b8f96;
    background: transparent;
    color: #7a7f87;
    font-size: 1rem;
    padding: 0 0 2px;
}

.client-passport-toggle:hover,
.client-passport-toggle:focus {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
}

.client-passport-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    line-height: 1;
    font-weight: 700;
}

.client-passport-section {
    margin-top: 34px;
}

.client-passport-title {
    margin-bottom: 28px;
    color: #22252a;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
}

.quiz-measurements-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 28px;
    max-width: 760px;
}

.quiz-measurement-field {
    min-width: 0;
}

.quiz-measurement-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #111827;
    font-size: 1rem;
    line-height: 1.2;
}

.quiz-measurement-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fbff;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1;
}

.quiz-measurement-display {
    height: 50px;
    font-size: 1.1rem;
}

.quiz-measurement-suggest {
    position: absolute;
    z-index: 2200;
    width: min(280px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid #d7dde7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.quiz-measurement-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #697386;
    padding: 8px 6px;
    text-align: left;
}

.quiz-measurement-suggest-item:hover,
.quiz-measurement-suggest-item:focus {
    background: #f3f7ff;
    color: #0d6efd;
}

.client-passport-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 575.98px) {
    .quiz-measurements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .quiz-measurement-display {
        height: 48px;
        font-size: 1rem;
    }

    .client-passport-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.quiz-media-img,
.quiz-media-video {
    display: block;
    width: 100%;
    border-radius: var(--bs-border-radius);
    object-fit: cover;
}

.quiz-media-video {
    max-height: 420px;
    background: #000;
}

.calendar-month {
    width: 100%;
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
    padding: 14px;
    background: #fff;
}

.calendar-title {
    font-weight: 700;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 6px;
}

.calendar-empty,
.calendar-day {
    min-height: 38px;
}

.calendar-day {
    position: relative;
    border: 1px solid #e9ecef;
    border-radius: var(--bs-border-radius);
    background: #fff;
    font-weight: 600;
    overflow: hidden;
}

.calendar-day:hover:not(:disabled) {
    border-color: #0d6efd;
}

.calendar-heat {
    border-color: var(--calendar-heat-border);
    background: linear-gradient(180deg, #fff 0%, var(--calendar-heat-bg) 100%);
}

.calendar-heat:hover:not(:disabled) {
    border-color: var(--calendar-heat-border);
    box-shadow: 0 0 0 0.14rem color-mix(in srgb, var(--calendar-heat-border) 24%, transparent);
}

.calendar-heat-yellow {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffdf2 0%, #fef3c7 100%);
}

.calendar-heat-green {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f7fee7 0%, #dcfce7 100%);
}

.calendar-heat-red {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fff7f7 0%, #fee2e2 100%);
}

.calendar-heat-yellow:hover:not(:disabled) {
    border-color: #f59e0b;
}

.calendar-heat-green:hover:not(:disabled) {
    border-color: #22c55e;
}

.calendar-heat-red:hover:not(:disabled) {
    border-color: #ef4444;
}

.calendar-day-promo {
    border-color: #fdba74;
    color: #111827;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16);
}

.calendar-day-promo:hover:not(:disabled) {
    border-color: #f97316;
    box-shadow: 0 0 0 0.16rem rgba(249, 115, 22, 0.16);
}

.calendar-day-number {
    position: relative;
    z-index: 1;
}

.calendar-promo-mark {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 0.78rem;
    line-height: 1;
}

.calendar-promo-label {
    position: absolute;
    inset-inline: 3px;
    bottom: 2px;
    color: #c2410c;
    font-size: 0.54rem;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day.active {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
}

.calendar-day-promo.active {
    background: linear-gradient(180deg, #fff7a8 0%, var(--accent) 100%);
    border-color: #f59e0b;
}

.calendar-day:disabled {
    color: #adb5bd;
    background: #f8f9fa;
    cursor: not-allowed;
}

.quiz-nav {
    bottom: calc(var(--ui-gap) + var(--safe-bottom));
    padding-top: 12px;
    padding-bottom: calc(var(--ui-gap) + var(--safe-bottom));
    background: var(--bs-card-bg);
}

.quiz-nav .btn {
    border-radius: var(--bs-border-radius);
    min-width: 110px;
}

.af-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 576px) {
    .quiz {
        min-height: 520px;
    }

    .quiz-nav .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .materials-offer-grid,
    .materials-offer-supplies,
    .materials-offer-supplies ul {
        grid-template-columns: 1fr;
    }

    .materials-offer-card,
    .materials-offer-supplies {
        padding: 14px;
    }

    .price-compare-panel-head {
        grid-template-columns: 1fr;
    }

    .price-monitoring-title {
        font-size: 1.75rem;
    }

    .price-monitoring-lead {
        font-size: 0.96rem;
    }

    .price-monitoring-date {
        font-size: 0.78rem;
    }

    .price-compare-panel {
        padding: 12px;
    }

    .price-compare-legend {
        min-width: 0;
    }

    .price-compare-legend,
    .price-compare-values {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .price-compare-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
    }

    .price-compare-row-material .price-compare-name {
        padding-left: 0;
    }

    .price-compare-row-material .price-compare-name::before {
        width: 8px;
    }

    .price-compare-legend span {
        font-size: 0.68rem;
        padding-right: 4px;
        padding-left: 4px;
    }

    .price-compare-legend img {
        max-width: 64px;
        max-height: 22px;
    }

    .price-compare-legend span.is-best img {
        max-width: 26px;
        max-height: 26px;
    }

    .price-compare-chip {
        min-height: 30px;
        padding: 4px;
        font-size: 0.78rem;
    }

    .finish-materials-pair,
    .finish-materials-list,
    .finish-materials-designer {
        grid-template-columns: 1fr;
    }

    .finish-materials-pair,
    .finish-materials-designer,
    .finish-materials-list {
        padding: 12px;
    }

    .finish-materials-card {
        padding: 0 0 12px;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .finish-materials-card:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .quiz-budget-range {
        padding: 16px;
    }

    .budget-value-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .budget-value-row strong {
        font-size: 1.55rem;
    }

    .budget-range-limits {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        white-space: normal;
    }

    .checkbox-card-with-stepper {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
    }

    .checkbox-card-main {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .checkbox-card-check {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        justify-self: end;
    }

    .checkbox-card-stepper {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: flex-end;
        justify-self: flex-end;
    }

    .number-stepper-card {
        min-height: 96px;
        padding: 18px 16px;
        gap: 14px;
    }

    .number-stepper-title {
        font-size: 1.08rem;
    }

    .number-stepper-subtitle {
        font-size: 0.92rem;
    }

    .number-stepper-control {
        grid-template-columns: 38px 42px 38px;
        gap: 6px;
    }

    .number-stepper-btn {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }

    .number-stepper-input {
        width: 42px;
        font-size: 1.25rem;
    }
}
.quiz-broadcast { position: sticky; top: 0; z-index: 1040; align-items: center; gap: .55rem; min-height: 42px; margin: 0; padding: .35rem 1rem; border: 0; border-bottom: 1px solid #e5e7eb; border-radius: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); background: #fff; color: #212529; font-size: .9rem; }
.quiz-broadcast:not(.d-none) { display: flex; }
.quiz-broadcast-dot { width: .7rem; height: .7rem; flex: 0 0 auto; border-radius: 50%; background: #dc3545; animation: quizBroadcastPulse 1.2s infinite; }
.quiz-wake-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 30px; padding: .2rem .45rem; }
.quiz-wake-toggle.is-active { min-width: auto; padding: .15rem; border: 0; background: transparent; box-shadow: none; color: #198754; font-size: 1.2rem; }
.quiz-wake-toggle.is-active:hover, .quiz-wake-toggle.is-active:focus { background: transparent; color: #157347; box-shadow: none; }
@keyframes quizBroadcastPulse { 50% { opacity: .25; } }
