/* The instant quote on /quote and the tables on /fees (pages_quote.py, assets/quote.js),
   in site.css's S14 type and colours. Loaded by those two pages only. */

.qz [hidden], .qz-sec [hidden] { display: none !important; }
.qz { scroll-margin-top: 110px; background: var(--pale); padding: 44px 44px 40px; }
.qz-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; }
.qz-side h2 { font-size: 30px; margin-bottom: 8px; }
.qz-side h3 { color: var(--red); margin: 34px 0 10px; font-size: 20px; }
.qz-side p { font-size: 16px; color: var(--mut); margin-bottom: 24px; }
.fees-w { max-width: 980px; margin-left: var(--edge); margin-right: auto; padding: 0; }
.fees-w h3 { margin: 40px 0 6px; }

.qz-progress { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qz-progress li { position: relative; padding-top: 12px; font-size: 13px; color: var(--mut); }
.qz-progress li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #dcd8d4; }
.qz-progress li.is-done::before { background: var(--ink); }
.qz-progress li.is-current::before { background: var(--red); }
.qz-progress li.is-current { color: var(--ink); }

.qz-step { animation: qzIn .3s ease both; }
@keyframes qzIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qz-step { animation: none; } }
.qz-h { font-size: 30px; margin: 0 0 6px; outline: none; }
.q-row { margin-top: 26px; }
.q-label { display: block; font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.q-note { color: var(--mut); font-size: 14px; margin: 10px 0 0; }

.q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q-opt { font: 300 15px/1.3 var(--f); background: #fff; color: var(--ink); border: 1px solid #cfcac5; border-radius: 40px;
         padding: 11px 20px; cursor: pointer; transition: border-color .15s, background .15s; }
.q-opt:hover { border-color: var(--ink); }
.q-opt.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.q-opt:focus-visible, .qz-stepper button:focus-visible, .qz-back:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.qz-stepper { display: inline-flex; align-items: center; border: 1px solid #cfcac5; border-radius: 40px; background: #fff; }
.qz-stepper:focus-within { border-color: var(--ink); }
.qz-stepper button { font: 300 22px var(--f); width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; color: var(--ink); border-radius: 40px; }
.qz-stepper button:hover { background: var(--pale); }
.qz-stepper input { width: 64px; text-align: center; border: 0; padding: 0; font: 400 18px var(--f); background: transparent; color: var(--ink); -moz-appearance: textfield; }
.qz-stepper input::-webkit-inner-spin-button, .qz-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.qr-fee { display: flex; flex-direction: column; margin-top: 18px; padding: 26px 28px; background: var(--red); color: #fff; }
.qr-fig { font: 300 64px/1 var(--f); letter-spacing: -.03em; color: #fff; }
.qr-fig-text { font-size: 32px; line-height: 1.15; }
.qr-per { margin-top: 10px; font-size: 16px; }
.qr-vat { margin-top: 4px; font-size: 15px; opacity: .9; }
.qr-lines { list-style: none; margin: 18px 0 0; padding: 0; }
.qr-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #dcd8d4; font-size: 15px; }
.qr-lines li b { font-weight: 400; white-space: nowrap; }
.qr-note { margin: 14px 0 0; font-size: 14px; color: var(--mut); }
.qr-send-h { margin: 30px 0 4px; font-size: 22px; }
.qz .form-grid { gap: 22px 32px; }
.qz-done p { margin: 12px 0 0; }
.qz-err { margin: 16px 0 0; color: var(--red); font-size: 15px; }

.qz-nav { display: flex; align-items: center; gap: 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #dcd8d4; }
.qz-count { color: var(--mut); font-size: 14px; margin-right: auto; }
.qz-back { font: 400 15px var(--f); background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .qz-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 720px) {
  .qz { padding: 28px 20px; margin: 0 calc(var(--gut) * -1); }
  .qz-nav { flex-wrap: wrap; }
  .qz-count { width: 100%; margin: 0; }
  .qz-nav .btn { flex: 1; justify-content: center; }
  .qr-fig { font-size: 52px; }
}
