/* Quote Builder v1.5 */

/* ═══════════════════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════════════════ */

.qb-page {
    background-color: var(--cir-bg-cream, #FDFAF7);
    min-height: 100vh;
    padding-bottom: 0;
}


/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */

.qb-hero {
    text-align: center;
    padding: 48px 24px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.qb-hero-title {
    font-family: var(--cir-font-heading, 'Lora', serif);
    font-size: 32px;
    font-weight: 600;
    color: var(--cir-text-dark, #1A1A1A);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.qb-hero-subtitle {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 15px;
    color: var(--cir-text-muted, #8A8278);
    margin: 0 0 36px;
    line-height: 1.5;
}

.qb-gold-divider--hero {
    width: 60px;
    margin: 0 auto 16px;
}


/* ═══════════════════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════════════════ */

.qb-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
}

.qb-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.qb-progress-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 600;
    background: var(--cir-bg-white, #FFFFFF);
    color: var(--cir-text-light, #B5AFA6);
    border: 2px solid var(--cir-border, #E8E3DC);
    transition: all 0.3s ease;
}

.qb-progress-step.active .qb-progress-circle {
    background: var(--cir-burgundy, #832E31);
    color: #FFFFFF;
    border-color: var(--cir-burgundy, #832E31);
}

.qb-progress-step.complete .qb-progress-circle {
    background: #2D8F4E;
    color: #FFFFFF;
    border-color: #2D8F4E;
}

.qb-progress-label {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--cir-text-light, #B5AFA6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.qb-progress-step.active .qb-progress-label,
.qb-progress-step.complete .qb-progress-label {
    color: var(--cir-text-dark, #1A1A1A);
}

.qb-progress-line {
    flex: 1;
    height: 2px;
    background: var(--cir-border, #E8E3DC);
    min-width: 32px;
    max-width: 80px;
    margin: 0 8px;
    margin-bottom: 28px;
    transition: background 0.3s ease;
}

.qb-progress-line.complete {
    background: #2D8F4E;
}


/* ═══════════════════════════════════════════════════
   STEP HEADER BAR (full width charcoal)
   ═══════════════════════════════════════════════════ */

.qb-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    background: #2C2C2C;
    padding: 0 120px;
    position: relative;
    z-index: 20;
}

.qb-step-header-title {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: 0.3px;
}

.qb-step-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qb-step-header-meta {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 12px;
    color: #C9A94E;
}

.qb-step-header-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.12);
}

.qb-step-header-quote {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.15s;
}

.qb-step-header-quote:hover {
    background: rgba(255,255,255,0.08);
}

.qb-step-header-quote i, .qb-step-header-quote svg {
    width: 14px;
    height: 14px;
    color: rgba(255,255,255,0.5);
}

.qb-step-header-quote span {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
}

.qb-header-chevron {
    transition: transform 0.2s;
}

.qb-step-header-quote.open .qb-header-chevron {
    transform: rotate(180deg);
}

.qb-step-header-quote.open i:first-child,
.qb-step-header-quote.open svg:first-child {
    color: #C9A94E;
}

.qb-header-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 120px;
    width: 420px;
    background: #FFFFFF;
    border: 1px solid var(--cir-border, #E8E3DC);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 50;
}

.qb-header-dropdown.open {
    display: block;
}

.qb-header-dropdown-rooms {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qb-header-dropdown-room {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--cir-bg-cream, #FDFAF7);
    border: 1px solid var(--cir-border, #E8E3DC);
    border-radius: 4px;
}

.qb-header-dropdown-room-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qb-header-dropdown-room-name {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--cir-text-dark, #1A1A1A);
}

.qb-header-dropdown-room-detail {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 10px;
    color: var(--cir-text-muted, #8A8278);
}

.qb-header-dropdown-room-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qb-header-dropdown-room-price {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: var(--cir-burgundy, #832E31);
}

.qb-header-dropdown-room-remove {
    cursor: pointer;
    color: var(--cir-text-light, #B5AFA6);
}

.qb-header-dropdown-room-remove:hover {
    color: var(--cir-burgundy, #832E31);
}

.qb-header-dropdown-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--cir-border, #E8E3DC);
}

.qb-header-dropdown-clear {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 11px;
    color: var(--cir-text-light, #B5AFA6);
    cursor: pointer;
}

.qb-header-dropdown-clear:hover {
    color: var(--cir-burgundy, #832E31);
}

.qb-header-dropdown-view {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 500;
    color: var(--cir-burgundy, #832E31);
    text-decoration: none;
}

.qb-header-dropdown-view:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════
   STEP CONTENT AREA (full width)
   ═══════════════════════════════════════════════════ */

.qb-step-content {
    padding: 32px 120px 100px;
    background: var(--cir-bg-white, #FFFFFF);
    min-height: 300px;
}


/* ═══════════════════════════════════════════════════
   STEPS
   ═══════════════════════════════════════════════════ */

.qb-step {
    display: none;
}

.qb-step.active {
    display: block;
}

/* Only show footer of the active step */
.qb-step .qb-step-footer {
    display: none;
}

.qb-step.active .qb-step-footer {
    display: flex;
}


/* ═══════════════════════════════════════════════════
   ANCHORED FOOTER
   ═══════════════════════════════════════════════════ */

.qb-step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 120px;
    background: #FFFFFF;
    border-top: 1px solid var(--cir-border, #E8E3DC);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
}

.qb-step-footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qb-step-footer-context {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--cir-text-muted, #8A8278);
}

.qb-step-footer-btu {
    font-family: var(--cir-font-heading, 'Lora', serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--cir-burgundy, #832E31);
}

.qb-step-footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qb-step-footer-price {
    font-family: var(--cir-font-heading, 'Lora', serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--cir-burgundy, #832E31);
}

.qb-btn-primary--footer {
    width: auto !important;
    max-width: 320px;
    padding: 0 28px !important;
    height: 46px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
    letter-spacing: 2px;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════
   TYPOGRAPHY & DIVIDERS
   ═══════════════════════════════════════════════════ */

.qb-section-title {
    font-family: var(--cir-font-heading, 'Lora', serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--cir-text-dark, #1A1A1A);
    display: block;
    margin-bottom: 12px;
}

/* Section title with a control opposite it (Room Dimensions + unit toggle) */
.qb-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.qb-section-row .qb-section-title {
    margin-bottom: 0;
}

.qb-unit-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1px solid var(--cir-border, #E8E3DC);
    border-radius: 4px;
    overflow: hidden;
}

.qb-unit {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--cir-text-muted, #8A8278);
    background: #F5F0EA;
    border: none;
    padding: 5px 14px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.qb-unit:hover {
    color: var(--cir-text-dark, #1A1A1A);
}

.qb-unit--active,
.qb-unit--active:hover {
    background: var(--cir-burgundy, #832E31);
    color: #FFFFFF;
}

.qb-gold-divider {
    height: 1px;
    background: rgba(201, 169, 78, 0.3);
    border: none;
    margin: 20px 0;
}

.qb-field-hint {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--cir-text-muted, #8A8278);
    margin: -4px 0 16px;
    line-height: 1.5;
}

.qb-badge-gold {
    background: rgba(201, 169, 78, 0.15);
    color: #C9A94E;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 4px;
}


/* ═══════════════════════════════════════════════════
   BTU HEADER (Step 1 section header)
   ═══════════════════════════════════════════════════ */

.qb-btu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.qb-btu-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qb-btu-header-icon {
    width: 18px;
    height: 18px;
    color: #C9A94E;
}


/* ═══════════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════════ */

.qb-input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 14px;
    color: var(--cir-text-dark, #1A1A1A);
    background: var(--cir-bg-cream, #FDFAF7);
    border: 1px solid var(--cir-border, #E8E3DC);
    border-radius: 3px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* Room name at 30% width */
.qb-input--room-name {
    width: 30%;
}

/* Exposure + Window on one row */
.qb-input-row--exp-win {
    display: flex;
    gap: 32px;
}

.qb-input-row--exp-win > * {
    flex: 1;
}

.qb-input::placeholder {
    color: var(--cir-text-light, #B5AFA6);
}

.qb-input:focus {
    border-color: var(--cir-burgundy, #832E31);
    box-shadow: 0 0 0 3px rgba(131, 46, 49, 0.08);
}

.qb-input-row {
    display: grid;
    gap: 16px;
}

.qb-input-row--thirds {
    grid-template-columns: 1fr 1fr 1fr;
}

.qb-input-row--halves {
    grid-template-columns: 1fr 1fr;
}

.qb-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qb-input-label {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 500;
    color: var(--cir-text-muted, #8A8278);
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════════
   FIELD GROUPS
   ═══════════════════════════════════════════════════ */

.qb-field-group {
    margin-bottom: 0;
}


/* ═══════════════════════════════════════════════════
   PILLS
   ═══════════════════════════════════════════════════ */

.qb-pill-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.qb-pill {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 20px;
    height: 44px;
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--cir-text-body, #5A5549);
    background: var(--cir-bg-white, #FFFFFF);
    border: 1px solid var(--cir-border, #E8E3DC);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.3;
}

/* Exposure pills with subtitle need more height */
.qb-pill--tall {
    height: 52px;
}

.qb-pill:hover {
    border-color: var(--cir-burgundy, #832E31);
    color: var(--cir-burgundy, #832E31);
}

.qb-pill.selected {
    background: var(--cir-burgundy, #832E31);
    color: #FFFFFF;
    border-color: var(--cir-burgundy, #832E31);
}

.qb-pill-main {
    font-weight: 600;
}

.qb-pill-sub {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

.qb-pill.selected .qb-pill-sub {
    opacity: 0.85;
}


/* ═══════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════ */

.qb-tab-bar {
    display: inline-flex;
    border-bottom: 2px solid var(--cir-border, #E8E3DC);
    margin-bottom: 24px;
    gap: 0;
}

.qb-tab {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--cir-text-muted, #8A8278);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.qb-tab:hover {
    color: var(--cir-text-dark, #1A1A1A);
}

.qb-tab.active {
    color: var(--cir-burgundy, #832E31);
    border-bottom-color: var(--cir-burgundy, #832E31);
    font-weight: 600;
}

.qb-tab-content {
    display: none;
}

.qb-tab-content.active {
    display: block;
}


/* ═══════════════════════════════════════════════════
   RADIATOR TYPE CARDS (Convector tab)
   ═══════════════════════════════════════════════════ */

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

.qb-radiator-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: var(--cir-bg-white, #FFFFFF);
    border: 2px solid var(--cir-border, #E8E3DC);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.qb-radiator-type:hover {
    border-color: var(--cir-burgundy, #832E31);
}

.qb-radiator-type.selected {
    border-color: var(--cir-burgundy, #832E31);
    background: rgba(131, 46, 49, 0.04);
    box-shadow: 0 0 0 3px rgba(131, 46, 49, 0.08);
}

.qb-radiator-type-illust {
    width: 80px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple CSS radiator illustrations */
.qb-rad-illust {
    position: relative;
    width: 64px;
    height: 40px;
}

.qb-rad-illust::before,
.qb-rad-illust::after {
    content: '';
    position: absolute;
    border-radius: 2px;
}

/* Single Panel */
.qb-rad-illust--single-panel::before {
    left: 0; top: 4px; right: 0; bottom: 4px;
    border: 2px solid var(--cir-text-muted, #8A8278);
}

/* Cast Iron Panel */
.qb-rad-illust--cast-iron-panel {
    background: repeating-linear-gradient(
        90deg,
        var(--cir-text-muted, #8A8278) 0px,
        var(--cir-text-muted, #8A8278) 6px,
        transparent 6px,
        transparent 10px
    );
    border-radius: 4px 4px 8px 8px;
    opacity: 0.5;
}

/* Single Convector */
.qb-rad-illust--single-convector::before {
    left: 0; top: 4px; right: 0; bottom: 4px;
    border: 2px solid var(--cir-text-muted, #8A8278);
}
.qb-rad-illust--single-convector::after {
    left: 8px; top: 12px; right: 8px; bottom: 12px;
    background: repeating-linear-gradient(
        90deg,
        var(--cir-text-muted, #8A8278) 0px,
        var(--cir-text-muted, #8A8278) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.4;
}

/* Double Panel */
.qb-rad-illust--double-panel::before {
    left: 0; top: 2px; right: 0; height: 16px;
    border: 2px solid var(--cir-text-muted, #8A8278);
}
.qb-rad-illust--double-panel::after {
    left: 0; bottom: 2px; right: 0; height: 16px;
    border: 2px solid var(--cir-text-muted, #8A8278);
}

/* Double Panel Plus */
.qb-rad-illust--double-plus::before {
    left: 0; top: 2px; right: 0; height: 16px;
    border: 2px solid var(--cir-text-muted, #8A8278);
}
.qb-rad-illust--double-plus::after {
    left: 0; bottom: 2px; right: 0; height: 16px;
    border: 2px solid var(--cir-text-muted, #8A8278);
    background: repeating-linear-gradient(
        90deg,
        var(--cir-text-muted, #8A8278) 0px,
        var(--cir-text-muted, #8A8278) 1px,
        transparent 1px,
        transparent 6px
    );
    opacity: 0.3;
}

/* Double Convector */
.qb-rad-illust--double-convector::before {
    left: 0; top: 0; right: 0; height: 18px;
    border: 2px solid var(--cir-text-muted, #8A8278);
    background: repeating-linear-gradient(
        90deg,
        var(--cir-text-muted, #8A8278) 0px,
        var(--cir-text-muted, #8A8278) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.3;
}
.qb-rad-illust--double-convector::after {
    left: 0; bottom: 0; right: 0; height: 18px;
    border: 2px solid var(--cir-text-muted, #8A8278);
    background: repeating-linear-gradient(
        90deg,
        var(--cir-text-muted, #8A8278) 0px,
        var(--cir-text-muted, #8A8278) 1px,
        transparent 1px,
        transparent 5px
    );
    opacity: 0.3;
}

.qb-radiator-type-label {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--cir-text-body, #5A5549);
    line-height: 1.3;
}

.qb-radiator-type.selected .qb-radiator-type-label {
    color: var(--cir-burgundy, #832E31);
    font-weight: 600;
}


/* ═══════════════════════════════════════════════════
   BTU RESULT BAR
   ═══════════════════════════════════════════════════ */

.qb-btu-result {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--cir-bg-cream, #FDFAF7);
    border: 1px solid var(--cir-border, #E8E3DC);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 24px;
}

.qb-btu-result-icon {
    width: 24px;
    height: 24px;
    color: #C9A94E;
    flex-shrink: 0;
}

.qb-btu-result-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qb-btu-result-label {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 12px;
    font-weight: 500;
    color: var(--cir-text-muted, #8A8278);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qb-btu-result-value {
    font-family: var(--cir-font-heading, 'Lora', serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--cir-burgundy, #832E31);
}


/* ═══════════════════════════════════════════════════
   PRIMARY BUTTON
   ═══════════════════════════════════════════════════ */

.qb-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 52px;
    background: var(--cir-burgundy, #832E31);
    color: #FFFFFF;
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.qb-btn-primary:hover {
    background: #6E2629;
}

.qb-btn-primary:active {
    transform: scale(0.99);
}

.qb-btn-icon {
    width: 18px;
    height: 18px;
}


/* ═══════════════════════════════════════════════════
   STEP 2: FAMILY GRID
   ═══════════════════════════════════════════════════ */

.qb-section-subtitle {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 12px;
    color: var(--cir-text-muted, #8A8278);
    margin-bottom: 12px;
}

.qb-family-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qb-family-card {
    background: var(--cir-bg-cream, #FDFAF7);
    border: 1px solid var(--cir-border, #E8E3DC);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.qb-family-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.qb-family-card.selected {
    border: 2px solid var(--cir-burgundy, #832E31);
}

.qb-family-card.selected .qb-family-card-name {
    color: var(--cir-burgundy, #832E31);
}

.qb-family-card-img {
    width: 100%;
    height: 140px;
    background: var(--cir-border, #E8E3DC);
    object-fit: cover;
    display: block;
}

.qb-family-card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qb-family-card-name {
    font-family: var(--cir-font-ui, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--cir-text-dark, #1A1A1A);
}

.qb-family-card-desc {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 11px;
    color: var(--cir-text-muted, #8A8278);
}

.qb-family-card-price {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 600;
    color: var(--cir-burgundy, #832E31);
}

.qb-family-card .qb-previously-selected {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 9px;
    font-weight: 600;
    color: #C9A94E;
    letter-spacing: 1px;
    padding: 4px 8px;
    background: rgba(201, 169, 78, 0.08);
    border-radius: 3px;
    display: inline-block;
    margin-top: 4px;
}

.qb-loading {
    text-align: center;
    padding: 40px;
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 13px;
    color: var(--cir-text-muted, #8A8278);
    grid-column: 1 / -1;
}


/* ═══════════════════════════════════════════════════
   STEP 3: SIZE TABLE
   ═══════════════════════════════════════════════════ */

.qb-size-table { width: 100%; border-collapse: collapse; }
.qb-size-table th { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; font-weight: 600; color: var(--cir-text-body, #5A5549); letter-spacing: 1px; text-align: left; padding: 10px 16px; background: var(--cir-bg-warm, #F5F0EB); text-transform: uppercase; }
.qb-size-table td { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 13px; color: var(--cir-text-dark, #1A1A1A); padding: 12px 16px; border-bottom: 1px solid var(--cir-border, #E8E3DC); }
.qb-size-table tr { cursor: pointer; transition: background 0.15s; }
.qb-size-table thead tr { cursor: default; }
.qb-size-table tr:hover { background: #FDFAF7; }
.qb-size-table thead tr:hover { background: var(--cir-bg-warm, #F5F0EB); }
.qb-size-table tr.selected { background: #832E3110; }
.qb-size-table tr.selected td { color: #832E31; font-weight: 600; }
.qb-size-table tr.best-match td { color: #1A1A1A; font-weight: 600; }
.qb-best-match-badge { display: inline-block; padding: 3px 8px; background: #832E31; color: #FFFFFF; font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 9px; font-weight: 700; letter-spacing: 1px; border-radius: 3px; margin-left: 6px; text-transform: uppercase; }
.qb-back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 12px; font-weight: 500; color: #832E31; cursor: pointer; margin-bottom: 8px; }
.qb-back-link:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════
   STEP 4: CONFIGURE OPTIONS
   ═══════════════════════════════════════════════════ */

.qb-copy-banner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--cir-bg-warm, #F5F0EB); border-radius: 4px; margin-bottom: 20px; }
.qb-copy-banner-left { display: flex; align-items: center; gap: 8px; }
.qb-copy-banner-text { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 13px; color: var(--cir-text-body, #5A5549); }
.qb-copy-btn { padding: 6px 14px; background: #FFFFFF; border: 1px solid var(--cir-border, #E8E3DC); border-radius: 4px; font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; font-weight: 500; color: #832E31; cursor: pointer; }
/* Step 4 two-column layout */
.qb-step4-layout { display: flex !important; padding: 0 !important; }
.qb-option-nav { width: 220px; min-width: 220px; background: #FFFFFF; border-right: 1px solid var(--cir-border, #E8E3DC); display: flex; flex-direction: column; }
.qb-option-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 20px; border: none; border-bottom: 1px solid var(--cir-border, #E8E3DC); border-left: 3px solid transparent; background: none; font-family: var(--cir-font-ui, 'Outfit', sans-serif); font-size: 13px; color: var(--cir-text-body, #5A5549); cursor: pointer; transition: all 0.15s; text-align: left; }
.qb-option-nav-item:hover { background: var(--cir-bg-cream, #FDFAF7); }
.qb-option-nav-item.active { background: rgba(131, 46, 49, 0.06); border-left-color: var(--cir-burgundy, #832E31); color: var(--cir-burgundy, #832E31); font-weight: 600; }
.qb-option-nav-item i, .qb-option-nav-item svg { width: 16px; height: 16px; color: var(--cir-text-muted, #8A8278); flex-shrink: 0; }
.qb-option-nav-item.active i, .qb-option-nav-item.active svg { color: var(--cir-burgundy, #832E31); }
.qb-option-main { flex: 1; padding: 28px 32px; background: #FFFFFF; min-height: 400px; }
.qb-option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.qb-option-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; background: #FFFFFF; border: 1px solid var(--cir-border, #E8E3DC); border-radius: 4px; cursor: pointer; transition: border-color 0.2s; }
.qb-option-card:hover { border-color: #832E31; }
.qb-option-card.selected { border: 2px solid #832E31; }
.qb-option-card-img { width: 100%; height: 80px; background: var(--cir-border, #E8E3DC); border-radius: 3px; object-fit: cover; }
.qb-option-card-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.qb-option-card-name { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 10px; color: var(--cir-text-dark, #1A1A1A); text-align: center; line-height: 1.3; }
.qb-option-card-price { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 10px; font-weight: 600; color: #832E31; }
.qb-running-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--cir-bg-warm, #F5F0EB); border-radius: 4px; }
.qb-running-total-info { display: flex; flex-direction: column; gap: 2px; }
.qb-running-total-label { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 12px; color: var(--cir-text-body, #5A5549); }
.qb-running-total-sub { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; color: var(--cir-text-muted, #8A8278); }
.qb-running-total-price { font-family: var(--cir-font-heading, 'Lora', serif); font-size: 20px; font-weight: 700; color: #832E31; }


/* ═══════════════════════════════════════════════════
   STEP 5: QUOTE SUMMARY
   ═══════════════════════════════════════════════════ */

.qb-room-card { background: var(--cir-bg-cream, #FDFAF7); border: 1px solid var(--cir-border, #E8E3DC); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.qb-room-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--cir-bg-warm, #F5F0EB); }
.qb-room-card-name { font-family: var(--cir-font-ui, 'Outfit', sans-serif); font-size: 14px; font-weight: 600; color: var(--cir-text-dark, #1A1A1A); }
.qb-room-card-actions { display: flex; gap: 12px; align-items: center; }
.qb-room-card-edit { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; font-weight: 500; color: #832E31; cursor: pointer; background: none; border: none; padding: 0; }
.qb-room-card-edit:hover { text-decoration: underline; }
.qb-room-card-remove { cursor: pointer; color: var(--cir-text-light, #B5AFA6); background: none; border: none; padding: 4px; display: flex; align-items: center; }
.qb-room-card-remove:hover { color: #832E31; }
.qb-room-card-body { display: flex; align-items: center; padding: 16px; gap: 16px; }
.qb-room-card-img { width: 80px; height: 80px; background: var(--cir-border, #E8E3DC); border-radius: 4px; flex-shrink: 0; object-fit: cover; }
.qb-room-card-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.qb-room-card-rad { font-family: var(--cir-font-ui, 'Outfit', sans-serif); font-size: 13px; font-weight: 500; color: var(--cir-text-dark, #1A1A1A); }
.qb-room-card-btu { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; color: var(--cir-text-muted, #8A8278); }
.qb-room-card-opts { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; color: var(--cir-text-light, #B5AFA6); line-height: 1.4; }
.qb-room-card-price { font-family: var(--cir-font-heading, 'Lora', serif); font-size: 18px; font-weight: 700; color: #832E31; flex-shrink: 0; }
.qb-grand-total { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: #2C2C2C; border-radius: 6px; }
.qb-grand-total-left { display: flex; flex-direction: column; gap: 2px; }
.qb-grand-total-label { font-family: var(--cir-font-ui, 'Outfit', sans-serif); font-size: 14px; font-weight: 500; color: #FFFFFF; }
.qb-grand-total-vat { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 11px; color: var(--cir-text-muted, #8A8278); }
.qb-grand-total-price { font-family: var(--cir-font-heading, 'Lora', serif); font-size: 28px; font-weight: 700; color: #FFFFFF; }
.qb-action-row { display: flex; gap: 12px; }
.qb-action-row > * { flex: 1; }
.qb-btn-outline { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; background: #FFFFFF; border: 1px solid var(--cir-border, #E8E3DC); border-radius: 4px; font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 12px; font-weight: 600; color: var(--cir-text-dark, #1A1A1A); letter-spacing: 1.5px; cursor: pointer; text-transform: uppercase; }
.qb-btn-outline:hover { border-color: #832E31; color: #832E31; }
.qb-btn-green { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; background: #2D8F4E; border: none; border-radius: 4px; font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 12px; font-weight: 600; color: #FFFFFF; letter-spacing: 1.5px; cursor: pointer; text-transform: uppercase; }
.qb-btn-green:hover { background: #257A42; }

/* Email overlay */
.qb-email-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.qb-email-overlay.active { display: flex; }
.qb-email-modal { background: #FFFFFF; border-radius: 6px; width: 480px; max-width: 90vw; overflow: hidden; }
.qb-email-modal-header { padding: 20px 28px 16px; background: #2C2C2C; text-align: center; }
.qb-email-modal-title { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 10px; font-weight: 600; color: #FFFFFF; letter-spacing: 3px; text-transform: uppercase; }
.qb-email-modal-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.qb-email-modal-footer { padding: 0 28px 24px; }
.qb-email-success { text-align: center; padding: 24px; }
.qb-email-success h3 { font-family: var(--cir-font-heading, 'Lora', serif); font-size: 20px; color: #2D8F4E; margin-bottom: 8px; }
.qb-email-success p { font-family: var(--cir-font-body, 'Inter', sans-serif); font-size: 13px; color: var(--cir-text-muted, #8A8278); }


/* ═══════════════════════════════════════════════════
   PLACEHOLDER (unused but kept for safety)
   ═══════════════════════════════════════════════════ */

.qb-placeholder {
    text-align: center;
    padding: 60px 24px;
}

.qb-placeholder-icon {
    width: 40px;
    height: 40px;
    color: var(--cir-text-light, #B5AFA6);
    margin-bottom: 16px;
}

.qb-placeholder .qb-section-title {
    margin-bottom: 8px;
}

.qb-placeholder-text {
    font-family: var(--cir-font-body, 'Inter', sans-serif);
    font-size: 14px;
    color: var(--cir-text-muted, #8A8278);
    line-height: 1.5;
    margin: 0;
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1023px) {
    .qb-step-header {
        padding: 0 24px;
    }

    .qb-step-content {
        padding: 24px;
    }

    .qb-step-footer {
        padding: 16px 24px;
    }

    .qb-header-dropdown {
        right: 24px;
        width: calc(100vw - 48px);
        max-width: 420px;
    }

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

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

@media (max-width: 599px) {
    .qb-hero {
        padding: 32px 16px 28px;
    }

    .qb-hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .qb-progress-label {
        font-size: 10px;
    }

    .qb-progress-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .qb-progress-line {
        min-width: 16px;
        margin: 0 4px;
        margin-bottom: 24px;
    }

    .qb-step-header {
        padding: 0 16px;
        height: auto;
        min-height: 48px;
        flex-wrap: wrap;
        gap: 4px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .qb-step-header-right {
        gap: 8px;
    }

    .qb-step-content {
        padding: 20px 16px;
    }

    .qb-step-footer {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .qb-step-footer-left {
        width: 100%;
    }

    .qb-step-footer-right {
        width: 100%;
        justify-content: space-between;
    }

    .qb-btn-primary--footer {
        width: 100%;
    }

    .qb-header-dropdown {
        right: 16px;
        width: calc(100vw - 32px);
    }

    .qb-input-row--thirds {
        grid-template-columns: 1fr;
    }

    .qb-input-row--halves {
        grid-template-columns: 1fr;
    }

    .qb-radiator-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qb-pill-group {
        flex-wrap: wrap;
    }

    .qb-pill {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 13px;
    }

    .qb-tab {
        padding: 10px 14px;
        font-size: 13px;
    }

    /* Step 4: stack sidebar above content on mobile */
    .qb-step4-layout {
        flex-direction: column !important;
    }

    .qb-option-nav {
        width: 100%;
        min-width: 100%;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-right: none;
        border-bottom: 1px solid var(--cir-border, #E8E3DC);
    }

    .qb-option-nav-item {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0 14px;
        height: 42px;
        font-size: 12px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .qb-option-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--cir-burgundy, #832E31);
    }

    .qb-option-main {
        padding: 20px 16px;
    }

    .qb-action-row {
        flex-direction: column;
    }

    .qb-room-card-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .qb-room-card-img {
        width: 100%;
        height: 120px;
    }

    .qb-grand-total {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .qb-size-table {
        font-size: 11px;
    }

    .qb-size-table th,
    .qb-size-table td {
        padding: 8px 10px;
    }
}
