/* NARSYSS request stepper — lives inside the enquiry card ([data-enquiry-card]) on /book-consultation.
 * Uses the site's tokens (--color-ink, --color-volt, fonts) and logical properties so RTL flips automatically. */

/* Hide the original single-page form once the stepper is mounted. */
html.rq-on #form form:not(.rq-form) { display: none !important; }

.rq {
  --rq-ink: var(--color-ink);
  --rq-line: color-mix(in srgb, var(--color-ink) 12%, transparent);
  --rq-line-strong: color-mix(in srgb, var(--color-ink) 25%, transparent);
  --rq-muted: color-mix(in srgb, var(--color-ink) 62%, transparent);
  --rq-soft: color-mix(in srgb, var(--color-ink) 4%, transparent);
  --rq-accent: var(--color-volt);
  --rq-accent-soft: color-mix(in srgb, var(--color-volt) 9%, transparent);
  --rq-danger: #dc2626;
  --rq-ease: cubic-bezier(.16, 1, .3, 1);
  --rq-x: 1;
  margin-top: 0;
  color: var(--rq-ink);
}
[dir="rtl"] .rq { --rq-x: -1; }
.rq svg { width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.rq button { cursor: pointer; font: inherit; color: inherit; }
.rq button:focus-visible, .rq a:focus-visible { outline: 2px solid var(--rq-accent); outline-offset: 2px; }
.rq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rq-honeypot { position: absolute; inset-inline-start: -9999px; width: 0; height: 0; overflow: hidden; }

/* ── header: step count, change chip, progress ── */
.rq-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; }
.rq-count { color: var(--rq-muted); }
.rq-chip {
  display: inline-flex; align-items: center; gap: .5rem; max-width: 60%;
  padding: .375rem .75rem; border-radius: 9999px; background: var(--rq-soft);
  font-size: .8125rem; font-weight: 500; transition: background-color .3s;
}
.rq-chip:hover { background: color-mix(in srgb, var(--color-ink) 9%, transparent); }
.rq-chip svg { width: .875rem; height: .875rem; }
.rq-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-chip-change { color: var(--rq-muted); }
.rq-bar { margin-top: 1rem; height: 4px; border-radius: 9999px; background: color-mix(in srgb, var(--color-ink) 8%, transparent); overflow: hidden; }
.rq-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--rq-accent); transition: width .7s var(--rq-ease); }

/* ── step body + transitions ── */
.rq-body { margin-top: 2rem; }
.rq-body.enter { animation: rq-in .5s var(--rq-ease) both; }
.rq-body.enter.back { animation-name: rq-in-back; }
@keyframes rq-in      { from { opacity: 0; transform: translateX(calc(24px * var(--rq-x))); } }
@keyframes rq-in-back { from { opacity: 0; transform: translateX(calc(-24px * var(--rq-x))); } }
.rq-title { font-size: 1.5rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; outline: none; }
@media (min-width: 40rem) { .rq-title { font-size: 1.75rem; } }
.rq-sub { margin-top: .5rem; font-size: .9375rem; color: var(--rq-muted); }
.rq-content { margin-top: 1.75rem; }
.rq-stack > * + * { margin-top: 2rem; }
.rq-stack.tight > * + * { margin-top: 1.25rem; }
.rq-gap { margin-top: .75rem; }

/* ── tiles ── */
.rq-grid { display: grid; gap: .5rem; }
@media (min-width: 40rem) { .rq-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .rq-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rq-fields { gap: 1.25rem; }
.rq-tile {
  display: flex; align-items: center; gap: 1rem; min-height: 4rem; padding: .75rem 1rem;
  border: 1px solid var(--rq-line); border-radius: 1rem; background: #fff;
  text-align: start; font-size: .9375rem; font-weight: 500;
  transition: background-color .3s, border-color .3s, color .3s;
}
.rq-tile:hover { border-color: color-mix(in srgb, var(--color-ink) 35%, transparent); }
.rq-tile[aria-checked="true"] { background: var(--rq-ink); border-color: var(--rq-ink); color: #fff; }
.rq-ico {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--rq-soft); transition: background-color .3s, color .3s;
}
.rq-tile[aria-checked="true"] .rq-ico { background: var(--rq-accent); color: #fff; }
.rq-opt { justify-content: space-between; min-height: 3.5rem; }
.rq-mark {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.25rem; height: 1.25rem; border: 1px solid var(--rq-line-strong); border-radius: 9999px; transition: background-color .3s, border-color .3s;
}
.rq-opt.multi .rq-mark { border-radius: .375rem; }
.rq-mark svg { width: .75rem; height: .75rem; transform: scale(0); transition: transform .3s var(--rq-ease); }
.rq-opt[aria-checked="true"] .rq-mark { background: var(--rq-accent); border-color: var(--rq-accent); color: #fff; }
.rq-opt[aria-checked="true"] .rq-mark svg { transform: scale(1); }

/* ── questions & fields ── */
.rq-qlabel { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: .9375rem; font-weight: 600; }
.rq-help { margin-top: .25rem; font-size: .84rem; color: var(--rq-muted); }
.rq-optional { font-size: .78rem; font-weight: 400; color: var(--rq-muted); text-transform: none; letter-spacing: 0; }
.rq-label { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; color: color-mix(in srgb, var(--color-ink) 64%, transparent); }
.rq-input {
  display: block; width: 100%; margin-top: .625rem; height: 3.25rem; padding: 0 1rem;
  border: 1px solid var(--rq-line-strong); border-radius: .75rem; background: #fff;
  font: inherit; font-size: 1rem; /* 16px: anything smaller makes iOS Safari zoom on focus */ color: var(--rq-ink); transition: border-color .3s;
}
.rq-input::placeholder { color: color-mix(in srgb, var(--color-ink) 45%, transparent); }
.rq-input:focus { outline: none; border-color: var(--rq-accent); }
.rq-input[aria-invalid="true"] { border-color: var(--rq-danger); }
.rq-textarea { height: auto; padding: .75rem 1rem; line-height: 1.65; resize: vertical; }
.rq-gap > .rq-textarea { margin-top: 0; }
.rq-err { margin-top: .5rem; font-size: .8125rem; color: var(--rq-danger); }

/* ── location feedback ── */
.rq-note {
  display: flex; align-items: flex-start; gap: .75rem; margin-top: 1rem; padding: 1rem;
  border-radius: 1rem; font-size: .9375rem; animation: rq-fade .3s ease both;
}
.rq-note svg { width: 1.25rem; height: 1.25rem; margin-top: .125rem; }
.rq-note.ok { background: var(--rq-accent-soft); }
.rq-note.ok svg { color: var(--rq-accent); }
.rq-note.neutral { background: var(--rq-soft); }
.rq-note.neutral svg { color: var(--rq-muted); }
@keyframes rq-fade { from { opacity: 0; } }

/* ── image input ── */
.rq-drop {
  display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; margin-top: .75rem;
  padding: 1.5rem 1rem; border: 1px dashed var(--rq-line-strong); border-radius: 1rem; background: #fff;
  font-size: .9375rem; font-weight: 500; transition: border-color .3s, background-color .3s;
}
.rq-drop:hover { border-color: color-mix(in srgb, var(--color-ink) 50%, transparent); background: var(--rq-soft); }
.rq-drop:disabled { opacity: .6; }
.rq-image { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; padding: .75rem; border: 1px solid var(--rq-line); border-radius: 1rem; }
.rq-image img { width: 4rem; height: 4rem; border-radius: .75rem; object-fit: cover; background: var(--rq-soft); }
.rq-image-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; }
.rq-icon-btn { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px; color: var(--rq-muted); transition: background-color .3s, color .3s; }
.rq-icon-btn:hover { background: var(--rq-soft); color: var(--rq-ink); }

/* ── timing picker ── */
.rq-timing > * + * { margin-top: 1.25rem; }
.rq-asap { width: 100%; }
.rq-asap > span:last-child { display: flex; flex-direction: column; gap: .125rem; }
.rq-asap-sub { font-size: .8125rem; font-weight: 400; opacity: .7; }
.rq-days { display: flex; flex-wrap: wrap; gap: .5rem; }
.rq-day {
  display: flex; flex-direction: column; align-items: center; gap: .125rem; min-width: 5.25rem; padding: .625rem .875rem;
  border: 1px solid var(--rq-line); border-radius: 1rem; background: #fff; transition: background-color .3s, border-color .3s, color .3s;
}
.rq-day:hover { border-color: color-mix(in srgb, var(--color-ink) 35%, transparent); }
.rq-day[aria-checked="true"] { background: var(--rq-ink); border-color: var(--rq-ink); color: #fff; }
.rq-day-label { font-size: .9375rem; font-weight: 600; }
.rq-day-sub { font-family: var(--font-mono); font-size: .6875rem; opacity: .6; }
.rq-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 40rem) { .rq-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rq-slot {
  height: 3rem; border: 1px solid var(--rq-line); border-radius: 9999px; background: #fff;
  font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr;
  transition: background-color .3s, border-color .3s, color .3s;
}
.rq-slot:hover:not(:disabled) { border-color: color-mix(in srgb, var(--color-ink) 35%, transparent); }
.rq-slot[aria-checked="true"] { background: var(--rq-ink); border-color: var(--rq-ink); color: #fff; }
.rq-slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ── contact privacy line ── */
.rq-privacy { display: flex; align-items: flex-start; gap: .5rem; font-size: .8125rem; line-height: 1.6; color: var(--rq-muted); }
.rq-privacy svg { width: .875rem; height: .875rem; margin-top: .2rem; }
.rq-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.rq-privacy a:hover { color: var(--rq-ink); }

/* ── footer: back / next ── */
.rq-alert {
  display: flex; align-items: flex-start; gap: .75rem; margin-top: 1.5rem; padding: 1rem;
  border-radius: 1rem; background: #fef2f2; font-size: .9rem;
}
.rq-alert svg { color: var(--rq-danger); width: 1rem; height: 1rem; margin-top: .2rem; }
.rq-alert a { text-decoration: underline; text-underline-offset: 2px; unicode-bidi: isolate; }
.rq-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-ink) 8%, transparent);
}
.rq-hint { font-size: .8125rem; color: var(--rq-muted); }
.rq-back {
  display: inline-flex; align-items: center; gap: .5rem; height: 3rem; padding-inline: 1rem; border-radius: 9999px;
  font-size: .9375rem; font-weight: 500; color: var(--rq-muted); transition: color .3s;
}
.rq-back:hover { color: var(--rq-ink); }
.rq-back svg { width: 1rem; height: 1rem; }
[dir="rtl"] .rq .lucide-arrow-left { transform: scaleX(-1); }
.rq-next {
  display: inline-flex; align-items: center; gap: .75rem; height: 3rem; padding-inline: .375rem 1.5rem;
  border-radius: 9999px; background: var(--rq-ink); color: #fff !important; font-size: .875rem; font-weight: 500; white-space: nowrap;
  transition: background-color .3s;
}
.rq-next:hover { background: var(--color-ink-raise, var(--rq-ink)); }
.rq-next:disabled { opacity: .7; cursor: progress; }
.rq-next-ico {
  display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
  border-radius: 9999px; background: #fff; color: var(--rq-ink); transition: rotate .5s;
}
.rq-next-ico svg { width: .875rem; height: .875rem; }
.rq-next:hover:not(:disabled) .rq-next-ico { rotate: 45deg; }
[dir="rtl"] .rq-next:hover:not(:disabled) .rq-next-ico { rotate: -45deg; }
.rq-spin { animation: rq-spin 1s linear infinite; }
@keyframes rq-spin { to { transform: rotate(360deg); } }

/* ── done ── */
.rq-done { padding: 1.5rem 0 .5rem; text-align: center; animation: rq-fade .5s ease both; }
.rq-badge {
  display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; margin: 0 auto;
  border-radius: 9999px; background: var(--rq-accent); color: #fff; animation: rq-zoom .5s var(--rq-ease) both;
}
.rq-badge svg { width: 1.75rem; height: 1.75rem; }
@keyframes rq-zoom { from { opacity: 0; transform: scale(.5); } }
.rq-done .rq-title { margin-top: 1.75rem; font-size: 2rem; }
.rq-done-text { max-width: 28rem; margin: 1rem auto 0; font-size: 1rem; line-height: 1.65; color: var(--rq-muted); }
.rq-done-when { display: inline-flex; flex-direction: column; gap: .375rem; margin-top: 1.5rem; padding: .875rem 1.25rem; border-radius: 1rem; background: var(--rq-soft); font-weight: 500; }
.rq-done-call { margin-top: 1.25rem; font-size: .9375rem; color: var(--rq-muted); }
.rq-mono { font-family: var(--font-mono); color: var(--rq-ink); unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.rq-done-text .rq-mono { white-space: normal; overflow-wrap: anywhere; }
a.rq-mono:hover { text-decoration: underline; text-underline-offset: 4px; }
.rq-ghost {
  display: inline-flex; align-items: center; height: 2.75rem; margin-top: 2rem; padding-inline: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-ink) 18%, transparent); border-radius: 9999px;
  font-size: .875rem; font-weight: 500; transition: border-color .3s;
}
.rq-ghost:hover { border-color: color-mix(in srgb, var(--color-ink) 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .rq-body.enter, .rq-note, .rq-done, .rq-badge { animation: none; }
  .rq-bar > i { transition: none; }
}

/* ── dropdowns (Reason for contact, Indicative budget) ── */
.rq-select-wrap { position: relative; }
.rq-select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.75rem; cursor: pointer; }
.rq-chevron {
  position: absolute; inset-inline-end: 1rem; top: calc(50% + .3125rem); transform: translateY(-50%);
  width: 1rem !important; height: 1rem !important; color: var(--rq-muted); pointer-events: none;
}
/* typed text follows its own direction (dir="auto"); keep placeholders aligned with the page */
html[dir="rtl"] .rq-input[dir="auto"]:placeholder-shown { text-align: right; }

/* "Other" on the first step: full-width tile, and its short-answer field under the grid */
@media (min-width: 40rem) { .rq-grid.c2 > .rq-service.wide, .rq-grid.c2 > .rq-other { grid-column: 1 / -1; } }
.rq-other { margin-top: .75rem; }
/* a PDF in place of the image thumbnail */
.rq-file-ico { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem; width: 4rem; height: 4rem; flex-shrink: 0;
  border-radius: .75rem; background: var(--rq-soft); color: var(--color-volt); font-size: .625rem; font-weight: 600; letter-spacing: .08em; }
.rq-file-ico svg { width: 1.25rem; height: 1.25rem; }

/* budget: two amount boxes (from – to) on one line */
.rq-range { display: flex; align-items: center; gap: .5rem; }
.rq-range .rq-input { flex: 1; min-width: 0; }
.rq-range-sep { color: var(--rq-muted); }

/* ───────── As a pop-up on the service pages (NX.modal, opened by the sticky "Request service" button) ─────────
 * .nx-modal.nx-modal-request: two classes, so these win over the general pop-up styles in /bridge/bridge.css (loaded later). */
.nx-modal.nx-modal-request .nx-modal-panel { max-width: 42rem; min-height: 0; padding: 1.75rem 1.5rem; max-height: calc(100dvh - 2.5rem);
  overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 40rem) { .nx-modal.nx-modal-request .nx-modal-panel { padding: 2.5rem; } }
.nx-modal-request .rq-top { padding-inline-end: 2.75rem; } /* room for the close button */
.nx-modal-request .rq-count { white-space: nowrap; }
/* phone: a sheet that slides up from the bottom; the "about 60 seconds" hint makes room for the step count */
@media (max-width: 39.99rem) {
  .nx-modal.nx-modal-request { padding: 0; align-items: flex-end; }
  .nx-modal.nx-modal-request .nx-modal-panel { max-width: none; max-height: 92dvh; border-radius: 20px 20px 0 0; padding-bottom: calc(1.75rem + env(safe-area-inset-bottom));
    transform: translateY(100%); }
  .nx-modal.nx-modal-request[data-open] .nx-modal-panel { transform: none; }
  .nx-modal-request .rq-hint { display: none; }
}
