:root {
  --usa-blue: #0066CC;
  --usa-blue-light: #EBF5FF;
  --usa-navy: #003366;
  --usa-navy-light: #E0EBF5;
  --usa-red: #CC0000;
  --usa-green: #28A745;
  --usa-green-light: #E8F5EE;
  --usa-dark: #2B2B2B;
  --usa-gray: #777777;
  --usa-border: #DDDDDD;
  --usa-bg: #F5F5F5;
}
body { font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif; background: var(--usa-bg); color: #333; }

/* ─── HEADER ─── */
.usa-header { background: var(--usa-dark); position: sticky; top: 0; z-index: 1050; height: 56px; }
.usa-header .logo-title { font-size: 15px; font-weight: 700; color: #fff; }
.usa-header .logo-sub { font-size: 10px; opacity: 0.5; color: #fff; text-transform: uppercase; letter-spacing: 0.3px; }
.usa-header .est-label { font-size: 9px; letter-spacing: 1.2px; opacity: 0.5; color: #fff; }
.usa-header .est-val { font-size: 20px; font-weight: 700; color: #fff; }

/* ─── STEP NAV ─── */
.usa-nav { background: #fff; border-bottom: 2px solid var(--usa-border); position: sticky; top: 56px; z-index: 1040; }
.usa-nav .nav-logo { height: 32px; width: auto; flex-shrink: 0; margin-right: 4px; }
.usa-nav .nav-divider { width: 1px; height: 28px; background: var(--usa-border); flex-shrink: 0; margin: 0 6px; }
.step-btn { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: none; border: none; font-size: 13px; color: var(--usa-gray); font-weight: 500; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; }
.step-btn:hover { color: #555; }
.step-btn.active { color: var(--usa-blue); font-weight: 700; border-bottom-color: var(--usa-blue); }
.step-btn.done { color: var(--usa-green); }
.step-num { width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: #EEE; color: var(--usa-gray); }
.step-btn.active .step-num { background: var(--usa-blue); color: #fff; }
.step-btn.done .step-num { background: var(--usa-green); color: #fff; }
.step-track { height: 3px; background: #EEE; border-radius: 2px; }
.step-fill { height: 100%; background: var(--usa-blue); border-radius: 2px; transition: width .3s; }

/* ─── SIDEBAR ─── */
.usa-sidebar { position: sticky; top: 120px; }
.preview-box { background: var(--usa-dark); border-radius: 4px; overflow: hidden; border: 1px solid #333; }
.preview-bar { padding: 10px 16px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.preview-bar .label { color: #aaa; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.preview-bar .model { color: var(--usa-blue); font-size: 11px; font-weight: 700; }
.summary-box { background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; overflow: hidden; }
.summary-title { padding: 10px 14px; border-bottom: 1px solid var(--usa-border); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--usa-gray); background: #FAFAFA; }
.summary-body { padding: 10px 14px; max-height: 200px; overflow: auto; }
.summary-group-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-bottom: 3px; }
.summary-item { font-size: 12px; padding: 2px 0; display: flex; justify-content: space-between; align-items: center; }
.summary-item .price { font-size: 11px; color: var(--usa-red); font-weight: 600; }
.summary-foot { padding: 10px 14px; border-top: 1px solid var(--usa-border); background: #FAFAFA; display: flex; justify-content: space-between; align-items: center; }
.summary-foot .total-price { font-size: 17px; font-weight: 800; color: var(--usa-red); }

/* ─── SIDEBAR CAROUSEL ─── */
.preview-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 260px; background: var(--usa-dark); }
.sidebar-carousel { background: var(--usa-dark); position: relative; }
.sidebar-carousel img { width: 100%; height: 260px; object-fit: contain; display: block; background: var(--usa-dark); }
.sidebar-carousel-caption { font-size: 10px; color: #ccc; text-align: center; padding: 4px 10px; height: 24px; line-height: 16px; overflow: hidden; background: rgba(0,0,0,0.5); }
.sidebar-carousel .carousel-control-prev,
.sidebar-carousel .carousel-control-next { width: 28px; opacity: 0.6; bottom: 24px; }
.sidebar-carousel .carousel-control-prev:hover,
.sidebar-carousel .carousel-control-next:hover { opacity: 1; }
.sidebar-carousel .carousel-control-prev-icon,
.sidebar-carousel .carousel-control-next-icon { width: 14px; height: 14px; }
.sidebar-carousel .carousel-indicators { margin-bottom: 28px; }
.sidebar-carousel .carousel-indicators button { width: 6px; height: 6px; border-radius: 50%; margin: 0 3px; }

/* ─── SECTION TITLES ─── */
.sec-title { font-size: 22px; font-weight: 700; letter-spacing: -0.2px; color: var(--usa-navy); margin-bottom: 4px; }
.sec-sub { font-size: 13px; color: var(--usa-gray); margin-bottom: 18px; line-height: 1.5; max-width: 580px; }
.tier-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--usa-gray); margin-bottom: 8px; padding-left: 2px; }

/* ─── BUILDING CARDS ─── */
.bldg-card { position: relative; background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; overflow: hidden; cursor: pointer; transition: all .12s; text-align: left; height: 100%; display: flex; flex-direction: column; }
.bldg-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.bldg-card.selected { border-color: var(--usa-blue); box-shadow: 0 0 0 2px var(--usa-blue); background: var(--usa-blue-light); }
.bldg-card .img-wrap { position: relative; background: #fff; height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--usa-border); }
.bldg-card .img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.bldg-card .sel-badge { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 11px; background: var(--usa-blue); color: #fff; font-size: 12px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.bldg-card.selected .sel-badge { display: flex; }
.bldg-card .info { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.bldg-card .bname { font-size: 13px; font-weight: 700; color: var(--usa-navy); }
.bldg-card .bmodel { font-size: 10px; color: var(--usa-gray); letter-spacing: 0.3px; }
.bldg-card .spec-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--usa-gray); }
.bldg-card .spec-val { font-size: 11.5px; font-weight: 600; }
.bldg-card .bprice { font-size: 17px; font-weight: 700; color: var(--usa-red); margin-top: 4px; }

/* ─── STORAGE TYPE CARDS ─── */
.type-card { position: relative; background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; padding: 14px; text-align: center; cursor: pointer; transition: all .12s; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.type-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.type-card.selected { border-color: var(--usa-blue); background: var(--usa-blue-light); box-shadow: 0 0 0 2px var(--usa-blue); }
.type-card .sel-badge { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 11px; background: var(--usa-blue); color: #fff; font-size: 12px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.type-card.selected .sel-badge { display: flex; }
.type-card .tname { font-size: 13px; font-weight: 700; color: var(--usa-navy); }
.type-card .req-tag { font-size: 9px; background: var(--usa-navy-light); color: var(--usa-navy); padding: 2px 6px; border-radius: 3px; font-weight: 600; text-transform: capitalize; display: inline-block; margin: 1px; }
.type-card .help-btn { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border-radius: 16px; background: rgba(0,102,204,0.08); border: 1px solid rgba(0,102,204,0.2); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--usa-blue); cursor: pointer; z-index: 2; line-height: 1; padding: 0; }
.type-card-img { width: 56px; height: 56px; object-fit: contain; }

/* Small inline icons used in review/summary rows (storage types, building category) */
.rev-icon { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.summary-icon { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

/* ─── LIST ITEMS (compliance, accessories) ─── */
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; cursor: pointer; transition: all .1s; width: 100%; text-align: left; font-family: inherit; }
.list-item:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.list-item.active { border-color: var(--usa-blue); background: var(--usa-blue-light); }
.list-item.included { border-color: var(--usa-green); background: var(--usa-green-light); border-style: dashed; cursor: default; }
.list-item .cb { width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--usa-border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.list-item.active .cb { background: var(--usa-blue); border-color: var(--usa-blue); }
.list-item.included .cb { background: var(--usa-green); border-color: var(--usa-green); }
.list-item .lname { font-size: 13px; font-weight: 600; }
.list-item .ldesc { font-size: 11px; color: var(--usa-gray); margin-top: 1px; }
.list-item .lprice { font-size: 13px; font-weight: 700; color: var(--usa-red); flex-shrink: 0; white-space: nowrap; }
.list-item .inc-tag { font-size: 9px; font-weight: 700; color: var(--usa-green); letter-spacing: 0.7px; flex-shrink: 0; }
.list-item .item-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.08); background: #fff; }
.help-btn-inline { background: none; border: none; font-size: 28px; color: var(--usa-blue); cursor: pointer; padding: 0 6px; flex-shrink: 0; opacity: 0.5; line-height: 1; }
.help-btn-inline:hover { opacity: 1; }

/* ─── RADIO BUTTONS (fire rating) ─── */
.list-item .rb { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--usa-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-item.active .rb { border-color: var(--usa-blue); }
.list-item .rb.on::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--usa-blue); }

/* ─── COMPLIANCE INCLUDED BAR ─── */
.comp-included-bar { padding: 10px 14px; background: var(--usa-green-light); border: 1px solid #C3E6CB; border-radius: 4px; font-size: 12px; color: #555; line-height: 1.7; }
.comp-included-bar strong { color: var(--usa-navy); font-weight: 600; }
.comp-included-label { font-size: 11px; font-weight: 700; color: var(--usa-green); letter-spacing: 0.3px; }

/* ─── ACCESSORY TABS ─── */
.acc-tab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--usa-gray); transition: all .1s; font-family: inherit; }
.acc-tab:hover { background: #f0f0f0; }
.acc-tab.active { background: var(--usa-blue); color: #fff; border-color: var(--usa-blue); }
.acc-badge { background: var(--usa-red); color: #fff; font-size: 9px; font-weight: 700; padding: 0 5px; border-radius: 8px; }

/* ─── REVIEW ─── */
.rev-block { background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; padding: 14px; margin-bottom: 12px; }
.rev-block .rev-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--usa-gray); }
.rev-block .rev-row { font-size: 13px; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; }
.rev-block .rev-price { font-weight: 700; color: var(--usa-red); font-size: 12px; }
.tot-box { background: var(--usa-navy); color: #fff; border-radius: 4px; padding: 18px; text-align: center; }
.tot-box .tot-label { font-size: 9px; letter-spacing: 1.2px; opacity: 0.6; margin-bottom: 4px; }
.tot-box .tot-val { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.tot-box .tot-note { font-size: 10px; opacity: 0.5; margin-top: 4px; }

/* ─── PRINT QUOTE ─── */
.quote-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #5a5a5a; z-index: 2000; display: none; flex-direction: column; }
.quote-overlay.show { display: flex; }
.quote-toolbar { background: var(--usa-dark); color: #fff; padding: 10px 24px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.quote-scroll { flex: 1; overflow: auto; background: #5a5a5a; }
.quote-wrap { max-width: 820px; width: 100%; margin: 24px auto 60px; }
.quote-page { background: #fff; width: 100%; padding: 40px 36px; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.quote-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 3px solid var(--usa-blue); }
.quote-brand { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: var(--usa-blue); }
.quote-badge { display: inline-block; margin-top: 6px; padding: 3px 10px; background: var(--usa-blue-light); color: var(--usa-blue); font-size: 10px; font-weight: 700; border-radius: 4px; letter-spacing: 0.5px; }
.quote-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--usa-gray); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--usa-border); }
.quote-hero { display: flex; gap: 24px; padding: 20px; background: #FAFAFA; border: 1px solid var(--usa-border); border-radius: 10px; }
.quote-hero img { width: 200px; height: 150px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid #eee; }
.quote-spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.quote-spec-box { padding: 8px 10px; background: #fff; border: 1px solid var(--usa-border); border-radius: 6px; }
.quote-spec-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--usa-gray); }
.quote-spec-val { font-size: 13px; font-weight: 700; margin-top: 1px; }
.quote-inc-tag { font-size: 10px; font-weight: 600; padding: 3px 10px; background: var(--usa-green-light); color: #2D6A4F; border-radius: 12px; display: inline-block; margin: 2px; }
.quote-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #FAFAFA; border: 1px solid var(--usa-border); border-radius: 8px; margin-bottom: 6px; }
.quote-row-price { font-size: 14px; font-weight: 800; color: var(--usa-red); white-space: nowrap; flex-shrink: 0; }
.quote-req-pill { font-size: 9px; background: var(--usa-navy-light); color: var(--usa-navy); padding: 1px 6px; border-radius: 3px; font-weight: 600; text-transform: capitalize; display: inline-block; margin: 1px; }

/* ─── LINE ITEM THUMBS ─── */
.line-thumb { width: 44px; height: 44px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.06); }

/* ─── INFO MODAL OVERRIDES ─── */
.info-modal .modal-header { background: #FAFAFA; }
.info-modal .modal-title { font-size: 18px; font-weight: 700; color: var(--usa-navy); }
.info-modal .haz-class { font-size: 12px; color: var(--usa-blue); font-weight: 600; }
.info-modal .callout { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.info-modal .callout-warm { background: #FFF7ED; border: 1px solid #FED7AA; }
.info-modal .callout-blue { background: var(--usa-blue-light); border: 1px solid #BFDBFE; }
.info-modal .callout-icon { font-size: 22px; }
.info-modal .sec-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--usa-gray); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--usa-border); }
.info-modal .pill { font-size: 12px; font-weight: 500; padding: 5px 12px; background: var(--usa-bg); border: 1px solid var(--usa-border); border-radius: 20px; display: inline-block; margin: 3px; }
.info-modal .warn-box { background: #FEF2F2; border: 1px solid #FECACA; border-radius: 6px; padding: 12px 14px; }
.info-modal .warn-item { font-size: 12px; color: #991B1B; line-height: 1.45; padding-left: 16px; position: relative; margin-bottom: 4px; }
.info-modal .warn-item::before { content: "⚠"; position: absolute; left: 0; }

/* ─── MODAL IMAGE CAROUSEL ─── */
.modal-carousel { border-radius: 8px; overflow: hidden; border: 1px solid var(--usa-border); background: #FAFAFA; }
.modal-carousel .carousel-inner { border-radius: 8px 8px 0 0; }
.modal-carousel .carousel-item img { max-height: 340px; object-fit: contain; background: #f0f0f0; }
.modal-carousel .carousel-caption-below { padding: 8px 14px; font-size: 11px; color: var(--usa-gray); text-align: center; font-weight: 500; background: #FAFAFA; border-top: 1px solid var(--usa-border); }
.modal-carousel .carousel-control-prev-icon,
.modal-carousel .carousel-control-next-icon { background-color: rgba(0,0,0,0.5); border-radius: 50%; padding: 12px; background-size: 50%; }
.modal-carousel .carousel-indicators button { background-color: var(--usa-blue); }

/* ─── STEP PANELS ─── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* Fade transition */
.step-panel { opacity: 0; transition: opacity .18s; }
.step-panel.active { opacity: 1; }

/* ─── SHELVING GRID ─── */
.shelving-title { font-size: 13px; font-weight: 700; color: #333; margin-bottom: 12px; }
.shelving-grid { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--usa-border); border-radius: 4px; overflow: hidden; }
.shelving-grid th { font-size: 12px; font-weight: 600; color: var(--usa-gray); text-align: center; padding: 8px 16px; }
.shelving-grid th:first-child { text-align: left; }
.shelving-grid td { padding: 12px 16px; border-top: 1px solid var(--usa-border); }
.shelving-grid tbody tr { background: #fff; }
.shelving-grid tbody tr:nth-child(even) { background: #fafafa; }
.shelving-wall-label { font-size: 13px; font-weight: 600; color: #333; }
.shelving-cell { text-align: center; cursor: pointer; }
.shelving-cell .rb { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--usa-border); display: inline-flex; align-items: center; justify-content: center; transition: all .1s; }
.shelving-cell:hover .rb { border-color: var(--usa-blue); }
.shelving-cell .rb.on { border-color: var(--usa-blue); }
.shelving-cell .rb.on::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--usa-blue); }

/* ─── SUB-OPTIONS (alarm type, etc.) ─── */
.sub-options { background: #fff; border: 1px solid var(--usa-blue); border-top: none; border-radius: 0 0 4px 4px; padding: 12px 14px 12px 44px; margin-top: -2px; }
.sub-options-label { font-size: 12px; font-weight: 600; color: #333; margin-bottom: 8px; }
.sub-options-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sub-option { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f8f8f8; border: 1px solid var(--usa-border); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 600; transition: all .1s; }
.sub-option:hover { border-color: var(--usa-blue); }
.sub-option.active { border-color: var(--usa-blue); background: var(--usa-blue-light); }
.sub-option .rb { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--usa-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sub-option.active .rb { border-color: var(--usa-blue); }
.sub-option .rb.on::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--usa-blue); }

/* ─── FM DISTANCE GUIDE ─── */
.fm-distance-guide { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 6px; padding: 10px 14px; }
.fm-guide-title { font-size: 11px; font-weight: 700; color: #92400E; margin-bottom: 6px; }
.fm-guide-items { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.fm-guide-item { display: flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 10px; border-radius: 4px; background: #fff; border: 1px solid #E5E7EB; }
.fm-guide-item .fm-dist { font-weight: 700; color: #333; min-width: 52px; }
.fm-guide-item .fm-rating { color: #555; }
.fm-guide-item.warn { border-color: #F59E0B; background: #FEF3C7; }
.fm-guide-item.warn .fm-rating { color: #92400E; font-weight: 600; }
.fm-guide-item.danger { border-color: #EF4444; background: #FEE2E2; }
.fm-guide-item.danger .fm-rating { color: #991B1B; font-weight: 600; }
.fm-guide-note { font-size: 9px; color: #92400E; font-style: italic; }

/* ─── STANDARD FEATURES BAR ─── */
.std-features-bar { background: #fff; border: 1px solid var(--usa-border); border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.std-features-title { font-size: 12px; font-weight: 700; color: var(--usa-navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.std-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.std-feat { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #555; }
.std-feat-icon { font-size: 13px; flex-shrink: 0; width: 18px; text-align: center; }
.std-feat-text { line-height: 1.3; }

/* Responsive tweaks */
@media (max-width: 991px) {
  .usa-sidebar { position: static !important; }
  .std-features-grid { grid-template-columns: 1fr; }
}
