/* Request a booking: the four-step request form (Figma page 292:2). A centred modal from 768px up
   (1000 x 720 with the "Your request" panel from 1024px), a bottom sheet on phones.
   Markup: site-src/partials/footer.html. Script: /js/request.js.
   Departures from the Figma, for contrast: coral fills use --action-fill; text fields and radio rings use
   #868aa3 (3:1 on white) where the Figma has #d9dbe8. */

.rq {
  --rq-line: #d9dbe8; --rq-muted: #5a5f78; --rq-tint: #ebecf5; --rq-edge: #868aa3; --rq-err: #b3261e; --rq-x: 48px;
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0;
  width: min(1000px, calc(100% - 32px)); max-width: none;
  height: fit-content; min-height: min(720px, calc(100vh - 32px)); min-height: min(720px, calc(100dvh - 32px));
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: #fff; color: var(--text); font: 400 16px/1.5 var(--body);
  box-shadow: 0 24px 60px rgba(0, 5, 38, .4); overflow: hidden; overscroll-behavior: contain;
}
.rq[open] { display: flex; flex-direction: column; }
.rq::backdrop { background: rgba(0, 9, 66, .7); }
.rq[open] { animation: rq-in .2s ease-out; }
.rq[open]::backdrop { animation: rq-dim .2s ease-out; }
@keyframes rq-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes rq-up { from { transform: translateY(100%); } }
@keyframes rq-dim { from { opacity: 0; } }
/* The page behind must not scroll while the dialog is open (class set by request.js). */
html.rq-lock { overflow: hidden; }

.rq :focus-visible { outline: 3px solid var(--deep); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
/* Step headings take focus when the step changes (so it is read out); they are not controls, so no ring. */
.rq .rq-h:focus, .rq .rq-h:focus-visible { outline: none; box-shadow: none; }

.rq__form { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); margin: 0; }
.rq__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* ---------- top: step count, progress, phone summary strip ---------- */
.rq__head { flex: none; padding: 44px var(--rq-x) 0; }
.rq__handle { display: none; }
.rq__count { font: 500 12px/17px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--rq-muted); }
.rq__prog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.rq__prog li { padding-top: 8px; border-top: 4px solid var(--rq-line); font: 500 12px/17px var(--body); color: var(--rq-muted); white-space: nowrap; }
.rq__prog li.is-on { border-top-color: var(--action); color: var(--dark); }
.rq__strip { display: none; }

/* ---------- the step (scrolls when it has to) ---------- */
.rq__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 25px var(--rq-x) 20px; }
.rq-h { font-size: 40px; line-height: .92; color: var(--dark); }
.rq-lead { margin-top: 8px; color: var(--rq-muted); }
.rq-step > .rq-lead { margin-bottom: 28px; }
.rq-err { margin-top: 8px; font: 500 14px/1.45 var(--body); color: var(--rq-err); }
.rq-err::before { content: "! "; font-weight: 700; }
.rq-note { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--rq-muted); }

/* step 1: trip cards (real radio buttons) */
.rq-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.rq-card { position: relative; display: block; min-height: 150px; padding: 17px 20px 16px 56px; cursor: pointer; }
.rq-card input { position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; margin: 0; border: 2px solid var(--rq-edge); border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rq-card input:checked { border-color: var(--dark); background: radial-gradient(circle, var(--dark) 0 5px, #fff 5.5px); }
.rq-card__edge { position: absolute; inset: 0; border: 1px solid var(--rq-line); pointer-events: none; }
.rq-card:hover .rq-card__edge { border-color: var(--rq-edge); }
.rq-card input:checked ~ .rq-card__edge { border: 2px solid var(--dark); }
.rq-card input:focus-visible { outline: none; box-shadow: none; }
.rq-card input:focus-visible ~ .rq-card__edge { outline: 3px solid var(--deep); outline-offset: 2px; }
.rq-card__name, .rq-card__meta, .rq-card__text { display: block; }
.rq-card__name { font: 600 18px/26px var(--body); color: var(--dark); }
.rq-card__meta { margin-top: 4px; font: 500 14px/20px var(--body); color: var(--text); }
.rq-card__meta span { margin-inline: .3em; }
.rq-card__text { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--rq-muted); }

/* step 2: month calendar */
.rq-cal { max-width: 556px; }
.rq-cal__top { display: flex; align-items: center; gap: 8px; }
.rq-cal__month { flex: 1; font: 600 18px/26px var(--body); color: var(--dark); }
.rq-cal__nav { flex: none; width: 40px; height: 40px; }
.rq-cal__nav img { width: 40px; height: 40px; }
.rq-cal__nav[aria-disabled="true"] { opacity: .4; cursor: default; }
.rq-cal__nav:not([aria-disabled="true"]):hover { background: var(--rq-tint); }
.rq-cal__grid { display: grid; gap: 4px; margin-top: 16px; }
.rq-cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rq-cal__dow { height: 22px; font: 500 12px/17px var(--body); text-align: center; color: var(--rq-muted); }
.rq-day { display: flex; align-items: center; justify-content: center; width: 100%; height: 44px; font: 500 16px/1 var(--body); color: var(--text); }
.rq-day:hover { background: var(--rq-tint); }
.rq-day[aria-pressed="true"] { background: var(--action-fill); color: #fff; }
.rq-day[aria-pressed="true"]:hover { background: #bf3320; }
.rq-day:disabled { color: #a9acbf; background: none; cursor: default; }
.rq-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 564px; margin-top: 16px; }
.rq-chips { display: contents; }
.rq-chips[hidden] { display: none !important; }
.rq-chip { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 14px; background: var(--rq-tint); color: var(--dark); font: 500 14px/1 var(--body); white-space: nowrap; }
.rq-chip:hover { background: var(--rq-line); }
.rq-chip__x { font-weight: 400; font-size: 12px; }
.rq-check { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-left: 4px; font-size: 14px; line-height: 20px; color: var(--text); cursor: pointer; }
.rq-check input { flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--dark); border-radius: 0; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.rq-check input:checked { background: var(--dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }

/* step 3: stepper, pills (real radio buttons and checkboxes), boxes */
.rq-set { margin: 28px 0 0; padding: 0; border: 0; min-width: 0; }
.rq-lead + .rq-set, .rq-set[hidden] + .rq-set { margin-top: 0; }
.rq-label { display: block; padding: 0; margin-bottom: 7px; font: 600 16px/23px var(--body); color: var(--dark); }
.rq-label__note { margin-left: 12px; font-weight: 400; font-size: 14px; color: var(--rq-muted); }
.rq-anglers { display: flex; align-items: center; gap: 20px; }
.rq-stepper { display: flex; flex: none; }
.rq-stepper button, .rq-stepper__n { display: flex; align-items: center; justify-content: center; height: 52px; border: 1.5px solid var(--rq-line); color: var(--dark); }
.rq-stepper button { width: 52px; font: 500 22px/1 var(--body); }
.rq-stepper button:not([aria-disabled="true"]):hover { background: var(--rq-tint); }
.rq-stepper button[aria-disabled="true"] { cursor: default; }
.rq-stepper button[aria-disabled="true"] span { opacity: .35; }
.rq-stepper__n { width: 64px; font: 500 20px/1 var(--body); }
.rq-hint { font-size: 14px; line-height: 1.45; color: var(--rq-muted); }
.rq-pills { display: grid; gap: 12px; }
.rq-pills--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rq-pills--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rq-pills--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rq-pill { position: relative; display: block; cursor: pointer; }
.rq-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rq-pill span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 4px 8px; border: 1.5px solid var(--rq-line); background: #fff; font: 500 15px/1.3 var(--body); text-align: center; color: var(--text); }
.rq-pill:hover span { border-color: var(--rq-edge); }
.rq-pill input:checked + span { border-color: var(--dark); background: var(--dark); color: #fff; }
.rq-pill input:focus-visible + span { outline: 3px solid var(--deep); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }

/* step 4 (and the "what would you like to catch" box): text fields */
.rq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.rq-f--wide { grid-column: 1 / -1; }
.rq-f label:not(.rq-label) { display: block; margin-bottom: 6px; font: 500 14px/20px var(--body); color: var(--text); }
.rq-f input, .rq-f textarea { display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 15px; border: 1.5px solid var(--rq-edge); border-radius: 0; background: #fff; color: var(--text); font: 400 16px/1.45 var(--body); -webkit-appearance: none; appearance: none; }
.rq-f textarea { height: 80px; padding-block: 12px; resize: vertical; }
.rq-f ::placeholder { color: var(--rq-muted); opacity: 1; }
.rq-f [aria-invalid="true"] { border: 2px solid var(--rq-err); }
.rq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-turnstile { margin-top: 14px; }
.rq-status { font: 500 14px/1.5 var(--body); color: var(--rq-err); }
.rq-status:not(:empty) { margin-top: 12px; }
.rq-status[data-kind="info"] { color: var(--text); }
.rq-status a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- bottom: Back / Next, the same size ---------- */
.rq__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-inline: var(--rq-x); padding: 23px 0 28px; border-top: 1px solid var(--rq-line); }
.rq-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 170px; min-height: 52px; padding: 4px 12px; border: 1.5px solid transparent; font: 500 14px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; text-align: center; transition: background-color .2s, color .2s; }
.rq-btn--fill { margin-left: auto; background: var(--action-fill); color: #fff; }
.rq-btn--fill:hover { background: #bf3320; }
.rq-btn--fill[aria-disabled="true"] { background: #8d93b0; cursor: default; }
.rq-btn--line { border-color: var(--dark); color: var(--dark); }
.rq-btn--line:hover { background: var(--dark); color: #fff; }
/* Step 1 has no Back: wide screens show a plain "Questions? Call" line there, phones a Call button. */
.rq-call { width: auto; min-height: 44px; padding: 0; border: 0; font-size: 15px; letter-spacing: 0; text-transform: none; }
.rq-call:hover { background: none; color: var(--dark); text-decoration: underline; text-underline-offset: 4px; }
.rq-call__q, .rq-call__n { white-space: pre; }

/* ---------- "Your request" panel (1024px up) ---------- */
.rq__sum { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 44px 32px 40px; background: var(--rq-tint); }
.rq-sum__title { font-size: 28px; line-height: .92; color: var(--dark); }
.rq-sum__list { margin-top: 26px; }
.rq-sum__list div { padding-bottom: 14px; border-bottom: 1px solid var(--rq-line); }
.rq-sum__list div + div { padding-top: 13px; }
.rq-sum__list dt { font: 500 11px/16px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--rq-muted); }
.rq-sum__list dd { margin-top: 2px; font: 500 16px/23px var(--body); color: var(--text); white-space: pre-wrap; }
.rq-sum__list dd.is-empty { color: var(--rq-muted); }
.rq-sum__price { margin-top: 17px; font-size: 14px; line-height: 26px; color: var(--rq-muted); }
.rq-sum__price .d { margin-right: 12px; font-size: 32px; line-height: .92; color: var(--dark); vertical-align: -2px; }
.rq-sum__note { margin-top: 8px; font-size: 14px; color: var(--text); }
.rq-sum__price[hidden] + .rq-sum__note { margin-top: 18px; }
.rq-sum__checks { margin-top: auto; padding-top: 24px; }
.rq-sum__checks li { display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--body); color: var(--dark); }
.rq-sum__checks li + li { margin-top: 8px; }
.rq-sum__checks img { flex: none; width: 14px; height: 12px; }

.rq__close { position: absolute; top: 19px; right: 19px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.rq__close img { width: 20px; height: 20px; }

/* ---------- tablets: the modal without the side panel; the summary is the strip ---------- */
@media (max-width: 1023px) {
  .rq { width: min(660px, calc(100% - 48px)); }
  .rq__form { grid-template-columns: minmax(0, 1fr); }
  .rq__sum { display: none; }
  .rq__count { padding-right: 48px; }
  .rq__strip { display: block; margin-top: 10px; padding: 10px 14px; background: var(--rq-tint); font: 500 13px/18px var(--body); color: var(--dark); white-space: pre; overflow: hidden; text-overflow: ellipsis; }
  .rq__close { top: 26px; right: 30px; }
  /* 44px tap targets */
  .rq-cal__nav { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: -2px; }
  .rq-chip::before { content: ""; position: absolute; inset: -4px 0; }
  .rq-check { min-height: 44px; }
}

/* ---------- phones: bottom sheet ---------- */
@media (max-width: 767px) {
  .rq {
    --rq-x: 24px; inset: auto 0 0 0; margin: 0; width: 100%;
    height: 88vh; height: 88dvh; min-height: min(480px, 100vh); min-height: min(480px, 100dvh); max-height: none;
    box-shadow: none;
  }
  .rq[open] { animation: rq-up .3s ease-out; }
  .rq[open]::backdrop { animation: rq-dim .3s ease-out; }
  .rq__head { padding-top: 30px; }
  .rq__handle { display: block; position: absolute; left: 50%; top: 12px; width: 40px; height: 4px; margin-left: -20px; background: var(--rq-line); }
  .rq__prog li { padding-top: 6px; font-size: 11px; line-height: 16px; }
  .rq__close { top: 16px; right: 10px; }
  .rq__close img { width: 18px; height: 18px; }
  .rq__body { padding-top: 14px; }
  .rq__strip { margin-bottom: 2px; }
  .rq-h { font-size: 30px; }
  .rq-lead { font-size: 15px; }
  .rq-step > .rq-lead { margin-bottom: 21px; }

  .rq-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rq-card { min-height: 76px; padding: 15px 16px 13px 54px; }
  .rq-card input { left: 18px; top: 50%; margin-top: -11px; }
  .rq-card__name { font-size: 17px; line-height: 23px; }
  .rq-card__meta { font-weight: 400; }
  /* The phone design has no room for the third line; the trip pages carry it. */
  .rq-card__text { display: none; }

  .rq-cal { max-width: 340px; }
  .rq-cal__month { font-size: 17px; }
  .rq-cal__nav { margin: -3px; }
  .rq-cal__nav img { width: 38px; height: 38px; }
  .rq-cal__grid, .rq-cal__row { gap: 3px; }
  .rq-cal__grid { margin-top: 14px; }
  .rq-cal__dow { height: 21px; }
  .rq-picked { gap: 10px 4px; margin-top: 14px; }
  .rq-chip { gap: 8px; height: 34px; padding: 0 10px 0 12px; font-size: 13px; }
  .rq-chip::before { inset: -5px 0; }
  .rq-chip__x { font-size: 11px; }
  .rq-check { flex: 0 0 100%; margin: -6px 0 0; }

  .rq-set { margin-top: 24px; }
  .rq-label { margin-bottom: 5px; }
  .rq-anglers { gap: 16px; }
  .rq-stepper__n { width: 60px; }
  .rq-pill span { min-height: 48px; }
  .rq-pills--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .rq-note { margin-top: 10px; font-size: 13px; }

  .rq-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rq-f label:not(.rq-label) { margin-bottom: 4px; }
  .rq-f textarea { height: 64px; }

  .rq__foot { margin-inline: 0; padding: 15px 24px calc(20px + env(safe-area-inset-bottom)); }
  .rq-btn { flex: 1 1 0; width: auto; min-width: 0; }
  .rq-btn--fill { margin-left: 0; }
  .rq-call { min-height: 52px; padding: 4px 12px; border: 1.5px solid var(--dark); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
  .rq-call:hover { background: var(--dark); color: #fff; text-decoration: none; }
  .rq-call__q, .rq-call__n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (prefers-reduced-motion: reduce) {
  .rq[open], .rq[open]::backdrop { animation: none; }
  .rq-btn { transition: none; }
}
