/* ==========================================================================
   Averon Analytics · the request page (/request/)
   Loads after tokens.css, base.css and pages.css. Every class starts with rq-.

   Phones (under 768 px): three short steps (location, question, details) with a
   progress bar and Next / Back. Wider screens: one page with three numbered sections
   and a sticky index on the right from 1100 px.
   "Discuss a Location" (?mode=discuss, html[data-rq-mode="discuss"]): only name,
   email, location and question, on one page.
   "Your data" (?mode=privacy, html[data-rq-mode="privacy"]): name, email, reference and a
   message about the visitor's own data, on one page.
   Stepping needs request.js: html.rq-nojs (set if it never runs) shows every step.
   ========================================================================== */

:root {
  --rq-error: #FF9A8B;                   /* soft coral: 7.7:1 on navy; errors only, always with a sign and words */
  --rq-error-line: rgba(255, 154, 139, .55);
  --rq-error-bg: rgba(255, 154, 139, .07);
  --rq-field-bg: rgba(0, 15, 28, .5);
  --rq-field-bg-focus: rgba(0, 15, 28, .8);
  --rq-gap: clamp(1.5rem, 1.2rem + .9vw, 2rem);
}

/* ---------- Full form / "Discuss a Location" / "Your data": the right words from the first paint ----------
   .rq-t-full: full form only · .rq-t-discuss: Discuss only · .rq-t-privacy: Your data only · .rq-t-np: all but Your data */
.rq-t-discuss, .rq-t-privacy { display: none; }
[data-rq-mode] .rq-t-full { display: none; }
[data-rq-mode="discuss"] .rq-t-discuss, [data-rq-mode="privacy"] .rq-t-privacy { display: inline; }
[data-rq-mode="privacy"] .rq-t-np { display: none; }
[data-rq-mode] [data-full-only], [data-rq-mode="privacy"] [data-not-privacy] { display: none !important; }
html:not([data-rq-mode="privacy"]) [data-privacy-only] { display: none !important; }

/* ---------- Hero ---------- */
.rq-hero .page-hero__title { max-width: 16ch; }
.rq-hero .page-hero__title:focus { outline: none; }
.rq-hero .page-hero__lead { max-width: 50ch; }
.rq-switch { color: var(--text-muted); text-wrap: balance; }
/* inline link with a 44 px tap area that does not push the lines apart */
.rq-switch__link { padding-block: 13px; }

/* ---------- Layout: form, then (from 1100 px) a sticky aside on the right ---------- */
.page-hero + .rq-section { padding-top: clamp(2rem, 1.2rem + 3vw, 4rem); }
.rq-layout { display: grid; gap: var(--space-2xl); align-items: start; }
.rq-main { min-width: 0; }
@media (min-width: 1100px) {
  .rq-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); column-gap: clamp(3rem, 5vw, 6rem); }
  .rq-aside { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* The form panel: open on phones (more room for the fields), a framed instrument panel from 768 px */
.rq-form, .rq-done { position: relative; }
@media (max-width: 767.98px) {
  .rq-form.ticks::before { display: none; }
}
@media (min-width: 768px) {
  .rq-form, .rq-done {
    padding: clamp(2rem, .9rem + 2.6vw, 3.5rem);
    background: linear-gradient(155deg, rgba(20, 50, 72, .42) 0%, rgba(0, 26, 46, .34) 100%);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(239, 238, 235, .05), var(--shadow-panel);
  }
}

/* The robot trap: off screen, never focusable, hidden from screen readers */
.rq-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.rq-note { margin-bottom: var(--space-xl); color: var(--text-muted); text-wrap: balance; }

/* ---------- Sections / steps ---------- */
.rq-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-step + .rq-step {
  margin-top: clamp(3rem, 2.2rem + 2.6vw, 4.5rem);
  padding-top: clamp(2.5rem, 1.8rem + 2.4vw, 3.75rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.rq-step { scroll-margin-top: calc(var(--header-h) + 24px); }
/* "Your data": only the details section shows, so it is the first one */
[data-rq-mode="privacy"] .rq-step + .rq-step { margin-top: 0; padding-top: 0; border-top: 0; }
.rq-step__legend { display: block; width: 100%; float: left; margin: 0 0 var(--space-2xs); padding: 0; }
.rq-step__legend + * { clear: both; }
.rq-step__num {
  display: inline-flex; align-items: center; gap: .9em; margin-bottom: var(--space-xs);
  font-size: var(--fs-label); font-weight: 500; line-height: 1; letter-spacing: .16em;
  font-variant-numeric: tabular-nums; color: var(--gold);
}
.rq-step__num::after { content: ""; width: 28px; height: 1px; background: var(--line-gold); }
.rq-step__title { display: block; font-size: var(--fs-h3); }
.rq-step__title:focus { outline: none; }
.rq-step__lead { margin-bottom: var(--space-l); color: var(--text-muted); }

/* ---------- Fields ---------- */
.rq-grid { display: grid; gap: var(--rq-gap); }
@media (min-width: 640px) {
  .rq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-m); }
  .rq-field--full { grid-column: 1 / -1; }
}
.rq-field { display: grid; gap: .55rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-field__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem var(--space-s); width: 100%; }
.rq-label { font-size: var(--fs-base); font-weight: 500; line-height: 1.35; color: var(--text); }
.rq-tag {
  flex: none;
  font-size: var(--fs-label); font-weight: 500; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}
.rq-tag--req { color: var(--gold); }
.rq-hint { max-width: 62ch; font-size: 1rem; line-height: 1.5; color: var(--text-dim); text-wrap: balance; }
.rq-choices__legend { display: block; width: 100%; float: left; margin: 0 0 .55rem; padding: 0; }
.rq-choices__legend + * { clear: both; }

.rq-input {
  display: block; width: 100%; min-width: 0; min-height: 52px; margin: 0;
  padding: 13px 16px;
  font-family: var(--font-text); font-size: max(16px, var(--fs-base)); font-weight: 400; line-height: 1.45;
  color: var(--paper);
  background-color: var(--rq-field-bg);
  border: 1px solid var(--mist-a24);
  border-radius: 0;
  -webkit-appearance: none; appearance: none;
  box-shadow: none;
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear, box-shadow var(--dur-base) var(--ease-out);
}
.rq-input:hover { border-color: var(--mist-a40); }
/* :focus alone (not in a list with :focus-visible, which iOS 15.0-15.3 does not know and would drop the whole rule) */
.rq-input:focus {
  outline: none;
  border-color: var(--gold);
  background-color: var(--rq-field-bg-focus);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 6px rgba(239, 187, 117, .1);
}
.rq-input:focus-visible { outline: none; }
.rq-input[aria-invalid="true"] { border-color: var(--rq-error); }
.rq-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--rq-error), 0 0 0 6px rgba(255, 154, 139, .12); }
.rq-input:disabled { opacity: .5; }
.rq-input:-webkit-autofill, .rq-input:-webkit-autofill:hover, .rq-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--paper);
  -webkit-box-shadow: 0 0 0 1000px var(--navy-850) inset;
  caret-color: var(--paper);
  transition: background-color 9999s 0s;
}
.rq-input--area { min-height: 8.5rem; max-height: 26rem; resize: vertical; overflow-y: auto; }
.rq-input--short { min-height: 5.25rem; }

/* Select with a quiet chevron */
.rq-select { position: relative; }
.rq-select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; pointer-events: none;
  border-right: 1.5px solid var(--mist); border-bottom: 1.5px solid var(--mist);
  transform: rotate(45deg);
}
.rq-select__el { padding-right: 48px; cursor: pointer; text-overflow: ellipsis; }
.rq-select__el.is-empty, .rq-date.is-empty { color: var(--text-dim); }
.rq-select__el option { color: var(--paper); background: var(--navy-900); }

/* Date: left-aligned on iPhone, a calm calendar button */
.rq-date { cursor: text; }
.rq-date::-webkit-date-and-time-value { min-height: 1.45em; text-align: left; }
.rq-date::-webkit-datetime-edit { padding: 0; }
.rq-date::-webkit-calendar-picker-indicator { opacity: .75; cursor: pointer; padding: 4px; margin-right: -4px; }
.rq-date::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Error: a coral sign and plain words, right under the field */
.rq-error {
  display: flex; align-items: flex-start; gap: .55em;
  font-size: 1rem; font-weight: 400; line-height: 1.45;
  color: var(--rq-error);
}
.rq-error::before {
  content: "!"; flex: none;
  display: inline-grid; place-items: center;
  width: 1.2em; height: 1.2em; margin-top: .1em;
  font-size: .8em; font-weight: 700; line-height: 1;
  border: 1px solid currentColor; border-radius: 50%;
}

/* "Did you mean ...?" under the email */
.rq-suggest { font-size: 1rem; line-height: 1.45; color: var(--text-muted); }
.rq-suggest button {
  display: inline; padding-block: 13px; font: inherit;
  color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-a48); text-underline-offset: .25em;
}
.rq-suggest button:hover { text-decoration-color: var(--gold); }

/* Character count (only near the limit) */
.rq-count { justify-self: end; font-size: var(--fs-label); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.rq-count.is-near { color: var(--gold); }

/* ---------- Location: "use the pin you dropped" + what we read ---------- */
.rq-pin {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; min-height: 68px; padding: 10px 18px 10px 10px;
  text-align: left; color: var(--text);
  border: 1px solid var(--line-gold);
  background: linear-gradient(155deg, rgba(239, 187, 117, .1), rgba(239, 187, 117, .02));
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.rq-pin:hover { border-color: var(--gold); background-color: var(--gold-a06); }
.rq-pin__body { display: grid; gap: .2rem; min-width: 0; }
.rq-pin__title { font-size: var(--fs-label); font-weight: 600; line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; text-wrap: balance; color: var(--gold); }
.rq-pin__ll { font-size: .9375rem; font-weight: 400; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--text); }
.rq-pin__ll span { white-space: nowrap; }
.rq-pin__mark {   /* a + that turns into a check */
  position: relative; width: 18px; height: 18px; flex: none;
}
.rq-pin__mark::before, .rq-pin__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--gold);
  transition: transform var(--dur-base) var(--ease-out), width var(--dur-base) var(--ease-out);
}
.rq-pin__mark::before { width: 16px; height: 1.5px; transform: translate(-50%, -50%); }
.rq-pin__mark::after { width: 1.5px; height: 16px; transform: translate(-50%, -50%); }
/* small phones: the words get the room ("Use the pin you dropped" stays on one line down to 320 px) */
@media (max-width: 399.98px) {
  .rq-pin { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-right: 12px; }
  .rq-pin__mark { display: none; }
  .rq-pin__title { letter-spacing: .12em; }
}
.rq-pin.is-used { cursor: default; border-color: var(--line-gold); background: var(--gold-a06); }
.rq-pin.is-used .rq-pin__mark::before { width: 7px; transform: translate(-95%, 10%) rotate(45deg); }
.rq-pin.is-used .rq-pin__mark::after { height: 13px; transform: translate(20%, -60%) rotate(35deg); }

.rq-read {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem;
  font-size: 1rem; line-height: 1.45; color: var(--text-dim);
}
.rq-read__lead { display: inline-flex; align-items: center; gap: .6em; }
.rq-read__lead::before {   /* a small crosshair, like the cursor on the home globe */
  content: ""; width: 13px; height: 13px; flex: none;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat;
}
.rq-read b {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em;
  font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap;
}
.rq-read__ll { display: inline-flex; flex-wrap: nowrap; gap: .9rem; }   /* both coordinates stay on one line together */
.rq-read.is-warn .rq-read__lead::before { background: none; width: auto; height: auto; content: "!"; color: var(--rq-error); font-weight: 700; }

/* ---------- File: a viewfinder you can tap or drop a file on ---------- */
.rq-drop {
  position: relative; isolation: isolate;
  display: flex; align-items: center; gap: 16px;
  min-height: 92px; padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--rq-field-bg);
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.rq-drop.ticks::before { --tl: 14px; }
.rq-drop__input {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer; font-size: 16px;
}
.rq-drop__input::-webkit-file-upload-button { cursor: pointer; }
.rq-drop__input::file-selector-button { cursor: pointer; }
.rq-drop__text { display: grid; gap: .15rem; }
.rq-drop__btn {
  font-size: .875rem; font-weight: 600; line-height: 1.3; letter-spacing: var(--track-button); text-transform: uppercase;
  color: var(--gold);
}
.rq-drop__or { font-size: 1rem; color: var(--text-dim); }
@media (hover: none) { .rq-drop__or { display: none; } }
.rq-drop:hover, .rq-drop.is-over { border-color: var(--line-gold); background-color: var(--gold-a06); }
.rq-drop.is-over { border-color: var(--gold); background-color: var(--gold-a12); }
.rq-drop:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.rq-drop.is-invalid { border-color: var(--rq-error); }
/* without request.js: the plain file button, so the chosen file name shows */
html:not(.js) .rq-drop, .rq-nojs .rq-drop { min-width: 0; overflow: hidden; }
html:not(.js) .rq-drop__input, .rq-nojs .rq-drop__input { position: static; opacity: 1; width: 100%; max-width: 100%; min-width: 0; height: auto; color: var(--text-muted); }
html:not(.js) .rq-drop__text, .rq-nojs .rq-drop__text, html:not(.js) .rq-drop__icon, .rq-nojs .rq-drop__icon { display: none; }

.rq-filecard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 2px;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--line-gold);
  background: var(--gold-a06);
}
.rq-filecard__type {
  grid-row: 1 / span 2; align-self: center;
  min-width: 3.6em; padding: 7px 8px;
  font-size: .8125rem; font-weight: 600; line-height: 1; letter-spacing: .12em; text-align: center; text-transform: uppercase;
  color: var(--navy); background: var(--gold);
}
.rq-filecard__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--text); }
.rq-filecard__size { grid-column: 2; font-size: var(--fs-label); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.rq-filecard__remove {
  grid-column: 3; grid-row: 1 / span 2;
  min-height: 44px; padding: 0 14px;
  font-size: .8125rem; font-weight: 600; letter-spacing: var(--track-button); text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--line-strong);
  transition: color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}
.rq-filecard__remove:hover { color: var(--gold); border-color: var(--line-gold); }

/* ---------- Choice cards (service) ---------- */
.rq-choices__list { display: grid; gap: .625rem; }
@media (min-width: 640px) {
  .rq-choices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-choice--wide { grid-column: 1 / -1; }
}
.rq-choice { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rq-choice input, .rq-pill input {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0;
  opacity: 0; pointer-events: none;
}
/* icon, name and the round mark on one row; the one-line promise below at full card width (no short last lines) */
.rq-choice__body {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title mark" "line line line";
  align-items: center; column-gap: 14px; row-gap: 10px;
  height: 100%; padding: 11px 16px 14px 11px;
  border: 1px solid var(--line-strong);
  background: var(--rq-field-bg);
  transition: border-color var(--dur-fast) linear, background-color var(--dur-fast) linear, box-shadow var(--dur-fast) linear;
}
.rq-choice:hover .rq-choice__body { border-color: var(--mist-a40); }
.rq-choice__body > .icon-tile { grid-area: icon; }
.rq-choice__text { display: contents; }
.rq-choice__title { grid-area: title; min-width: 0; }
.rq-choice__line { grid-area: line; padding-left: 5px; }
.rq-choice__mark { grid-area: mark; }
.rq-choice__title {
  font-family: var(--font-display); font-size: .9375rem; font-weight: 400; line-height: 1.3;
  letter-spacing: var(--track-title); text-transform: uppercase; color: var(--text);
}
.rq-choice__line { font-size: 1rem; line-height: 1.45; color: var(--text-muted); text-wrap: balance; }
.rq-choice__mark {
  width: 20px; height: 20px; flex: none; border-radius: var(--radius-dot);
  border: 1px solid var(--mist-a40);
  transition: border-color var(--dur-fast) linear, box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-fast) linear;
}
.rq-choice input:checked + .rq-choice__body {
  border-color: var(--gold);
  background: linear-gradient(155deg, rgba(239, 187, 117, .11), rgba(239, 187, 117, .03));
  box-shadow: inset 0 0 0 1px var(--gold);
}
.rq-choice input:checked + .rq-choice__body .rq-choice__mark {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 4.5px, transparent 5px);
  box-shadow: 0 0 0 4px var(--gold-a12), 0 0 16px var(--gold-a48);
}
.rq-choice input:focus-visible + .rq-choice__body { outline: 2px solid var(--gold); outline-offset: 3px; }
.rq-choice .icon-tile .diamond { width: 18px; height: 9px; background: var(--gold); filter: drop-shadow(0 0 6px rgba(239, 187, 117, .55)); }

/* ---------- Contact method: three segments ---------- */
.rq-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: var(--rq-field-bg); }
.rq-pill { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rq-pill + .rq-pill { border-left: 1px solid var(--line-strong); }
.rq-pill span {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 .4rem;
  font-size: .8125rem; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; text-align: center;
  color: var(--text-muted);
  transition: color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.rq-pill:hover span { color: var(--text); background: var(--gold-a06); }
.rq-pill input:checked + span { color: var(--navy); background: var(--gold); }
.rq-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; position: relative; z-index: 1; }

/* ---------- Question starters (the nine key questions from the brand copy) ---------- */
.rq-starters { display: grid; gap: .6rem; margin-top: .35rem; }
.rq-starters__label { font-size: 1rem; color: var(--text-dim); }
.rq-starters__list {
  display: flex; gap: .5rem;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 48px), transparent 100%);
}
.rq-starters__list::-webkit-scrollbar { display: none; }
.rq-starters__list > .rq-starter { flex: none; scroll-snap-align: start; }
.rq-starter {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  font-size: 1rem; font-weight: 400; line-height: 1.3; text-align: left; white-space: nowrap;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  transition: color var(--dur-fast) linear, border-color var(--dur-fast) linear, background-color var(--dur-fast) linear;
}
.rq-starter:hover { color: var(--text); border-color: var(--line-gold); background: var(--gold-a06); }
.rq-starter.is-used { color: var(--gold); border-color: var(--line-gold); }
.rq-starter.is-used::before {
  content: ""; width: 8px; height: 4px; margin-right: .7em; flex: none; background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
@media (min-width: 768px) {
  .rq-starters__list { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .rq-starter { white-space: normal; }
}
.rq-refile { color: var(--text-muted); }
.rq-refile b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }

html:not(.js) .rq-starters, .rq-nojs .rq-starters, html:not(.js) .rq-pin, .rq-nojs .rq-pin { display: none; }

/* ---------- Consent, send, progress ---------- */
.rq-consent {
  display: grid; gap: .6rem;
  margin-top: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); padding-top: var(--space-l);
  border-top: 1px solid var(--line);
}
.rq-consent__text { max-width: 64ch; color: var(--text-muted); }
.rq-consent__privacy { font-size: 1rem; color: var(--text-dim); }
/* 44 px tap area without pushing the lines apart (vertical padding on an inline link) */
.rq-consent__privacy .link { padding-block: 13px; color: var(--text-muted); }

.rq-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: var(--space-xl); }
.rq-nav .rq-next, .rq-nav .rq-submit { flex: 1 1 9rem; }
.rq-nav .rq-back { flex: 0 0 auto; }
@media (min-width: 768px) {
  .rq-nav .rq-submit { flex: 0 0 auto; min-width: 17rem; }
}

.rq-submit__label { position: relative; font-variant-numeric: tabular-nums; }
.rq-submit.is-sending { cursor: progress; }
.rq-submit.is-sending::before { animation: rq-sweep 1.5s var(--ease-scan) infinite; }
.rq-submit[aria-disabled="true"] { cursor: progress; }
@keyframes rq-sweep {
  from { background-position: -180% 0, 0 0; }
  to { background-position: 300% 0, 0 0; }
}

/* Sending: a gold node travels along a ruler with the real upload progress */
.rq-send { display: grid; gap: .65rem; margin-top: var(--space-l); }
.rq-send__track {
  --p: 0;
  position: relative; height: 12px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--mist-a24) 0 1px, transparent 1px 24px) 0 100% / 100% 5px no-repeat;
}
.rq-send__fill {
  position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p) * 100%);
  background: var(--gold); box-shadow: 0 0 10px rgba(239, 187, 117, .6);
  transition: width .3s linear;
}
.rq-send__node {
  position: absolute; bottom: -4px; left: calc(var(--p) * 100%);
  width: 10px; height: 10px; margin-left: -5px; border-radius: var(--radius-dot);
  background: var(--gold); box-shadow: 0 0 0 4px var(--gold-a12), 0 0 18px var(--gold-a48);
  transition: left .3s linear;
}
.rq-send.is-waiting .rq-send__node { animation: rq-pulse 1.1s var(--ease-in-out) infinite alternate; }
@keyframes rq-pulse { to { box-shadow: 0 0 0 9px rgba(239, 187, 117, 0), 0 0 26px var(--gold-a72); } }
.rq-send__text {
  font-size: var(--fs-label); font-weight: 500; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--text-muted);
}
.rq-send__text b { font-weight: 500; color: var(--gold); }

/* Could not send: honest words and a way out */
.rq-alert:empty { display: none; }
.rq-alert {
  display: grid; gap: .75rem;
  margin-top: var(--space-l); padding: 18px 20px;
  border: 1px solid var(--rq-error-line);
  background: var(--rq-error-bg);
}
.rq-alert__title { display: flex; align-items: flex-start; gap: .6em; font-weight: 500; color: var(--paper); }
.rq-alert__title::before {
  content: "!"; flex: none; display: inline-grid; place-items: center;
  width: 1.3em; height: 1.3em; margin-top: .12em;
  font-size: .8em; font-weight: 700; line-height: 1; color: var(--rq-error);
  border: 1px solid currentColor; border-radius: 50%;
}
.rq-alert__text { color: var(--text-muted); }
.rq-alert__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.rq-alert__actions .link-ext { min-height: 44px; color: var(--text); }
.rq-alert__actions .link-ext:hover { color: var(--gold); }

/* ---------- Phones: three steps ---------- */
.rq-progress, .rq-nav--step, .rq-nav--send .rq-back { display: none; }
@media (max-width: 767.98px) {
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-step:not([data-current]) { display: none; }
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-step + .rq-step { margin-top: 0; padding-top: 0; border-top: 0; }
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-progress { display: block; }
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-nav--step { display: flex; }
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-nav--send .rq-back { display: inline-flex; }
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-note { display: none; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: no-preference) {
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-step.is-entering { animation: rq-step-in .55s var(--ease-out) both; }
  html.js:not(.rq-nojs):not([data-rq-mode]) .rq-step.is-entering.is-back { animation-name: rq-step-back; }
}
@keyframes rq-step-in { from { opacity: 0; transform: translate3d(18px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes rq-step-back { from { opacity: 0; transform: translate3d(-18px, 0, 0); } to { opacity: 1; transform: none; } }

.rq-progress { margin-bottom: var(--space-xl); }
.rq-progress__count { display: flex; margin-bottom: .7rem; }
.rq-progress__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rq-progress__btn {
  position: relative; display: flex; align-items: baseline; gap: .6em;
  width: 100%; min-height: 44px; padding: 14px 0 6px;
  font-size: var(--fs-label); font-weight: 500; line-height: 1.2; letter-spacing: .14em; text-align: left; text-transform: uppercase;
  color: var(--text-dim);
  -webkit-tap-highlight-color: transparent;
}
.rq-progress__btn::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--mist-a14);
  transition: background-color var(--dur-base) linear, box-shadow var(--dur-base) linear;
}
.rq-progress__num { color: var(--text-dim); font-variant-numeric: tabular-nums; }
/* small phones: a little less spacing; under 400 px the name sits under its number, the same in all
   three steps, so a name never runs into the next step */
@media (max-width: 429.98px) { .rq-progress__btn { letter-spacing: .1em; } }
@media (max-width: 399.98px) { .rq-progress__btn { flex-direction: column; align-items: flex-start; gap: .35em; } }
.rq-progress__item.is-done .rq-progress__btn::before { background: var(--gold-a48); }
.rq-progress__item.is-done .rq-progress__num { color: var(--gold); }
.rq-progress__btn[aria-current="step"] { color: var(--text); }
.rq-progress__btn[aria-current="step"]::before { background: var(--gold); box-shadow: 0 0 10px rgba(239, 187, 117, .5); }
.rq-progress__btn[aria-current="step"] .rq-progress__num { color: var(--gold); }
.rq-progress__btn:disabled { cursor: default; }
.rq-progress__btn:not(:disabled):not([aria-current="step"]):hover { color: var(--text); }

/* ---------- Sent ---------- */
.rq-done {
  overflow: hidden; isolation: isolate;
  display: grid; justify-items: start; gap: var(--space-m);
}
@media (max-width: 767.98px) {
  .rq-done { padding: var(--space-xl) var(--space-m); border: 1px solid var(--line); background: linear-gradient(155deg, rgba(20, 50, 72, .42), rgba(0, 26, 46, .34)); }
}
.rq-done:focus { outline: none; }
/* the orbit stays in the top-right corner and fades out before the words */
.rq-done__orbit {
  z-index: -1; inset: 0 0 auto auto; width: min(100%, 620px); height: clamp(150px, 30vw, 230px);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(0, 0, 0, .55) 62%, #000 82%);
          mask-image: linear-gradient(100deg, transparent 0%, transparent 38%, rgba(0, 0, 0, .55) 62%, #000 82%);
}
.rq-done__title { font-size: var(--fs-h2); }
.rq-done__text { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); text-wrap: balance; }
.rq-ref {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  margin-top: var(--space-2xs); padding: 16px 20px;
  border: 1px solid var(--line-gold);
  background: rgba(0, 15, 28, .55);
}
.rq-ref__label { flex-basis: 100%; }
.rq-ref__id {
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.1;
  letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--gold);
  -webkit-user-select: all; user-select: all;
}
.rq-done__note { max-width: 52ch; color: var(--text-dim); font-size: 1rem; text-wrap: balance; }
.rq-done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: var(--space-2xs); }
.rq-again { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-base); }
@media (max-width: 479px) { .rq-done__actions .btn { flex: 1 1 100%; } }

/* ---------- Aside ---------- */
.rq-aside { display: grid; gap: var(--space-xl); align-content: start; }
.rq-aside__label { display: flex; margin-bottom: var(--space-s); }
.rq-index { display: none; }
@media (min-width: 1100px) { .rq-index { display: block; } }
.rq-index__list { display: grid; border-top: 1px solid var(--line); }
.rq-index__link {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center;
  min-height: 52px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  transition: color var(--dur-fast) linear;
}
.rq-index__link:hover { color: var(--text); }
.rq-index__num { font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--text-dim); transition: color var(--dur-fast) linear; }
.rq-index__name { font-size: var(--fs-base); }
.rq-index__state {
  width: 14px; height: 7px; margin-right: 2px;
  background: var(--mist-a24);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transition: background-color var(--dur-base) linear;
}
.rq-index__link[aria-current="true"] { color: var(--text); }
.rq-index__link[aria-current="true"] .rq-index__num { color: var(--gold); }
.rq-index__link.is-done .rq-index__state { background: var(--gold); }
[data-rq-mode] .rq-index { display: none; }

.rq-after { counter-reset: rq-after; display: grid; gap: var(--space-s); }
.rq-after > li {
  counter-increment: rq-after;
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr);
  color: var(--text-muted); line-height: 1.55;
}
.rq-after > li::before {
  content: counter(rq-after, decimal-leading-zero);
  padding-top: .3em;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; font-variant-numeric: tabular-nums;
  color: var(--gold);
}
.rq-aside__insta { min-height: 44px; color: var(--text); }

/* Between 768 and 1099 px the aside sits under the form as two columns */
@media (min-width: 768px) and (max-width: 1099.98px) {
  .rq-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); }
}

/* ---------- Every visitor: high contrast, print ---------- */
@media (forced-colors: active) {
  .rq-input:focus { outline: 2px solid Highlight; outline-offset: 1px; }
  .rq-choice input:checked + .rq-choice__body, .rq-pill input:checked + span { outline: 3px solid Highlight; outline-offset: -3px; }
  .rq-choice__mark, .rq-pin__mark, .rq-index__state { forced-color-adjust: none; }
  .rq-error, .rq-alert { border-color: CanvasText; }
  .rq-send__fill, .rq-send__node { background: Highlight; }
  .rq-drop.ticks::before, .rq-done.ticks::before { display: none; }
}
@media print {
  .rq-aside, .rq-nav, .rq-starters, .rq-progress, .rq-pin, .rq-drop, .rq-switch, .rq-send { display: none !important; }
  .rq-step[hidden], .rq-step { display: block !important; }
  .rq-input { border-color: #999 !important; background: none !important; color: #000 !important; }
}
