/* ==========================================================================
   BAKKAR PRINTING — THEME "MOMENTUM"
   pages/quote.css — quote.html only.
   --------------------------------------------------------------------------
   THE MONEY PAGE. A 3-step RFQ that composes a packaging specification into
   the five real DB columns (name, mobile, email, title, notes) and shows the
   composition happening, live, in a sticky payload panel.

   Everything here is namespaced to this page:
     .quote__*   the two-column layout
     .qprog      the step progress rail
     .qcard      the form card (head / body / foot)
     .qpanel     one step
     .qtile      the bag-type radio tiles
     .qdim       dimension input with a unit suffix
     .qpay       the live payload preview  <- the clever bit
     .qside      the reassurance rail
     .qsuccess   the post-submit screen
   Everything else (.btn .field .input .select .textarea .check .file .badge
   .chip .card .empty .spinner) comes from the shared kit and is NOT redefined.

   RTL: logical properties only. No mirrored blocks.
   ========================================================================== */

/* ==========================================================================
   1. PAGE HEAD ADDITIONS
   ========================================================================== */
.quote-head .page-head__in { display: flex; flex-direction: column; gap: var(--sp-5); }

.quote-head__crumbs { margin-block-end: calc(var(--sp-2) * -1); }

.qtrust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.qtrust__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-2);
}
.qtrust__item svg {
  inline-size: 15px;
  block-size: 15px;
  flex: none;
  padding: 3px;
  border-radius: var(--r-circle);
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--glow-brand);
}

/* ==========================================================================
   2. LAYOUT — form column + sticky reassurance/payload rail
   ========================================================================== */
.quote { background: var(--bg-warm); }

.quote__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 0.8rem + 1.8vw, 2.25rem);
  align-items: start;
}
@media (min-width: 1024px) {
  .quote__layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.quote__main { min-inline-size: 0; }

.quote__aside {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
  min-inline-size: 0;
}
/* A sticky rail that scrolls inside itself if the viewport is short — it can
   never overlap the form, and it never traps the page scroll. */
@media (min-width: 1024px) {
  .quote__aside {
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--sp-4));
    align-self: start;
    max-block-size: calc(100vh - var(--header-h) - var(--sp-10));
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Negative margin + padding = room for the card shadows inside the
       overflow box, with zero effect on the grid alignment. */
    padding: 8px;
    margin: -8px;
    scrollbar-width: thin;
    scrollbar-color: var(--ink-200) transparent;
  }
  .quote__aside::-webkit-scrollbar { inline-size: 6px; }
  .quote__aside::-webkit-scrollbar-track { background: transparent; }
  .quote__aside::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: var(--r-pill); }
  .quote__aside::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
}

/* ==========================================================================
   3. THE FORM CARD
   ========================================================================== */
.qcard {
  position: relative;
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: var(--sh-3), var(--sh-ring);
  overflow: hidden;
}

.qcard__head {
  padding: var(--card-pad);
  padding-block-end: var(--sp-5);
  background:
    radial-gradient(28rem 16rem at 100% 0%, rgba(249, 115, 22, .08), transparent 65%),
    var(--grad-paper);
  border-block-end: var(--border);
}

.qcard__meta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-soft-line);
  color: var(--brand-ink);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}
[dir="rtl"] .qcard__meta { text-transform: none; font-size: var(--fs-xs); }

.qcard__title {
  margin-block-start: var(--sp-3);
  font-size: var(--fs-2xl);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}
.qcard__title:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }

.qcard__hint {
  margin-block-start: var(--sp-2);
  max-inline-size: 58ch;
  color: var(--text-2);
  font-size: var(--fs-sm);
}

.qcard__body { padding: var(--card-pad); }

.qcard__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--card-pad);
  padding-block-start: var(--sp-5);
  border-block-start: var(--border);
  background: var(--surface-2);
}
.qcard__foot-spacer { flex: 1 1 auto; }
@media (max-width: 559px) {
  .qcard__foot > .btn { flex: 1 1 100%; }
  .qcard__foot-spacer { display: none; }
}

/* ==========================================================================
   4. PROGRESS RAIL
   ========================================================================== */
.qprog { padding: var(--card-pad); padding-block-end: var(--sp-4); }

.qprog__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.qprog__btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  inline-size: 100%;
  min-block-size: var(--tap);
  padding: var(--sp-2);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: inherit;
  text-align: start;
  cursor: pointer;
  transition: background var(--d-quick) var(--e-soft), transform var(--d-quick) var(--e-spring);
}
.qprog__btn:hover:not(:disabled) { background: var(--surface-3); transform: translateY(-1px); }
.qprog__btn:disabled { cursor: default; }

.qprog__n {
  position: relative;
  display: grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  flex: none;
  border-radius: var(--r-circle);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-3);
  font-family: var(--font-num);
  font-size: var(--fs-sm);
  font-weight: var(--fw-heavy);
  transition:
    background var(--d-base) var(--e-spring),
    color var(--d-base) var(--e-soft),
    box-shadow var(--d-base) var(--e-soft),
    transform var(--d-base) var(--e-spring);
}
.qprog__digit { transition: opacity var(--d-fast) var(--e-soft); }
.qprog__n svg {
  position: absolute;
  inset: 0;
  margin: auto;
  inline-size: 15px;
  block-size: 15px;
  opacity: 0;
  transform: scale(.4);
  transition: opacity var(--d-fast) var(--e-soft), transform var(--d-quick) var(--e-spring);
}

.qprog__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-3);
  line-height: 1.3;
  transition: color var(--d-quick) var(--e-soft);
}

.qprog__item.is-current .qprog__n {
  background: var(--grad-cta);
  box-shadow: var(--glow-brand);
  color: #fff;
  transform: scale(1.06);
}
.qprog__item.is-current .qprog__label { color: var(--text); }

.qprog__item.is-done .qprog__n {
  background: var(--ok-50);
  box-shadow: inset 0 0 0 2px var(--ok-500);
  color: var(--ok-700);
}
.qprog__item.is-done .qprog__digit { opacity: 0; }
.qprog__item.is-done .qprog__n svg { opacity: 1; transform: scale(1); }
.qprog__item.is-done .qprog__label { color: var(--text-2); }

.qprog__track {
  block-size: 5px;
  margin-block-start: var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.qprog__bar {
  display: block;
  block-size: 100%;
  inline-size: var(--p, 33.333%);
  border-radius: var(--r-pill);
  background: var(--grad-hot);
  transition: inline-size var(--d-slow) var(--e-out);
}

/* Under 560px the three labels stop fitting — keep the numbers, drop the
   words, and let the visible "Step 1 of 3" chip in the card head carry it. */
@media (max-width: 559px) {
  .qprog__label { display: none; }
  .qprog__btn { justify-content: center; }
}

/* ==========================================================================
   5. PANELS
   ========================================================================== */
.qpanel {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  animation: qpanel-in var(--d-slow) var(--e-out) both;
}
@keyframes qpanel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.qgroup { display: flex; flex-direction: column; gap: var(--sp-3); }
.qgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }

/* ==========================================================================
   6. BAG-TYPE TILES  (radio group, pill/rounded, springy)
   ========================================================================== */
.qtile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: var(--sp-3);
}

.qtile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  min-block-size: 108px;
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition:
    transform var(--d-base) var(--e-spring),
    box-shadow var(--d-base) var(--e-soft),
    background var(--d-quick) var(--e-soft);
}
.qtile:hover { transform: var(--lift); box-shadow: inset 0 0 0 1px var(--line-strong), var(--sh-2); }

.qtile input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.qtile__icon {
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  flex: none;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-1), var(--sh-ring);
  color: var(--text-2);
  transition:
    background var(--d-base) var(--e-spring),
    color var(--d-base) var(--e-soft),
    transform var(--d-base) var(--e-spring);
}
.qtile__icon svg { inline-size: 20px; block-size: 20px; }

.qtile__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--text);
}

.qtile__mark {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  display: grid;
  place-items: center;
  inline-size: 20px;
  block-size: 20px;
  border-radius: var(--r-circle);
  background: var(--grad-cta);
  color: #fff;
  opacity: 0;
  transform: scale(.4);
  transition: opacity var(--d-fast) var(--e-soft), transform var(--d-quick) var(--e-spring);
}
.qtile__mark svg { inline-size: 11px; block-size: 11px; }

.qtile:has(input:checked) {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand), var(--sh-2);
}
.qtile:has(input:checked) .qtile__icon {
  background: var(--grad-cta);
  color: #fff;
  transform: rotate(-4deg) scale(1.04);
}
.qtile:has(input:checked) .qtile__label { color: var(--text); }
.qtile:has(input:checked) .qtile__mark { opacity: 1; transform: scale(1); }

.qtile input:focus-visible ~ .qtile__icon { outline: 3px solid var(--focus); outline-offset: 3px; }

/* :has() is unavailable in a couple of older engines — this class is set by
   the page script as a belt-and-braces fallback so selection is NEVER
   invisible. */
.qtile.is-checked {
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 2px var(--brand), var(--sh-2);
}
.qtile.is-checked .qtile__icon { background: var(--grad-cta); color: #fff; }
.qtile.is-checked .qtile__label { color: var(--text); }
.qtile.is-checked .qtile__mark { opacity: 1; transform: scale(1); }

/* The field wrapper that holds the tile grid must still show an error. */
.field.is-invalid .qtile-grid {
  padding: var(--sp-2);
  margin: calc(var(--sp-2) * -1);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 2px var(--err-500);
  background: var(--err-50);
}

/* ==========================================================================
   7. DIMENSIONS — input with a unit suffix
   ========================================================================== */
.qdims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
@media (max-width: 419px) { .qdims { grid-template-columns: minmax(0, 1fr); } }

.qdim { position: relative; display: flex; align-items: center; }
/* NOT .num — that pins direction:ltr, which would resolve padding-inline-end
   to the right while the absolutely-positioned unit resolved to the left in
   RTL, and the two would collide. Take the numeral font, leave direction
   logical, and the pad + the suffix always land on the same side. */
.qdim .input {
  padding-inline-end: var(--sp-12);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.qdim__unit {
  position: absolute;
  inset-inline-end: var(--sp-4);
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-faint);
  pointer-events: none;
  direction: ltr;
  unicode-bidi: isolate;
}
/* Kill the spinner arrows — they collide with the unit suffix. */
.qdim .input::-webkit-outer-spin-button,
.qdim .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qdim .input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ==========================================================================
   8. PREFILL CHIP — set by ?product=<slug>
   ========================================================================== */
.qprefill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  background: var(--grad-hot-soft);
  box-shadow: inset 0 0 0 1px var(--brand-soft-line);
  min-inline-size: 0;
}
.qprefill__img {
  inline-size: 40px;
  block-size: 40px;
  flex: none;
  border-radius: var(--r-circle);
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.qprefill__text { display: flex; flex-direction: column; min-inline-size: 0; }
.qprefill__label {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--brand-ink);
}
[dir="rtl"] .qprefill__label { text-transform: none; letter-spacing: 0; font-size: var(--fs-xs); }
.qprefill__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qprefill__name:hover { color: var(--brand-ink); }
.qprefill__x {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  flex: none;
  border: 0;
  border-radius: var(--r-circle);
  background: var(--overlay-1);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--d-quick) var(--e-soft), transform var(--d-quick) var(--e-spring);
}
.qprefill__x:hover { background: var(--overlay-2); transform: rotate(90deg); }
.qprefill__x svg { inline-size: 13px; block-size: 13px; }

/* ==========================================================================
   9. FILE / ARTWORK
   ========================================================================== */
/* .file positions its input absolutely — give it a containing block, and make
   the (visually hidden) input's focus visible on the button that fronts it. */
.qfile { position: relative; }
.qfile input[type="file"]:focus-visible ~ .file__btn {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.qfile__size {
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--text-3);
  direction: ltr;
  unicode-bidi: isolate;
  flex: none;
}
.qfile__x {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  flex: none;
  border: 0;
  border-radius: var(--r-circle);
  background: var(--overlay-1);
  color: var(--text-2);
  cursor: pointer;
  transition: background var(--d-quick) var(--e-soft), transform var(--d-quick) var(--e-spring);
}
.qfile__x:hover { background: var(--overlay-2); transform: rotate(90deg); }
.qfile__x svg { inline-size: 13px; block-size: 13px; }

/* ==========================================================================
   10. THE PAYLOAD PANEL — "this is exactly what we receive"
   ========================================================================== */
.qpay {
  /* `overflow: hidden` (which rounds the dark head into the card's radius)
     drops this item's automatic minimum size from `auto` to 0. As a flex item
     in the height-capped .quote__aside rail it was therefore the only child
     that could shrink — it absorbed all the compression and collapsed to 0px,
     hiding the whole summary panel on desktop while its .qside siblings kept
     full height. `flex: none` pins it to its content height so the rail
     scrolls (as .quote__aside's own overflow-y:auto already intends). */
  flex: none;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-3), var(--sh-ring);
  overflow: hidden;
}

.qpay__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--grad-ink);
  color: var(--text-on-ink);
}
.qpay__head svg { inline-size: 18px; block-size: 18px; flex: none; color: var(--amber-400); }
/* The two-line stacks in this page are <span> wrappers (they sit inside <p>
   and <h2>), so they have to be blockified explicitly. */
.qpay__head > span:last-child,
.qhow__item > span:last-child,
.qturn > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-inline-size: 0;
}
.qpay__title { font-size: var(--fs-md); font-weight: var(--fw-heavy); color: #fff; }
.qpay__sub { font-size: var(--fs-2xs); color: var(--text-on-ink-2); line-height: 1.5; }

.qpay__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }

.qpay__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.qpay__row {
  display: grid;
  grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
  gap: var(--sp-3);
  align-items: start;
  padding-block: var(--sp-3);
  border-block-end: 1px dashed var(--line-strong);
}
.qpay__row:first-child { padding-block-start: 0; }

.qpay__key { display: flex; flex-direction: column; gap: 3px; min-inline-size: 0; }
.qpay__col {
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  background: var(--ink-900);
  color: #F7F7F8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  direction: ltr;
  unicode-bidi: isolate;
}
.qpay__lab { font-size: var(--fs-2xs); font-weight: var(--fw-semibold); color: var(--text-3); line-height: 1.4; }

.qpay__val {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.5;
  overflow-wrap: anywhere;
  min-inline-size: 0;
}
.qpay__val.is-empty { color: var(--text-faint); font-weight: var(--fw-medium); }
/* The mobile + email values are forced LTR (via .num / dir="ltr") so real phone
   numbers and addresses never get bidi-scrambled — correct, and kept. But while
   they are still EMPTY there is no LTR data to protect, and that forced LTR left
   their "—" placeholder hugging the opposite edge from the title/name dashes in
   Arabic. An empty placeholder should follow the page direction; JS strips
   .is-empty the moment a real value lands, restoring LTR for the data itself. */
[dir="rtl"] .qpay__val.is-empty { direction: rtl; }

.qpay__notes { display: flex; flex-direction: column; gap: var(--sp-2); }
.qpay__notes-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.qpay__ta {
  min-block-size: 190px;
  background: var(--ink-950);
  color: #E6E8EE;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: var(--fs-xs);
  cursor: text;
}
.qpay__ta:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.qpay__ta:focus {
  background: var(--ink-950);
  box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px rgba(237, 28, 36, .18);
}
.qpay__ta::placeholder { color: #6E7482; }

.qpay__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  justify-content: space-between;
}
.qpay__count {
  font-family: var(--font-num);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  color: var(--text-faint);
  direction: ltr;
  unicode-bidi: isolate;
}

/* The "preview what we send" button only exists where the rail is far away. */
.qpay-open { display: inline-flex; }
@media (min-width: 1024px) { .qpay-open { display: none; } }

/* The payload panel rendered inside the modal on mobile. */
.modal .qpay { box-shadow: none; }
.modal .qpay__head { border-radius: var(--r-lg); }

/* ==========================================================================
   11. REASSURANCE RAIL
   ========================================================================== */
.qside {
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-2), var(--sh-ring);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.qside--warm { background: var(--grad-hot-soft); box-shadow: inset 0 0 0 1px var(--brand-soft-line); }

.qside__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-tight);
  color: var(--text);
}
.qside__title svg { inline-size: 17px; block-size: 17px; flex: none; color: var(--brand); }
.qside__body { font-size: var(--fs-sm); line-height: 1.65; color: var(--text-2); }

/* how quoting works — 3 compact numbered rows */
.qhow { display: flex; flex-direction: column; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; counter-reset: qhow; }
.qhow__item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.qhow__n {
  display: grid;
  place-items: center;
  inline-size: 26px;
  block-size: 26px;
  flex: none;
  margin-block-start: 1px;
  border-radius: var(--r-circle);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand-soft-line);
  color: var(--brand-ink);
  font-family: var(--font-num);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-heavy);
}
.qhow__k { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--text); }
.qhow__v { font-size: var(--fs-xs); line-height: 1.6; color: var(--text-2); }

/* what we need from you — check list */
.qneed { display: flex; flex-direction: column; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.qneed__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--text-2);
}
.qneed__item svg {
  inline-size: 16px;
  block-size: 16px;
  flex: none;
  margin-block-start: 2px;
  padding: 3px;
  border-radius: var(--r-circle);
  background: var(--ok-50);
  color: var(--ok-700);
  box-shadow: inset 0 0 0 1px rgba(4, 120, 87, .25);
}

/* turnaround */
.qturn { display: flex; align-items: center; gap: var(--sp-4); }
.qturn__ring {
  display: grid;
  place-items: center;
  inline-size: 54px;
  block-size: 54px;
  flex: none;
  border-radius: var(--r-circle);
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--glow-brand);
}
.qturn__ring svg { inline-size: 24px; block-size: 24px; }
.qturn__v {
  font-family: var(--font-num);
  font-size: var(--fs-xl);
  font-weight: var(--fw-heavy);
  line-height: 1.1;
  color: var(--text);
}
.qturn__k { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-3); }

.qside__actions { display: flex; flex-direction: column; gap: var(--sp-2); }

/* ==========================================================================
   12. SUCCESS SCREEN
   ========================================================================== */
.qsuccess {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  padding: clamp(1.75rem, 1.1rem + 2.8vw, 3.5rem);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(34rem 20rem at 50% 0%, rgba(16, 185, 129, .10), transparent 70%),
    var(--surface);
  box-shadow: var(--sh-4), var(--sh-ring);
  text-align: center;
}

.qsuccess__mark {
  display: grid;
  place-items: center;
  inline-size: 76px;
  block-size: 76px;
  border-radius: var(--r-circle);
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--glow-brand-lg);
  animation: qpop var(--d-slower) var(--e-spring) both;
}
.qsuccess__mark svg { inline-size: 34px; block-size: 34px; }
@keyframes qpop {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

.qsuccess__title { font-size: var(--fs-2xl); letter-spacing: var(--ls-tight); color: var(--text); }
.qsuccess__title:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-xs); }
.qsuccess__body { max-inline-size: 54ch; color: var(--text-2); font-size: var(--fs-base); line-height: var(--lh-normal); }

.qsuccess__ref {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.qsuccess__ref-k { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-3); }
.qsuccess__ref-v {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
}

.qsuccess__recap { inline-size: 100%; text-align: start; display: flex; flex-direction: column; gap: var(--sp-2); }
.qsuccess__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; inline-size: 100%; }
@media (max-width: 559px) { .qsuccess__actions > .btn { flex: 1 1 100%; } }

/* ==========================================================================
   13. CLOSING BAND
   ========================================================================== */
.quote-cta { padding-block-end: var(--sp-section); }
