/* ============================================================
   Device request form — extends form.css / page.css
   Glass step cards, tap-friendly choice cards, map, and an
   availability grid. Accent follows the contact page (orange).
   ============================================================ */

.request-form {
  --rq-accent: #ff8d1b;
  --rq-accent-2: #ebf3ab;
  --rq-accent-grad: linear-gradient(to right, #ff8d1b, #ebf3ab);
  --rq-accent-soft: rgba(255, 141, 27, 0.16);
  --rq-line: rgba(255, 255, 255, 0.2);
  --rq-line-strong: rgba(255, 255, 255, 0.35);
  --rq-muted: rgba(255, 255, 255, 0.75);
  --rq-error: #ff6b6b;
  font-family: "Josefin Sans", sans-serif;
  /* Card layout follows the form's own width, not the viewport: just above
     the 900px breakpoint page.css margins leave the form narrower than it
     is on a tablet. */
  container-type: inline-size;
}

.request-form button,
.request-form input,
.request-form textarea {
  font-family: "Josefin Sans", sans-serif;
}

/* Several elements here set their own display, which would otherwise beat
   the hidden attribute. */
.request-form [hidden] {
  display: none !important;
}

/* Without JS the map and calendar can't work, so hide their controls. */
html:not(.js) .rq-map-only,
html:not(.js) .rq-js-only {
  display: none !important;
}

.rq-required-note {
  text-align: center;
  color: var(--rq-muted);
  margin: 0 0 1.5rem;
}

.rq-req {
  color: var(--rq-error);
  margin-left: 0.15rem;
}

.rq-optional {
  color: var(--rq-muted);
  font-size: 0.9em;
}

/* ---------- Validation colours only after interaction ----------
   form.css paints every empty required field red on page load, which on a
   form this long reads like a wall of errors. Stay neutral until touched. */
.request-form .form-group input:invalid,
.request-form .form-group input:valid,
.request-form .form-group textarea:invalid,
.request-form .form-group textarea:valid {
  border-color: var(--rq-line-strong);
}

.request-form
  .form-group
  input.touched:valid:not(:placeholder-shown):not([aria-invalid="true"]),
.request-form
  .form-group
  textarea.touched:valid:not(:placeholder-shown):not([aria-invalid="true"]) {
  border-color: rgba(142, 245, 160, 0.8);
}

.request-form .form-group input.touched:invalid,
.request-form .form-group textarea.touched:invalid,
.request-form .form-group input[aria-invalid="true"],
.request-form .form-group textarea[aria-invalid="true"] {
  border-color: var(--rq-error);
}

.request-form .form-group input:focus,
.request-form .form-group textarea:focus {
  border-color: var(--rq-accent);
  box-shadow: 0 0 0 3px rgba(255, 141, 27, 0.2);
}

.request-form ::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Step cards ---------- */
.rq-step {
  border: 2px solid var(--rq-line);
  border-radius: 20px;
  padding: 1.25rem 1.5rem 0.75rem;
  margin: 0 0 1.5rem;
  min-width: 0;
  /* No backdrop-filter here: .bottom-section already provides the glass,
     and stacking six more blurs over a live map is heavy on phones. */
  background: rgba(0, 0, 0, 0.2);
}

.rq-step > legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.rq-step-num {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--rq-accent-grad);
  color: #111;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  padding-top: 0.15rem;
}

/* Nested groups (radio/checkbox sets) inside a step */
.rq-group {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem;
  min-width: 0;
}

.rq-group > legend {
  padding: 0;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  color: #fff;
}

.rq-hint {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--rq-muted);
}

.rq-hint--lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.rq-error {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: var(--rq-error);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.rq-error::before {
  content: "error";
  font-family: "Material Symbols Outlined";
  font-size: 1.15rem;
  line-height: 1;
}

.rq-error[hidden] {
  display: none;
}

/* ---------- Visually-hidden native inputs ----------
   The real radio/checkbox stays in the tab order and in the accessibility
   tree; only its default look is replaced by the styled sibling. */
.rq-chip input,
.rq-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

/* ---------- Household-size chips ---------- */
.rq-chips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.rq-chip {
  position: relative;
  cursor: pointer;
}

.rq-chip span {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border: 2px solid var(--rq-line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1.2rem;
  padding-top: 0.2rem;
  transition:
    background-color 0.25s ease-out,
    border-color 0.25s ease-out,
    color 0.25s ease-out;
  user-select: none;
}

.rq-chip input:checked + span {
  background: var(--rq-accent-grad) border-box;
  border-color: transparent;
  color: #111;
  font-weight: 700;
}

.rq-chip input:focus-visible + span,
.rq-card input:focus-visible + .rq-card-body {
  outline: 3px solid var(--rq-accent);
  outline-offset: 3px;
}

/* ---------- Choice cards (residence, device, transport) ---------- */
.rq-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.rq-card {
  position: relative;
  cursor: pointer;
  display: flex;
}

.rq-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1rem 0.75rem;
  border: 2px solid var(--rq-line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  transition:
    background-color 0.25s ease-out,
    border-color 0.25s ease-out,
    box-shadow 0.25s ease-out;
  user-select: none;
  min-width: 0;
  overflow-wrap: anywhere;
}

.rq-card-body .material-symbols-outlined {
  font-size: 2.1rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease-out;
}

.rq-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.rq-card-desc {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--rq-muted);
}

.rq-card input:checked + .rq-card-body {
  border-color: var(--rq-accent);
  background: var(--rq-accent-soft);
  box-shadow: 0 0 0 3px rgba(255, 141, 27, 0.2);
}

.rq-card input:checked + .rq-card-body .material-symbols-outlined {
  color: var(--rq-accent);
}

/* Small check badge so selection never relies on colour alone */
.rq-card input:checked + .rq-card-body::after {
  content: "check_circle";
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 1;
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--rq-accent);
}

.rq-group.has-error .rq-chip span,
.rq-group.has-error .rq-card-body {
  border-color: rgba(255, 107, 107, 0.7);
}

/* ---------- Referral source ---------- */
.rq-cards--source {
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.6rem;
}

.rq-cards--source .rq-card-body {
  padding: 0.85rem 0.6rem 0.7rem;
}

.rq-cards--source .rq-card-body .material-symbols-outlined {
  font-size: 1.75rem;
}

.rq-cards--source .rq-card-title {
  font-size: 1rem;
  line-height: 1.25;
}

.rq-thanks:empty {
  display: none;
}

.rq-thanks {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  color: rgba(142, 245, 160, 0.95);
  animation: rq-reveal 0.25s ease-out;
}

.rq-thanks .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
  font-size: 1.25rem;
}

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

/* ---------- "Other" device reveal ---------- */
.rq-reveal:not([hidden]) {
  animation: rq-reveal 0.25s ease-out;
}

@keyframes rq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Income eligibility ---------- */
.rq-income {
  border: 2px dashed var(--rq-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.rq-income .rq-group {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.rq-income .rq-group > legend {
  margin-bottom: 0.85rem;
}

.rq-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Reassurance shown when someone answers "No" */
.rq-income-note:empty {
  display: none;
}

.rq-income-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem 0.7rem;
  border-radius: 12px;
  border: 2px solid rgba(142, 245, 160, 0.55);
  background: rgba(142, 245, 160, 0.1);
  line-height: 1.5;
  animation: rq-reveal 0.25s ease-out;
}

.rq-income-note .material-symbols-outlined {
  color: rgba(142, 245, 160, 0.95);
  font-variation-settings: "FILL" 1;
  margin-top: 0.05rem;
}

.rq-income-limit {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.rq-income-limit strong {
  background: var(--rq-accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2em;
}

.rq-income-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--rq-line);
  border-radius: 12px;
  font-size: 1rem;
}

/* Round the corner cells instead of clipping the table, which would also
   clip the caption. */
.rq-income-table thead th:first-child {
  border-top-left-radius: 10px;
}

.rq-income-table thead th:last-child {
  border-top-right-radius: 10px;
}

.rq-income-table tbody tr:last-child > :first-child {
  border-bottom-left-radius: 10px;
}

.rq-income-table tbody tr:last-child > :last-child {
  border-bottom-right-radius: 10px;
}

.rq-income-table caption {
  text-align: left;
  color: var(--rq-muted);
  font-size: 0.9rem;
  padding-bottom: 0.4rem;
}

.rq-income-table th,
.rq-income-table td {
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 400;
}

.rq-income-table td {
  text-align: right;
}

.rq-income-table thead th {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.rq-income-table thead th:last-child {
  text-align: right;
}

.rq-income-table tbody tr + tr > * {
  border-top: 1px solid var(--rq-line);
}

.rq-income-table tr.is-current > * {
  background: var(--rq-accent-soft);
  font-weight: 700;
}

.rq-income-table tr.is-current th::before {
  content: "arrow_right";
  font-family: "Material Symbols Outlined";
  vertical-align: middle;
  margin-left: -0.35rem;
  color: var(--rq-accent);
}

.rq-fine-print {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--rq-muted);
  margin: 0.6rem 0 0;
}

/* ---------- Buttons ---------- */
.rq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.6rem 1rem 0.45rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.4s ease-in-out,
    color 0.4s ease-in-out,
    border-color 0.4s ease-in-out;
}

.rq-btn .material-symbols-outlined {
  font-size: 1.25rem;
  margin-top: -0.15rem;
}

.rq-btn--ghost {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 2px solid var(--rq-line-strong);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.rq-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.rq-btn:focus-visible,
.rq-icon-btn:focus-visible,
.rq-link-btn:focus-visible {
  outline: 3px solid var(--rq-accent);
  outline-offset: 2px;
}

.rq-link-btn {
  background: none;
  border: none;
  color: var(--rq-accent-2);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.5rem;
}

.rq-icon-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--rq-line-strong);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.4s ease-in-out,
    color 0.4s ease-in-out;
}

.rq-icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ---------- Location ---------- */
/* Intersection | city | search button on one line; stacks when narrow */
.rq-loc-fields {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) auto;
  gap: 0 0.75rem;
  align-items: end;
  margin-bottom: 1rem;
}

.rq-loc-fields .form-group {
  margin-bottom: 0;
}

.rq-loc-fields .rq-btn {
  /* Line up with the inputs (0.9rem padding + 2px borders, 16px text) */
  min-height: calc(1.8rem + 4px + 1.2em);
}

@container (max-width: 560px) {
  .rq-loc-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .rq-loc-fields .rq-btn {
    width: 100%;
  }
}

.rq-map-wrap {
  margin-bottom: 0.75rem;
}

.rq-map {
  height: 340px;
  border-radius: 12px;
  border: 2px solid var(--rq-line-strong);
  overflow: hidden;
  background: #1a1a1a;
  cursor: crosshair;
}

.rq-map:focus-visible {
  outline: 3px solid var(--rq-accent);
  outline-offset: 2px;
}

.rq-map .leaflet-control-attribution {
  font-family: system-ui, sans-serif;
  font-size: 0.7rem;
}

.rq-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.rq-map-status {
  margin: 0.5rem 0 0;
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--rq-muted);
}

.rq-map-wrap.is-unavailable .rq-map,
.rq-map-wrap.is-unavailable .rq-map-actions {
  display: none;
}

/* Accent pin — a rotated rounded square whose sharp corner is the tip */
.rq-pin {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--rq-accent-grad, linear-gradient(135deg, #ff8d1b, #ebf3ab));
  transform: rotate(-45deg);
  border: 2px solid #111;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.rq-pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #111;
}

/* ---------- Availability grid ---------- */
.rq-sched-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.rq-sched-range {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.rq-sched-grid-wrap {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.rq-sched-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
}

.rq-sched-grid .rq-time-col {
  width: 4.25rem;
}

.rq-sched-grid thead th {
  font-weight: 400;
  padding: 0;
  vertical-align: bottom;
}

.rq-day-btn {
  width: 100%;
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.2rem 0.3rem;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  line-height: 1.15;
  transition:
    background-color 0.25s ease-out,
    border-color 0.25s ease-out;
}

.rq-day-btn:focus-visible {
  outline: 3px solid var(--rq-accent);
  outline-offset: 1px;
}

.rq-day-name {
  font-size: 0.85rem;
  color: var(--rq-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rq-day-date {
  font-size: 1.05rem;
  font-weight: 600;
}

.rq-day-btn.is-full .rq-day-date {
  color: var(--rq-accent);
}

.rq-sched-grid tbody th {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--rq-muted);
  text-align: right;
  padding-right: 0.35rem;
  white-space: nowrap;
}

.rq-sched-grid td {
  padding: 0;
}

.rq-slot {
  display: block;
  width: 100%;
  height: 2.4rem;
  padding: 0;
  border: 2px solid var(--rq-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  touch-action: manipulation;
  position: relative;
  transition:
    background-color 0.15s ease-out,
    border-color 0.15s ease-out;
}

.rq-slot[aria-pressed="true"] {
  background: var(--rq-accent-grad) border-box;
  border-color: transparent;
}

/* Check mark on picked slots so selection never relies on colour alone */
.rq-slot[aria-pressed="true"]::after {
  content: "check";
  font-family: "Material Symbols Outlined";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: #111;
}

.rq-slot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 1px;
}

.rq-sched-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.rq-sched-count {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
}

.rq-sched-count .material-symbols-outlined {
  font-size: 1.3rem;
}

.rq-sched-count.is-met {
  color: rgba(142, 245, 160, 0.95);
}

.rq-sched-summary {
  list-style: none;
  margin: 0.5rem 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.rq-sched-summary li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  padding: 0.55rem 0.8rem 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.95rem;
}

.rq-sched-summary .rq-sum-day {
  font-weight: 600;
  min-width: 8.5rem;
}

[data-field="availability"].has-error .rq-slot {
  border-color: rgba(255, 107, 107, 0.55);
}

/* Hover styles only where hover exists — on touch screens they stick after
   a tap and make things look selected when they aren't. Kept after the base
   rules (and after .rq-slot[aria-pressed]) so the cascade order holds. */
@media (hover: hover) {
  .rq-chip:hover span {
    border-color: rgba(255, 255, 255, 0.7);
  }

  .rq-card:hover .rq-card-body {
    border-color: rgba(255, 255, 255, 0.7);
  }


  .rq-btn--ghost:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
  }

  .rq-icon-btn:hover:not(:disabled) {
    background: #fff;
    color: #111;
  }

  .rq-day-btn:hover {
    border-color: var(--rq-line-strong);
  }

  .rq-slot:hover {
    border-color: rgba(255, 255, 255, 0.7);
  }
  .rq-slot[aria-pressed="true"]:hover {
    border-color: transparent;
  }
}

/* Brief press feedback for touch */
.rq-btn--ghost:active,
.rq-icon-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.rq-slot:active,
.rq-day-btn:active {
  border-color: rgba(255, 255, 255, 0.7);
}

/* Desktop drag tip only where there's a fine pointer */
.rq-mouse-only {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .rq-mouse-only {
    display: inline;
  }
}

/* ---------- Submit area ---------- */
.rq-form-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem 0.7rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.12);
  text-align: center;
}

.rq-form-alert[hidden] {
  display: none;
}

.request-form .center-group button[type="submit"] {
  min-height: 3.25rem;
  padding: 0.6rem 1.75rem 0.45rem;
}

.rq-privacy {
  text-align: center;
  margin: 1.25rem 0 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .rq-step > legend {
    font-size: 1.3rem;
  }

  .rq-map {
    height: 300px;
  }
}

@container (max-width: 560px) {
  .rq-cards {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  /* Stacked cards read better as rows: icon left, text right */
  .rq-card-body {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 0.9rem;
    row-gap: 0.1rem;
    align-items: center;
    text-align: left;
    padding: 0.8rem 2.5rem 0.65rem 1rem;
  }

  .rq-card-body .material-symbols-outlined {
    grid-row: 1 / span 2;
    font-size: 1.85rem;
  }

  .rq-card-desc:empty {
    display: none;
  }

  .rq-card input:checked + .rq-card-body::after {
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
  }
}

/* On narrow forms, keep the 7 referral options two-up so the list stays
   short — icon on top, centred, with the check badge in the corner. */
@container (max-width: 560px) {
  .rq-cards.rq-cards--source {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rq-cards--source .rq-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.8rem 0.5rem 0.65rem;
  }

  .rq-cards--source .rq-card input:checked + .rq-card-body::after {
    top: 0.4rem;
    right: 0.45rem;
    transform: none;
    font-size: 1.15rem;
  }
}

@media (max-width: 520px) {
  .bottom-section .rq-required-note {
    font-size: 0.95rem;
  }

  /* Every nested box costs width on a phone. The section already has its
     own padding, so the form can go full width and the frames get thinner. */
  .bottom-section:has(.request-form) {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bottom-section .request-form {
    width: 100%;
  }

  .rq-income {
    padding: 0.85rem 0.75rem;
  }

  .rq-step {
    padding: 1rem 0.9rem 0.5rem;
    border-radius: 16px;
  }

  .rq-step > legend {
    font-size: 1.15rem;
    padding: 0 0.35rem;
  }

  .rq-step-num {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.95rem;
  }

  /* 7 chips across is too tight under ~400px; 4 + 3 keeps targets large */
  .rq-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rq-map-actions .rq-btn {
    flex: 1;
  }

  .rq-map {
    height: 260px;
  }

  .rq-sched-grid {
    border-spacing: 3px;
  }

  .rq-sched-grid .rq-time-col {
    width: 3.1rem;
  }

  .rq-sched-grid tbody th {
    font-size: 0.75rem;
    padding-right: 0.15rem;
  }

  .rq-slot {
    height: 2.6rem;
  }

  .rq-income-table th,
  .rq-income-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
  }

  .rq-sched-summary .rq-sum-day {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .request-form *,
  .request-form *::before,
  .request-form *::after {
    transition: none !important;
    animation: none !important;
  }
}
