/*
 * Radio request flow ("la caja" look). Standalone stylesheet for
 * stallion/radios/requests/wizard.html and done.html.
 * Every class starts with rq-. Light theme only, as in the design.
 */

:root {
  --rq-primary: #2c89ed;
  --rq-primary-strong: #1a6fc9;
  --rq-primary-5: rgba(44, 137, 237, 0.05);
  --rq-primary-10: rgba(44, 137, 237, 0.1);
  --rq-blue-700: #1d4ed8;
  --rq-blue-800: #1e40af;
  --rq-bg: #f8fafc;
  --rq-surface: #ffffff;
  --rq-slate-100: #f1f5f9;
  --rq-text: #0f172a;
  --rq-text-strong: #334155;
  --rq-text-secondary: #475569;
  --rq-text-muted: #64748b;
  --rq-border: #e2e8f0;
  --rq-slate-300: #cbd5e1;
  --rq-slate-400: #94a3b8;
  --rq-green-700: #15803d;
  --rq-red-600: #dc2626;
  --rq-amber-700: #b45309;

  --rq-radius-xs: 6px;
  --rq-radius-sm: 10px;
  --rq-radius-md: 16px;
  --rq-radius-lg: 24px;
  --rq-radius-full: 9999px;

  --rq-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --rq-shadow-float: 0 4px 20px rgba(15, 23, 42, 0.05);
  --rq-shadow-float-hover: 0 10px 25px rgba(15, 23, 42, 0.08);
  --rq-shadow-player: 0 -4px 20px rgba(0, 0, 0, 0.05);

  --rq-tile-gradient: linear-gradient(135deg, #3b82f6, #4338ca);
  --rq-font: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --rq-gutter: 40px;
}

/* ---------- Base ---------- */

.rq-root { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.rq-body {
  margin: 0;
  min-height: 100vh;
  background: var(--rq-bg);
  color: var(--rq-text);
  font-family: var(--rq-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.rq-body *,
.rq-body *::before,
.rq-body *::after { box-sizing: border-box; }

.rq-body [hidden] { display: none !important; }

.rq-body a { color: var(--rq-primary-strong); }
.rq-body a:hover { color: var(--rq-blue-700); }

.rq-body a:focus-visible,
.rq-body button:focus-visible,
.rq-body input:focus-visible,
.rq-body textarea:focus-visible,
.rq-body [tabindex]:focus-visible {
  outline: 2px solid var(--rq-primary);
  outline-offset: 2px;
}

.rq-body h1[tabindex="-1"]:focus { outline: none; }

.rq-body input::placeholder,
.rq-body textarea::placeholder { color: var(--rq-text-muted); opacity: 1; }

.rq-body p { margin: 0; }

.rq-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.rq-icon {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rq-icon--16 { width: 16px; height: 16px; }
.rq-icon--18 { width: 18px; height: 18px; }
.rq-icon--20 { width: 20px; height: 20px; }
.rq-icon--22 { width: 22px; height: 22px; }
.rq-icon--24 { width: 24px; height: 24px; }
.rq-icon--40 { width: 40px; height: 40px; }
.rq-icon--sw22 { stroke-width: 2.2; }

.rq-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Progressive enhancement switches ---------- */

/* Without JS: no step navigation, search hidden, every other section stacked. */
.rq-root:not(.rq-js) .rq-js-only,
.rq-root:not(.rq-js) [data-step="search"],
.rq-root:not(.rq-js) .rq-stepper,
.rq-root:not(.rq-js) .rq-progress,
.rq-root:not(.rq-js) .rq-nav:not(.rq-nav--submit) { display: none !important; }

/* With JS: only the active step is shown. */
.rq-js .rq-step:not([data-active]) { display: none !important; }
.rq-js[data-rq-screen="intro"] .rq-wizard { display: none; }

/* Role and mode dependent copy. No role yet = listener wording. */
.rq-root:not([data-rq-role="owner"]) .rq-if-owner { display: none !important; }
.rq-root[data-rq-role="owner"] .rq-if-listener { display: none !important; }
.rq-root[data-rq-role="listener"] .rq-unless-listener { display: none !important; }
.rq-root:not([data-rq-mode="update"]) .rq-if-update { display: none !important; }
.rq-root[data-rq-mode="update"] .rq-if-new { display: none !important; }
.rq-root:not([data-rq-step="send"]) .rq-if-send { display: none !important; }
.rq-root[data-rq-step="send"] .rq-unless-send { display: none !important; }

/* ---------- Header ---------- */

/* Matches streema.com's header: white, 59px with its hairline border, the
   blue wordmark 28px tall at the left edge of the content. */
.rq-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.rq-header__bar {
  /* content-box like .rq-shell: the board's 1320px is the content width. */
  box-sizing: content-box;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--rq-gutter);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rq-body .rq-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.rq-wordmark__img { display: block; width: 124px; height: 28px; }

.rq-body .rq-header__cancel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rq-text-strong);
  text-decoration: none;
}
.rq-body .rq-header__cancel:hover { color: var(--rq-text); text-decoration: underline; }

.rq-body .rq-header__cancel-icon {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--rq-radius-full);
  align-items: center;
  justify-content: center;
  color: var(--rq-text-strong);
}
.rq-body .rq-header__cancel-icon:hover { background: var(--rq-slate-100); color: var(--rq-text); }

.rq-progress { display: none; }

/* ---------- Shells ---------- */

.rq-shell {
  box-sizing: content-box;
  margin: 0 auto;
  padding-left: var(--rq-gutter);
  padding-right: var(--rq-gutter);
  display: flex;
  flex-direction: column;
}

.rq-shell--narrow { max-width: 760px; }
.rq-shell--wide { max-width: 1080px; padding-top: 48px; padding-bottom: 80px; gap: 40px; }
.rq-shell--done { max-width: 640px; padding-top: 88px; padding-bottom: 80px; gap: 32px; align-items: center; text-align: center; }

.rq-role { padding-top: 72px; padding-bottom: 80px; gap: 40px; }
.rq-search { padding-top: 56px; padding-bottom: 80px; gap: 32px; }

/* Without JS the role block and the wizard are stacked. */
.rq-root:not(.rq-js) .rq-role { padding-bottom: 0; }

/* ---------- Headings ---------- */

.rq-hero { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }

.rq-hero__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.rq-hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--rq-text-muted);
  max-width: 56ch;
}
.rq-hero__lede strong { font-weight: 700; color: var(--rq-text); overflow-wrap: anywhere; }

.rq-head { display: flex; flex-direction: column; gap: 12px; }

.rq-head__title {
  margin: 0;
  font-size: 36px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.rq-head__lede { font-size: 16px; line-height: 24px; color: var(--rq-text-muted); }

.rq-overline {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rq-text-muted);
}

/* ---------- Role cards ---------- */

.rq-role__group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.rq-role__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.rq-role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--rq-surface);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-md);
  color: var(--rq-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rq-role-card:hover { border-color: var(--rq-slate-300); }
.rq-role-card.is-selected,
.rq-role-card:has(.rq-role-card__input:checked) { border-color: var(--rq-primary); background: var(--rq-primary-5); }
.rq-role-card:has(.rq-role-card__input:focus-visible) { outline: 2px solid var(--rq-primary); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .rq-role-card:focus-within { outline: 2px solid var(--rq-primary); outline-offset: 2px; }
}

.rq-role-card__input,
.rq-choice__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.rq-role-card__disc {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--rq-radius-full);
  background: var(--rq-slate-100);
  color: var(--rq-text-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rq-role-card__disc .rq-icon { stroke-width: 1.8; }

.rq-role-card__text { display: flex; flex-direction: column; gap: 6px; }
.rq-role-card__title { font-size: 20px; line-height: 28px; font-weight: 700; }

.rq-role-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--rq-primary-strong);
}
.rq-role-card:hover .rq-role-card__cta { color: var(--rq-blue-700); }

.rq-role-card__chevron { display: none; color: var(--rq-slate-400); }

.rq-role__note {
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--rq-text-muted);
}

/* ---------- Search ---------- */

.rq-back-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  margin-left: -8px;
  border: 0;
  border-radius: var(--rq-radius-full);
  background: transparent;
  font: 600 14px/20px var(--rq-font);
  color: var(--rq-text-strong);
  cursor: pointer;
}
.rq-back-link:hover { color: var(--rq-text); }

.rq-search__field { display: flex; flex-direction: column; gap: 12px; }

.rq-search-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 12px 0 24px;
  background: var(--rq-surface);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-full);
  box-shadow: var(--rq-shadow-float);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rq-search-pill:focus-within {
  border-color: var(--rq-primary);
  box-shadow: var(--rq-shadow-float-hover);
}
/* Keyboard focus: the shared 2px focus ring, on the pill rather than the bare input. */
.rq-search-pill:has(.rq-search-pill__input:focus-visible) {
  outline: 2px solid var(--rq-primary);
  outline-offset: 2px;
}
.rq-search-pill__icon { width: 20px; height: 20px; color: var(--rq-slate-400); }

.rq-body .rq-search-pill__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 16px/24px var(--rq-font);
  color: var(--rq-text);
  -webkit-appearance: none;
  appearance: none;
}
/* The pill draws the ring; the shared input:focus-visible rule would add a
   second, rectangular one on the bare input. */
.rq-body .rq-search-pill__input:focus-visible { outline: none; }
.rq-search-pill__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.rq-search-pill__clear {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: var(--rq-radius-full);
  background: var(--rq-slate-100);
  color: var(--rq-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rq-search-pill__clear:hover { background: var(--rq-border); color: var(--rq-text); }

.rq-results {
  background: var(--rq-surface);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-md);
  overflow: hidden;
}

.rq-results__overline { padding: 16px 20px 8px; }

.rq-results__list { list-style: none; margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--rq-border); }

.rq-body .rq-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  min-height: 72px;
  color: var(--rq-text);
  text-decoration: none;
}
.rq-body .rq-result:hover { background: var(--rq-bg); color: var(--rq-text); }
.rq-body .rq-result:focus-visible { outline-offset: -2px; }

.rq-results__text,
.rq-station__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.rq-results__name,
.rq-station__name { font-size: 16px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }

.rq-results__meta,
.rq-station__meta { font-size: 12px; line-height: 16px; color: var(--rq-text-muted); overflow-wrap: anywhere; }

.rq-pill-outline {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-full);
  background: var(--rq-surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--rq-text-strong);
}
.rq-result:hover .rq-pill-outline { border-color: var(--rq-slate-300); }

.rq-results__notice { padding: 16px 20px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--rq-text-secondary); border-bottom: 1px solid var(--rq-border); }

.rq-results__add {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--rq-primary-5);
}

.rq-results__add-disc {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--rq-radius-full);
  background: var(--rq-primary-10);
  color: var(--rq-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Logo tiles ---------- */

.rq-tile {
  position: relative;
  flex: none;
  overflow: hidden;
  border-radius: var(--rq-radius-sm);
  background: var(--rq-tile-gradient);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rq-tile--48 { width: 48px; height: 48px; font-size: 16px; }
.rq-tile--56 { width: 56px; height: 56px; font-size: 18px; }
.rq-tile.has-image { background: var(--rq-slate-100); }

.rq-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--rq-surface);
}

/* ---------- Stepper ---------- */

.rq-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rq-stepper__item { display: flex; flex-direction: column; gap: 8px; }
.rq-stepper__bar { height: 4px; border-radius: var(--rq-radius-full); background: var(--rq-border); }
.rq-stepper__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--rq-text-muted); }

.rq-stepper__item.is-done .rq-stepper__bar,
.rq-stepper__item[aria-current="step"] .rq-stepper__bar { background: var(--rq-primary); }
.rq-stepper__item.is-done .rq-stepper__label { color: var(--rq-text-secondary); }
.rq-stepper__item[aria-current="step"] .rq-stepper__label { font-weight: 700; color: var(--rq-text); }
.rq-stepper__item.is-done .rq-stepper__optional { display: none; }
.rq-stepper__item[data-has-errors] .rq-stepper__bar { background: var(--rq-red-600); }

/* ---------- Two columns ---------- */

.rq-columns { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }

.rq-columns__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }

.rq-step__body { display: flex; flex-direction: column; gap: 28px; }

.rq-columns__main > .rq-step { display: flex; flex-direction: column; gap: 28px; }

.rq-aside { flex: 1 1 300px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* Desktop: the summary stays in view while a long step scrolls. The header
   scrolls away, so it sticks to the top of the viewport; a card taller than
   the viewport scrolls inside the aside instead of being clipped. */
@media (min-width: 640px) {
  .rq-js .rq-aside {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.rq-card {
  background: var(--rq-surface);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rq-station { display: flex; align-items: center; gap: 12px; min-width: 0; }

.rq-summary {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 12px;
  line-height: 16px;
}
.rq-summary dt { color: var(--rq-text-muted); }
.rq-summary dd { margin: 0; font-weight: 600; color: var(--rq-text-strong); min-width: 0; overflow-wrap: anywhere; }
/* Links (streams, website, social) wrap anywhere so the whole path stays readable. */
.rq-summary .rq-summary__link { font-weight: 500; word-break: break-all; }
.rq-summary .rq-summary__removed { color: var(--rq-text-muted); font-weight: 500; }
.rq-summary .rq-summary__clamp {
  font-weight: 500;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* ---------- Fields ---------- */

.rq-field { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.rq-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--rq-text);
}
.rq-label__hint { font-weight: 500; color: var(--rq-text-muted); }

.rq-help { font-size: 12px; line-height: 16px; color: var(--rq-text-muted); }

/* Help text with a character counter at its end (wizard/_count.html). */
.rq-help-row { display: flex; align-items: flex-start; gap: 12px; }
/* .rq-body scope: .rq-body p resets margins. */
.rq-body .rq-count { flex: none; margin-left: auto; font-variant-numeric: tabular-nums; }
.rq-count.is-over { font-weight: 600; color: var(--rq-red-600); }

.rq-notice {
  padding: 10px 14px;
  border-radius: var(--rq-radius-sm);
  background: var(--rq-slate-100);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--rq-text-secondary);
}

.rq-error {
  display: flex;
  gap: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--rq-red-600);
}
.rq-error .rq-icon { margin-top: 1px; }

/* Link reachability note under the website and stream inputs: a hint, never an error. */
.rq-check-note {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--rq-text-muted);
}
.rq-check-note .rq-icon { flex: none; margin-top: 0; }
.rq-check-note--ok { color: var(--rq-green-700); }
.rq-check-note--warn { color: var(--rq-amber-700); }

.rq-body .rq-input {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-full);
  background: var(--rq-surface);
  font: 500 14px/20px var(--rq-font);
  color: var(--rq-text);
  -webkit-appearance: none;
  appearance: none;
}
.rq-body .rq-input:hover { border-color: var(--rq-slate-300); }
.rq-body .rq-input:focus { border-color: var(--rq-primary); outline: none; }
.rq-body .rq-input:focus-visible { outline: 2px solid var(--rq-primary); outline-offset: 2px; }

.rq-body .rq-input--sm { height: 44px; padding: 0 18px; }

.rq-body .rq-textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-md);
  background: var(--rq-surface);
  font: 500 14px/22px var(--rq-font);
  color: var(--rq-text);
  resize: vertical;
}
.rq-body .rq-textarea:hover { border-color: var(--rq-slate-300); }
.rq-body .rq-textarea:focus { border-color: var(--rq-primary); }

.rq-input-row { display: flex; align-items: center; gap: 8px; }
.rq-input-row .rq-input { flex: 1; min-width: 0; }

.rq-input-icon,
.rq-input-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-full);
  background: var(--rq-surface);
}
.rq-input-icon:hover,
.rq-input-unit:hover { border-color: var(--rq-slate-300); }
.rq-input-icon:focus-within,
.rq-input-unit:focus-within { border-color: var(--rq-primary); outline: 2px solid var(--rq-primary); outline-offset: 2px; }
.rq-input-icon__icon { color: var(--rq-slate-400); }

.rq-body .rq-input-icon__input,
.rq-body .rq-input-unit__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 14px/20px var(--rq-font);
  color: var(--rq-text);
  -webkit-appearance: none;
  appearance: none;
}
.rq-body .rq-input-icon__input:focus-visible,
.rq-body .rq-input-unit__input:focus-visible { outline: none; }

.rq-field--dial { max-width: 240px; }
.rq-body .rq-input-unit__input { font-variant-numeric: tabular-nums; }
.rq-input-unit__unit { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--rq-text-muted); }
.rq-field--dial[data-band="DAB"] .rq-dial-label--fm,
.rq-field--dial:not([data-band="DAB"]) .rq-dial-label--dab { display: none; }
.rq-field--dial .rq-dial-help { display: none; }
.rq-field--dial[data-disabled] .rq-dial-help { display: block; }
.rq-field--dial[data-disabled] .rq-input-unit { background: var(--rq-bg); }
.rq-field--dial[data-disabled] .rq-input-unit__unit { color: var(--rq-slate-400); }

/* FM | AM toggle inside the frequency field (posts am_fm). */
.rq-band-toggle { flex: none; display: inline-flex; gap: 2px; margin-right: -12px; padding: 2px; border-radius: var(--rq-radius-full); background: var(--rq-slate-100); }
.rq-field--dial[data-band="DAB"] .rq-band-toggle { display: none; }
.rq-band-toggle__opt { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: var(--rq-radius-full); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--rq-text-muted); cursor: pointer; }
.rq-band-toggle__input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rq-band-toggle__opt.is-selected { background: var(--rq-surface); color: var(--rq-text-strong); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.rq-band-toggle__opt:focus-within { outline: 2px solid var(--rq-primary); outline-offset: 1px; }
.rq-field--dial[data-disabled] .rq-band-toggle { opacity: 0.5; }
.rq-field--dial[data-disabled] .rq-band-toggle__opt { cursor: not-allowed; }
.rq-body .rq-input-unit__input:disabled { cursor: not-allowed; color: var(--rq-text-muted); }

/* Invalid state: 2px red border, padding compensated by 1px. */
.rq-body .rq-field--invalid > .rq-input,
.rq-body .rq-field--invalid > .rq-input-row > .rq-input,
.rq-body .rq-social__field.rq-field--invalid > .rq-input,
.rq-body .rq-field--invalid .rq-input-icon,
.rq-body .rq-field--invalid .rq-input-unit,
.rq-body .rq-field--invalid .rq-chips,
.rq-body .rq-field--invalid > .rq-textarea,
.rq-body .rq-field--invalid .rq-dropzone,
.rq-body .rq-field--invalid .rq-file-row {
  border: 2px solid var(--rq-red-600);
  border-color: var(--rq-red-600);
}
.rq-body .rq-field--invalid > .rq-input,
.rq-body .rq-field--invalid > .rq-input-row > .rq-input,
.rq-body .rq-field--invalid .rq-input-icon,
.rq-body .rq-field--invalid .rq-input-unit { padding-left: 19px; padding-right: 19px; }
.rq-body .rq-social__field.rq-field--invalid > .rq-input { padding-left: 17px; padding-right: 17px; }
.rq-body .rq-field--invalid > .rq-textarea { padding: 13px 19px; }
.rq-body .rq-field--invalid .rq-dropzone,
.rq-body .rq-field--invalid .rq-file-row { padding: 15px; }
.rq-body .rq-field--invalid .rq-chips { padding: 5px 7px; }
.rq-body .rq-field--invalid .rq-input-icon .rq-input-icon__input { padding: 0; }

.rq-icon-btn {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-full);
  background: var(--rq-surface);
  color: var(--rq-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rq-icon-btn:hover { border-color: var(--rq-slate-300); color: var(--rq-text); }

.rq-ghost-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  margin-left: -16px;
  border: 0;
  border-radius: var(--rq-radius-full);
  background: transparent;
  font: 600 14px/20px var(--rq-font);
  color: var(--rq-primary-strong);
  cursor: pointer;
}
.rq-ghost-link:hover { background: var(--rq-primary-5); color: var(--rq-blue-700); }

.rq-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rq-legend { padding: 0; margin-bottom: 4px; }

/* Broadcast type choice cards */
.rq-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.rq-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 17px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-md);
  background: var(--rq-surface);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.rq-choice:hover { border-color: var(--rq-slate-300); }
.rq-choice__title { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--rq-text); }
.rq-choice__sub { font-size: 12px; line-height: 16px; color: var(--rq-text-muted); }

.rq-choice.is-selected,
.rq-choice:has(.rq-choice__input:checked) {
  padding: 16px;
  border: 2px solid var(--rq-primary);
  background: var(--rq-primary-5);
}
.rq-choice.is-selected .rq-choice__sub,
.rq-choice:has(.rq-choice__input:checked) .rq-choice__sub { color: var(--rq-text-secondary); }
.rq-choice:has(.rq-choice__input:focus-visible) { outline: 2px solid var(--rq-primary); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .rq-choice:focus-within { outline: 2px solid var(--rq-primary); outline-offset: 2px; }
}

.rq-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* Combobox, chips and listbox */
.rq-combo { position: relative; }

.rq-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-lg);
  background: var(--rq-surface);
  cursor: text;
}
.rq-chips:hover { border-color: var(--rq-slate-300); }
.rq-chips:focus-within { border-color: var(--rq-primary); outline: 2px solid var(--rq-primary); outline-offset: 2px; }

.rq-body .rq-chips__input {
  flex: 1;
  min-width: 100px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  outline: none;
  background: transparent;
  font: 500 14px/20px var(--rq-font);
  color: var(--rq-text);
}
.rq-body .rq-chips__input:focus-visible { outline: none; }

.rq-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 4px 0 12px;
  border-radius: var(--rq-radius-full);
  background: var(--rq-primary-10);
  font-size: 12px;
  font-weight: 600;
  color: var(--rq-blue-700);
  max-width: 100%;
}
.rq-chip__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rq-chip__remove {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  border-radius: var(--rq-radius-full);
  background: transparent;
  color: var(--rq-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.rq-chip__remove::before { content: ""; position: absolute; inset: -8px; }
.rq-chip__remove:hover { background: var(--rq-primary-10); }
.rq-chip__remove .rq-icon { width: 12px; height: 12px; stroke-width: 2.5; }

.rq-listbox {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 296px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--rq-surface);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-lg);
  box-shadow: var(--rq-shadow-lg);
  display: flex;
  flex-direction: column;
}

.rq-option {
  /* Block, not flex: flex would drop the spaces around the <strong> match. */
  display: block;
  padding: 12px 16px;
  min-height: 44px;
  border-radius: var(--rq-radius-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--rq-text);
  cursor: pointer;
}
.rq-option strong { font-weight: 700; }
.rq-option:hover,
.rq-option[aria-selected="true"] { background: var(--rq-bg); }
.rq-option[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--rq-border); }
.rq-option--empty { cursor: default; color: var(--rq-text-muted); }
.rq-option--empty:hover { background: transparent; }

/* Files */
.rq-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.rq-file-input:focus-visible + .rq-btn { outline: 2px solid var(--rq-primary); outline-offset: 2px; }

.rq-dropzone,
.rq-file-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border: 1px dashed var(--rq-slate-300);
  border-radius: var(--rq-radius-md);
  background: var(--rq-surface);
}
.rq-dropzone.is-dragover { border-color: var(--rq-primary); background: var(--rq-primary-5); }
.rq-file-row { gap: 16px; }
.rq-file-row.has-file { border-style: solid; border-color: var(--rq-border); }

.rq-dropzone__tile {
  position: relative;
  overflow: hidden;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--rq-radius-sm);
  background: var(--rq-slate-100);
  color: var(--rq-slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rq-dropzone__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--rq-surface); }

.rq-dropzone__text,
.rq-file-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rq-dropzone__title,
.rq-file-row__name { font-size: 14px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.rq-file-row__meta { font-size: 12px; line-height: 16px; color: var(--rq-text-muted); }

.rq-file-row__tile {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--rq-radius-sm);
  background: var(--rq-primary-10);
  color: var(--rq-blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rq-text-btn {
  flex: none;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--rq-radius-full);
  background: transparent;
  font: 600 14px/20px var(--rq-font);
  color: var(--rq-primary-strong);
  cursor: pointer;
}
.rq-text-btn:hover { background: var(--rq-primary-5); color: var(--rq-blue-700); }

/* Social links */
.rq-social .rq-legend { margin-bottom: 10px; }
.rq-social__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.rq-social__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rq-small-label { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--rq-text-secondary); }

/* Security check */
/* The widget is a fixed 304x78 iframe. Inline, its line box ran 6px past the
 * 78px holder, and an overflow:auto box turned that into a scrollbar: so the
 * iframe is a block and the box never scrolls. */
.rq-captcha__box { align-self: flex-start; max-width: 100%; min-height: 78px; }
.rq-captcha__box iframe { display: block; }

/* Banner */
.rq-banner {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--rq-radius-md);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.rq-banner--error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.rq-banner__text { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Buttons ---------- */

.rq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--rq-radius-full);
  font: 600 14px/20px var(--rq-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rq-body .rq-btn--primary {
  padding: 0 28px;
  background: var(--rq-blue-700);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--rq-shadow-lg);
}
.rq-body .rq-btn--primary:hover { background: var(--rq-blue-800); color: #ffffff; }
.rq-body .rq-btn--primary:disabled { opacity: 0.6; cursor: progress; }

.rq-body .rq-btn--secondary {
  background: var(--rq-surface);
  border-color: var(--rq-border);
  color: var(--rq-text-strong);
}
.rq-body .rq-btn--secondary:hover { background: var(--rq-bg); border-color: var(--rq-slate-300); color: var(--rq-text); }


.rq-body .rq-btn--outline {
  background: var(--rq-surface);
  border-color: var(--rq-border);
  color: var(--rq-text-strong);
}
.rq-body .rq-btn--outline:hover { border-color: var(--rq-slate-300); color: var(--rq-text); }

.rq-body .rq-btn--sm { height: 44px; padding: 0 20px; font-size: 14px; font-weight: 600; box-shadow: none; }

/* Footer navigation */
.rq-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rq-border);
}
.rq-nav__spacer { flex: 1; }

/* ---------- Done ---------- */

.rq-done__disc {
  width: 80px;
  height: 80px;
  border-radius: var(--rq-radius-full);
  background: var(--rq-primary-10);
  color: var(--rq-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rq-done__card {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--rq-surface);
  border: 1px solid var(--rq-border);
  border-radius: var(--rq-radius-md);
  text-align: left;
}

.rq-badge {
  flex: none;
  padding: 4px 12px;
  border-radius: var(--rq-radius-full);
  background: var(--rq-slate-100);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--rq-text-secondary);
}

.rq-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Mobile shell (below 640px) ---------- */

@media (max-width: 639.98px) {
  :root { --rq-gutter: 20px; }

  .rq-desktop-only { display: none; }

  .rq-header__bar { height: 54px; padding: 0 8px 0 20px; }
  .rq-body .rq-header__cancel { display: none; }
  .rq-body .rq-header__cancel-icon { display: flex; }

  .rq-js[data-rq-screen="wizard"] .rq-header--progress { padding: 0 8px 12px 20px; display: flex; flex-direction: column; gap: 4px; }
  .rq-js[data-rq-screen="wizard"] .rq-header--progress .rq-header__bar { box-sizing: border-box; width: 100%; height: 54px; padding: 0; }
  .rq-js[data-rq-screen="wizard"] .rq-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding-right: 12px;
  }
  .rq-progress__bar { height: 4px; border-radius: var(--rq-radius-full); background: var(--rq-border); }
  .rq-progress[aria-valuenow="1"] .rq-progress__bar:nth-child(-n+1),
  .rq-progress[aria-valuenow="2"] .rq-progress__bar:nth-child(-n+2),
  .rq-progress[aria-valuenow="3"] .rq-progress__bar:nth-child(-n+3),
  .rq-progress[aria-valuenow="4"] .rq-progress__bar:nth-child(-n+4) { background: var(--rq-primary); }

  .rq-js .rq-stepper { display: none; }

  .rq-role { padding-top: 32px; padding-bottom: 32px; gap: 28px; min-height: calc(100vh - 55px); min-height: calc(100dvh - 55px); }
  .rq-root:not(.rq-js) .rq-role { min-height: 0; }
  .rq-role .rq-hero,
  .rq-search .rq-hero { gap: 10px; align-items: flex-start; text-align: left; }
  .rq-hero__title { font-size: 30px; line-height: 36px; }
  .rq-role .rq-hero__lede,
  .rq-search .rq-hero__lede { font-size: 16px; line-height: 24px; }

  .rq-role__cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rq-role-card { flex-direction: row; align-items: center; gap: 16px; padding: 20px; }
  .rq-role-card__disc { width: 44px; height: 44px; }
  .rq-role-card__disc .rq-icon { width: 22px; height: 22px; }
  .rq-role-card__text { flex: 1; min-width: 0; gap: 4px; }
  .rq-role-card__title { font-size: 16px; line-height: 22px; }
  .rq-role-card__cta { display: none; }
  .rq-role-card__chevron { display: block; }
  .rq-role__note { margin-top: auto; font-size: 12px; line-height: 16px; text-align: left; }

  /* The search step is the entry screen: same spacing the role step had when it came first. */
  .rq-search { padding-top: 32px; padding-bottom: 32px; gap: 24px; }
  .rq-head { gap: 8px; }
  .rq-head__title { font-size: 28px; line-height: 34px; }
  .rq-head__lede { font-size: 14px; line-height: 20px; }
  .rq-search-pill { height: 56px; padding-left: 18px; }
  .rq-result { padding: 12px 16px; gap: 12px; }
  .rq-results__overline { padding: 16px 16px 8px; }
  .rq-results__add { flex-wrap: wrap; padding: 16px; gap: 12px 16px; }
  .rq-results__add .rq-btn { width: 100%; }

  .rq-shell--wide { padding-top: 24px; padding-bottom: 0; gap: 22px; }
  .rq-root:not(.rq-js) .rq-shell--wide { padding-bottom: 32px; }
  .rq-columns { gap: 32px; }
  .rq-columns__main { flex-basis: 100%; }
  .rq-columns__main > .rq-step,
  .rq-step__body { gap: 22px; }
  .rq-js .rq-aside { display: none; }
  /* The send step's "You're sending" is the only review before submitting. */
  .rq-js[data-rq-step="send"] .rq-aside { display: flex; }
  .rq-aside { max-width: none; flex-basis: 100%; }

  .rq-body .rq-input,
  .rq-body .rq-input-icon__input,
  .rq-body .rq-input-unit__input,
  .rq-body .rq-chips__input,
  .rq-body .rq-textarea { font-size: 16px; line-height: 24px; }

  .rq-input-icon--city { gap: 0; }
  .rq-input-icon--city .rq-input-icon__icon { display: none; }

  .rq-ghost-link { padding: 0 12px; margin-left: -12px; }

  .rq-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rq-field--dial { max-width: none; }
  .rq-grid-2,
  .rq-social__grid { grid-template-columns: minmax(0, 1fr); }

  .rq-dropzone { flex-wrap: wrap; gap: 16px; }
  .rq-dropzone__tile { width: 56px; height: 56px; }
  .rq-dropzone__text { flex-basis: calc(100% - 72px); }
  .rq-file-row { flex-wrap: wrap; }
  .rq-file-row__text { flex-basis: calc(100% - 60px); }

  .rq-nav {
    margin: 0 calc(-1 * var(--rq-gutter));
    padding: 12px var(--rq-gutter) 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background: var(--rq-surface);
    border-top: 1px solid var(--rq-border);
    box-shadow: var(--rq-shadow-player);
  }
  /* With JS only one step shows: pin its footer to the bottom of the screen. */
  .rq-js .rq-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    margin: 0;
  }
  .rq-js .rq-shell--wide { padding-bottom: 112px; }
  .rq-nav__spacer { display: none; }
  .rq-nav .rq-btn--secondary { padding: 0 20px; }
  .rq-body .rq-nav__next { flex: 1; box-shadow: none; }

  .rq-shell--done { padding-top: 56px; padding-bottom: 48px; gap: 24px; }
  .rq-done .rq-hero__title { font-size: 30px; line-height: 36px; }
  .rq-done .rq-hero__lede { font-size: 16px; line-height: 24px; }
  .rq-done__card { flex-wrap: wrap; }
  .rq-done__actions { align-self: stretch; flex-direction: column-reverse; }
  .rq-done__actions .rq-btn { width: 100%; }
}

/* Below 344px the column is narrower than the 304px widget: scale it to fit
 * (280px at 320px) instead of clipping it or widening the page. */
@media (max-width: 343.98px) {
  .rq-captcha__box { height: 72px; min-height: 0; }
  .rq-captcha__box > * { transform: scale(0.92); transform-origin: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rq-body *,
  .rq-body *::before,
  .rq-body *::after { transition: none !important; scroll-behavior: auto !important; }
}
