/* =============================================================================
   List-your-business wizard (#406)
   A full-height flat brand-navy background, a centred white card, a red-accented
   step-chrome header with fine text, navy-filled module checkboxes, and a
   price-anchoring block. Per the design spec. References tokens.css only. South
   African English, no em-dashes, no en-dashes, no double-hyphens, no emojis.
   ========================================================================== */

/* The hidden utility must beat the component display rules below (a class and an
   attribute selector tie on specificity, so without this the author display wins
   over the UA [hidden]). Scoped to the wizard so it changes nothing else. */
.bs-lyb-page [hidden] { display: none !important; }

/* ----------------------------------------------------------------- Shell -- */
/* The page template hands this block a full-width main; the shell paints the
   brand band edge to edge and centres the card column under the site header. */
.bs-lyb-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.bs-lyb-page {
  min-height: calc(100vh - var(--header-h));
  background: var(--color-lyb-shell);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-7) var(--layout-gutter) var(--space-8);
}

.bs-lyb-page__inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bs-lyb-page__title {
  font-family: var(--font-family-display);
  font-weight: var(--weight-display);
  font-size: var(--font-size-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-on-primary);
  text-align: center;
  margin: 0 0 var(--space-5);
}

/* ------------------------------------------------------------------ Card -- */
.bs-lyb {
  width: 100%;
  background: var(--color-surface-0);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  overflow: hidden;
}

.bs-lyb__form {
  margin: 0;
}

/* --------------------------------------------------------- Chrome (nav) -- */
/* A header row carrying the back affordance on the left and the forward
   affordance on the right, in fine red text. No fill, no rule. */
.bs-lyb__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 104px;
  padding: var(--space-4) var(--space-5);
  color: var(--color-lyb-nav);
}

/* The back affordance is a real submit (goes to the previous step); the forward
   names the next step and is an inert indicator until JS unlocks it. Fine red
   text, not pills. */
.bs-lyb__nav-back,
.bs-lyb__nav-fwd {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-regular);
  color: var(--color-lyb-nav);
  background: none;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bs-lyb__nav-back:hover { text-decoration: underline; }

.bs-lyb__nav-back.is-empty,
.bs-lyb__nav-fwd.is-empty { pointer-events: none; }

/* Inert forward: a dimmed indicator that another step exists. JS adds is-ready
   (active, navigable) once that step has been reached. */
.bs-lyb__nav-fwd.is-inert {
  opacity: 0.6;
  cursor: default;
}
.bs-lyb__nav-fwd.is-ready {
  opacity: 1;
  cursor: pointer;
}
.bs-lyb__nav-fwd.is-ready:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ Body -- */
.bs-lyb__body {
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .bs-lyb__body { padding: var(--space-7) var(--space-7) var(--space-6); }
}

.bs-lyb__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.bs-lyb__label {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-2);
}

/* Brand text field, mirroring the .bs-input control treatment. */
.bs-lyb__input {
  width: 100%;
  min-height: var(--field-h);
  padding: 0 var(--space-4);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-surface-0);
  border: var(--stroke-1) solid var(--color-border-200);
  border-radius: var(--radius-md);
  transition: border-color var(--motion-fast) var(--motion-ease-out),
    box-shadow var(--motion-fast) var(--motion-ease-out);
}
select.bs-lyb__input { padding-right: var(--space-6); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235E6B7A' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--space-4) center; }
.bs-lyb__input:hover { border-color: var(--color-border-cool); }
.bs-lyb__input:focus-visible {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 var(--stroke-accent) var(--color-focus-glow);
}
.bs-lyb__input:disabled {
  background: var(--color-surface-100);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* A field flagged by client-side validation. */
.bs-lyb__field.is-invalid .bs-lyb__input { border-color: var(--color-featured); }

/* The theme-blue "not yet listed" note (create path). */
.bs-lyb__notlisted {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin: 0;
}

.bs-lyb__other { margin-top: var(--space-2); }

/* Live business-name suggestions, anchored under the name field. */
.bs-lyb__suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: var(--space-1) 0 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--color-surface-0);
  border: var(--stroke-hair) solid var(--color-border-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  max-height: 280px;
  overflow-y: auto;
}
.bs-lyb__suggest-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.bs-lyb__suggest-option:hover,
.bs-lyb__suggest-option.is-active { background: var(--color-surface-100); }
.bs-lyb__suggest-title {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.bs-lyb__suggest-sub {
  font-family: var(--font-family-body);
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
}

.bs-lyb__error {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  color: var(--color-featured);
  margin: 0;
}

/* --------------------------------------------------------------- Actions -- */
.bs-lyb__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.bs-lyb__actions .bs-btn { min-height: var(--control-h); }

/* The primary commit sits last and to the right; the back/secondary to the left.
   Continue is right-aligned and auto-width on every step, never full-width. */
.bs-lyb__continue,
.bs-lyb__commit { margin-left: auto; }

/* ------------------------------------------------------- Step 2: modules -- */
.bs-lyb__modules {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.bs-lyb__modules .bs-lyb__label {
  display: block;
  margin-bottom: var(--space-3);
}

.bs-lyb__module {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease-out);
}
.bs-lyb__module:hover { background: var(--color-surface-50); }

/* The native checkbox is visually replaced by the big custom box but stays in
   the DOM for keyboard + no-JS. */
.bs-lyb__module input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* The box is subtly larger than its label; fills with the deep footer navy and
   shows a thick white check when on. */
.bs-lyb__module-box {
  flex: none;
  width: 28px;
  height: 28px;
  border: var(--stroke-2) solid var(--color-border-200);
  border-radius: var(--radius-sm);
  background: var(--color-surface-0);
  transition: background var(--motion-fast) var(--motion-ease-out),
    border-color var(--motion-fast) var(--motion-ease-out);
}
.bs-lyb__module input:checked + .bs-lyb__module-box {
  background: var(--color-lyb-module-on) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 9.5 7.5 13.5 14.5 5'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
  border-color: var(--color-lyb-module-on);
}
.bs-lyb__module input:focus-visible + .bs-lyb__module-box {
  outline: none;
  box-shadow: 0 0 0 var(--stroke-accent) var(--color-focus-glow);
}

.bs-lyb__module-label {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

/* ------------------------------------------------------- Step 3: finish -- */
.bs-lyb__finish { gap: var(--space-5); align-items: stretch; }

/* The billing pill: a segmented control, Annual first (default on). */
.bs-lyb__pill {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--color-surface-100);
  border-radius: var(--radius-pill);
}
.bs-lyb__pill-opt {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-2);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  min-height: var(--control-h-sm);
  cursor: pointer;
  transition: background var(--motion-fast) var(--motion-ease-out),
    color var(--motion-fast) var(--motion-ease-out);
}
.bs-lyb__pill-opt.is-on {
  background: var(--color-surface-0);
  color: var(--color-primary);
  box-shadow: var(--shadow-1);
}
.bs-lyb__pill-opt:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--stroke-accent) var(--color-focus-glow);
}

/* The "two months free" note: dark-red, with its height reserved so toggling
   the cycle never shifts the layout. */
.bs-lyb__freemonths {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-discount-ink);
  text-align: center;
  margin: 0;
  min-height: 1.25em;
}
.bs-lyb__freemonths[data-hidden] { visibility: hidden; }

/* The price-anchoring block: hairline rules, big sale price in royal blue with a
   blue "R", and a smaller, top-aligned struck regular in grey-blue. */
.bs-lyb__price {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-5) 0;
  border-top: var(--stroke-hair) solid var(--color-price-rule);
  border-bottom: var(--stroke-hair) solid var(--color-price-rule);
  font-family: var(--font-family-display);
  line-height: 1;
}
.bs-lyb__price-cur {
  font-size: var(--font-size-h2);
  font-weight: var(--weight-bold);
  color: var(--color-price-sale);
  align-self: flex-start;
  margin-top: 0.35em;
}
.bs-lyb__price-sale {
  font-size: var(--font-size-display-l);
  font-weight: var(--weight-display);
  color: var(--color-price-sale);
  letter-spacing: var(--tracking-display);
}
.bs-lyb__price-reg {
  font-size: var(--font-size-h3);
  font-weight: var(--weight-semibold);
  color: var(--color-price-reg);
  align-self: flex-start;
  margin-top: 0.35em;
  margin-left: var(--space-1);
}
.bs-lyb__price-reg s { text-decoration-thickness: var(--stroke-1); }

/* The discount offer, restated at the top. The check is a non-interactive,
   always-on indicator: the first-year 50 percent discount always applies. */
.bs-lyb__discount {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--color-surface-50);
  border: var(--stroke-1) solid var(--color-border-100);
  border-radius: var(--radius-md);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.bs-lyb__discount-box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-discount) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 15 15'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3 8 6 11 12 4'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}

/* ----------------------------------------------------- Step 4: register -- */
.bs-lyb__login {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-link);
  margin-right: auto;
}
.bs-lyb__login:hover { color: var(--color-link-hover); }

/* --------------------------------------------------------- Responsive --- */
@media (max-width: 600px) {
  .bs-lyb-page { padding: var(--space-5) var(--space-4) var(--space-7); }
  .bs-lyb__nav { min-height: 96px; }
  .bs-lyb__nav-back, .bs-lyb__nav-fwd { font-size: var(--font-size-caption); }
}

/* ------------------------------------------------------- Quality floor --- */
@media (prefers-reduced-motion: reduce) {
  .bs-lyb *,
  .bs-lyb-page * { transition: none !important; }
}
