/* The signup (start.html) in the site's look. wizard.css lays the screens out from a few tokens
   (--accent, --border, --surface, …); this file sets those tokens to the site's colours, adds the base,
   the header and the footer, and restyles every part of the wizard: Prata titles over Jost, navy for
   what acts, blush for salons, lilac for shops. It changes looks only — wizard.js keeps its ids and classes. */

:root {
  --bg: #fbfaff;
  --surface: #ffffff;
  --surface-2: #f4f2fc;
  --text: #0e1450;
  --heading: #010c80;
  --muted: #575d87;
  --border: #e4e2f1;
  --line-2: #d3d0e6;
  --accent: #010c80;
  --accent-2: #ff6cab;
  --navy-2: #00085a;
  --pink: #ff6cab;
  --pink-ink: #c8287a;
  --violet: #7366ff;
  --violet-ink: #4b3fd6;
  --blush: #ffe4ef;
  --blush-2: #ffcfe3;
  --lilac: #e9e6ff;
  --lilac-2: #d6d0ff;
  --ok: #12805c;
  --grad: linear-gradient(90deg, #ff6cab, #7366ff);
  --shadow-sm: none;
  --shadow-md: 0 16px 40px -24px rgba(14, 20, 80, 0.45);
  --glow-accent: 0 0 0 4px rgba(115, 102, 255, 0.18);
  --display: "Prata", Georgia, "Times New Roman", serif;
  --body: "Jost", "Century Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.wz-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(760px 520px at -8% -6%, rgba(255, 207, 227, 0.6), transparent 62%),
    radial-gradient(820px 560px at 108% 18%, rgba(214, 208, 255, 0.6), transparent 62%),
    var(--bg);
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wz-ico { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- header */
.sg-wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 28px; }
.sg-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.sg-header .sg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.sg-logo img { width: auto; height: 40px; }
.sg-right { display: flex; align-items: center; gap: 12px; }
.sg-back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--heading); font-size: 15.5px; font-weight: 500; transition: background 0.2s; }
.sg-back:hover { background: var(--surface-2); }
.sg-back .wz-ico { width: 18px; height: 18px; transform: scaleX(-1); }
.sg-lang { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.sg-lang button { min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; }
.sg-lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- footer */
.sg-footer { margin-top: auto; background: var(--surface); border-top: 1px solid var(--border); }
.sg-footer .sg-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 22px; font-size: 14.5px; color: var(--muted); }
.sg-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sg-footer a:hover { color: var(--heading); }

/* ---------------------------------------------------------------- the wizard: a white card on the page */
.wz { width: min(760px, 100% - 48px); margin: 44px auto 64px; padding: 42px 46px 34px; border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 50px 90px -60px rgba(14, 20, 80, 0.5); }
.wz-screen { gap: 18px; }
.wz-title { margin: 0; font: 400 clamp(30px, 4.4vw, 42px)/1.1 var(--display); letter-spacing: -0.01em; color: var(--heading); text-wrap: balance; }
.wz-subtitle { font: 400 22px/1.25 var(--display); color: var(--heading); }
.wz-lead { font-size: 17.5px; color: var(--muted); }
.wz-help { font-size: 15px; }

/* progress: the step in small capitals over a gradient line */
.wz-progress { gap: 14px; margin-bottom: 26px; }
.wz-progress-text { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink-ink); }
.wz-progress-bar { height: 6px; border: 0; background: var(--surface-2); }
.wz-progress-bar > span { background: var(--grad); }

/* fields */
.wz-label { font-size: 15.5px; font-weight: 500; color: var(--heading); }
.wz-opt { font-size: 13.5px; }
.wz-input { min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); color: var(--text); box-shadow: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
/* 4.8:1 on the field's #fbfaff (5.0:1 on white when focused): many fields show their name only here */
.wz-input::placeholder { color: #686d92; opacity: 1; }
.wz-input:focus { border-color: var(--violet); background: var(--surface); box-shadow: var(--glow-accent); }
select.wz-input { cursor: pointer; }
.is-invalid > .wz-input, .is-invalid .wz-row > .wz-input, .is-invalid .wz-svc-fields .wz-input, .is-invalid.wz-svc .wz-input, .is-invalid.wz-prod .wz-input, .is-invalid.wz-hours .wz-input, .wz-perday-row.is-invalid .wz-input { border-color: #d63a5c; }
.wz-err { color: #b8264a; }
.wz-note { border-radius: 12px; background: #f3f1ff; color: var(--violet-ink); }

/* cards and chips */
.wz-card { gap: 4px; padding: 16px 18px; border-radius: 20px; border: 1.5px solid var(--border); box-shadow: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s; }
.wz-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.wz-card.is-on { border-color: var(--violet); background: #f7f6ff; box-shadow: 0 0 0 3px rgba(115, 102, 255, 0.14); }
.wz-card-title { font-weight: 600; color: var(--heading); }
.wz-card-desc { font-size: 14.5px; }
.wz-cards-big .wz-card { padding: 20px 22px; }
.wz-cards-big .wz-card-title { font: 400 23px/1.2 var(--display); }
.wz-badge { background: var(--lilac); color: var(--violet-ink); }
.wz-chip { min-height: 44px; border: 1.5px solid var(--line-2); box-shadow: none; font-weight: 500; transition: border-color 0.2s, background 0.2s; }
.wz-chip:hover { border-color: var(--heading); }
.wz-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* the first screen: the three kinds, each with its colour and icon */
.wz-cards.wz-kinds { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 6px; }
.wz-kind { grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 24px; }
.wz-kind-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; }
.wz-kind-ic .wz-ico { width: 26px; height: 26px; }
.wz-kind-salon .wz-kind-ic { background: var(--blush); color: var(--pink-ink); }
.wz-kind-webshop .wz-kind-ic { background: var(--lilac); color: var(--violet-ink); }
.wz-kind-custom .wz-kind-ic { background: var(--grad); color: #fff; }
.wz-kind-tx { display: grid; gap: 4px; min-width: 0; }
.wz-kind .wz-card-title { gap: 10px; font: 400 24px/1.15 var(--display); }
.wz-kind-tag { padding: 5px 9px; border-radius: 999px; background: var(--blush); color: var(--pink-ink); font: 600 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.wz-kind-webshop .wz-kind-tag { background: var(--lilac); color: var(--violet-ink); }
.wz-kind-custom .wz-kind-tag { background: var(--surface-2); color: var(--heading); }
.wz-kind-go { color: var(--muted); transition: transform 0.2s, color 0.2s; }
.wz-kind:hover .wz-kind-go { transform: translateX(3px); color: var(--heading); }
.wz-kind.is-suggested { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 108, 171, 0.16); }
.wz-kind-webshop.is-suggested { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(115, 102, 255, 0.16); }
.wz-kind-custom.is-suggested { border-color: var(--heading); box-shadow: 0 0 0 3px rgba(1, 12, 128, 0.12); }
.wz-perks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.wz-perks li { display: inline-flex; align-items: center; gap: 8px; }
.wz-perks .wz-ico { width: 18px; height: 18px; color: var(--ok); }

/* lists, rows and small buttons */
.wz-icon-btn { border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); }
.wz-icon-btn:hover { color: #b8264a; border-color: #f2c4d1; }
.wz-add { min-height: 50px; border-radius: 14px; border: 1.5px dashed var(--lilac-2); background: #faf9ff; color: var(--violet-ink); transition: border-color 0.2s, background 0.2s; }
.wz-add:hover { border-color: var(--violet); background: #f4f2ff; }
.wz-link { color: var(--violet-ink); text-underline-offset: 3px; }
.wz-link.is-danger { color: #b8264a; }
.wz-reset { margin-top: 20px; }

/* services, people, hours */
.wz-selected { color: var(--violet-ink); }
.wz-group { border: 1.5px solid var(--border); border-radius: 18px; }
.wz-group > summary { color: var(--heading); }
.wz-count { background: var(--violet); }
.wz-svc-main input[type="checkbox"] { accent-color: var(--violet); }
.wz-emp { border: 1.5px solid var(--border); border-radius: 18px; }
.wz-day { border: 1.5px solid var(--line-2); border-radius: 12px; font-weight: 500; transition: background 0.2s, border-color 0.2s; }
.wz-day.is-on { background: var(--accent); border-color: var(--accent); }
.wz-extras, .wz-perday { border-radius: 16px; border-color: var(--border); background: var(--surface-2); }
.wz-file-btn { border: 1.5px dashed var(--violet); border-radius: 14px; color: var(--violet-ink); }
.wz-logo-preview img { border-radius: 14px; }

/* toggles (channels, "the same for everyone") */
.wz-toggle { min-height: 62px; border: 1.5px solid var(--border); border-radius: 18px; box-shadow: none; transition: border-color 0.2s, background 0.2s; }
.wz-toggle:hover { border-color: var(--line-2); }
.wz-toggle.is-on { border-color: var(--lilac-2); background: #f8f7ff; }
.wz-toggle-label { font-weight: 500; color: var(--heading); }
.wz-switch { background: #d6d8e8; }
.wz-toggle.is-on .wz-switch { background: var(--violet); }
.wz-ch-badge { border-radius: 12px; }

/* summary, totals, consent, messages */
.wz-base, .wz-total { border: 1.5px solid var(--border); border-radius: 18px; }
.wz-summary > div { border-bottom-color: var(--border); }
.wz-consent a { color: var(--violet-ink); }
.wz-banner { border-radius: 16px; }

/* buttons: the site's pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--heading); font: 500 16.5px/1.2 var(--body); cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.btn:hover { border-color: var(--heading); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); transform: translateY(-1px); }
.wz-actions .btn { min-height: 52px; border-radius: 999px; font-size: 16.5px; font-weight: 500; }
.wz-btn-next[disabled] { opacity: 0.7; cursor: wait; transform: none; }
/* busy: aria-disabled rather than disabled, so the button keeps the keyboard focus */
.wz-btn-next[aria-disabled="true"] { opacity: 0.7; cursor: wait; transform: none; }
.wz-btn-next[aria-disabled="true"]:hover { background: var(--accent); border-color: var(--accent); }

/* the "not a robot" check: its own box under the form, kept through every redraw */
.wz-ts { margin-top: 16px; }
.wz-ts[hidden] { display: none; }
.wz-ts-msg:empty { display: none; }
.wz-ts-note { margin: 0; font-size: 15px; color: #b8264a; }
.wz-ts.is-failed .wz-turnstile { min-height: 0; }

/* a screen's heading takes the focus when the screen changes (tabindex=-1): no ring for that */
.wz-title[tabindex="-1"]:focus { outline: none; }

/* said to screen readers only (the status region) */
.wz-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the action bar: fixed at the bottom on a phone, under the form in the card on a wider screen */
.wz-actions { background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border); box-shadow: 0 -12px 30px -20px rgba(14, 20, 80, 0.4); }
@media (min-width: 760px) {
  body.wz-page { padding-bottom: 0; }
  .wz-actions { position: static; margin-top: 30px; padding: 24px 0 0; background: none; border-top: 1px solid var(--border); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wz-actions-inner { width: 100%; grid-template-columns: auto minmax(0, 260px); justify-content: space-between; }
  .wz-reset { text-align: left; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 759px) {
  .wz { width: 100%; margin: 0; padding: 26px 16px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .sg-wrap { padding-inline: 16px; }
  .sg-logo img { height: 34px; }
  .sg-back { width: 40px; padding: 0; justify-content: center; border: 1px solid var(--border); background: var(--surface); }
  .sg-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sg-footer .sg-wrap { padding-bottom: 26px; }
  .wz-kind { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 14px; padding: 16px; border-radius: 22px; }
  .wz-kind-ic { width: 50px; height: 50px; border-radius: 16px; }
  .wz-kind .wz-card-title { font-size: 21px; }
  .wz-kind-go .wz-ico { width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  /* the narrowest phones give the words the room the arrow took */
  .wz-kind { grid-template-columns: 46px minmax(0, 1fr); }
  .wz-kind-ic { width: 46px; height: 46px; }
  .wz-kind-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* the room under the page for the fixed action bar, only on the screens that have one */
body.wz-page:not(:has(.wz-actions)) { padding-bottom: 0; }
