/* River Deep Hire — booking form.
   Everything is scoped under .rdh so it cannot leak into the theme.
   Type is inherited from the theme on purpose: no webfonts are loaded.

   Brand palette
   #223f9a  deep blue   — primary actions, headings, strong borders
   #00aeef  cyan        — available states, selection, focus
   #ef8d24  orange      — partly-booked states, warnings
   The cyan and orange are too light for text on white (about 2.5:1), so
   darkened versions of the same hues are used wherever text is involved.
*/

.rdh {
  --rdh-deep:       #223f9a;
  --rdh-deep-dark:  #1a3179;
  --rdh-cyan:       #00aeef;
  --rdh-cyan-ink:   #06698f;
  --rdh-cyan-soft:  #e2f5fd;
  --rdh-orange:     #ef8d24;
  --rdh-orange-ink: #9a5408;
  --rdh-orange-soft:#fdf0e1;
  --rdh-red:        #99301f;
  --rdh-red-soft:   #fbeae7;

  --rdh-ink:     #101a33;
  --rdh-body:    #2f3a52;
  --rdh-muted:   #65708c;
  --rdh-hair:    #d3dae9;
  --rdh-surface: #ffffff;
  --rdh-sunk:    #eef2f9;
  --rdh-on-primary: #ffffff;

  color: var(--rdh-body);
  line-height: 1.55;
  max-width: 48rem;
}

@media (prefers-color-scheme: dark) {
  .rdh {
    --rdh-deep:       #00aeef;
    --rdh-deep-dark:  #38c2f6;
    --rdh-cyan:       #00aeef;
    --rdh-cyan-ink:   #6fd3f7;
    --rdh-cyan-soft:  #0d2a3a;
    --rdh-orange:     #ef8d24;
    --rdh-orange-ink: #f0ad63;
    --rdh-orange-soft:#2d1f0f;
    --rdh-red:        #e4917f;
    --rdh-red-soft:   #2b1714;

    --rdh-ink:     #e9edf7;
    --rdh-body:    #c3cbdd;
    --rdh-muted:   #8b96b0;
    --rdh-hair:    #2a3450;
    --rdh-surface: #151c2d;
    --rdh-sunk:    #111726;
    --rdh-on-primary: #07131c;
  }
}

.rdh *, .rdh *::before, .rdh *::after { box-sizing: border-box; }
.rdh h2, .rdh h3 { color: var(--rdh-ink); margin: 0; line-height: 1.2; }
.rdh h2 { font-size: 1.3em; }
.rdh h3 { font-size: 1em; }
.rdh p { margin: 0; }
.rdh .rdh-num {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* banners */
.rdh-testbanner {
  background: var(--rdh-orange-soft);
  border: 1px solid var(--rdh-orange);
  color: var(--rdh-orange-ink);
  padding: .7em .9em;
  font-size: .9em;
  margin-bottom: 1.4em;
}
.rdh-boot, .rdh-noscript { color: var(--rdh-muted); font-size: .95em; }
.rdh-error {
  background: var(--rdh-red-soft);
  border: 1px solid var(--rdh-red);
  color: var(--rdh-red);
  padding: .7em .9em;
  font-size: .92em;
}
.rdh-error[hidden] { display: none; }

/* step chips */
.rdh-steps { display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: 1.6em; }
.rdh-chip {
  font-size: .76em; padding: .3em .6em; border: 1px solid var(--rdh-hair);
  color: var(--rdh-muted); background: var(--rdh-surface); display: flex; gap: .4em;
}
.rdh-chip[data-s="done"] { color: var(--rdh-cyan-ink); border-color: var(--rdh-cyan); }
.rdh-chip[data-s="now"]  { color: var(--rdh-on-primary); background: var(--rdh-deep); border-color: var(--rdh-deep); font-weight: 600; }

.rdh-panel { display: flex; flex-direction: column; gap: 1.3em; }
.rdh-panel[hidden] { display: none; }
.rdh-head { display: flex; flex-direction: column; gap: .35em; }
.rdh-head p { color: var(--rdh-muted); font-size: .95em; }

/* calendar */
.rdh-cal { background: var(--rdh-surface); border: 1px solid var(--rdh-hair); }
.rdh-calbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5em .6em; border-bottom: 1px solid var(--rdh-hair);
}
.rdh-navbtn {
  background: none; border: 1px solid var(--rdh-hair); color: var(--rdh-ink);
  width: 2em; height: 2em; cursor: pointer; line-height: 1; font-size: 1em;
}
.rdh-navbtn:hover:not(:disabled) { border-color: var(--rdh-deep); color: var(--rdh-deep); }
.rdh-navbtn:disabled { opacity: .35; cursor: not-allowed; }
.rdh-grid7 { display: grid; grid-template-columns: repeat(7, 1fr); }
.rdh-dow {
  text-align: center; font-size: .66em; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rdh-muted); padding: .5em 0;
}
.rdh-day {
  aspect-ratio: 1; border: none; border-top: 1px solid var(--rdh-hair); background: none;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .2em; font-size: .9em; color: var(--rdh-body);
  font-variant-numeric: tabular-nums;
}
.rdh-day:hover:not(:disabled) { background: var(--rdh-cyan-soft); }
.rdh-day:disabled { color: var(--rdh-hair); cursor: not-allowed; }
.rdh-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--rdh-cyan); }
.rdh-day.is-limited .rdh-dot { background: var(--rdh-orange); }
.rdh-day.is-full { color: var(--rdh-muted); text-decoration: line-through; }
.rdh-day.is-full .rdh-dot { background: transparent; border: 1px solid var(--rdh-muted); }
.rdh-day.is-late { color: var(--rdh-muted); }
.rdh-day.is-late .rdh-dot { background: transparent; border: 1px solid var(--rdh-cyan); }
.rdh-day[aria-pressed="true"] {
  background: var(--rdh-deep); color: var(--rdh-on-primary); font-weight: 600;
}
.rdh-day[aria-pressed="true"] .rdh-dot { background: var(--rdh-on-primary); border-color: var(--rdh-on-primary); }
.rdh-legend {
  display: flex; flex-wrap: wrap; gap: .9em; padding: .55em .6em;
  border-top: 1px solid var(--rdh-hair); font-size: .78em; color: var(--rdh-muted);
}
.rdh-legend span { display: flex; align-items: center; gap: .35em; }
.rdh-sw { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.rdh-band {
  background: var(--rdh-cyan-soft); border: 1px solid var(--rdh-cyan);
  padding: .7em .9em; font-size: .92em; color: var(--rdh-ink);
}
.rdh-band .rdh-num { color: var(--rdh-cyan-ink); font-weight: 600; }
.rdh-band small { display: block; color: var(--rdh-muted); font-size: .86em; }

/* rows */
.rdh-list { display: flex; flex-direction: column; border: 1px solid var(--rdh-hair); background: var(--rdh-surface); }
.rdh-row {
  display: flex; align-items: center; gap: 1em; flex-wrap: wrap;
  padding: .9em 1em; border-top: 1px solid var(--rdh-hair);
}
.rdh-row:first-child { border-top: none; }
.rdh-rowinfo { flex: 1; min-width: 10rem; display: flex; flex-direction: column; gap: .1em; }
.rdh-rowinfo small { color: var(--rdh-muted); font-size: .85em; }
.rdh-price { color: var(--rdh-ink); font-weight: 600; }

.rdh-stepper { display: flex; align-items: center; border: 1px solid var(--rdh-hair); }
.rdh-stepper button {
  width: 2.2em; height: 2.2em; border: none; background: var(--rdh-surface);
  color: var(--rdh-ink); font-size: 1em; cursor: pointer; line-height: 1;
}
.rdh-stepper button:hover:not(:disabled) { background: var(--rdh-cyan-soft); color: var(--rdh-cyan-ink); }
.rdh-stepper button:disabled { color: var(--rdh-hair); cursor: not-allowed; }
.rdh-stepper .rdh-val {
  width: 2.6em; text-align: center; line-height: 2.2em; color: var(--rdh-ink);
  border-left: 1px solid var(--rdh-hair); border-right: 1px solid var(--rdh-hair);
  font-variant-numeric: tabular-nums;
}
.rdh-left { font-size: .8em; color: var(--rdh-muted); min-width: 6rem; text-align: right; }
.rdh-left.is-none { color: var(--rdh-red); }

.rdh-toggle { display: flex; border: 1px solid var(--rdh-hair); }
.rdh-toggle button {
  font-size: .86em; padding: .45em .8em; border: none; cursor: pointer;
  background: var(--rdh-surface); color: var(--rdh-body);
}
.rdh-toggle button + button { border-left: 1px solid var(--rdh-hair); }
.rdh-toggle button[aria-pressed="true"] {
  background: var(--rdh-deep); color: var(--rdh-on-primary); font-weight: 600;
}

/* people */
.rdh-person { border: 1px solid var(--rdh-hair); background: var(--rdh-surface); }
.rdh-ptop {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75em;
  flex-wrap: wrap; padding: .7em 1em; background: var(--rdh-sunk);
  border-bottom: 1px solid var(--rdh-hair);
}
.rdh-ptop small { color: var(--rdh-muted); font-size: .82em; }
.rdh-pbody { padding: 1em; display: grid; gap: .9em; }
@media (min-width: 34rem) { .rdh-pbody { grid-template-columns: 1fr 1fr; } }
.rdh-field { display: flex; flex-direction: column; gap: .3em; }
.rdh-field > label { font-size: .82em; font-weight: 600; color: var(--rdh-ink); }
.rdh-wide { grid-column: 1 / -1; }
.rdh input[type="text"], .rdh input[type="email"], .rdh input[type="tel"], .rdh select {
  font: inherit; font-size: .95em; padding: .5em .6em; width: 100%;
  border: 1px solid var(--rdh-hair); background: var(--rdh-surface); color: var(--rdh-ink);
}
.rdh :focus-visible { outline: 2px solid var(--rdh-cyan); outline-offset: 1px; }
.rdh-field.is-bad input, .rdh-field.is-bad select { border-color: var(--rdh-red); background: var(--rdh-red-soft); }
.rdh-field.is-bad .rdh-toggle { border-color: var(--rdh-red); }
.rdh-badge {
  font-size: .7em; letter-spacing: .06em; text-transform: uppercase;
  padding: .12em .4em; border: 1px solid var(--rdh-cyan); color: var(--rdh-cyan-ink);
}

/* terms and risk */
.rdh-block {
  border: 1px solid var(--rdh-hair); background: var(--rdh-surface);
  padding: 1em; display: flex; flex-direction: column; gap: .7em;
}
.rdh-block > .rdh-list { border-left: none; border-right: none; border-bottom: none; }
.rdh-statement { font-size: .94em; max-width: 62ch; }
.rdh-tick { display: flex; align-items: flex-start; gap: .6em; padding: .65em 1em; border-top: 1px solid var(--rdh-hair); }
.rdh-tick:first-child { border-top: none; }
.rdh-tick input { margin-top: .3em; width: 1em; height: 1em; accent-color: var(--rdh-deep); flex: none; }
.rdh-tick label { font-size: .92em; color: var(--rdh-ink); cursor: pointer; }
.rdh-tick label small { display: block; color: var(--rdh-muted); font-size: .85em; font-weight: 400; }
.rdh-tick.is-term label { color: var(--rdh-body); font-weight: 400; max-width: 64ch; }
.rdh-tick.is-bad { background: var(--rdh-red-soft); }
#rdh-riskwrap { display: flex; flex-direction: column; gap: 1.3em; }

/* summary + nav */
.rdh-summary {
  border: 1px solid var(--rdh-hair); background: var(--rdh-sunk); padding: .9em 1em;
  display: flex; flex-direction: column; gap: .4em; font-size: .92em;
}
.rdh-sumline { display: flex; justify-content: space-between; gap: 1em; }
.rdh-sumline.is-dim { color: var(--rdh-muted); }
.rdh-sumtotal {
  display: flex; justify-content: space-between; gap: 1em; padding-top: .55em;
  margin-top: .2em; border-top: 2px solid var(--rdh-deep); color: var(--rdh-ink); font-weight: 700;
}

/* discount code */
.rdh-promo { display: flex; flex-direction: column; gap: .35em; }
.rdh-promo:empty { display: none; }
.rdh-promo > label { font-size: .82em; font-weight: 600; color: var(--rdh-ink); }
.rdh-promo-in { display: flex; gap: .5em; flex-wrap: wrap; align-items: stretch; }
.rdh-promo-in input {
  font: inherit; font-size: .95em; padding: .5em .6em; max-width: 14rem;
  border: 1px solid var(--rdh-hair); background: var(--rdh-surface); color: var(--rdh-ink);
  text-transform: uppercase; letter-spacing: .04em;
}
.rdh-promo-on {
  display: flex; gap: 1em; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border: 1px solid var(--rdh-cyan); background: var(--rdh-cyan-soft);
  padding: .6em .9em; font-size: .92em; color: var(--rdh-ink);
}
.rdh-empty { color: var(--rdh-muted); font-style: italic; font-size: .92em; margin: 0; }
.rdh-sumdiscount { color: var(--rdh-cyan-ink); }
.rdh-sumdiscount .rdh-num { color: var(--rdh-cyan-ink); font-weight: 600; }

.rdh-nav { display: flex; gap: .7em; align-items: center; flex-wrap: wrap; }
.rdh-btn {
  font: inherit; font-size: .95em; font-weight: 600; padding: .65em 1.3em; cursor: pointer;
  border: 1px solid var(--rdh-deep); background: var(--rdh-deep); color: var(--rdh-on-primary);
}
.rdh-btn:hover:not(:disabled) { background: var(--rdh-deep-dark); border-color: var(--rdh-deep-dark); }
.rdh-btn:disabled { opacity: .5; cursor: not-allowed; }
.rdh-btn.is-ghost { background: none; color: var(--rdh-deep); }
.rdh-btn.is-ghost:hover { background: var(--rdh-cyan-soft); }

/* recap */
.rdh-scroll { overflow-x: auto; border: 1px solid var(--rdh-hair); background: var(--rdh-surface); }
.rdh-scroll table { width: 100%; border-collapse: collapse; font-size: .9em; }
.rdh-scroll th, .rdh-scroll td { text-align: left; padding: .55em .8em; border-bottom: 1px solid var(--rdh-hair); }
.rdh-scroll thead th {
  font-size: .76em; letter-spacing: .07em; text-transform: uppercase;
  color: var(--rdh-muted); background: var(--rdh-sunk);
}
.rdh-scroll tbody tr:last-child th, .rdh-scroll tbody tr:last-child td { border-bottom: none; }

.rdh-done {
  border: 1px solid var(--rdh-cyan); background: var(--rdh-cyan-soft);
  padding: 1.1em; display: flex; flex-direction: column; gap: .5em;
}
.rdh-done h2 { color: var(--rdh-ink); }
.rdh-ref { font-size: 1.3em; font-weight: 700; color: var(--rdh-cyan-ink); }
.rdh-notes { margin: 0; padding-left: 1.2em; font-size: .93em; display: flex; flex-direction: column; gap: .35em; }

.rdh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .rdh * { transition: none !important; animation: none !important; } }
