/* Estimate calculator for /managed-protection. Copied from calculator.html; colors set through the --qb-* variables to match the Level2 theme. */
/* All calculator styles are scoped under .qb so the block can be dropped into any page. */
.qb { --qb-card: #ffffff; --qb-ink: #1C1C25; --qb-muted: #525356; --qb-line: #e3e6f0;
      --qb-accent: #3E66F3; --qb-soft: #eef2fe; --qb-fill: #F6F7FA; --qb-danger: #b3261e;
      color: var(--qb-ink); font-family: inherit; font-size: 16px; line-height: 1.5; }
.qb *, .qb *::before, .qb *::after { box-sizing: border-box; }
.qb-wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 64px; }
.qb .qb-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--qb-accent); font-weight: 700; }
.qb .qb-title { font-size: 30px; line-height: 1.2; margin: 6px 0 8px; }
.qb .qb-lede { color: var(--qb-muted); margin: 0 0 26px; max-width: 62ch; }
.qb .qb-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.qb .qb-bar { height: 8px; background: var(--qb-line); border-radius: 99px; overflow: hidden; }
.qb .qb-bar i { display: block; height: 100%; background: var(--qb-accent); transition: width .2s; }
.qb .qb-steps { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.qb .qb-steps button { width: 100%; min-height: 44px; display: flex; gap: 8px; align-items: center; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--qb-ink); font: inherit; font-size: 14px; cursor: pointer; }
.qb .qb-steps button:hover:not(:disabled) { background: var(--qb-fill); }
.qb .qb-steps button:disabled { color: #a3acb6; cursor: default; }
.qb .qb-steps button.is-current { background: var(--qb-accent); color: #fff; font-weight: 600; }
.qb .qb-steps .n { width: 20px; text-align: center; flex: none; }
.qb .qb-panel { background: var(--qb-card); border: 1px solid var(--qb-line); border-radius: 12px; padding: 28px; }
.qb .qb-panel h3 { margin: 0 0 20px; font-size: 21px; }
.qb .qb-row { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border: 1px solid var(--qb-line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.qb .qb-row p { margin: 0; }
.qb .qb-label { font-weight: 600; }
.qb .qb-hint { color: var(--qb-muted); font-size: 14px; margin: 4px 0 0; }
.qb .qb-note { background: var(--qb-soft); border-radius: 12px; padding: 14px 18px; font-size: 14px; margin: 0 0 14px; }
.qb .qb-note b { display: block; margin-bottom: 2px; }
.qb .qb-qty { display: flex; gap: 6px; align-items: center; flex: none; }
.qb .qb-qty button { width: 38px; height: 38px; border: 1px solid var(--qb-line); background: #fff; color: var(--qb-ink); border-radius: 8px; font-size: 18px; cursor: pointer; }
.qb .qb-qty button:disabled { opacity: .4; cursor: default; }
.qb input, .qb textarea { font: inherit; color: inherit; border: 1px solid var(--qb-line); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; }
.qb input:focus, .qb textarea:focus, .qb button:focus-visible { outline: 2px solid var(--qb-accent); outline-offset: 1px; }
.qb .qb-qty input { width: 84px; text-align: center; }
.qb .qb-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--qb-line); background: #fff; color: var(--qb-ink); }
.qb .qb-btn.is-primary { background: var(--qb-accent); border-color: var(--qb-accent); color: #fff; }
.qb .qb-btn.is-ghost { border-color: transparent; background: transparent; color: var(--qb-muted); font-weight: 500; padding: 8px; }
.qb .qb-btn:disabled { opacity: .45; cursor: default; }
.qb .qb-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.qb .qb-nav span { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.qb .qb-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qb .qb-terms button { border: 1px solid var(--qb-line); background: #fff; color: var(--qb-ink); border-radius: 12px; padding: 22px; cursor: pointer; font: inherit; }
.qb .qb-terms button.is-on { border-color: var(--qb-accent); background: var(--qb-soft); box-shadow: 0 0 0 2px var(--qb-accent); }
.qb .qb-terms b { display: block; font-size: 30px; }
.qb .qb-terms span { color: var(--qb-muted); font-size: 14px; }
.qb table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qb th, .qb td { padding: 10px 12px; text-align: left; border-top: 1px solid var(--qb-line); vertical-align: top; }
.qb thead th { background: var(--qb-fill); border-top: 0; }
.qb td.num, .qb th.num { text-align: right; white-space: nowrap; }
.qb .qb-table { border: 1px solid var(--qb-line); border-radius: 10px; overflow-x: auto; }
.qb .qb-totals { background: var(--qb-fill); border-radius: 12px; padding: 20px; margin: 20px 0 0; }
.qb .qb-totals div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.qb .qb-totals dt { color: var(--qb-muted); } .qb .qb-totals dd { margin: 0; font-weight: 600; }
.qb .qb-totals .is-grand { border-top: 1px solid var(--qb-line); margin-top: 8px; padding-top: 12px; font-size: 18px; }
.qb .qb-totals .is-grand dt { color: var(--qb-ink); font-weight: 600; } .qb .qb-totals .is-grand dd { color: var(--qb-accent); font-weight: 700; }
.qb .qb-fine { font-size: 12px; color: var(--qb-muted); margin: 14px 0 0; }
.qb .qb-error { color: var(--qb-danger); font-size: 14px; margin: 14px 0 0; }
.qb .qb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qb .qb-grid .is-full { grid-column: 1 / -1; }
.qb label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.qb .qb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qb .qb-phase { display: grid; grid-template-columns: 1fr 90px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.qb .qb-box { border: 1px solid var(--qb-line); border-radius: 12px; padding: 18px; }
.qb .qb-box > * + * { margin-top: 12px; }
.qb .qb-labor { display: flex; justify-content: space-between; border-top: 1px solid var(--qb-line); padding-top: 12px; font-weight: 600; font-size: 14px; }
.qb .qb-done { text-align: center; padding: 20px 0; }
.qb .qb-done h3 { margin-bottom: 8px; }
#qb-doc { display: none; }
@media (max-width: 600px) {
  .qb .qb-steps { grid-template-columns: repeat(2, 1fr); }
  .qb .qb-row { flex-direction: column; align-items: flex-start; }
  .qb .qb-grid, .qb .qb-terms { grid-template-columns: 1fr; }
  .qb .qb-panel { padding: 18px; }
  .qb .qb-phase { grid-template-columns: 1fr 70px 36px; }
}
@media print {
  @page { margin: 18mm; }
  html.qb-print body > *:not(#qb-doc) { display: none !important; }
  html.qb-print body { background: #fff; }
  html.qb-print #qb-doc { display: block; font-size: 12px; }
  #qb-doc h1 { font-size: 24px; margin: 0; }
  #qb-doc h2 { font-size: 15px; margin: 22px 0 8px; }
  #qb-doc .meta { display: flex; justify-content: space-between; gap: 30px; margin: 14px 0 6px; }
  #qb-doc p { margin: 0 0 8px; }
  #qb-doc table { font-size: 12px; }
  #qb-doc .qb-totals, #qb-doc tr { break-inside: avoid; }
  #qb-doc .pre { white-space: pre-wrap; }
}
/* Theme reset: main.css gives every text input and textarea a fixed 56px height and line-height,
   and every p a 26px line-height. Undo that inside the calculator so its own sizes apply. */
.qb input, .qb textarea { height: auto; line-height: 1.5; }
.qb p { line-height: 1.5; font-family: inherit; }
.qb h3 { font-weight: 600; }
.qb dt { font-weight: 400; }
