/* Big Reputation studio booking. Scoped to .brep-booking so nothing leaks. */

.brep-booking {
  --brep-primary: var(--primary, #FA003F);
  --brep-plum: var(--secondary, #4E2849);
  --brep-ink: var(--black, #111111);
  --brep-line: #DEDEDE;
  --brep-muted: #6B6B6B;
  --brep-bg-soft: #F6F6F6;
  --brep-radius: 4px;
  color: var(--brep-ink);
  max-width: 1100px;
  margin-inline: auto;
}

.brep-booking *, .brep-booking *::before, .brep-booking *::after { box-sizing: border-box; }

.brep-step { margin-bottom: 48px; }

.brep-step__title {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
  line-height: 1.2;
  margin: 0 0 4px;
}

.brep-step__hint {
  font-size: 0.9375rem;
  color: var(--brep-muted);
  margin: 0 0 20px;
}

.brep-step__title + .brep-grid,
.brep-step__title + .brep-durations { margin-top: 20px; }

.brep-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .brep-grid--2 { grid-template-columns: 1fr 1fr; } }

/* Radio and checkbox cards */
.brep-option { display: block; position: relative; cursor: pointer; color: var(--brep-ink); }
.brep-option input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.brep-option__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  min-height: 64px;
}
.brep-option__box::before {
  content: "";
  flex: 0 0 auto;
  width: 18px; height: 18px;
  border: 1px solid #B4B4B4;
  border-radius: 50%;
  order: -1;
  transition: border-color .15s ease, background-color .15s ease;
}
.brep-option input[type="checkbox"] + .brep-option__box::before { border-radius: 3px; }
.brep-option:hover .brep-option__box { border-color: #9A9A9A; }
.brep-option input:focus-visible + .brep-option__box {
  outline: 2px solid var(--brep-primary);
  outline-offset: 2px;
}
.brep-option input:checked + .brep-option__box {
  border-color: var(--brep-primary);
  box-shadow: inset 0 0 0 1px var(--brep-primary);
  background: #FFF4F7;
}
.brep-option input:checked + .brep-option__box .brep-option__label { font-weight: 600; }
.brep-option input:checked + .brep-option__box .brep-option__price { color: var(--brep-ink); }
.brep-option input:checked + .brep-option__box::before {
  border-color: var(--brep-primary);
  background: var(--brep-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.brep-option__label { font-weight: 500; margin-right: auto; color: var(--brep-ink); }
.brep-option__price { font-weight: 600; white-space: nowrap; font-size: 0.9375rem; color: #3D3D3D; }

/* Duration pills */
.brep-durations { display: flex; flex-wrap: wrap; gap: 10px; }
.brep-duration {
  font: inherit;
  font-weight: 500;
  padding: 12px 20px;
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  background: #fff;
  color: inherit;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.brep-duration:hover { border-color: #9A9A9A; }
.brep-duration:focus-visible { outline: 2px solid var(--brep-primary); outline-offset: 2px; }
.brep-duration.is-selected {
  background: var(--brep-plum);
  border-color: var(--brep-plum);
  color: #fff;
}

/* Calendar: a real month grid, not a strip of pills */
.brep-cal {
  display: grid;
  gap: 28px;
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  padding: 24px;
  background: #fff;
  align-items: start;
  max-width: 680px;
}
@media (min-width: 880px) {
  .brep-cal { grid-template-columns: 340px 1fr; gap: 32px; }
}

.brep-cal__head {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 18px;
}
.brep-cal__month {
  font-weight: 600; font-size: 1.0625rem;
  min-width: 170px; text-align: center;
}
.brep-cal__nav {
  font: inherit; line-height: 1;
  width: 36px; height: 36px; flex: 0 0 auto; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  background: #fff; color: inherit; cursor: pointer;
}
.brep-cal__nav:hover:not(:disabled) { border-color: #9A9A9A; }
.brep-cal__nav:disabled { opacity: .3; cursor: not-allowed; }
.brep-cal__nav:focus-visible { outline: 2px solid var(--brep-primary); outline-offset: 2px; }

.brep-cal__weekdays, .brep-cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.brep-cal__weekdays span {
  text-align: center; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brep-muted); padding-bottom: 6px;
}

.brep-cal__day {
  font: inherit; font-variant-numeric: tabular-nums;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent; color: #C2C2C2;
  cursor: default; padding: 0;
}
.brep-cal__day.is-free {
  background: #F2F2F2; color: var(--brep-ink);
  font-weight: 600; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.brep-cal__day.is-free:hover { background: #E2E2E2; }
.brep-cal__day.is-free:focus-visible { outline: 2px solid var(--brep-primary); outline-offset: 2px; }
.brep-cal__day.is-today { box-shadow: inset 0 0 0 1px #C9C9C9; }
.brep-cal__day.is-selected,
.brep-cal__day.is-selected:hover {
  background: var(--brep-plum); color: #fff;
}

.brep-cal__status { font-size: 0.875rem; color: var(--brep-muted); margin-top: 14px; }
.brep-cal__status:empty { display: none; }

.brep-cal__times { min-width: 0; }
.brep-cal__times-title { font-size: 1rem; font-weight: 600; margin: 0 0 14px; }
/* No max-height: clipping a button halfway reads as broken rather than scrollable.
   The studio day is short, so the list stays comfortably shallow. */
.brep-cal__slots { display: flex; flex-direction: column; gap: 8px; }
.brep-slot {
  font: inherit; font-variant-numeric: tabular-nums;
  width: 100%; text-align: center;
  padding: 12px 20px;
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  background: #fff; color: var(--brep-ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.brep-slot:hover { border-color: #9A9A9A; }
.brep-slot:focus-visible { outline: 2px solid var(--brep-primary); outline-offset: 2px; }
.brep-slot.is-selected { background: var(--brep-primary); border-color: var(--brep-primary); color: #fff; }
.brep-cal__tz { font-size: 0.8125rem; color: var(--brep-muted); margin: 16px 0 0; }

/* Contact fields */
.brep-fields { display: grid; gap: 16px; }
@media (min-width: 720px) { .brep-fields { grid-template-columns: 1fr 1fr; } .brep-field--wide { grid-column: 1 / -1; } }
.brep-field { display: block; }
.brep-field__label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 6px; color: var(--brep-ink); }
.brep-field__label em { font-style: normal; color: var(--brep-primary); }
.brep-field input, .brep-field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  background: #fff;
  color: inherit;
}
.brep-field input:focus-visible, .brep-field textarea:focus-visible {
  outline: 2px solid var(--brep-primary); outline-offset: 1px; border-color: transparent;
}
.brep-field.has-error input, .brep-field.has-error textarea { border-color: var(--brep-primary); }

/* Summary */
.brep-summary {
  border: 1px solid var(--brep-line);
  border-radius: var(--brep-radius);
  background: var(--brep-bg-soft);
  padding: 28px;
}
.brep-summary__title {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem; margin: 0 0 18px;
}
.brep-summary__lines { list-style: none; margin: 0 0 16px; padding: 0; }
.brep-summary__lines li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid #E4E4E4;
  font-size: 0.9375rem;
}
.brep-summary__lines li:last-child { border-bottom: 0; }
.brep-summary__empty { color: var(--brep-muted); }
.brep-summary__totals { margin: 0 0 20px; }
.brep-summary__totals > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 6px 0;
  font-size: 0.9375rem;
}
.brep-summary__totals dt, .brep-summary__totals dd { margin: 0; }
.brep-summary__grand {
  border-top: 2px solid var(--brep-ink);
  margin-top: 8px; padding-top: 12px !important;
  font-weight: 700; font-size: 1.125rem !important;
}

.brep-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; margin-bottom: 16px; color: var(--brep-ink); }
.brep-terms input { margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--brep-primary); }
.brep-terms em { font-style: normal; color: var(--brep-primary); }

.brep-note { font-size: 0.875rem; color: var(--brep-muted); margin: 0 0 18px; }

.brep-submit {
  font: inherit; font-weight: 600;
  width: 100%;
  padding: 16px 28px;
  border: 0; border-radius: var(--brep-radius);
  background: var(--brep-primary); color: #fff;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.brep-submit:hover:not(:disabled) { background: var(--brep-plum); }
.brep-submit:focus-visible { outline: 2px solid var(--brep-plum); outline-offset: 2px; }
.brep-submit:disabled { opacity: .4; cursor: not-allowed; }

.brep-errors { margin-top: 14px; font-size: 0.9375rem; color: var(--brep-primary); font-weight: 500; }
.brep-errors:empty { display: none; }
.brep-errors ul { margin: 0; padding-left: 18px; }

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

/* brep-option__box wrap fix: on narrow screens let the price drop under the label
   rather than squeezing the label into a column one word wide. */
@media (max-width: 560px) {
  .brep-option__box { flex-wrap: wrap; row-gap: 2px; align-items: flex-start; padding: 14px 16px; }
  .brep-option__box::before { margin-top: 2px; }
  .brep-option__label { flex: 1 1 calc(100% - 34px); }
  .brep-option__price { flex: 0 0 100%; padding-left: 34px; }
}


.brep-success {
  border: 1px solid var(--brep-line);
  border-left: 4px solid var(--brep-primary);
  border-radius: var(--brep-radius);
  background: #fff;
  padding: 32px;
  color: var(--brep-ink);
}
.brep-success h3 {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 12px;
}
.brep-success p { margin: 0 0 10px; }
.brep-success p:last-child { margin-bottom: 0; }


/* =========================================================
   Three step layout
   ========================================================= */

/* LOAD BEARING. .brep-cal sets display:grid, which beats the browser's
   [hidden] { display: none }, so panels and the calendar silently refused
   to hide. Keep this. */
.brep-booking [hidden] { display: none !important; }

.brep-stepnav {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  list-style: none; margin: 0 0 36px; padding: 0 0 20px;
  border-bottom: 1px solid var(--brep-line);
  counter-reset: none;
}
.brep-stepnav__item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem; color: var(--brep-muted);
}
.brep-stepnav__num {
  width: 26px; height: 26px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.8125rem; font-weight: 600;
  background: #ECECEC; color: var(--brep-muted);
}
.brep-stepnav__item.is-current { color: var(--brep-ink); font-weight: 600; }
.brep-stepnav__item.is-current .brep-stepnav__num { background: var(--brep-plum); color: #fff; }
.brep-stepnav__item.is-done .brep-stepnav__num { background: var(--brep-primary); color: #fff; }
.brep-stepnav__item.is-done { color: var(--brep-ink); }
@media (max-width: 560px) {
  .brep-stepnav { gap: 6px 16px; }
  .brep-stepnav__label { display: none; }
  .brep-stepnav__item.is-current .brep-stepnav__label { display: inline; }
}

/* ACSS styles bare <section> elements as a centred flex column:
   section:where(:not(.bricks-shape-divider)) { display:flex; flex-direction:column; align-items:center }
   Our step panels are sections, so everything inside centred and shrink-wrapped.
   Put them back to normal block flow. */
.brep-panel { display: block; gap: 0; }

.brep-panel__title {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  line-height: 1.2;
  margin: 0 0 20px;
}
.brep-panel__title:focus { outline: none; }
.brep-panel__title:focus-visible { outline: 2px solid var(--brep-primary); outline-offset: 4px; }

.brep-panel__subtitle {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 40px 0 16px;
}
.brep-panel__hint {
  font-size: 0.9375rem; color: var(--brep-muted);
  margin: -8px 0 16px;
}

/* Persistent total and navigation */
.brep-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--brep-line);
}
.brep-bar__total { display: flex; align-items: baseline; gap: 8px; }
.brep-bar__label { font-size: 0.875rem; color: var(--brep-muted); }
.brep-bar__value {
  font-size: 1.5rem; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--brep-ink);
}
.brep-bar__note { font-size: 0.8125rem; color: var(--brep-muted); }
.brep-bar__actions { display: flex; gap: 10px; margin-left: auto; }

.brep-action {
  font: inherit; font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--brep-radius);
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease;
}
.brep-action--primary { border: 0; background: var(--brep-primary); color: #fff; }
.brep-action--primary:hover:not(:disabled) { background: var(--brep-plum); color: #fff; }
.brep-action--ghost {
  border: 1px solid var(--brep-line); background: #fff; color: var(--brep-ink);
}
.brep-action--ghost:hover { border-color: #9A9A9A; }
.brep-action:focus-visible { outline: 2px solid var(--brep-plum); outline-offset: 2px; }
.brep-action:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 560px) {
  .brep-bar__actions { width: 100%; }
  .brep-action { flex: 1 1 auto; padding: 14px 20px; }
}

/* Summary now lives inside step 3 */
.brep-summary { margin-top: 36px; }
.brep-summary__title {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700; font-size: 1.25rem; margin: 0 0 16px;
}

/* Step 2: calendar plus the booking rules, so the right hand side is not dead space */
.brep-when { display: grid; gap: 28px; align-items: start; }
/* Only go side by side when there is genuinely room for both. Between about
   1000 and 1180 the calendar got squeezed, so stack instead. */
@media (min-width: 1180px) {
  .brep-when { grid-template-columns: 680px minmax(260px, 1fr); gap: 40px; }
}

.brep-info {
  border-left: 3px solid var(--brep-line);
  padding: 2px 0 2px 20px;
  color: var(--brep-ink);
}
.brep-info__title {
  font-family: "miller-display", Georgia, serif;
  font-weight: 700; font-size: 1.125rem;
  margin: 0 0 14px;
}
.brep-info__list { list-style: none; margin: 0; padding: 0; }
.brep-info__list li {
  position: relative;
  font-size: 0.9375rem; line-height: 1.5;
  padding: 0 0 12px 18px;
}
.brep-info__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--brep-primary);
}
.brep-info__todo { color: var(--brep-muted); font-style: italic; }
.brep-info__todo::before { background: #C9C9C9 !important; }

/* Anchor target for the Book buttons higher up the page */
#book { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* Package cards: show what's included under each session (25 Nov 2026). */
.brep-option--package { height: 100%; }
.brep-option--package .brep-option__box { height: 100%; flex-wrap: wrap; align-content: flex-start; row-gap: 12px; }
.brep-option__includes { flex: 0 0 100%; display: block; margin: 0; padding: 12px 0 0 34px; border-top: 1px solid var(--brep-line); }
.brep-option__include { display: list-item; list-style: disc outside; margin: 0 0 4px 18px; font-size: 0.875rem; line-height: 1.5; font-weight: 400; color: #3D3D3D; }
.brep-option__include:last-child { margin-bottom: 0; }
.brep-option__include::marker { color: var(--brep-ink); }
.brep-option input:checked + .brep-option__box .brep-option__includes { border-top-color: rgba(250, 0, 63, .25); }
@media (max-width: 560px) {
  .brep-option__includes { padding-left: 34px; }
}


/* Extras with a short explanation under the label, eg the flexible add on (26 Nov 2026). */
.brep-option__note { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.45; font-weight: 400; color: #3D3D3D; }
.brep-option input:checked + .brep-option__box .brep-option__note { font-weight: 400; }


/* Discount code (26 Nov 2026). */
.brep-code { display: flex; gap: 10px; align-items: stretch; max-width: 440px; }
.brep-code__field { flex: 1 1 auto; min-width: 0; }
.brep-code__apply { flex: 0 0 auto; }
.brep-code__msg { margin: 8px 0 0; font-size: 0.875rem; color: #3D3D3D; }
.brep-code__msg:empty { display: none; }
.brep-code__msg.is-ok { color: var(--brep-plum); font-weight: 600; }
.brep-code__msg.is-bad { color: var(--brep-primary); }
.brep-summary__discount span:last-child { color: var(--brep-plum); font-weight: 600; }


/* Extras hidden for the chosen session (26 Nov 2026): .brep-option sets display, so hidden needs help. */
.brep-option[hidden] { display: none; }
