/* ==========================================================================
   PAGE — REQUEST A QUOTE
   Sections A–C. Classes are prefixed `qt-`. Behaviour: assets/js/quote.js.
   Elementor: style the Pro Form with these rules as Custom CSS on the Form
   widget (Steps → .e-form__step, Step indicator → .e-form__indicators).
   ========================================================================== */

/* --------------------------------------------------------------------------
   A — HERO · compact
   -------------------------------------------------------------------------- */
.qt-hero {
  padding-top: calc(var(--header-h, 88px) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.qt-hero .rules { z-index: 0; }
.qt-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
}
.qt-hero__eyebrow { display: flex; align-items: center; gap: 0.9rem; color: var(--fg-on-dark); margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.qt-hero__title { color: var(--tw-white); }
.qt-hero__lead { color: var(--fg-muted-on-dark); max-width: 44ch; }
.qt-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) clamp(1.5rem, 3.5vw, 3rem);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-on-dark);
}
.qt-hero__meta dt { margin-bottom: 0.35rem; color: var(--fg-muted-on-dark); }
.qt-hero__meta dd { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--fg-on-dark); }
@media (max-width: 900px) { .qt-hero__grid { grid-template-columns: 1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   B — THE QUOTE APP · rail + panel + aside
   -------------------------------------------------------------------------- */
.qt {
  position: relative;
  background: var(--bg-alt);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--section-y-sm);
}
.qt__grid {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.5vw, 5rem);
  align-items: start;
}
.qt__side {
  position: sticky;
  top: calc(var(--header-h, 76px) + 1.5rem);
  display: grid;
  gap: var(--space-6);
}
.qt__panel { position: relative; min-width: 0; }

/* Rail ------------------------------------------------------------------ */
.qt-rail__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.qt-rail__count {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
}
.qt-rail__count [data-rail-now] { color: var(--accent-text); }
.qt-rail__current { display: none; }
.qt-rail__bar { height: 2px; margin-block: var(--space-3) var(--space-4); background: var(--line); overflow: hidden; }
.qt-rail__bar span {
  display: block;
  height: 100%;
  background: var(--tw-blue);
  scale: var(--p, 0.125) 1;
  transform-origin: left center;
  transition: scale var(--dur-slow) var(--ease-out);
}
.qt-rail__list li { position: relative; }
/* Connector between the step dots; turns blue once the step is done. */
.qt-rail__list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17.5px; top: 50px; bottom: -8px;
  width: 1px;
  background: var(--line);
  transition: background-color var(--dur) var(--ease-out);
}
.qt-rail__list li:has(.is-complete)::after { background: var(--tw-blue); }
.qt-rail__step {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  width: 100%;
  padding: 0.7rem 0;
  text-align: left;
  color: var(--fg-muted);
}
.qt-rail__step:disabled { cursor: default; }
.qt-rail__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--tw-grey-200);
  border-radius: 50%;
  background: var(--bg-alt);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.qt-rail__n {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--fg-muted);
  font-variant-numeric: tabular-nums;
  transition: opacity var(--dur-fast);
}
.qt-rail__dot svg { position: absolute; opacity: 0; scale: 0.5; transition: opacity var(--dur-fast), scale var(--dur) var(--ease-out); }
.qt-rail__text { min-width: 0; padding-top: 0.4rem; }
.qt-rail__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--ls-tight);
  color: var(--fg-muted);
  transition: color var(--dur-fast);
}
.qt-rail__text small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.qt-rail__step[aria-current="step"] .qt-rail__dot { border-color: var(--tw-blue); background: var(--tw-blue); box-shadow: 0 0 0 5px rgba(22, 184, 242, 0.16); }
.qt-rail__step[aria-current="step"] .qt-rail__n { color: var(--tw-navy); }
.qt-rail__step[aria-current="step"] strong { color: var(--fg); }
.qt-rail__step.is-complete .qt-rail__dot { border-color: var(--tw-navy); background: var(--tw-navy); color: var(--tw-blue); }
.qt-rail__step.is-complete .qt-rail__n { opacity: 0; }
.qt-rail__step.is-complete .qt-rail__dot svg { opacity: 1; scale: 1; }
.qt-rail__step.is-complete strong { color: var(--fg); }
.qt-rail__step:not(:disabled):hover strong { color: var(--accent-text); }
.qt-rail__step:not(:disabled):hover .qt-rail__dot { border-color: var(--tw-blue); }

/* Aside ------------------------------------------------------------------ */
.qt-aside { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.qt-aside__title {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.qt-aside__list { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.qt-aside__list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.5rem; }
.qt-aside__list .num { padding-top: 0.15rem; }
.qt-aside__list p { font-size: var(--fs-xs); line-height: 1.55; color: var(--fg-muted); }
.qt-aside__list strong { color: var(--fg); font-weight: 700; }
.qt-aside__wa {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.qt-aside__wa > p { font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: var(--ls-tight); }
.qt-aside__call { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 32px; font-size: var(--fs-xs); color: var(--fg-muted); transition: color var(--dur-fast); }
.qt-aside__call:hover { color: var(--accent-text); }
@media (min-width: 901px) and (max-height: 820px) { .qt-aside__list { display: none; } .qt-aside__title { display: none; } .qt-aside__wa { margin-top: 0; } }

/* Context chip ("Enquiring about: …") ----------------------------------- */
.qt-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-4);
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--tw-navy);
  color: var(--fg-on-dark);
  animation: qt-fade var(--dur-slow) var(--ease-out);
}
.qt-context__label {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--tw-blue);
}
.qt-context strong { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600; color: var(--tw-white); }
.qt-context__x {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--line-on-dark);
  border-radius: 50%;
  color: var(--fg-on-dark);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.qt-context__x::after { content: ""; position: absolute; inset: -6px; }
.qt-context__x svg { width: 11px; height: 11px; }
.qt-context__x:hover { background: var(--tw-white); border-color: var(--tw-white); color: var(--tw-navy); }

/* Panel + panes ---------------------------------------------------------- */
.qt-form, .qt-done {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 40px 80px -50px rgba(7, 20, 33, 0.3);
}
.qt-pane { animation: qt-in var(--dur-slow) var(--ease-out); }
.qt-pane[data-dir="back"] { animation-name: qt-in-back; }
@keyframes qt-in      { from { opacity: 0; translate: 18px 0; } }
@keyframes qt-in-back { from { opacity: 0; translate: -18px 0; } }
@keyframes qt-fade    { from { opacity: 0; translate: 0 6px; } }

.qt-pane__head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.qt-pane__idx { display: flex; gap: 0.35rem; align-items: baseline; font-family: var(--font-display); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-wide); color: var(--fg-muted); }
.qt-pane__title { margin-top: var(--space-3); font-size: var(--fs-h3); letter-spacing: var(--ls-tight); scroll-margin-top: 140px; }
.qt-pane__lead { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--fg-muted); max-width: 56ch; text-wrap: pretty; }
.qt-req { color: #B42318; }

.qt-form .field { align-content: start; }
.qt-form .field input:disabled { opacity: 0.55; cursor: not-allowed; }
.qt-form .field input::placeholder, .qt-form .field textarea::placeholder { color: #98A2B3; }
.qt-field-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-4); }
.qt-count { font-size: var(--fs-xs); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Small inline checkbox ("Same as phone", "Flexible", consent) ----------- */
.qt-check { position: relative; display: block; cursor: pointer; }
.field .qt-check { margin-top: 0.15rem; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-muted); }
.qt-check input,
.field .qt-check input {
  position: absolute;
  top: 0; left: 0;
  width: 20px; height: 20px;
  min-height: 0;
  margin: 0; padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  box-shadow: none;
}
.qt-check > span { position: relative; display: block; padding-left: 1.85rem; line-height: 1.5; min-height: 20px; }
.qt-check > span::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 18px; height: 18px;
  border: 1.5px solid var(--fg-muted);
  border-radius: 3px;
  background: var(--bg) center / 10px no-repeat;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.qt-check input:checked + span::before {
  border-color: var(--tw-blue);
  background-color: var(--tw-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23071421' stroke-width='2'/%3E%3C/svg%3E");
}
.qt-check input:hover + span::before { border-color: var(--fg); }
.qt-check input:focus-visible + span::before { outline: 2px solid var(--focus); outline-offset: var(--focus-offset); }
.qt-check input[aria-invalid="true"] + span::before { border-color: #D14343; box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.12); }
.qt-consent { margin-top: clamp(1.5rem, 3vw, 2rem); font-size: var(--fs-small); color: var(--fg-muted); }
.qt-consent > span::before { top: 0.1em; }
.qt-consent + .field__error { margin-top: 0.4rem; }

/* Step 02 · tiles ---------------------------------------------------------- */
.qt-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.qt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.qt-tile { position: relative; display: block; cursor: pointer; }
.qt-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qt-tile__box {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 176px;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  pointer-events: none;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.qt-tile__top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 1.5rem; }
.qt-tile__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--fg);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.qt-tile__tick {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1.5px solid #C3CAD5;
  border-radius: 4px;
  color: transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.qt-tile__tick svg { width: 14px; height: 14px; }
.qt-tile__name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: var(--ls-tight); line-height: 1.25; }
.qt-tile__desc { margin-top: 0.3rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--fg-muted); }
.qt-tile input:hover + .qt-tile__box { border-color: #C3CAD5; }
.qt-tile input:checked + .qt-tile__box { border-color: var(--tw-blue); background: rgba(22, 184, 242, 0.06); box-shadow: inset 0 0 0 1px var(--tw-blue); }
.qt-tile input:checked + .qt-tile__box .qt-tile__icon { background: var(--tw-navy); color: var(--tw-blue); }
.qt-tile input:checked + .qt-tile__box .qt-tile__tick { background: var(--tw-blue); border-color: var(--tw-blue); color: var(--tw-navy); }
.qt-tile input:focus-visible + .qt-tile__box { outline: 2px solid var(--focus); outline-offset: 3px; }
.qt-group.is-invalid .qt-tile__box { border-color: #D14343; }
.qt-group > .field__error { margin-top: var(--space-3); }

/* Step 02 · revealed service chips ---------------------------------------- */
.qt-svcs { display: grid; gap: var(--space-5); margin-top: var(--space-5); }
.qt-svc {
  min-width: 0;
  margin: 0;
  padding: var(--space-5) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  animation: qt-fade var(--dur-slow) var(--ease-out);
}
/* Floated legend sits inside the padding rather than on the border. */
.qt-svc__legend { float: left; width: 100%; padding: 0; margin-bottom: 0.85rem; font-size: var(--fs-small); font-weight: 700; color: var(--fg); }
.qt-svc__legend .num { margin-right: 0.6rem; }
.qt-chips { clear: both; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.qt-chip { position: relative; display: inline-flex; }
.qt-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qt-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  pointer-events: none;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.qt-chip span::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  border: 1.5px solid #C3CAD5;
  border-radius: 50%;
  background: transparent center / 9px no-repeat;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.qt-chip input:hover + span { border-color: var(--fg-muted); }
.qt-chip input:checked + span { background: var(--tw-navy); border-color: var(--tw-navy); color: var(--tw-white); }
.qt-chip input:checked + span::before {
  border-color: var(--tw-blue);
  background-color: var(--tw-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23071421' stroke-width='2'/%3E%3C/svg%3E");
}
.qt-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.qt-other { margin-bottom: 0; padding-top: var(--space-5); border-top: 1px solid var(--line); animation: qt-fade var(--dur-slow) var(--ease-out); }

/* Step 04 · upload zones -------------------------------------------------- */
.qt-drops { display: grid; gap: 0.75rem; }
.qt-drop { position: relative; }
.qt-drop__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
.qt-drop__zone {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  padding: 1.05rem 1.15rem;
  border: 1.5px dashed #C3CAD5;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.qt-drop.is-over .qt-drop__zone { border-color: var(--tw-blue); background: rgba(22, 184, 242, 0.06); }
@media (hover: hover) { .qt-drop__zone:hover { border-color: var(--tw-blue); background: rgba(22, 184, 242, 0.06); } }
.qt-drop.is-over .qt-drop__zone { border-style: solid; }
.qt-drop.has-files .qt-drop__zone { border-style: solid; border-color: var(--line); background: var(--bg); }
.qt-drop__input:focus-visible + .qt-drop__zone { outline: 2px solid var(--focus); outline-offset: 3px; }
.qt-drop__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-text);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.qt-drop.is-over .qt-drop__icon { background: var(--tw-blue); border-color: var(--tw-blue); color: var(--tw-navy); }
.qt-drop__text { min-width: 0; }
.qt-drop__name { display: flex; align-items: baseline; gap: 0.55rem; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: var(--ls-tight); color: var(--fg); }
.qt-drop__desc { display: block; margin-top: 0.15rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--fg-muted); }
.qt-drop__hint { display: block; margin-top: 0.2rem; font-size: 0.75rem; line-height: 1.45; color: #7A8699; }
.qt-drop__cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
  gap: 0.35em;
  transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast);
}
@media (hover: hover) { .qt-drop__zone:hover .qt-drop__cta { border-color: var(--fg); background: var(--fg); color: var(--bg); } }
@media (hover: none) { .qt-drop__cta-fine { display: none; } }

.qt-files { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.qt-files:empty { display: none; }
.qt-file {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.45rem 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  animation: qt-fade var(--dur) var(--ease-out);
}
.qt-file__thumb {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 3px;
  background: var(--tw-navy);
  object-fit: cover;
  font-family: var(--font-display);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--tw-blue);
  overflow: hidden;
}
.qt-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); font-weight: 600; }
.qt-file__size { font-size: var(--fs-xs); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qt-file__x {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--fg-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.qt-file__x:hover { background: #FDECEC; color: #B42318; }
.qt-drop__error { margin-top: 0.4rem; }

/* Step 04 · review — set like a job ticket -------------------------------- */
.qt-review { margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.qt-review__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--tw-navy);
  color: var(--fg-on-dark);
}
.qt-review__title { font-size: 1.0625rem; color: var(--tw-white); }
.qt-review__note { font-size: var(--fs-xs); color: var(--fg-muted-on-dark); }
.qt-review__note em { font-style: normal; color: var(--tw-blue); font-weight: 700; }
.qt-review__body > .t-muted { padding: 1rem 1.25rem; font-size: var(--fs-small); }
.qt-rv {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 0.35rem 1.25rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.qt-rv:first-child { border-top: 0; }
.qt-rv__h {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  padding-top: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--fg);
}
.qt-rv__dl { display: grid; gap: 0.4rem; font-size: var(--fs-small); line-height: 1.5; }
.qt-rv__dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0.75rem; }
.qt-rv__dl dt { color: var(--fg-muted); }
.qt-rv__dl dd { margin: 0; font-weight: 600; color: var(--fg); white-space: pre-line; overflow-wrap: anywhere; }
.qt-rv__dl dd.is-empty { font-weight: 400; font-style: italic; color: #98A2B3; }
.qt-rv__edit {
  min-height: 36px;
  padding: 0.35rem 0.25rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--accent-text);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 85%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease-out);
}
.qt-rv__edit:hover, .qt-rv__edit:focus-visible { background-size: 100% 1px; }

/* Navigation ---------------------------------------------------------------- */
.qt-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.qt-nav__save { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-xs); color: var(--fg-muted); animation: qt-fade var(--dur) var(--ease-out); }
.qt-nav__save > svg { width: 14px; height: 14px; color: var(--accent-text); }
.qt-nav__reset { min-height: 32px; padding-inline: 0.25rem; font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.qt-nav__next { margin-left: auto; }
@media (max-width: 560px) {
  .qt-nav__back { flex: none; padding-inline: 1.1rem; }
  .qt-nav__next { flex: 1; }
  .qt-nav__save { order: 3; width: 100%; justify-content: center; }
}

/* Success -------------------------------------------------------------------- */
.qt-done { display: grid; justify-items: start; gap: var(--space-4); animation: qt-fade var(--dur-slow) var(--ease-out); }
.qt-done__mark {
  --crop-o: 10px;
  --crop-c: rgba(23, 32, 42, 0.35);
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0.5rem 0 var(--space-4) 0.5rem;
  border-radius: 50%;
  background: var(--tw-blue);
  color: var(--tw-navy);
}
.qt-done__mark svg { width: 32px; height: 32px; }
.qt-done__title { max-width: 20ch; scroll-margin-top: 140px; }
.qt-done__text { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); max-width: 40ch; }
/* Copy + buttons on the left, the message preview on the right; on
   phones the preview sits between the copy and the buttons. */
.qt-done__wa {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy bubble" "actions bubble";
  grid-template-rows: auto 1fr;
  gap: var(--space-5) clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
  margin-top: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.qt-done__copy { grid-area: copy; display: grid; gap: var(--space-3); }
.qt-done__actions { grid-area: actions; display: grid; justify-items: start; gap: var(--space-3); align-content: start; }
.qt-done__wa-text { max-width: 44ch; color: var(--fg); }
.qt-done__actions .btn-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
.qt-bubble {
  grid-area: bubble;
  align-self: start;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 3px;
  background: var(--bg-alt);
}
.qt-bubble::after {
  content: "WhatsApp message";
  position: absolute;
  top: -0.6rem; right: 1rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--tw-navy);
  color: var(--fg-on-dark);
  font: 700 0.5625rem/1.4 var(--font-text);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}
.qt-bubble__text {
  max-height: 24rem;
  overflow: auto;
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--fg);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.qt-done__actions { margin-top: var(--space-2); }
.qt-done__again { min-height: 40px; font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .qt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Phones & tablets: the rail becomes a compact sticky progress bar above
   the form; the aside drops below it. */
@media (max-width: 900px) {
  .qt { padding-top: var(--space-5); }
  .qt__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .qt__side { display: contents; }
  .qt-rail {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.8rem var(--gutter) 0;
    background: rgba(247, 248, 250, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: top var(--dur) var(--ease-out);
  }
  body:has(.header.is-stuck:not(.is-hidden)) .qt-rail { top: 70px; }
  .qt-rail__top .label { display: none; }
  .qt-rail__top { flex-direction: row-reverse; justify-content: space-between; align-items: center; }
  .qt-rail__current { display: block; position: absolute; top: 0.8rem; left: var(--gutter); font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: var(--ls-tight); color: var(--fg); }
  .qt-rail__count { min-height: 1.5rem; display: flex; align-items: center; }
  .qt-rail__bar { margin: 0.7rem calc(var(--gutter) * -1) 0; height: 3px; }
  .qt-rail__list { display: none; }
  .qt__panel { order: 1; }
  .qt-aside { order: 2; }
  .qt-form, .qt-done { box-shadow: none; }
  /* The header keeps its WhatsApp button; the floating one would sit on
     top of the form's buttons and file rows on a phone. */
  .page-quote .wa-float { display: none; }
}
@media (max-width: 560px) {
  .qt-context { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; width: 100%; padding: 0.65rem 0.6rem 0.65rem 1rem; border-radius: var(--radius-lg); }
  .qt-context__x { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .qt-form, .qt-done { padding: 1.25rem; }
  .qt-tile__box { min-height: 150px; padding: 0.95rem; }
  .qt-tile__icon { width: 40px; height: 40px; }
  .qt-tile__name { font-size: 1rem; }
  .qt-drop__zone { grid-template-columns: auto minmax(0, 1fr); }
  .qt-drop__cta { grid-column: 1 / -1; justify-content: center; }
  .qt-file { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .qt-file__thumb { width: 36px; height: 36px; }
  .qt-file__size { display: none; }
  .qt-rv { grid-template-columns: minmax(0, 1fr) auto; }
  .qt-rv__dl { grid-column: 1 / -1; grid-row: 2; }
  .qt-rv__dl > div { grid-template-columns: 1fr; gap: 0; }
  .qt-field-foot { flex-direction: column; gap: 0.25rem; }
}
@media (max-width: 760px) {
  .qt-done__wa { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "actions" "bubble"; grid-template-rows: auto; }
  .qt-bubble { margin-top: var(--space-4); }
  .qt-bubble__text { max-height: 14rem; }
  .qt-done__actions .btn-row { max-width: none; }
}
@media (max-width: 380px) {
  .qt-tiles { grid-template-columns: 1fr; }
  .qt-tile__box { min-height: 0; }
}

/* --------------------------------------------------------------------------
   C — GOOD TO KNOW · FAQ
   -------------------------------------------------------------------------- */
.qt-faq__grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.qt-faq__title { margin-top: var(--space-4); max-width: 12ch; }
@media (max-width: 900px) { .qt-faq__grid { grid-template-columns: 1fr; } }

/* Privacy / Terms line under the Submit button (final step only). */
.qt-legal {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--fg-muted);
  text-align: right;
}
.qt-legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.qt-legal a:hover { color: var(--fg); }
@media (max-width: 700px) { .qt-legal { text-align: left; } }
