/* ==========================================================================
   JDM REAL reservation page — form steps, vehicle cards, duration chips,
   calendar, options, details fields, review screen.
   Layout inside each step follows the step card's own width (container
   queries), so it stays correct with or without the desktop sidebar.
   ========================================================================== */

/* ---------- Step cards --------------------------------------------------- */

.rq-step {
  container: rqstep / inline-size;
  margin: 0 0 20px;
  padding: clamp(18px, 2.6vw, 32px);
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: var(--rq-card);
  scroll-margin-top: calc(var(--rq-hdr) + 16px);
}

.rq-step:focus {
  outline: none;
}

.rq-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.rq-step-num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--rq-red);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.rq-step-head h2 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  line-height: 1.35;
}

.rq-step-head p {
  margin: 4px 0 0;
  color: var(--rq-muted);
  font-size: 13px;
  line-height: 1.7;
}

.rq-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.rq-label {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  color: var(--rq-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.rq-req,
.rq-opt-tag {
  margin-left: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .1em;
  vertical-align: 1px;
}

.rq-req {
  color: var(--rq-red);
}

.rq-opt-tag {
  color: var(--rq-muted);
}

.rq-help {
  margin: 6px 0 0;
  color: var(--rq-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

.rq-help a,
.rq-note a {
  color: var(--rq-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---------- Form controls ------------------------------------------------ */

.rq-form input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.rq-form select,
.rq-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--rq-line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--rq-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.rq-form textarea {
  min-height: 96px;
  resize: vertical;
}

.rq-form select {
  padding-right: 34px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.rq-form input:focus,
.rq-form select:focus,
.rq-form textarea:focus {
  border-color: var(--rq-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, .12);
}

.rq-form input:user-invalid,
.rq-form select:user-invalid,
.rq-form textarea:user-invalid {
  border-color: #c93e3e;
  background-color: #fffafa;
}

.rq-field {
  margin: 0 0 16px;
}

.rq-field:last-child {
  margin-bottom: 0;
}

.rq-grid {
  display: grid;
  gap: 0 16px;
}

.rq-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--rq-line);
}

.rq-group:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.rq-group-title {
  margin: 0 0 14px;
  color: var(--rq-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
}

@container rqstep (min-width: 520px) {
  .rq-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rq-grid.phone {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* ---------- Step 1 : vehicle cards --------------------------------------- */

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

.rq-car {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.rq-car input,
.rq-dur input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.rq-car-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
  border: 2px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.rq-car:hover .rq-car-card {
  border-color: var(--rq-ink);
}

.rq-car input:checked + .rq-car-card {
  border-color: var(--rq-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, .14);
}

.rq-car input:focus-visible + .rq-car-card {
  outline: 3px solid rgba(230, 0, 18, .45);
  outline-offset: 2px;
}

.rq-car-img {
  display: block;
  min-height: 92px;
  overflow: hidden;
  background: #22262b;
}

.rq-car-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rq-car-img.no-image {
  display: grid;
  place-items: center;
  color: #8d9093;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.rq-car-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 11px 44px 11px 14px;
}

.rq-car-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rq-car-tags:empty {
  display: none;
}

.rq-car-tags em {
  padding: 2px 7px;
  border-radius: 0;
  background: var(--rq-ink);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
}

.rq-car-name {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.rq-car-model {
  color: var(--rq-muted);
  font-size: 12px;
  line-height: 1.5;
}

.rq-car-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.rq-car-price small {
  color: var(--rq-muted);
  font-size: 11px;
  font-weight: 700;
}

.rq-car-price b {
  color: var(--rq-red);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.rq-car-check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--rq-line-strong);
  border-radius: 50%;
  background: #fff;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.rq-car-check::after {
  content: "✓";
}

.rq-car input:checked + .rq-car-card .rq-car-check {
  border-color: var(--rq-red);
  background: var(--rq-red);
  color: #fff;
}

@container rqstep (min-width: 540px) {
  .rq-cars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .rq-car-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    height: 100%;
  }
  .rq-car-img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .rq-car-body {
    padding: 12px 14px 14px;
  }
  .rq-car-check {
    top: 12px;
    right: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  }
  .rq-car-name {
    font-size: 15px;
  }
}

/* Guests */

.rq-party {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rq-line);
}

.rq-party-text {
  flex: 1 1 220px;
  min-width: 0;
}

.rq-party-text .rq-label {
  margin-bottom: 0;
}

.rq-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--rq-line-strong);
  border-radius: 0;
  overflow: hidden;
}

.rq-stepper-btn {
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: #f3f1ec;
  color: var(--rq-ink);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.rq-stepper-btn:hover:not(:disabled) {
  background: var(--rq-ink);
  color: #fff;
}

.rq-stepper-btn:disabled {
  color: #b5b0a5;
  cursor: not-allowed;
}

.rq-form .rq-stepper input {
  width: 64px;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-right: 1px solid var(--rq-line);
  border-left: 1px solid var(--rq-line);
  border-radius: 0;
  box-shadow: none;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.rq-stepper input::-webkit-outer-spin-button,
.rq-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* ---------- Step 2 : duration chips -------------------------------------- */

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

.rq-dur {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.rq-dur-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  min-height: 92px;
  padding: 10px 6px;
  border: 2px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: #fff;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
}

.rq-dur:hover .rq-dur-card {
  border-color: var(--rq-ink);
}

.rq-dur-card strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.rq-dur-card small {
  color: var(--rq-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.rq-dur-price {
  margin-top: 4px;
  color: var(--rq-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.rq-dur-price.has-price {
  color: var(--rq-ink);
}

.rq-dur input:checked + .rq-dur-card {
  border-color: var(--rq-red);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(230, 0, 18, .12);
}

.rq-dur input:checked + .rq-dur-card .rq-dur-price.has-price,
.rq-dur input:checked + .rq-dur-card strong {
  color: var(--rq-red);
}

.rq-dur input:focus-visible + .rq-dur-card {
  outline: 3px solid rgba(230, 0, 18, .45);
  outline-offset: 2px;
}

@container rqstep (min-width: 600px) {
  .rq-durations {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

#duration-hint {
  margin-top: 10px;
}

/* ---------- Step 2 : calendar + times ------------------------------------ */

.rq-when {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rq-line);
}

@container rqstep (min-width: 640px) {
  .rq-when {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 24px;
  }
}

.rq-when-cal {
  min-width: 0;
}

.rq-calendar-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 0;
  padding: 24px 20px;
  border: 2px dashed var(--rq-line-strong);
  border-radius: var(--rq-radius);
  color: var(--rq-muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.rq-calendar {
  max-width: 520px;
  padding: 14px;
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: #fbfaf7;
}

.rq-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rq-calendar-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.rq-calendar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rq-calendar-nav strong {
  min-width: 96px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.rq-calendar-nav button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--rq-line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--rq-ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.rq-calendar-nav button:hover:not(:disabled) {
  background: var(--rq-ink);
  color: #fff;
}

.rq-calendar-nav button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.rq-weekdays,
.rq-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.rq-weekdays span {
  padding: 4px 0;
  color: var(--rq-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.rq-weekdays span:first-child {
  color: #c93e3e;
}

.rq-days > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0;
  color: var(--rq-muted);
  font-size: 13px;
  text-align: center;
}

.rq-day {
  position: relative;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--rq-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}

.rq-day.available {
  border-color: #bfe0cd;
  background: var(--rq-green-bg);
  color: #0f5a37;
}

.rq-day.available:hover {
  border-color: var(--rq-green);
  background: #d5efe0;
}

.rq-day.unavailable {
  background: #efece6;
  color: #9d998e;
  font-weight: 600;
  text-decoration: line-through;
  cursor: not-allowed;
}

.rq-day.past,
.rq-day.loading {
  color: #c1bdb2;
  font-weight: 600;
  cursor: default;
}

.rq-day.in-range {
  border-color: #f2b3b8;
  background: #fde8ea;
  color: #8f000c;
}

.rq-day.range-start,
.rq-day.range-end {
  border-color: var(--rq-red);
  background: var(--rq-red);
  color: #fff;
}

.rq-day:focus-visible {
  outline: 3px solid rgba(230, 0, 18, .45);
  outline-offset: 1px;
  z-index: 1;
}

.rq-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  color: var(--rq-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.rq-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rq-legend i {
  width: 14px;
  height: 14px;
  border: 1px solid transparent;
  border-radius: 0;
}

.rq-legend .lg-available {
  border-color: #bfe0cd;
  background: var(--rq-green-bg);
}

.rq-legend .lg-unavailable {
  background: #efece6;
}

.rq-legend .lg-selected {
  background: var(--rq-red);
}

.rq-when-side {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.rq-hint {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid #9a9181;
  border-radius: 0;
  background: #f3f1ec;
  color: var(--rq-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.rq-hint.is-done {
  border-left-color: var(--rq-green);
  background: var(--rq-green-bg);
}

.rq-when-card {
  padding: 14px 16px;
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: #fff;
}

.rq-when-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.rq-when-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.rq-when-date,
.rq-when-time {
  min-width: 0;
}

.rq-when-time label.rq-mini {
  display: block;
}

.rq-date-view {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  color: var(--rq-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.4;
}

.rq-date-view.is-empty {
  color: #9b968b;
  font-size: 13px;
  font-weight: 600;
}

.rq-when-auto {
  border-style: dashed;
  background: #fbfaf7;
}

.rq-when-auto .rq-when-label {
  margin-bottom: 4px;
  color: var(--rq-muted);
  font-size: 12px;
}

.rq-auto-value {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.rq-auto-value.is-empty {
  color: #9b968b;
  font-size: 13px;
  font-weight: 600;
}

.rq-status {
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid #9a9181;
  border-radius: 0;
  background: #f3f1ec;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

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

.rq-status.available {
  border-left-color: var(--rq-green);
  background: var(--rq-green-bg);
  color: #0f5a37;
}

.rq-status.unavailable {
  border-left-color: #c93e3e;
  background: var(--rq-warn-bg);
  color: #8f1d1d;
}

.rq-note {
  margin: 0;
  color: var(--rq-muted);
  font-size: 12px;
  line-height: 1.75;
}

/* ---------- Step 3 : options --------------------------------------------- */

.rq-opts {
  display: grid;
  gap: 10px;
}

.rq-opt {
  position: relative;
  border: 2px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.rq-opt:hover {
  border-color: var(--rq-ink);
}

.rq-opt.is-checked {
  border-color: var(--rq-red);
  background: #fff8f8;
}

.rq-opt:focus-within {
  outline: 3px solid rgba(230, 0, 18, .35);
  outline-offset: 2px;
}

.rq-opt-label {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.rq-opt-label input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.rq-opt-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 4px 14px;
  padding: 16px 16px 6px;
}

.rq-opt-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--rq-line-strong);
  border-radius: 0;
  background: #fff;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.rq-opt-check::after {
  content: "✓";
}

.rq-opt-label input:checked + .rq-opt-card .rq-opt-check {
  border-color: var(--rq-red);
  background: var(--rq-red);
  color: #fff;
}

.rq-opt-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rq-opt-name {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.45;
}

.rq-opt-text small {
  color: var(--rq-muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.rq-opt-price {
  color: var(--rq-red);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}

.rq-opt-more {
  display: inline-block;
  margin: 0 0 12px 54px;
  padding: 4px 0;
  color: var(--rq-ink);
  font-size: 12px;
  font-weight: 800;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .rq-opt-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rq-opt-price {
    grid-column: 2;
    grid-row: 2;
  }
}

/* ---------- Step 4 : consent + submit ------------------------------------ */

.rq-consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: #fbfaf7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
}

.rq-consent input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.rq-consent-box {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  order: -1;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid var(--rq-line-strong);
  border-radius: 0;
  background: #fff;
  color: transparent;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.rq-consent-box::after {
  content: "✓";
}

.rq-consent input:checked ~ .rq-consent-box {
  border-color: var(--rq-red);
  background: var(--rq-red);
  color: #fff;
}

.rq-consent:focus-within {
  outline: 3px solid rgba(230, 0, 18, .35);
  outline-offset: 2px;
}

.rq-actions {
  margin-top: 4px;
}

.rq-actions-note {
  margin: 10px 2px 0;
  color: var(--rq-muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

/* ---------- Review screen ------------------------------------------------ */

.rq-review {
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  background: var(--rq-card);
  scroll-margin-top: calc(var(--rq-hdr) + 16px);
}

.rq-review:focus {
  outline: none;
}

.rq-review-head {
  margin-bottom: 22px;
}

.rq-review-head .rq-kicker {
  margin-bottom: 8px;
}

.rq-review-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.3;
}

.rq-review-head p:last-child {
  margin: 8px 0 0;
  color: var(--rq-muted);
  font-size: 13px;
  line-height: 1.8;
}

.rq-rgroup {
  margin: 0 0 14px;
  border: 1px solid var(--rq-line);
  border-radius: var(--rq-radius);
  overflow: hidden;
}

.rq-rgroup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 16px;
  background: #f5f3ee;
}

.rq-rgroup-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.rq-edit {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--rq-ink);
  border-radius: 0;
  background: #fff;
  color: var(--rq-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rq-edit:hover {
  background: var(--rq-ink);
  color: #fff;
}

.rq-rlist {
  margin: 0;
}

.rq-rrow {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 12px 16px;
  border-top: 1px solid #ece9e1;
  font-size: 14px;
  line-height: 1.7;
}

.rq-rrow:first-child {
  border-top: 0;
}

.rq-rrow dt {
  color: var(--rq-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.9;
}

.rq-rrow dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.rq-rrow dd.is-muted {
  color: #9b968b;
  font-weight: 500;
}

.rq-rcar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rq-rcar-thumb {
  flex: 0 0 auto;
  width: 88px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: #22262b;
}

.rq-rcar-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rq-rprice {
  display: block;
  margin-top: 2px;
  color: var(--rq-muted);
  font-size: 12px;
  font-weight: 700;
}

.rq-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: var(--rq-radius);
  background: var(--rq-ink);
  color: #fff;
}

.rq-total-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}

.rq-total-value {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.rq-total-note {
  margin: 12px 2px 0;
  color: var(--rq-muted);
  font-size: 12px;
  line-height: 1.8;
}

.rq-review-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "back submit";
  gap: 12px;
  margin-top: 22px;
}

.rq-review-actions #review-back {
  grid-area: back;
  width: auto;
  padding: 0 24px;
}

.rq-review-actions #review-submit {
  grid-area: submit;
}

@media (max-width: 720px) {
  .rq-rrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 11px 14px;
  }
  .rq-rrow dt {
    line-height: 1.6;
  }
  .rq-review-actions {
    display: contents;
  }
  .rq-review-actions #review-submit {
    position: sticky;
    z-index: 5;
    bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 56px;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  }
  .rq-review-actions #review-back {
    width: 100%;
    min-height: 52px;
    margin-top: 12px;
  }
  .rq-total {
    padding: 16px 18px;
  }
}

.rq-hint.is-error {
  border-left-color: #c93e3e;
  background: var(--rq-warn-bg);
  color: #8f1d1d;
}

@container rqstep (min-width: 640px) {
  .rq-when-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .rq-date-view {
    min-height: 32px;
  }
}

.rq-inline-error {
  margin: -8px 0 16px;
  padding: 10px 12px;
  border-left: 3px solid #c93e3e;
  border-radius: 0;
  background: var(--rq-warn-bg);
  color: #8f1d1d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .rq-review {
    padding: 18px 16px 16px;
  }
}

@container rqstep (max-width: 520px) {
  .rq-calendar-head {
    flex-wrap: wrap;
  }
  .rq-calendar-head h3,
  .rq-calendar-nav {
    flex: 1 1 100%;
  }
  .rq-calendar-nav {
    justify-content: space-between;
  }
}
