/* Event request wizard — six server-rendered steps, no JavaScript.
   Shared by every templates/pages/start_event/*.html template. Logical
   properties only (spec §6); palette tokens only (tests/test_design_system.py
   enforces both, fail-closed). */

.wizard-progress__label {
  text-align: center;
  margin-block-end: var(--space-4);
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-block-end: var(--space-12);
}
.wizard-progress__step {
  inline-size: var(--space-2);
  block-size: var(--space-2);
  border-radius: 50%;
  background: var(--hairline);
}
.wizard-progress__step.is-complete,
.wizard-progress__step.is-current {
  background: var(--rose-deep);
}

.wizard-form {
  max-inline-size: var(--measure);
  margin-inline: auto;
  margin-block-start: var(--space-12);
}

.option-group {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
}
.option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
  padding-inline: var(--space-4);
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-size: 0.9375rem;
}
.option:has(input:checked) {
  border-color: var(--rose-deep);
  background: var(--off-white);
}
.option input { accent-color: var(--rose-deep); }

.wizard__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-block-start: var(--space-12);
}
.wizard__actions--start { justify-content: flex-end; }
.wizard__back {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral);
}
.wizard__back:hover { color: var(--rose-deep); }

[dir="rtl"] .wizard-progress__label,
[dir="rtl"] .field__label { letter-spacing: 0; }
[dir="rtl"] .wizard__back { letter-spacing: 0; text-transform: none; font-size: 0.9375rem; }

/* ---- The calendar --------------------------------------------------------
   Step 1's date picker, in the site's own style - the native date input could
   not be. A card on the warm ground: month name in the heading face, Sunday-
   first grid, each selectable day a real radio behind a styled cell, so the
   keyboard and screen-reader behaviour is the platform's own. */
.cal { border: 0; padding: 0; margin: 0 0 var(--space-8); }
.cal legend { margin-block-end: var(--space-3); }
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  margin-block-end: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--warm-white);
  border: 1px solid var(--hairline);
  border-radius: 10px 10px 0 0;
  border-block-end: 0;
}
.cal__month {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  text-align: center;
}
.cal__nav {
  inline-size: 2.25rem; block-size: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; line-height: 1;
  color: var(--charcoal);
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--warm-white);
}
.cal__nav:hover { color: var(--warm-white); background: var(--navy); border-color: var(--navy); }
.cal__nav--off { opacity: 0.3; }
/* In RTL the flex row flips, so "earlier" sits on the right - but the glyph
   is a character and does not flip with it: an Arabic reader would see the
   earlier-month arrow pointing at the later month. Mirroring the glyph keeps
   arrow and meaning agreeing in both directions. */
[dir="rtl"] .cal__nav { transform: scaleX(-1); }
.cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  padding: var(--space-3);
  background: var(--warm-white);
  border: 1px solid var(--hairline);
  border-radius: 0 0 10px 10px;
  margin-block-end: var(--space-2);
}
.cal__weekday {
  text-align: center;
  font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--neutral);
  padding-block: var(--space-2);
}
[dir="rtl"] .cal__weekday { letter-spacing: 0; text-transform: none; font-size: 0.8125rem; }
.cal__day {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1;
  font-size: 0.9375rem; font-variant-numeric: tabular-nums;
  border-radius: 999px;
  color: var(--ink);
}
label.cal__day { cursor: pointer; }
label.cal__day:hover { background: color-mix(in srgb, var(--rose-light) 40%, transparent); }
.cal__day input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.cal__day span { pointer-events: none; }
/* The chosen day fills navy; today wears a quiet ring so it reads as a
   landmark, not a selection. */
label.cal__day:has(input:checked) { background: var(--navy); color: var(--warm-white); }
.cal__day--today { box-shadow: inset 0 0 0 1px var(--rose); }
label.cal__day:has(input:focus-visible) {
  outline: 2px solid var(--rose-deep); outline-offset: 2px;
}
.cal__day--past { color: color-mix(in srgb, var(--neutral) 45%, transparent); }
.cal__day--blank { visibility: hidden; }
.cal__chosen { text-align: center; color: var(--rose-deep); margin: 0 0 var(--space-2); }

/* The budget is typed now, with the currency shown once beside the field
   instead of repeated through a list of bands. The sign is decoration -
   aria-hidden in the markup - and the error message names the currency in
   words, so nothing depends on a screen reader announcing the glyph. */
.field__money { display: flex; align-items: stretch; gap: var(--space-2); }
.field__currency {
  display: grid; place-items: center;
  padding-inline: var(--space-4);
  border: 1px solid var(--hairline);
  background: var(--off-white);
  color: var(--neutral);
  font-family: var(--font-heading);
  font-size: 1.125rem;
}
.field__money .field__input { flex: 1 1 auto; min-inline-size: 0; }
