/* ==========================================================================
   MOKY Screens: Get a quote (js/quote/quote.js). Everything here is prefixed qt-.
   The hero's button, the floating button, the window, the calculator and the home section that holds it.
   Tokens, .btn and .hud come from style.css.
   ========================================================================== */

@property --qt-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- The hero's button ---------- */
.qt-cta {
  --mx: 50%; --my: 50%; --tx: 0px; --ty: 0px;
  position: relative; isolation: isolate; overflow: visible;
  display: inline-grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 66px; margin-top: 26px; padding: 10px 12px 10px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2F6BFF 0%, #4B5BFF 45%, #7C4DFF 100%);
  box-shadow: 0 12px 34px rgba(47, 107, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
  transform: translate3d(var(--tx), var(--ty), 0);
  transition: transform .3s var(--ease), box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
[dir="rtl"] .qt-cta { padding: 10px 10px 10px 12px; }
/* a light ring that runs around the edge */
.qt-cta::before {
  content: ""; position: absolute; inset: -3px; z-index: -1;
  padding: 2px; border-radius: inherit;
  background: conic-gradient(from var(--qt-a), rgba(34, 211, 238, 0) 0deg, #22D3EE 70deg, #fff 95deg, #A58BFF 130deg, rgba(124, 77, 255, 0) 200deg, rgba(34, 211, 238, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: qtSpin 3.6s linear infinite;
}
/* the light under the pointer, and a sheen that passes now and then */
.qt-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(140px circle at var(--mx) var(--my), rgba(255, 255, 255, .3), transparent 65%),
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%) -160% 0 / 60% 100% no-repeat;
  animation: qtSheen 5.2s ease-in-out 1.2s infinite;
}
.qt-cta:hover { box-shadow: 0 16px 42px rgba(47, 107, 255, .6), 0 0 0 4px rgba(79, 141, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .28); }
.qt-cta:active { transform: translate3d(var(--tx), var(--ty), 0) scale(.97); }
.qt-cta:focus-visible { outline: 2px solid var(--cy); outline-offset: 5px; }
.qt-cta-ic {
  position: relative; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.qt-cta-ic::after { /* a soft ping */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .5);
  animation: qtPing 2.6s ease-out infinite;
}
.qt-cta-ic .ic { width: 22px; height: 22px; stroke-width: 1.9; }
.qt-cta-ic .ic path[class] { stroke-dasharray: 8; stroke-dashoffset: 0; animation: qtPrint 3.2s ease-in-out infinite; }
.qt-cta-ic .ic .l2 { animation-delay: .25s; }
.qt-cta-ic .ic .l3 { animation-delay: .5s; }
.qt-cta-t { display: grid; gap: 1px; min-width: 0; text-align: start; }
.qt-cta-t b { font: 700 17px/1.2 var(--fd); letter-spacing: -.01em; white-space: nowrap; }
.qt-cta-t small { font: 600 12.5px/1.3 var(--fb); color: rgba(255, 255, 255, .82); white-space: nowrap; }
[dir="rtl"] .qt-cta-t b { letter-spacing: 0; }
.qt-cta-go {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: #2F4BFF;
  transition: transform .3s var(--ease);
}
.qt-cta-go .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.qt-cta:hover .qt-cta-go { transform: translateX(4px); }
[dir="rtl"] .qt-cta-go .ic { transform: scaleX(-1); }
[dir="rtl"] .qt-cta:hover .qt-cta-go { transform: translateX(-4px); }
/* the offer tag pinned to the button's top edge: the badge of the design system on the navy ground */
.qt-cta-tag {
  position: absolute; z-index: 2; top: -12px; inset-inline-end: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--ok); background: var(--bg); color: var(--ok);
  font: 700 11px/1.5 var(--fb); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(5, 11, 36, .5), 0 0 16px rgba(34, 197, 94, .28);
}
.qt-cta-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.qt-ripple {
  position: absolute; z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none;
  animation: qtRipple .65s ease-out forwards;
}
.qt-cta .qt-ripple { clip-path: none; }
@keyframes qtSpin { to { --qt-a: 360deg; } }
@keyframes qtSheen { 0%, 62% { background-position: 0 0, -160% 0; } 100% { background-position: 0 0, 260% 0; } }
@keyframes qtPing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }
/* The receipt's lines show first, wipe away, then print back in. */
@keyframes qtPrint { 0%, 62% { stroke-dashoffset: 0; } 78% { stroke-dashoffset: -8; } 78.01% { stroke-dashoffset: 8; } 100% { stroke-dashoffset: 0; } }
@keyframes qtRipple { to { transform: scale(14); opacity: 0; } }
@media (max-width: 420px) {
  .qt-cta { display: grid; width: 100%; }
  .qt-cta-t b { font-size: 16px; }
}

/* ---------- The floating button ---------- */
.qt-fab {
  position: fixed; z-index: 45;
  inset-inline-end: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 6px 20px 6px 6px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2F6BFF, #7C4DFF);
  box-shadow: 0 12px 32px rgba(5, 11, 36, .6), 0 0 22px rgba(47, 107, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff; font: 700 15px var(--fb);
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
  visibility: hidden;
}
[dir="rtl"] .qt-fab { padding: 6px 6px 6px 20px; }
.qt-fab.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s; }
.qt-fab:hover { filter: brightness(1.08); }
.qt-fab:active { transform: scale(.96); }
.qt-fab:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; }
.qt-fab-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.qt-fab-ic .ic { width: 20px; height: 20px; }
.qt-fab-ic .ic path[class] { stroke-dasharray: 8; stroke-dashoffset: 0; }
.qt-fab.on .qt-fab-ic .ic path[class] { animation: qtPrint 3.2s ease-in-out infinite; }
.qt-fab.on .qt-fab-ic .ic .l2 { animation-delay: .25s; }
.qt-fab.on .qt-fab-ic .ic .l3 { animation-delay: .5s; }

/* ---------- The window ---------- */
.qt-lock { overflow: hidden; }
.qt-dlg {
  --ox: 0px; --oy: 0px;
  width: min(580px, calc(100% - 32px)); max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--ln); border-radius: 20px;
  background: linear-gradient(180deg, #0F1D57, #0A1440 60%);
  color: var(--tx);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(79, 141, 255, .12);
  scrollbar-width: thin; scrollbar-color: var(--ln) transparent;
}
.qt-dlg::backdrop { background: rgba(3, 8, 24, .66); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.qt-dlg[open] { animation: qtDlgIn .46s cubic-bezier(.2, .9, .25, 1) both; }
.qt-dlg[open]::backdrop { animation: qtFade .3s ease both; }
.qt-dlg.qt-closing { animation: qtDlgOut .24s ease-in both; }
.qt-dlg.qt-closing::backdrop { animation: qtFade .24s ease reverse both; }
@keyframes qtDlgIn { from { opacity: 0; transform: translate(var(--ox), var(--oy)) scale(.35); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes qtDlgOut { to { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes qtFade { from { opacity: 0; } to { opacity: 1; } }
.qt-dh {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 10px 22px;
  background: linear-gradient(180deg, #0F1D57 70%, rgba(15, 29, 87, 0));
}
[dir="rtl"] .qt-dh { padding: 14px 22px 10px 14px; }
.qt-dt { flex: 1; font: 800 11px/1.2 var(--fb); letter-spacing: .14em; text-transform: uppercase; color: var(--cy); }
[dir="rtl"] .qt-dt { letter-spacing: 0; font-size: 13px; }
.qt-x {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--sl); border-radius: 50%; background: rgba(5, 11, 36, .5); color: var(--mu);
  transition: color .15s, border-color .15s, background-color .15s;
}
.qt-x:hover { color: var(--tx); border-color: var(--pg); background: var(--s2); }
.qt-dbody { padding: 0 22px 22px; }
@media (max-width: 599.98px) {
  .qt-dlg {
    width: 100%; max-height: 94dvh; margin: auto 0 0;
    border-bottom: 0; border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .qt-dlg[open] { animation-name: qtSheetIn; animation-duration: .4s; }
  .qt-dlg.qt-closing { animation-name: qtSheetOut; }
  .qt-dbody { padding: 0 16px 18px; }
  .qt-dh { padding: 12px 10px 8px 16px; }
  [dir="rtl"] .qt-dh { padding: 12px 16px 8px 10px; }
  .qt-dh::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 99px; background: var(--sl); }
}
@keyframes qtSheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes qtSheetOut { to { transform: translateY(100%); } }

/* ---------- The calculator ---------- */
.qt { display: grid; gap: 16px; min-width: 0; }
.qt [hidden] { display: none !important; }
.qt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qt-prog { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.qt-prog li { display: inline-flex; align-items: center; gap: 7px; color: var(--mu); font: 700 12px/1 var(--fb); }
.qt-prog li + li::before { content: ""; width: 18px; height: 1px; margin-inline-end: 1px; background: var(--sl); }
.qt-prog i {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--sl); background: rgba(5, 11, 36, .6);
  font: 700 12px/1 var(--fd); font-style: normal;
  transition: background-color .3s, border-color .3s, color .3s;
}
.qt-prog i .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.qt-prog li.on { color: var(--tx); }
.qt-prog li.on i { border-color: var(--pg); background: var(--pr); color: #fff; box-shadow: var(--glow); }
.qt-prog li.done { color: var(--tx); }
.qt-prog li.done i { border-color: var(--ok); color: var(--ok); }
.qt-prog li.done::before, .qt-prog li.on::before { background: var(--pg); }
@media (max-width: 460px) { .qt-prog li:not(.on) span { display: none; } }
.qt-draft {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px;
  border: 1px solid var(--am); border-radius: 99px; background: rgba(245, 158, 11, .08);
  color: var(--am); font: 700 11px/1.6 var(--fb);
}
.qt-draft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.qt-body { --qt-dx: 22px; min-height: 340px; animation: qtStepIn .42s var(--ease) both; }
.qt[data-dir="back"] > .qt-body { --qt-dx: -22px; }
[dir="rtl"] .qt-body { --qt-dx: -22px; }
[dir="rtl"] .qt[data-dir="back"] > .qt-body { --qt-dx: 22px; }
@keyframes qtStepIn { from { opacity: 0; transform: translateX(var(--qt-dx)); } to { opacity: 1; transform: none; } }
.qt-step { display: grid; gap: 14px; }
.qt-h { margin: 0; font: 600 23px/1.25 var(--fd); letter-spacing: -.01em; text-wrap: balance; }
.qt-h:focus { outline: none; }
.qt-h:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; border-radius: 6px; }
[dir="rtl"] .qt-h { letter-spacing: 0; line-height: 1.4; }
.qt-sub { margin: -6px 0 2px; color: var(--mu); font-size: 14px; line-height: 1.55; text-wrap: pretty; }

/* 1. answers as cards */
.qt-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qt-opt { position: relative; display: block; cursor: pointer; }
.qt-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qt-opt-in {
  display: grid; justify-items: center; align-content: start; gap: 6px; height: 100%;
  padding: 18px 10px 16px; text-align: center;
  border: 1px solid var(--sl); border-radius: 16px;
  background: rgba(5, 11, 36, .55);
  transition: transform .2s var(--ease), border-color .2s, background-color .2s, box-shadow .25s;
}
.qt-opt:hover .qt-opt-in { transform: translateY(-2px); border-color: var(--pg); box-shadow: var(--lift); }
.qt-opt input:checked + .qt-opt-in { border-color: var(--pg); background: rgba(47, 107, 255, .2); box-shadow: var(--glow); }
.qt-opt input:focus-visible + .qt-opt-in { outline: 2px solid var(--cy); outline-offset: 2px; }
.qt-opt input:active + .qt-opt-in { transform: scale(.97); }
.qt-oi {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px;
  border-radius: 14px; background: linear-gradient(135deg, rgba(47, 107, 255, .45), rgba(34, 211, 238, .25)); color: #fff;
}
.qt-oi.stick { background: linear-gradient(135deg, rgba(124, 77, 255, .5), rgba(47, 107, 255, .3)); }
.qt-oi.mix { background: linear-gradient(135deg, rgba(47, 107, 255, .45), rgba(124, 77, 255, .45)); }
.qt-oi .ic { width: 22px; height: 22px; }
.qt-opt input:checked + .qt-opt-in .qt-oi { animation: qtPop .45s cubic-bezier(.2, 1.4, .4, 1); }
.qt-opt-in b { font: 600 17px/1.2 var(--fd); }
.qt-opt-in small { color: var(--mu); font-size: 12.5px; line-height: 1.4; }
@keyframes qtPop { 0% { transform: scale(.8); } 100% { transform: none; } }
@media (max-width: 520px) {
  .qt-opts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .qt-opt-in { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 14px; text-align: start; }
  .qt-oi { grid-row: span 2; width: 42px; height: 42px; margin: 0; }
}

.qt-link {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 4px; border: 0; background: none;
  color: var(--pg); font: 700 13.5px var(--fb);
}
.qt-link .ic { width: 16px; height: 16px; }
.qt-link:hover { color: var(--tx); }
.qt-link.sm { font-size: 13px; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; }
.qt-sure { display: grid; gap: 10px; padding: 12px 14px; border: 1px dashed var(--ln); border-radius: 12px; background: rgba(5, 11, 36, .5); animation: qtFade .3s ease; }
.qt-sure p { margin: 0; color: var(--mu); font-size: 13.5px; line-height: 1.55; }
.qt-sure div { display: flex; flex-wrap: wrap; gap: 8px; }

.qt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.qt-foot .btn .ic, .qt-done-btns .btn .ic { width: 17px; height: 17px; }
.qt-back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px;
  border: 0; background: none; color: var(--mu); font: 700 14px var(--fb);
}
.qt-back:hover { color: var(--tx); }
.qt-back .ic { width: 17px; height: 17px; }
[dir="rtl"] .qt-back .ic, [dir="rtl"] .qt .btn .ic.go { transform: scaleX(-1); }

/* 2. how many */
.qt-cnt { display: grid; gap: 8px; }
.qt-cnt-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qt-cnt-h b { font: 600 15px var(--fd); }
.qt-cnt-h span { color: var(--mu); font-size: 12.5px; }
.qt-cnt-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.qt-num {
  display: grid; grid-template-columns: 46px 86px 46px; height: 52px;
  border: 1px solid var(--field); border-radius: 14px; background: var(--bg); overflow: hidden; direction: ltr;
}
.qt-num:focus-within { border-color: var(--pg); box-shadow: 0 0 0 3px rgba(79, 141, 255, .25); }
.qt-num button { border: 0; background: none; color: var(--tx); font: 500 24px/1 var(--fb); transition: background-color .15s; }
.qt-num button:hover:not(:disabled) { background: var(--s2); }
.qt-num button:active:not(:disabled) { background: rgba(47, 107, 255, .3); }
.qt-num button:disabled { color: var(--sl); cursor: default; }
.qt-num input {
  width: 100%; min-width: 0; border: 0; border-inline: 1px solid var(--sl); background: none;
  color: var(--tx); font: 700 22px var(--fd); text-align: center; -moz-appearance: textfield; appearance: textfield;
}
.qt-num input::-webkit-outer-spin-button, .qt-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qt-num input:focus { outline: none; }
.qt-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.qt-quick button {
  min-width: 44px; min-height: 40px; padding: 0 10px;
  border: 1px solid var(--sl); border-radius: 10px; background: rgba(5, 11, 36, .55);
  color: var(--mu); font: 700 14px var(--fb);
  transition: border-color .15s, color .15s, background-color .15s, transform .15s var(--ease);
}
.qt-quick button:hover { border-color: var(--pg); color: var(--tx); }
.qt-quick button:active { transform: scale(.94); }
.qt-quick button[aria-pressed="true"] { border-color: var(--pg); background: var(--pr); color: #fff; }

.qt-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 6px; min-height: 22px; direction: ltr; }
.qt-tile {
  display: block; aspect-ratio: 16 / 10; border-radius: 5px;
  border: 1.5px solid var(--pg);
  background: var(--art); background-size: 220% 220%;
  box-shadow: 0 0 10px rgba(47, 107, 255, .3);
  animation: qtTile .45s cubic-bezier(.2, 1.4, .4, 1) both, qtArt 8s ease-in-out infinite;
}
.qt-tile.vi { border-color: var(--vi); box-shadow: 0 0 10px rgba(124, 77, 255, .4); }
.qt-tile.t1 { --art: linear-gradient(135deg, #2F6BFF, #0A1440 60%, #22D3EE); }
.qt-tile.t2 { --art: linear-gradient(135deg, #7C4DFF, #2F6BFF 55%, #0A1440); animation-delay: 0s, -2s; }
.qt-tile.t3 { --art: radial-gradient(circle at 20% 30%, #22D3EE 0, transparent 45%), linear-gradient(135deg, #2F6BFF, #0A1440); animation-delay: 0s, -4s; }
.qt-tile.t4 { --art: radial-gradient(circle at 80% 70%, #7C4DFF 0, transparent 46%), linear-gradient(135deg, #0A1440, #2F6BFF); animation-delay: 0s, -6s; }
.qt-more { display: grid; place-items: center; border: 1px dashed var(--ln); border-radius: 5px; color: var(--mu); font: 700 11px var(--fb); }
@keyframes qtTile { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes qtArt { 50% { background-position: 100% 100%; } }

.qt-est {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; border: 1px solid var(--sl); border-radius: 14px; background: rgba(5, 11, 36, .5);
  color: var(--mu); font-size: 14px;
}
.qt-est .qt-od { color: var(--tx); font: 700 26px var(--fd); }

.qt-err { margin: 0; color: #FFB4C2; font-size: 13px; font-weight: 600; }
.qt-err:empty { display: none; }

/* rolling digits */
.qt-od { display: inline-flex; align-items: flex-start; direction: ltr; --h: 1.12em; line-height: var(--h); font-variant-numeric: tabular-nums; }
.qt-od .d { position: relative; display: inline-block; width: .64em; height: var(--h); overflow: hidden; }
.qt-od .strip {
  position: absolute; inset-inline: 0; top: 0; display: block;
  transform: translateY(calc(var(--n, 0) * -10%));
  transition: transform .95s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--k, 0) * 50ms);
}
.qt-od .strip em { display: block; height: var(--h); font-style: normal; text-align: center; }
.qt-od .s { display: inline-block; height: var(--h); }

/* 3. the price */
.qt-sum { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qt-sum .qt-h { font-size: 19px; }
.qt-chip { padding: 3px 10px; border: 1px solid var(--ln); border-radius: 99px; background: rgba(47, 107, 255, .14); font: 700 12.5px var(--fb); }
.qt-price {
  position: relative; display: grid; justify-items: center; gap: 2px;
  padding: 20px 16px 16px; border: 1px solid var(--ln); border-radius: 18px; text-align: center;
  background: radial-gradient(320px 140px at 50% 0%, rgba(47, 107, 255, .32), transparent 70%), rgba(5, 11, 36, .55);
  overflow: hidden;
}
.qt-big { font: 700 clamp(44px, 9vw, 58px)/1 var(--fd); letter-spacing: -.02em; filter: drop-shadow(0 0 18px rgba(79, 141, 255, .5)); }
.qt-unit { margin: 6px 0 0; color: var(--mu); font-size: 13.5px; }
.qt-yr { display: inline-flex; align-items: baseline; gap: 6px; margin: 10px 0 0; padding: 4px 12px; border-radius: 99px; background: rgba(124, 77, 255, .16); font: 700 14px var(--fb); }
.qt-yr .qt-od { font: 700 15px var(--fd); }
.qt-yr span { color: var(--mu); font-weight: 600; }
.qt-seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; justify-self: center;
  padding: 4px; border: 1px solid var(--sl); border-radius: 12px; background: rgba(5, 11, 36, .6);
}
.qt-seg label { position: relative; display: block; }
.qt-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qt-seg span { display: grid; place-items: center; min-height: 36px; padding: 0 16px; border-radius: 9px; color: var(--mu); font: 700 13px var(--fb); transition: background-color .2s, color .2s; }
.qt-seg input:checked + span { background: var(--pr); color: #fff; box-shadow: var(--glow); }
.qt-seg input:focus-visible + span { outline: 2px solid var(--cy); outline-offset: 1px; }
/* the VAT switch and the currency list, side by side (they wrap on a narrow phone) */
.qt-ctl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.qt-curp {
  position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding-inline: 12px 10px;
  border: 1px solid var(--sl); border-radius: 12px; background: rgba(5, 11, 36, .6); color: var(--mu); cursor: pointer;
}
.qt-curp:hover { color: var(--tx); }
.qt-curp:focus-within { border-color: var(--pg); box-shadow: 0 0 0 3px rgba(79, 141, 255, .25); }
.qt-curp .ic { width: 17px; height: 17px; flex: none; }
.qt-curp::after { content: ""; width: 6px; height: 6px; margin-inline-start: -14px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); pointer-events: none; }
.qt-curp select {
  -webkit-appearance: none; appearance: none; max-width: 210px; min-height: 36px; margin: 0; padding: 0; padding-inline-end: 22px;
  border: 0; background: transparent; color: var(--tx); font: 700 13px var(--fb); text-overflow: ellipsis; cursor: pointer;
}
.qt-curp select:focus { outline: none; }
.qt-curp option, .qt-curp optgroup { background: #0A1440; color: #fff; }
.qt-fx { max-width: 44ch; margin: 10px 0 0; color: var(--mu); font-size: 12px; line-height: 1.5; }
.qt-lines { border: 1px solid var(--sl); border-radius: 12px; background: rgba(5, 11, 36, .4); }
.qt-lines summary {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  cursor: pointer; list-style: none; color: var(--mu); font: 700 13px var(--fb);
}
.qt-lines summary::-webkit-details-marker { display: none; }
.qt-lines summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.qt-lines[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.qt-lines summary:hover { color: var(--tx); }
.qt-lines dl { display: grid; gap: 2px; margin: 0; padding: 0 14px 10px; }
.qt-ln { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; color: var(--mu); }
.qt-ln dt, .qt-ln dd { margin: 0; }
.qt-ln dd { color: var(--tx); font-weight: 700; white-space: nowrap; }
.qt-ln.sum { border-top: 1px solid var(--sl); padding-top: 8px; margin-top: 2px; }
.qt-ln.off dd { color: var(--ok); }
.qt-note { margin: 0; padding: 0 14px 12px; color: var(--mu); font-size: 12.5px; line-height: 1.5; }

.qt-mail { display: grid; gap: 8px; padding-top: 4px; }
.qt-mail label { font: 600 15px var(--fd); }
.qt-mail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.qt-fld {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--field); border-radius: 12px; background: var(--bg); color: var(--tx);
  font: 600 15px var(--fb);
}
[dir="rtl"] .qt-fld { text-align: right; }
.qt-fld::placeholder { color: color-mix(in srgb, var(--mu) 70%, transparent); }
.qt-fld:focus { border-color: var(--pg); outline: none; box-shadow: 0 0 0 3px rgba(79, 141, 255, .25); }
.qt-fld[aria-invalid="true"] { border-color: var(--bad); }
.qt-mail .btn { min-height: 50px; }
.qt-mail .btn .ic { width: 17px; height: 17px; }
.qt-fine { margin: 0; color: var(--mu); font-size: 12px; line-height: 1.5; }
@media (max-width: 520px) {
  .qt-mail-row { grid-template-columns: minmax(0, 1fr); }
  .qt-mail .btn { width: 100%; }
}

/* 4. sent */
.qt-done { justify-items: center; align-content: center; min-height: 320px; text-align: center; }
.qt-done .qt-sub { margin: 0; max-width: 42ch; }
.qt-done .qt-sub b { color: var(--tx); word-break: break-all; }
.qt-tick { display: block; width: 76px; height: 76px; filter: drop-shadow(0 0 18px rgba(34, 197, 94, .45)); }
.qt-tick svg { width: 100%; height: 100%; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.qt-tick circle { stroke-dasharray: 145; stroke-dashoffset: 145; animation: qtDraw .7s ease-out .05s forwards; }
.qt-tick path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: qtDraw .45s ease-out .6s forwards; }
@keyframes qtDraw { to { stroke-dashoffset: 0; } }
.qt-done-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- The home page section ---------- */
.qt-sec { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.qt-intro .lead { max-width: 40ch; }
.qt-intro .cside { margin-top: 32px; }
.qt-panel { padding: 18px 24px 24px; }
.qt-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px;
  padding: 4px; border: 1px solid var(--sl); border-radius: 14px; background: rgba(5, 11, 36, .6);
}
.qt-tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px);
  border-radius: 10px; background: var(--pr); box-shadow: var(--glow);
  transition: transform .4s var(--ease);
}
.qt-tabs[data-on="message"]::before { transform: translateX(100%); }
[dir="rtl"] .qt-tabs[data-on="message"]::before { transform: translateX(-100%); }
.qt-tabs button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border: 0; border-radius: 10px; background: none;
  color: var(--mu); font: 700 14.5px var(--fb); transition: color .2s;
}
.qt-tabs button .ic { width: 17px; height: 17px; }
.qt-tabs button[aria-selected="true"] { color: #fff; }
.qt-tabs button:focus-visible { outline: 2px solid var(--cy); outline-offset: 2px; }
.qt-panel .cf { padding: 0; }
.qt-panel [role="tabpanel"]:focus { outline: none; }
.qt-panel [role="tabpanel"][hidden] { display: none !important; }
@media (max-width: 900px) {
  .qt-sec { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .qt-intro .cside { display: none; }
}
@media (max-width: 520px) {
  .qt-panel { padding: 14px 14px 18px; }
  .qt-body { min-height: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .qt-cta, .qt-fab { transform: none !important; }
  .qt-cta::before, .qt-cta::after, .qt-cta-ic::after, .qt-cta-ic .ic path[class], .qt-fab-ic .ic path[class] { animation: none !important; }
  .qt-cta-ic .ic path[class], .qt-fab-ic .ic path[class] { stroke-dashoffset: 0; }
  .qt-od .strip { transition: none !important; }
  .qt-tile { animation: none !important; }
  .qt-tick circle, .qt-tick path { stroke-dashoffset: 0; animation: none; }
}
