/* ==========================================================================
   Reviews Stand order page (inquiry.ejs), on top of home.css (tokens, header, footer, pills).
   Layout and form language after HMOOD 2.0 /kontakt/ (site/src/styles/kontakt.css): a warm editorial
   column beside the form, underlined fields whose rule draws in red on focus, quiet muted labels and
   errors that sit directly under their field. Visual foundation only: no scroll reveals here.
   ========================================================================== */
.rv-order {
  --o-ink: var(--c-ink);
  --o-muted: rgba(25, 23, 23, 0.64);
  --o-rule: rgba(25, 23, 23, 0.16);
  --o-error: #b42626;
  --o-field: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  background: var(--c-cream);
}
.rv-order-page {
  padding-block: calc(var(--header-h) + clamp(2.5rem, 1.5rem + 4vw, 6rem)) clamp(5rem, 3rem + 6vw, 9rem);
  background: var(--c-cream);
  color: var(--o-ink);
}
.rv-order__grid {
  display: grid;
  gap: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.rv-order__intro, .rv-order__form, .rv-order__help { min-width: 0; }

/* ---------- editorial column ---------- */
.rv-order__intro .rm-eyebrow { margin-bottom: clamp(1.25rem, 0.9rem + 1vw, 2rem); color: var(--o-muted); }
.rv-order__title {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.058em;
  text-wrap: balance;
}
.rm-order-summary { margin-top: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
/* dividers: 1px borders, the same as the index FAQ rows; with a mouse they bend toward the pointer (data-bend, home.js) */
.rm-order-summary__pricing, .rm-order-summary__facts li { border-bottom: 1px solid var(--o-rule); }
.rm-order-summary__pricing { padding-bottom: 1.5rem; }
.rm-order-summary__price {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 2rem + 4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
}
.rm-order-summary__unit {
  margin-inline-start: 0.35rem;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--o-muted);
}
.rm-order-summary__shipping { display: flex; align-items: center; gap: 0.55rem; margin-top: 1rem; font-weight: 600; }
.rm-order-summary__shipping svg { flex: none; width: 1.25rem; height: 1.25rem; padding: 0.2rem; border-radius: 50%; background: var(--c-red); color: var(--c-white); }
.rm-order-summary__facts { display: grid; }
.rm-order-summary__facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding-block: 1.1rem;
  color: var(--o-muted);
  line-height: 1.55;
}
.rm-order-summary__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--o-rule); color: var(--o-ink); }

/* payment, return and cancellation terms: the index FAQ accordion (.acc-* in home.css: the same grid-row height
   transition, delayed text reveal, plus → minus icon and timings), only sized for the editorial column */
.rm-order-terms .acc-heading { font-family: inherit; }
.rm-order-terms .acc-trigger { min-height: 3.75rem; padding-block: 1rem; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); font-weight: 650; letter-spacing: -0.02em; }
.rm-order-terms .acc-icon { width: 2.25rem; height: 2.25rem; border-color: var(--o-rule); }
.rm-order-terms .acc-icon::before, .rm-order-terms .acc-icon::after { width: 12px; margin-left: -6px; }
.rm-order-terms .acc-item { border-bottom-color: var(--o-rule); }
.rm-order-terms .acc-panel p { max-width: 60ch; padding: 0 0 1.25rem; font-size: var(--fs-base); line-height: 1.6; color: var(--o-muted); }

/* ---------- form column ---------- */
.rv-order__form { display: grid; align-content: start; gap: 1.5rem; }
.rv-order__status, .rv-order__alert, .rv-order__panel {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--c-paper);
  box-shadow: inset 0 0 0 1px var(--o-rule);
  line-height: 1.55;
}
.rv-order__status { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  /* order states and errors are readable at once: a short settle, no delay */
  .rv-order__status, .rv-order__alert, .rv-order__panel, .rv-order__again { animation: rv-state-in 0.45s var(--ease-out) both; }
}
@keyframes rv-state-in { from { opacity: 0.01; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.rv-order__alert { color: var(--o-error); font-weight: 600; box-shadow: inset 0 0 0 1px currentColor; background: #fbeeec; }
.rv-order__panel { display: grid; justify-items: start; gap: 1rem; }
.rv-order__link { color: var(--o-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--o-rule); text-underline-offset: 0.22em; transition: text-decoration-color 0.4s var(--ease-out); }
@media (hover: hover) { .rv-order__link:hover { text-decoration-color: var(--c-red); } }

.rv-order-form { display: grid; gap: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
.rm-order-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.rm-order-fields legend {
  padding: 0;
  margin-bottom: 0.6rem;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rm-order-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(1.25rem, 0.8rem + 1.5vw, 2.25rem); }
@media (min-width: 640px) {
  .rm-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-field--wide { grid-column: 1 / -1; }
}

/* fields: a visible label, an underlined control, the hint and any error directly below */
.rv-field { display: grid; align-content: start; padding-top: 1.1rem; }
.rv-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--o-ink); transition: color 0.4s var(--ease-out); }
.rv-field:focus-within label { color: var(--c-red-text); }
.rv-field:has([aria-invalid='true']) label { color: var(--o-error); }
.rv-field:has([readonly]) label { color: var(--o-muted); transition: none; }
.rv-field input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--o-rule);
  border-radius: 0;
  background: linear-gradient(var(--c-red), var(--c-red)) left bottom / 0 2px no-repeat;
  color: var(--o-ink);
  font-family: var(--f-body);
  font-size: var(--o-field);
  line-height: 1.4;
  letter-spacing: -0.01em;
  outline: none;
  appearance: none;
  transition: background-size var(--dur-pill) var(--ease-pill), border-color 0.4s var(--ease-out);
}
.rv-field input:focus { background-size: 100% 2px; }
@media (hover: hover) { .rv-field input:not([readonly]):not(:focus):hover { border-bottom-color: rgba(25, 23, 23, 0.4); } }
/* filled (home.js marks it): the rule settles to ink, so a completed form reads as completed */
.rv-field.is-filled input:not([aria-invalid='true']) { border-bottom-color: rgba(25, 23, 23, 0.5); }
/* as /kontakt/: the focus signal is the field itself (the red rule at 2px and the red label), not a box around it */
.rv-order .rv-field input:focus-visible { outline: none; border-bottom-color: var(--o-ink); }
.rv-field input[readonly] { color: var(--o-muted); background: none; border-bottom-style: dashed; transition: none; cursor: default; }
.rv-field input[aria-invalid='true'] { border-bottom-color: var(--o-error); background-image: linear-gradient(var(--o-error), var(--o-error)); background-size: 100% 2px; }
/* text-wrap: pretty keeps a short last line from stranding the tail of the example number («938 373 / 310») */
.rv-field small { display: block; margin-top: 0.5rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--o-muted); text-wrap: pretty; }
/* the shared validation (form-validation.js) adds p.field-error right after the control */
.rv-order .field-error { display: flex; align-items: flex-start; gap: 0.45rem; margin-top: 0.55rem; font-size: var(--fs-sm); font-weight: 500; line-height: 1.45; color: var(--o-error); }
.rv-order .field-error:empty { display: none; }
.rv-order .field-error:not(:empty) { animation: rv-error-in 0.45s var(--ease-out) both; }
@keyframes rv-error-in { from { opacity: 0; translate: 0 -0.3rem; } to { opacity: 1; translate: 0 0; } }
.rv-order .field-error::before {
  content: '';
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M12 7.5v5.5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.3' r='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='1.6'/%3E%3Cpath d='M12 7.5v5.5' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='16.3' r='1.1'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* consent: the links, an accessible custom checkbox and the payment pill */
.rm-order-consent { display: grid; gap: 1.25rem; }
.rm-order-consent legend { margin-bottom: 0.25rem; }
.rm-order-consent__links { font-size: var(--fs-sm); color: var(--o-muted); }
.rm-order-consent__links a { color: var(--o-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--o-rule); text-underline-offset: 0.22em; transition: text-decoration-color 0.4s var(--ease-out); }
@media (hover: hover) { .rm-order-consent__links a:hover { text-decoration-color: var(--c-red); } }
.rv-check label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; align-items: start; min-height: 44px; padding-block: 0.35rem; line-height: 1.55; cursor: pointer; }
.rv-check input {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  margin: 0.08rem 0 0;
  border: 1.5px solid var(--c-ink);
  border-radius: 0.4rem;
  background: var(--c-paper);
  appearance: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.rv-check input::after { content: ''; width: 0.55rem; height: 0.3rem; margin-top: -0.15rem; border-left: 2px solid var(--c-white); border-bottom: 2px solid var(--c-white); rotate: -45deg; scale: 0; transition: scale 0.35s var(--ease-elastic); }
.rv-check input { box-shadow: 0 0 0 0 rgba(230, 59, 59, 0); transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.45s var(--ease-out), scale 0.3s var(--ease-out); }
@media (hover: hover) { .rv-check label:hover input:not(:checked) { box-shadow: 0 0 0 5px rgba(25, 23, 23, 0.06); } }
.rv-check input:active { scale: 0.9; }
.rv-check input:checked { background: var(--c-red); border-color: var(--c-red); }
.rv-check input:checked::after { scale: 1; }
.rv-check input:focus-visible { outline: 2px solid var(--c-red-text); outline-offset: 3px; }
.rv-check input[aria-invalid='true'] { border-color: var(--o-error); background: #fbeeec; box-shadow: 0 0 0 4px rgba(180, 38, 38, 0.12); }
.rv-check .field-error { margin-inline-start: 2.25rem; }
.rv-order__submit { padding-top: 0.5rem; }
.rv-order__submit .rv-pill { max-width: 100%; }
.rv-order__again { justify-self: start; }

/* ---------- support row ---------- */
.rv-order__help { display: grid; gap: 0.5rem; padding-top: 1.75rem; border-top: 1px solid var(--o-rule); color: var(--o-muted); }

/* ---------- desktop: editorial column | form, help under the form (12 columns, as /kontakt/) ---------- */
@media (min-width: 1024px) {
  .rv-order__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.5rem, 2.4vw, 3rem); row-gap: 3.5rem; align-items: start; }
  .rv-order__intro { grid-column: 1 / 6; }
  .rv-order__form { grid-column: 7 / 13; padding-top: 0.4rem; }
  .rv-order__help { grid-column: 7 / 13; }
}
@media (min-width: 1280px) {
  .rv-order__intro { grid-column: 1 / 6; }
  .rv-order__form, .rv-order__help { grid-column: 7 / 13; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-field input, .rv-check input, .rv-check input::after { transition: none; }
}

/* ==========================================================================
   Motion (Round 2): HMOOD 2.0 reveals on the index's system (home.js): [data-reveal] blocks rise once,
   [data-reveal-load] also on load when already in view, after data-delay (--rd). Words rise through padded
   masks, dividers draw from the left. Restrained travel; everything visible without JavaScript or motion.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.rv-boot [data-reveal-load] { opacity: 0; }
  .rv-motion .rv-order [data-reveal] { transition-delay: var(--rd, 0s); }
  .rv-motion .rv-order [data-reveal].is-pending { transform: translateY(22px); }
  .rv-motion .rv-order .rv-word__inner { transition: transform 1.25s var(--ease-expo); transition-delay: calc(var(--rd, 0s) + 0.04s + var(--d, 0s)); }
  .rv-motion .rv-order [data-reveal]:has(.rv-word) > :not(:has(.rv-word)) { transition-delay: calc(var(--rd, 0s) + 0.28s); }
  .rv-motion .rv-order .rm-order-summary__unit { transition: opacity 0.9s var(--ease-expo); transition-delay: calc(var(--rd, 0s) + 0.3s); }
  .rv-motion .rv-order .is-pending .rm-order-summary__unit { opacity: 0; }
  /* dividers */
  .rv-motion .rv-order .rm-order-summary__pricing, .rv-motion .rv-order .rm-order-summary__facts li { transition: opacity 1.1s var(--ease-expo), transform 1.2s var(--ease-expo); transition-delay: var(--rd, 0s); }
  .rv-motion .rv-order .rm-order-summary__pricing.is-pending { opacity: 1; transform: none; }
  /* the facts settle one by one */
  .rv-motion .rv-order .rm-order-summary__facts.is-pending { opacity: 1; transform: none; }
  .rv-motion .rv-order .rm-order-summary__facts.is-pending li { opacity: 0; transform: translateY(16px); }
  .rv-motion .rv-order .rm-order-summary__facts li:nth-child(2) { transition-delay: calc(var(--rd, 0s) + 0.08s); }
  /* form groups: the legend first, then its fields */
  .rv-motion .rv-order .rm-order-fields.is-pending { opacity: 1; transform: none; }
  .rv-motion .rv-order .rm-order-fields > legend, .rv-motion .rv-order .rm-order-fields > :not(legend) { transition: opacity 1.1s var(--ease-expo), transform 1.2s var(--ease-expo); }
  .rv-motion .rv-order .rm-order-fields > legend { transition-delay: var(--rd, 0s); }
  .rv-motion .rv-order .rm-order-fields > :not(legend) { transition-delay: calc(var(--rd, 0s) + 0.08s); }
  .rv-motion .rv-order .rm-order-fields.is-pending > legend, .rv-motion .rv-order .rm-order-fields.is-pending > :not(legend) { opacity: 0; transform: translateY(20px); }
}

/* the cursor companion steps aside over form controls and their labels: the native text cursor works alone */
.cursor[data-state='field'] .cursor__dot, .cursor[data-state='field'] .cursor__ring { opacity: 0; transform: scale(0.4); }

@media (prefers-reduced-motion: reduce) {
  .rv-check input { transition: none; }
  .rv-order .field-error:not(:empty) { animation: none; }
}

.rv-nowrap { white-space: nowrap; }
