/* ==========================================================================
   BTU Calculator page (/btu-calculator/) : Option B, one question at a time
   (Myles 20 Nov 2026, Vault ci-website-w9kv). Built from Pablo's mockup
   btu-page-b-v2.html ; every rule is scoped under .btu-calc so nothing here
   reaches the rest of the site. Loaded by page-btu-calculator.php only.
   ========================================================================== */
.btu-calc {
    --bc-burgundy: var(--cir-burgundy, #832E31);
    --bc-burgundy-hover: #6B2225;
    --bc-ink: var(--cir-text-dark, #1A1A1A);
    --bc-body: var(--cir-text-body, #5A5549);
    --bc-minor: #6F675C;          /* muted text, 4.5:1 on cream and white */
    --bc-cream: var(--cir-bg-cream, #FDFAF7);
    --bc-hair: var(--cir-border, #E8E3DC);
    --bc-field: #958C80;          /* field and outlined control border, 3:1 */
    --bc-ok: #1E6B3A;
    --bc-head: 'Lora', serif;
    --bc-ui: var(--cir-font-ui, 'Outfit', sans-serif);
    --bc-text: var(--cir-font-body, 'Inter', sans-serif);
    --bc-display: var(--cir-font-display, 'Playfair Display', serif);
    background: #FFFFFF;
    padding: 48px var(--cir-pad-desktop) 64px;
    scroll-margin-top: 110px;     /* clears the sticky main navigation */
    font-family: var(--bc-text);
    color: var(--bc-ink);
}
.btu-calc *, .btu-calc *::before, .btu-calc *::after { box-sizing: border-box; }
.btu-calc button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; margin: 0; }
.btu-calc button:disabled { opacity: .6; cursor: default; }
.btu-calc input { font: inherit; margin: 0; }
.btu-calc p, .btu-calc h2, .btu-calc h3, .btu-calc ol, .btu-calc ul { margin: 0; padding: 0; }
.btu-calc :focus-visible { outline: 2px solid var(--bc-burgundy); outline-offset: 2px; }
.btu-calc [tabindex="-1"]:focus { outline: none; }
.btu-calc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The frame : answers on the left, the question on the right. */
.btu-calc .b-flow { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 360px minmax(0, 1fr); border: 1px solid var(--bc-hair); border-radius: 6px; overflow: hidden; }
.btu-calc .rail { background: var(--bc-cream); border-right: 1px solid var(--bc-hair); padding: 32px; display: flex; flex-direction: column; }
.btu-calc .rsteps { list-style: none; margin-top: 24px; }
.btu-calc .rs { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--bc-hair); }
.btu-calc .rs:last-child { border-bottom: 0; }
.btu-calc .rs .c { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--bc-field); display: flex; align-items: center; justify-content: center; font-family: var(--bc-ui); font-size: 14px; font-weight: 600; color: var(--bc-minor); }
.btu-calc .rs .c svg { width: 14px; height: 14px; }
.btu-calc .rs.done .c { background: var(--bc-burgundy); border-color: var(--bc-burgundy); color: #FFFFFF; }
.btu-calc .rs.cur .c { border: 2px solid var(--bc-burgundy); color: var(--bc-burgundy); }
.btu-calc .rs .t { font-family: var(--bc-head); font-size: 16px; font-weight: 600; color: var(--bc-minor); line-height: 28px; }
.btu-calc .rs.done .t, .btu-calc .rs.cur .t { color: var(--bc-ink); }
.btu-calc .rs .a { font-size: 14px; color: var(--bc-body); margin-top: 2px; }
.btu-calc .chg { font-size: 14px; font-weight: 500; color: var(--bc-burgundy); text-decoration: underline; text-underline-offset: 3px; height: 44px; margin: -8px 0; display: inline-flex; align-items: center; padding: 0 4px; }
.btu-calc .rail-foot { margin-top: auto; padding-top: 24px; display: grid; gap: 4px; }

.btu-calc .stage { padding: 48px; min-height: 600px; display: flex; flex-direction: column; }
.btu-calc .step-of { font-family: var(--bc-ui); font-size: 15px; font-weight: 500; color: var(--bc-minor); }
.btu-calc .b-intro { font-size: 16px; color: var(--bc-body); margin-top: 8px; }
.btu-calc .sq { font-family: var(--bc-display); font-size: 30px; font-weight: 600; line-height: 1.25; color: var(--bc-ink); margin-top: 8px; }

/* Room / Convector switch and the Metres / Feet switch */
.btu-calc .seg { display: inline-flex; border: 1px solid var(--bc-field); border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
.btu-calc .seg button { height: 42px; padding: 0 16px; font-family: var(--bc-ui); font-size: 14px; font-weight: 500; color: var(--bc-ink); background: #FFFFFF; white-space: nowrap; }
.btu-calc .seg button + button { border-left: 1px solid var(--bc-field); }
.btu-calc .seg button.on { background: var(--bc-burgundy); color: #FFFFFF; }
.btu-calc .rail .seg { display: flex; width: 100%; }
.btu-calc .rail .seg button { flex: 1; padding: 0 8px; height: 44px; }
.btu-calc .stage .units { margin-top: 24px; align-self: flex-start; }

/* Options */
.btu-calc .opts { display: grid; gap: 12px; margin-top: 24px; }
.btu-calc .o3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btu-calc .o2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btu-calc .opt { min-height: 72px; padding: 8px 12px; border: 1px solid var(--bc-field); border-radius: 4px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: var(--bc-ui); font-size: 17px; font-weight: 500; color: var(--bc-ink); line-height: 1.2; text-align: center; }
.btu-calc .opt:hover { border-color: var(--bc-burgundy); }
.btu-calc .opt .s { font-size: 14px; font-weight: 400; color: var(--bc-minor); }
.btu-calc .opt.on { background: var(--bc-burgundy); border-color: var(--bc-burgundy); color: #FFFFFF; }
.btu-calc .opt.on .s { color: #FFFFFF; }
.btu-calc .opt.tall { min-height: 96px; }

/* Size fields */
.btu-calc .fields { display: grid; gap: 12px; margin-top: 24px; max-width: 600px; }
.btu-calc .f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btu-calc .f2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btu-calc .fld label { display: block; font-size: 14px; font-weight: 500; color: var(--bc-body); margin-bottom: 8px; }
.btu-calc .inp { position: relative; }
.btu-calc .inp input, .btu-calc .txt { width: 100%; height: 48px; border: 1px solid var(--bc-field); border-radius: 4px; background: #FFFFFF; padding: 0 12px; font-family: var(--bc-text); font-size: 16px; color: var(--bc-ink); font-variant-numeric: tabular-nums; box-shadow: none; }
.btu-calc .inp input { height: 56px; font-size: 18px; padding: 0 44px 0 12px; }
.btu-calc .inp input::placeholder, .btu-calc .txt::placeholder { color: #7A7266; opacity: 1; }
.btu-calc .inp .u { position: absolute; right: 12px; top: 0; height: 56px; display: flex; align-items: center; font-size: 15px; color: var(--bc-minor); pointer-events: none; }
.btu-calc .inp input:focus, .btu-calc .txt:focus { outline: 2px solid var(--bc-burgundy); outline-offset: -1px; border-color: var(--bc-burgundy); }
.btu-calc .inp.bad input, .btu-calc .txt.bad { border-color: var(--bc-burgundy); box-shadow: inset 0 0 0 1px var(--bc-burgundy); }
.btu-calc .err { display: flex; margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--bc-burgundy); align-items: center; gap: 8px; }
.btu-calc .err svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Convector types */
.btu-calc .types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.btu-calc .type { display: grid; grid-template-columns: 20px 1fr; gap: 8px 12px; align-items: start; padding: 16px; border: 1px solid var(--bc-field); border-radius: 4px; text-align: left; background: #FFFFFF; }
.btu-calc .type:hover { border-color: var(--bc-burgundy); }
.btu-calc .type .r { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bc-field); margin-top: 1px; position: relative; }
.btu-calc .type.on { border: 2px solid var(--bc-burgundy); padding: 15px; }
.btu-calc .type.on .r { border-color: var(--bc-burgundy); }
.btu-calc .type.on .r::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--bc-burgundy); }
.btu-calc .type .n { font-family: var(--bc-ui); font-size: 15px; font-weight: 500; line-height: 1.3; }
.btu-calc .type .c { display: block; font-size: 13px; font-weight: 400; color: var(--bc-minor); margin-top: 2px; }
.btu-calc .type svg { grid-column: 1 / -1; width: 100%; height: auto; margin-top: 8px; }

/* Buttons (the site's own button look) */
.btu-calc .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 32px; border-radius: 4px; font-family: var(--bc-ui); font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btu-calc .btn .nc { text-transform: none; }
.btu-calc .btn-fill { background: var(--bc-burgundy); color: #FFFFFF; border: 2px solid var(--bc-burgundy); }
.btu-calc .btn-fill:hover { background: var(--bc-burgundy-hover); border-color: var(--bc-burgundy-hover); }
.btu-calc .btn-line { background: transparent; color: var(--bc-ink); border: 2px solid var(--bc-ink); }
.btu-calc .btn-line:hover { background: var(--bc-ink); color: #FFFFFF; }
.btu-calc .btn-sm { height: 48px; padding: 0 20px; }
.btu-calc .nav-row { margin-top: auto; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.btu-calc .back { display: inline-flex; align-items: center; gap: 4px; height: 44px; font-family: var(--bc-ui); font-size: 15px; font-weight: 500; color: var(--bc-ink); text-decoration: underline; text-underline-offset: 4px; }
.btu-calc .back svg { width: 16px; height: 16px; }
.btu-calc .next { min-width: 220px; }

/* Result : the figure is an answer, not a headline (Myles 20 Nov 16:38) */
.btu-calc .b-res-h { font-family: var(--bc-head); font-size: 18px; font-weight: 600; color: var(--bc-ink); line-height: 1.4; }
.btu-calc .fig { font-family: var(--bc-text); font-weight: 700; color: var(--bc-ink); letter-spacing: -0.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.btu-calc .b-fig { font-size: 32px; margin-top: 8px; }
.btu-calc .fig-unit { font-size: 14px; color: var(--bc-body); margin-top: 4px; }
.btu-calc .res-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--bc-hair); }
.btu-calc .p-h { display: block; font-family: var(--bc-head); font-size: 17px; font-weight: 600; color: var(--bc-ink); margin-bottom: 12px; }
.btu-calc .save-row { display: flex; gap: 8px; }
.btu-calc .save-row .txt { flex: 1; min-width: 0; }
.btu-calc .saved-wrap { margin-top: 24px; }
.btu-calc .rooms { list-style: none; border-top: 1px solid var(--bc-hair); margin-top: 16px; }
.btu-calc .rooms li { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; min-height: 64px; border-bottom: 1px solid var(--bc-hair); }
.btu-calc .rooms .nm { font-size: 15px; font-weight: 600; }
.btu-calc .rooms .dm { font-size: 13px; color: var(--bc-minor); margin-top: 2px; }
.btu-calc .rooms .bt, .btu-calc .total .bt { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.btu-calc .rooms .x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--bc-minor); border-radius: 4px; }
.btu-calc .rooms .x:hover { color: var(--bc-burgundy); }
.btu-calc .rooms .x svg { width: 18px; height: 18px; }
.btu-calc .total { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; min-height: 52px; font-size: 15px; font-weight: 600; }
.btu-calc .rooms-empty { font-size: 15px; color: var(--bc-minor); }
.btu-calc .add-room { display: inline-flex; align-items: center; gap: 8px; height: 44px; margin-top: 8px; font-family: var(--bc-ui); font-size: 15px; font-weight: 500; color: var(--bc-burgundy); text-decoration: underline; text-underline-offset: 4px; }
.btu-calc .add-room svg { width: 16px; height: 16px; }
.btu-calc .email-f { display: grid; gap: 8px; }
.btu-calc #btu-em-send { margin-top: 4px; }
.btu-calc .sent { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--bc-ok); min-height: 48px; }
.btu-calc .sent svg { width: 18px; height: 18px; }
.btu-calc .note { font-size: 14px; line-height: 1.6; color: var(--bc-body); }
.btu-calc .note a { color: var(--bc-burgundy); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Tablet and phone : the step list folds into a progress bar and answer rows. */
.btu-calc .mob { display: none; }
@media (max-width: 1024px) {
    .btu-calc { padding: 40px var(--cir-pad-tablet, 40px) 56px; }
    .btu-calc .b-flow { grid-template-columns: 1fr; border: 0; border-radius: 0; overflow: visible; }
    .btu-calc .rail { display: none; }
    .btu-calc .stage { padding: 0; min-height: 0; }
    .btu-calc .mob { display: block; margin-bottom: 24px; }
    .btu-calc .mob-foot { margin-top: 32px; }
    .btu-calc .mob .seg { display: flex; width: 100%; }
    .btu-calc .mob .seg button { flex: 1; padding: 0 8px; height: 48px; }
    .btu-calc .bar { display: grid; gap: 4px; margin-top: 16px; }
    .btu-calc .bar span { height: 4px; border-radius: 2px; background: var(--bc-hair); }
    .btu-calc .bar span.on { background: var(--bc-burgundy); }
    .btu-calc .ans { list-style: none; margin-top: 16px; border-top: 1px solid var(--bc-hair); }
    .btu-calc .ans li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--bc-hair); font-size: 15px; }
    .btu-calc .ans .k { color: var(--bc-minor); }
    .btu-calc .ans .chg { margin: 0; }
    .btu-calc .res-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
    .btu-calc { padding: 32px var(--cir-pad-mobile, 20px) 48px; }
    .btu-calc .sq { font-size: 26px; }
    .btu-calc .opts { margin-top: 20px; gap: 8px; }
    .btu-calc .opt { min-height: 56px; font-size: 16px; }
    .btu-calc .o3.rooms6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .btu-calc .exp { grid-template-columns: 1fr; }
    .btu-calc .exp .opt { flex-direction: row; justify-content: space-between; min-height: 64px; padding: 8px 16px; }
    .btu-calc .inp input { height: 52px; font-size: 16px; padding: 0 36px 0 10px; }
    .btu-calc .inp .u { height: 52px; right: 10px; }
    .btu-calc .types { grid-template-columns: 1fr; }
    .btu-calc .type svg { max-width: 320px; }
    .btu-calc .nav-row { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
    .btu-calc .next { width: 100%; }
    .btu-calc .back { align-self: center; }
    .btu-calc .b-fig { font-size: 28px; }
    .btu-calc #btu-em-send { width: 100%; }
    .btu-calc .note a { display: inline-block; padding: 12px 0; margin: -12px 0; }
    .btu-calc .total { grid-template-columns: auto minmax(0, 1fr); }
    .btu-calc .total > span:first-child { white-space: nowrap; }
    .btu-calc .total > span:last-child { display: none; }
}
