/* ==========================================================================
   Build Experience
   Editorial redesign for the "Build Your Sauna" configurator page
   + homepage wattage-estimator block.

   Style reference: /Siding dEsing 2/DESIGN (1).md (Jeton — editorial fintech
   on warm marble: oversized tight-set headlines, generous whitespace, soft
   16px-radius warm-tinted cards, pill buttons, inverted-shadow lift).
   Adapted to the site's own brand accent (#E47F36) instead of the
   reference's orange, so nothing about the brand identity changes —
   only spacing, type scale, radii and card treatment.
   ========================================================================== */

:root {
    --be-accent: #E47F36;
    --be-accent-dark: #C8631F;
    --be-ink: #2A1B12;
    --be-muted: #8a7a70;
    --be-tint: rgba(228, 127, 54, 0.06);
    --be-tint-strong: rgba(228, 127, 54, 0.13);
    --be-line: rgba(228, 127, 54, 0.22);
    --be-card-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.04);
    --be-glow-shadow: 0 10px 30px rgba(228, 127, 54, 0.16);
    --be-radius-card: 20px;
    --be-radius-btn: 999px;
    --be-radius-input: 14px;
    --be-btn-gradient: linear-gradient(135deg, #F0964C 0%, #B85A1E 100%);
    --be-btn-gradient-hover: linear-gradient(135deg, #E5843A 0%, #A44E19 100%);
    --be-btn-shadow: 0 6px 18px rgba(184, 90, 30, 0.32);
    --be-btn-shadow-hover: 0 8px 22px rgba(184, 90, 30, 0.42);
}

/* --------------------------------------------------------------------
   Build Your Sauna page — scoped to .page-build-sauna only
   -------------------------------------------------------------------- */

.page-build-sauna {
    padding-top: 48px;
    padding-bottom: 56px;
}

.page-build-sauna > h1.title {
    text-transform: none;
    text-align: left;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--be-ink);
    max-width: 18ch;
    margin: 0 0 14px 0;
    padding: 0;
}

.page-build-sauna > h1.title::after {
    display: none;
}

.page-build-sauna .stepper.horizontal {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 32px clamp(16px, 3vw, 40px) 16px;
    margin-top: 24px;
}

/* Step tabs row — flat pill tabs, no top/bottom rule lines, equal height */
.page-build-sauna ul.stepper.horizontal::before {
    content: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.page-build-sauna ul.stepper.horizontal {
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.page-build-sauna ul.stepper.horizontal .step {
    flex: 1 1 0;
    min-width: 108px;
    flex-shrink: 0;
}

.page-build-sauna ul.stepper.horizontal .step:not(:last-of-type)::after {
    content: none !important;
}

.page-build-sauna ul.stepper.horizontal .step .step-title {
    width: 100%;
    max-width: none;
    text-align: center;
    padding: 0 12px !important;
    border-radius: var(--be-radius-btn);
    background: var(--be-tint);
    color: var(--be-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease;
}

.page-build-sauna ul.stepper.horizontal .step .step-title:hover {
    background: var(--be-tint-strong);
}

.page-build-sauna ul.stepper.horizontal .step .step-title::before {
    display: none !important;
}

.page-build-sauna ul.stepper.horizontal .step.active .step-title,
.page-build-sauna ul.stepper.horizontal .step.done .step-title {
    background: var(--be-accent) !important;
    color: #fff;
}

.page-build-sauna .stepper h3 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--be-ink);
    text-align: left;
}

.page-build-sauna .description {
    text-align: left;
}

.page-build-sauna .step-content > .description,
.page-build-sauna .step-content p.description {
    text-align: left;
    color: var(--be-muted);
    max-width: 62ch;
}

/* Dimension / size panel */
.page-build-sauna .ps-size-block {
    background: var(--be-tint);
    border-radius: var(--be-radius-card);
    padding: 24px 20px 18px;
}

.page-build-sauna #pc_wv_info {
    color: var(--be-accent-dark);
    font-weight: 700;
    font-size: 15px;
}

.page-build-sauna #pc_watts,
.page-build-sauna #pc_volts {
    font-size: 15px;
    font-weight: 600;
    color: var(--be-ink);
}

/* Inputs */
.page-build-sauna .form-control {
    border: 1px solid var(--be-line);
    background: #fff;
    border-radius: var(--be-radius-input);
    min-height: 52px;
    padding: 12px 16px;
    color: var(--be-ink);
    box-shadow: none;
}

.page-build-sauna .form-control:focus {
    border-color: var(--be-accent);
    box-shadow: 0 0 0 3px var(--be-tint-strong);
}

/* Option cards: heater kits, control panels, wood types, etc. */
.page-build-sauna .pc-kit-item,
.page-build-sauna .pc-block > label {
    background: var(--be-tint);
    border: 1.5px solid transparent;
    border-radius: var(--be-radius-card);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.page-build-sauna .pc-kit-item:hover,
.page-build-sauna .pc-block > label:hover {
    transform: translateY(-2px);
    box-shadow: var(--be-card-shadow);
}

.page-build-sauna .pc-kit-item.active,
.page-build-sauna .pc-block > label.active {
    border-color: var(--be-accent);
    background: var(--be-tint-strong);
    box-shadow: var(--be-glow-shadow);
}

/* Note blocks */
.page-build-sauna .pc-note-block {
    background: var(--be-tint);
    border-radius: var(--be-radius-card);
}

.page-build-sauna .pc-note-block textarea[data-note] {
    border-radius: var(--be-radius-input);
    border: 1px solid var(--be-line);
}

/* Result summary card */
.page-build-sauna .pc-result-msg {
    background: #fff;
    border-radius: var(--be-radius-card);
    box-shadow: var(--be-card-shadow);
    padding: 24px 28px;
}

/* Buttons inside the configurator — real button weight: gradient fill + lift shadow */
.page-build-sauna .step-actions .btn-primary {
    border-radius: var(--be-radius-btn);
    background: var(--be-btn-gradient);
    border: none;
    box-shadow: var(--be-btn-shadow);
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.page-build-sauna .step-actions .btn-primary:hover {
    background: var(--be-btn-gradient-hover);
    box-shadow: var(--be-btn-shadow-hover);
    transform: translateY(-1px);
}

.page-build-sauna .step-actions .btn-outline-secondary {
    border-radius: var(--be-radius-btn);
    background: #fff;
    color: var(--be-ink);
    border: 1.5px solid var(--be-line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.page-build-sauna .step-actions .btn-outline-secondary:hover {
    background: #fff;
    color: var(--be-ink);
    border-color: var(--be-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .page-build-sauna .stepper.horizontal {
        padding: 24px 16px 12px;
    }
}

/* --------------------------------------------------------------------
   DIY vs. ready-made comparison table (Build Your Sauna page + homepage)
   Style reference: /DESIGN (2).md ("Column" — deep navy institutional
   ledger on a cool near-white canvas). Adapted tokens below, namespaced
   "dc-" so they don't collide with the warm --be- tokens used elsewhere
   on this page.
   -------------------------------------------------------------------- */

:root {
    --dc-navy: #111a4a;
    --dc-slate: #3b3e47;
    --dc-steel: #7c7f88;
    --dc-silver: #e3e4e8;
    --dc-canvas: #f6f6f8;
    --dc-seafoam: #44b48b;
    --dc-seafoam-700: #167e6c;
    --dc-seafoam-tint: rgba(68, 180, 139, 0.08);
    --dc-radius: 8px;
    --dc-shadow-sm: rgba(18, 22, 30, 0.024) 0px 1px 4px 0px, rgba(18, 22, 30, 0.05) 0px 1px 0px 0px, rgba(18, 22, 30, 0.024) 0px 0px 0px 1px;
}

.page-build-sauna .diy-compare {
    margin-top: 40px;
}

.diy-compare-block {
    background: var(--be-tint);
}

.diy-compare__intro {
    max-width: 62ch;
    margin: 0 auto 32px;
    text-align: center;
}

.diy-compare__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--dc-navy);
    margin-bottom: 12px;
}

.diy-compare__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dc-seafoam);
    flex-shrink: 0;
}

.diy-compare__title {
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--dc-navy);
    margin-bottom: 12px;
}

.diy-compare__lead {
    color: var(--dc-steel);
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}

.diy-compare__table-wrap {
    background: #fff;
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow-sm);
    overflow-x: auto;
}

.diy-compare__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.diy-compare__table th,
.diy-compare__table td {
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid var(--dc-silver);
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dc-slate);
}

.diy-compare__table thead th {
    background: var(--dc-canvas);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--dc-navy);
    border-bottom: 1px solid var(--dc-silver);
}

.diy-compare__table tbody tr:last-child td {
    border-bottom: none;
}

.diy-compare__table .diy-compare__row-label {
    font-weight: 500;
    white-space: nowrap;
    color: var(--dc-steel);
}

.diy-compare__table .diy-compare__col-diy {
    background: var(--dc-seafoam-tint);
    color: var(--dc-slate);
    font-weight: 500;
    position: relative;
    box-shadow: inset 1px 0 0 rgba(68, 180, 139, 0.25), inset -1px 0 0 rgba(68, 180, 139, 0.25);
}

.diy-compare__table thead .diy-compare__col-diy {
    background: var(--dc-navy);
    color: #fff;
    box-shadow: none;
}

@media (max-width: 575px) {
    .diy-compare__table-wrap {
        border-radius: var(--dc-radius);
    }
}

/* --------------------------------------------------------------------
   Homepage — wattage estimator block
   -------------------------------------------------------------------- */

.build-estimator-block {
    background: var(--be-tint);
}

.build-estimator {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.build-estimator__intro {
    margin-bottom: 32px;
}

.build-estimator__eyebrow {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--be-accent);
    margin-bottom: 12px;
}

.build-estimator__title {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--be-ink);
    max-width: 26ch;
    margin: 0 0 16px;
}

.build-estimator__lead {
    color: var(--be-muted);
    font-size: 17px;
    line-height: 1.5;
    max-width: 52ch;
    margin: 0 0 20px;
}

.build-estimator__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-grid;
    gap: 10px;
    text-align: left;
}

.build-estimator__list li {
    position: relative;
    padding-left: 24px;
    color: var(--be-ink);
    font-size: 15px;
}

.build-estimator__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--be-accent);
}

.build-estimator__panel {
    background: #fff;
    border-radius: var(--be-radius-card);
    box-shadow: var(--be-card-shadow);
    padding: clamp(24px, 3vw, 36px);
    margin-bottom: 24px;
}

.build-estimator__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.build-estimator__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--be-radius-btn);
    padding: 15px 28px;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 15px;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
}

.build-estimator__btn:hover,
.build-estimator__btn:focus {
    text-decoration: none;
}

.build-estimator__btn:hover {
    transform: translateY(-1px);
}

.build-estimator__btn--filled {
    background: var(--be-btn-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--be-btn-shadow);
}

.build-estimator__btn--filled:hover {
    background: var(--be-btn-gradient-hover);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--be-btn-shadow-hover);
}

.build-estimator__btn--outline {
    background: #fff;
    border-color: var(--be-line);
    color: var(--be-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.build-estimator__btn--outline:hover {
    background: #fff;
    border-color: var(--be-accent);
    color: var(--be-ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
    .build-estimator__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

.build-estimator__fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.build-estimator__field {
    display: grid;
    gap: 8px;
}

.build-estimator__field label {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--be-muted);
}

.build-estimator__field input {
    border: 1px solid var(--be-line);
    background: var(--be-tint);
    border-radius: var(--be-radius-input);
    min-height: 52px;
    padding: 10px 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--be-ink);
    width: 100%;
}

.build-estimator__field input:focus {
    outline: none;
    border-color: var(--be-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--be-tint-strong);
}

.build-estimator__result {
    background: var(--be-tint);
    border-radius: var(--be-radius-card);
    padding: 20px 24px;
    text-align: center;
}

.build-estimator__result-label {
    display: block;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--be-muted);
    margin-bottom: 6px;
}

.build-estimator__result-value {
    display: block;
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--be-accent);
    line-height: 1.1;
}

.build-estimator__result-note {
    display: block;
    font-size: 13px;
    color: var(--be-muted);
    margin-top: 6px;
}

@media (max-width: 575px) {
    .build-estimator__fields {
        grid-template-columns: 1fr;
    }
}
