/* Public pricing and quote page (quote/). Builds on site.css (tokens, buttons,
   container). Phone first; no inline styles (the CSP forbids them). */
body.q { overflow-x: clip; }
.q [hidden] { display: none !important; }

/* Header band */
.q-head { background: linear-gradient(180deg, #160809, var(--bg)); border-bottom: 3px solid var(--red); }
.q-head__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 22px; }
.q-head__brand img { width: clamp(170px, 24vw, 230px); }
.q-head__strap { margin: 8px 0 0; color: var(--muted); font-size: .9rem; letter-spacing: .02em; }
.q-head__tag { margin: 0; max-width: 360px; color: var(--text-soft); font-size: 1.05rem; font-weight: 600; }

/* Intro */
.q-intro { padding: 48px 0 28px; max-width: 760px; }
.q-intro h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; }
.q-intro p { margin: 16px 0 0; font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--text-soft); }

/* Plans */
.q-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.q-plan {
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, #2b1417 0%, #1b0c0e 55%, #140708 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.q-plan__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 20px 24px; background: rgba(0, 0, 0, .35); border-bottom: 1px solid var(--line); }
.q-plan__head h2 { font-size: 1.4rem; }
.q-plan__price { margin: 0; color: var(--muted); font-size: .9rem; }
.q-plan__price strong { font-size: 2rem; font-weight: 900; color: var(--text); margin-right: 4px; }
.q-ticks { list-style: none; margin: 0; padding: 18px 24px 24px; display: grid; gap: 10px; }
.q-ticks li { position: relative; padding-left: 30px; color: var(--text-soft); }
.q-ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red);
}
.q-ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.q-plan__price s { margin-right: 6px; color: var(--muted); font-size: 1.05rem; }
.q-charity-note {
  margin: 20px 0 0; padding: 12px 16px; border-radius: 10px; color: var(--text-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  background: rgba(251, 176, 64, .08); box-shadow: inset 0 0 0 1px rgba(251, 176, 64, .25);
}
.q-charity-note p { margin: 0; flex: 1 1 280px; }
.q-charity-btn { background: var(--amber); color: #1a0a00; min-height: 40px; }
.q-charity-btn:hover { background: #ffc566; }
.q-charity-btn[aria-pressed="true"] { background: transparent; color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }

.q-eyebrow { margin: 0 0 6px; color: var(--amber); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.q-calc h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: 18px; }

/* Business / Charity switch at the top of the calculator */
.q-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #0f0606; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.q-switch label { position: relative; cursor: pointer; }
.q-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.q-switch span { display: grid; place-items: center; min-height: 48px; padding: 6px 10px; border-radius: 9px; text-align: center; font-weight: 600; color: var(--text-soft); line-height: 1.25; transition: background-color .2s; }
.q-switch em { display: block; font-style: normal; font-size: .8rem; font-weight: 500; color: var(--amber); }
.q-switch input:checked + span { background: var(--red); color: #fff; }
.q-switch input:checked + span em { color: #ffe1b0; }
.q-switch input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Bolt-on tick boxes with their price */
.q-check.q-bolt-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 12px; }
.q-bolt-opt > span:nth-of-type(1) { display: grid; gap: 2px; }
.q-check.q-bolt-opt .q-hint { line-height: 1.35; margin-left: 0; }
.q-price { color: var(--muted); font-size: .85rem; white-space: nowrap; text-align: right; }
.q-price strong { color: var(--text); font-size: 1rem; }
@media (max-width: 600px) {
  .q-check.q-bolt-opt { grid-template-columns: 20px minmax(0, 1fr); }
  .q-price { grid-column: 2; text-align: left; }
}


/* Calculator */
.q-calc { margin-top: 64px; }
.q-calc__lead { margin: -8px 0 20px; color: var(--text-soft); }
.q-calc__grid { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .q-calc__grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
  .q-result { position: sticky; top: 16px; }
}
.q-calc__inputs { display: grid; gap: 16px; min-width: 0; }
.q-group {
  margin: 0; padding: 18px 20px 20px; border: 0; border-radius: var(--radius); min-width: 0;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px;
}
.q-group legend { float: left; width: 100%; padding: 0; margin-bottom: 2px; font-weight: 700; font-size: 1.1rem; }
.q-group legend + * { clear: both; }
.q-hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
.q-group legend .q-hint { display: block; margin-top: 2px; }

.q input[type="number"], .q input[type="text"], .q input[type="email"], .q input[type="tel"], .q select, .q textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16);
  background: #0f0606; color: var(--text); font: inherit;
}
.q textarea { resize: vertical; }
.q input:focus, .q select:focus, .q textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.q-count { display: grid; grid-template-columns: minmax(0, 1fr) 104px; grid-template-areas: "label label" "range number"; align-items: center; gap: 6px 14px; }
.q-count label { grid-area: label; font-weight: 600; }
.q-count input[type="range"] { grid-area: range; width: 100%; accent-color: var(--red); min-height: 32px; }
.q-count input[type="number"] { grid-area: number; text-align: right; }
.q-count--plain { grid-template-areas: "label number"; }
.q-field { display: grid; gap: 6px; }
.q-field label { font-weight: 600; }
.q-check { display: flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; }
.q-check input { width: 20px; height: 20px; flex: none; accent-color: var(--red); margin: 0; }
.q-check--top { align-items: flex-start; }
.q-check--top input { margin-top: 2px; }
.q-check a { color: var(--amber); }
.q-check .q-hint { margin-left: auto; }
.q-radios { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.q-radios > span { width: 100%; color: var(--text-soft); font-size: .95rem; }
.q-error { margin: 0; color: #ff8a8e; font-size: .9rem; }
.q-error:empty { display: none; }
.q-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Result panel */
.q-result {
  padding: 20px; border-radius: var(--radius); min-width: 0;
  background: linear-gradient(160deg, var(--panel-2) 0%, #200b0d 60%, #160709 100%);
  box-shadow: inset 0 0 0 1px rgba(189, 23, 29, .45), 0 18px 40px rgba(0, 0, 0, .35);
}
.q-result h3 { font-size: 1.2rem; margin-bottom: 10px; }
.q-result__charity { margin: 0 0 10px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(251, 176, 64, .15); color: var(--amber); font-weight: 600; font-size: .9rem; }
.q-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.q-lines th, .q-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.q-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.q-lines .q-line__calc { display: block; color: var(--muted); font-size: .85rem; }
.q-lines__empty td { color: var(--muted); text-align: left !important; white-space: normal !important; }
.q-lines tfoot th, .q-lines tfoot td { border-bottom: 0; color: var(--text-soft); }
.q-lines .q-total th, .q-lines .q-total td { padding-top: 12px; color: var(--text); font-weight: 800; font-size: 1.25rem; border-top: 2px solid var(--red); }
.q-lines th .q-hint { display: block; }
.q-ce { margin-top: 20px; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, .2); }
.q-ce h3 span { color: var(--muted); font-weight: 400; font-size: .95rem; }
.q-ce .q-total th, .q-ce .q-total td { font-size: 1.1rem; }
.q-result > .q-hint, .q-ce > .q-hint { margin: 10px 0 0; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.q-actions .btn { flex: 1 1 160px; justify-content: center; min-height: 44px; }
.q-actions .btn[disabled] { opacity: .6; cursor: progress; }
.q-status { margin: 12px 0 0; }
.q-status:empty { display: none; }
.q-status.is-ok { color: #8fe3a8; }
.q-status.is-error { color: #ff8a8e; }

/* Phones: the live total pinned to the bottom while filling in the form
   (quote.js shows it only while the calculator is on screen and the full
   quote isn't). */
.q-mini {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 12px; text-decoration: none;
  background: #2a0d10; box-shadow: inset 0 0 0 1px rgba(189, 23, 29, .6), 0 10px 30px rgba(0, 0, 0, .6);
}
.q-mini strong { margin-left: 6px; font-size: 1.15rem; }
.q-mini__go { color: var(--amber); font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) { .q-mini { display: none !important; } }

.q-footnote { margin: 40px 0 0; color: var(--muted); font-size: .9rem; }

/* Footer */
.q-foot { margin-top: 56px; padding: 40px 0 32px; border-top: 1px solid var(--line); background: #070202; }
.q-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.q-foot__lead { margin: 0 0 14px; font-size: 1.15rem; color: var(--text-soft); max-width: 420px; }
.q-foot address { font-style: normal; color: var(--text-soft); line-height: 1.9; }
.q-foot a { color: var(--text-soft); text-underline-offset: 3px; }
.q-foot address a:hover, .q-foot__small a:hover { color: var(--text); }
.q-foot .btn { color: #fff; }
.q-foot__small { margin-top: 28px; color: var(--muted); font-size: .85rem; }

@media (max-width: 600px) {
  .q-head__tag { font-size: .98rem; }
  .q-intro { padding-top: 32px; }
  .q-plan__head, .q-ticks { padding-left: 18px; padding-right: 18px; }
  .q-group { padding: 16px; }
  .q-result { padding: 18px 16px; }
  .q-foot address a { display: inline-block; padding: 6px 0; }
}
