/* FI booking page. Tokens from the fi-brand-voice skill. Nothing a reader sees is under 16px. */
@font-face { font-family: Clofie; font-weight: 300; font-display: swap; src: url(/fonts/clofie-light-webfont.woff2) format("woff2"); }
@font-face { font-family: Clofie; font-weight: 400; font-display: swap; src: url(/fonts/clofie-regular-webfont.woff2) format("woff2"); }
@font-face { font-family: Clofie; font-weight: 500; font-display: swap; src: url(/fonts/clofie-medium-webfont.woff2) format("woff2"); }
@font-face { font-family: Clofie; font-weight: 800; font-display: swap; src: url(/fonts/clofie-extrabold-webfont.woff2) format("woff2"); }

:root {
  --blue: #0d63cb; --navy: #14294f; --teal: #00b5ad; --gold: #f5d000; --smoke: #f1f1f1; --sky: #eaf2fc;
  --ink: #1a1a1a; --line: #d7deea; --muted: #4a5568; --faint: #6b7385; --red: #b3261e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Clofie, Poppins, "Segoe UI", Arial, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--ink); background: #f7f9fc; }
h1, h2, h3 { font-weight: 800; color: var(--navy); line-height: 1.2; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------ full page */
body.full { min-height: 100vh; background: linear-gradient(rgba(247,249,252,.93), rgba(247,249,252,.93)), url(/img/watermark.jpg) center / cover fixed; }
.band { height: 84px; background: var(--blue); display: flex; align-items: center; justify-content: space-between; padding: 0 56px; }
.band img { height: 44px; width: auto; filter: brightness(0) invert(1); display: block; }
.band-link { color: #fff; text-decoration: none; font-weight: 400; font-size: 17px; }
.practice { background: var(--gold); color: var(--navy); text-align: center; font-weight: 500; padding: 6px 12px; }

.card { max-width: 1120px; margin: 56px auto; background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(20,41,79,.12); display: grid; grid-template-columns: 400px 1fr; overflow: hidden; }
.about { background: var(--navy); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 20px; }
.who { display: flex; flex-direction: column; gap: 16px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.9); }
.who-name { font-weight: 500; font-size: 18px; }
.who-org { opacity: .85; }
.about h1 { color: #fff; font-size: 34px; }
.with { display: none; }
.meta { list-style: none; display: flex; flex-direction: column; gap: 10px; font-weight: 400; }
.meta li { display: flex; align-items: center; gap: 8px; }
.meta svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.desc { border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.contact { margin-top: auto; opacity: .9; }
.contact a { color: #fff; }
.work { padding: 40px 44px; display: flex; flex-direction: column; gap: 20px; min-height: 520px; }
.work h2 { font-size: 24px; }
.work h2:focus { outline: none; }

/* ------------------------------------------------------------ embed (the box on Contact Us) */
body.embed { background: #fff; }
body.embed .band, body.embed .contact, body.embed .who > div { display: none; }
body.embed .card { margin: 0; max-width: 640px; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; display: block; }
body.embed .about { background: #fff; color: var(--ink); padding: 26px 28px 0; gap: 14px; display: grid; grid-template-columns: 64px 1fr; align-items: center; }
body.embed .avatar { width: 64px; height: 64px; border: 0; }
body.embed .about h1 { color: var(--navy); font-size: 26px; }
body.embed .with { display: block; color: var(--muted); font-weight: 400; }
body.embed .meta { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; color: var(--navy); }
body.embed .meta svg { color: var(--blue); }
body.embed .desc { grid-column: 1 / -1; border-top: 0; border-left: 4px solid var(--teal); padding: 2px 0 2px 14px; }
body.embed .work { padding: 16px 28px 26px; min-height: 0; gap: 16px; }
body.embed .work h2 { font-size: 20px; }
/* Past the first step the description has done its work; the box stays short. */
body.embed:not(.step-pick) .desc, body.embed:not(.step-pick) .meta { display: none; }
body.embed:not(.step-pick) .about { padding-bottom: 4px; }

/* ------------------------------------------------------------ step 1: pick a time */
.zone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--navy); }
.zone svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.zone select { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; font-weight: 400; max-width: 100%; }
.pick { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 36px; }
body.embed .pick { grid-template-columns: 290px 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.cal-head b { font-weight: 800; color: var(--navy); font-size: 18px; }
.nav { display: flex; gap: 6px; }
.nav button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); border: 1.5px solid var(--line); background: #fff; }
.nav button:disabled { color: #c3c9d4; cursor: default; }
.nav svg { width: 18px; height: 18px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dow { color: var(--muted); font-weight: 400; padding-bottom: 4px; }
.day { height: 40px; width: 40px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--faint); border: 0; background: none; }
.day.out { color: #c3c9d4; }
button.day { background: var(--sky); color: var(--blue); font-weight: 500; }
button.day:hover { background: #d6e6fa; }
button.day[aria-pressed="true"] { background: var(--blue); color: #fff; }
.week { display: none; }
.times h3 { font-size: 18px; margin-bottom: 10px; }
.slot { display: flex; gap: 8px; margin-bottom: 10px; }
.slot button { flex: 1; border-radius: 10px; padding: 11px 0; text-align: center; font-weight: 500; }
.slot .t { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; }
.slot .t:hover { background: var(--sky); }
.slot .t[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot .go { background: var(--blue); color: #fff; border: 1.5px solid var(--blue); }
.none { color: var(--muted); }

/* ------------------------------------------------------------ step 2: details */
.when { display: flex; gap: 10px; align-items: flex-start; background: var(--sky); border-radius: 12px; padding: 12px 14px; color: var(--navy); }
.when svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.when b { font-weight: 500; display: block; }
.linkish { margin-left: auto; color: var(--blue); font-weight: 400; background: none; border: 0; text-decoration: underline; padding: 0; }
form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { display: block; font-weight: 400; color: var(--navy); margin-bottom: 6px; }
label i, legend i { font-style: normal; color: var(--muted); font-weight: 300; }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: 3px solid var(--sky); outline-offset: 0; }
textarea { min-height: 84px; resize: vertical; }
fieldset { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 400; color: var(--navy); background: #fff; }
.chips input:checked + span { border-color: var(--blue); background: var(--sky); color: var(--blue); font-weight: 500; }
.chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal { color: var(--muted); }
.btn { display: block; width: 100%; background: var(--blue); color: #fff; border: 1.5px solid var(--blue); border-radius: 12px; padding: 14px; text-align: center; font-weight: 500; font-size: 17px; text-decoration: none; }
.btn:hover { background: #0b55ae; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: var(--sky); }
.btn.danger { background: #fff; color: var(--red); border-color: var(--red); }
.error { color: var(--red); font-weight: 400; background: #fdecea; border-radius: 10px; padding: 10px 14px; }

/* ------------------------------------------------------------ step 3 and the private-link screens */
.done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 6px 6px; }
.tick { width: 72px; height: 72px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: #fff; }
.tick svg { width: 40px; height: 40px; stroke-width: 2.4; }
.tick.grey { background: var(--faint); }
.done h2 { font-size: 28px; }
.big { font-weight: 500; color: var(--navy); font-size: 18px; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 420px; width: 100%; margin: 0 auto; }
.note { color: var(--muted); text-align: center; }
.joinlink { word-break: break-all; }
.loading { color: var(--muted); }

/* ------------------------------------------------------------ narrow: phones, and a narrow embed */
@media (max-width: 900px) {
  body.full .band { height: 64px; padding: 0 20px; }
  body.full .band img { height: 34px; }
  body.full .band-link { display: none; }
  body.full .card { grid-template-columns: 1fr; margin: 0; border-radius: 0; box-shadow: none; min-height: calc(100vh - 64px); align-content: start; }
  body.full .about { padding: 24px 22px; gap: 14px; }
  body.full .who { flex-direction: row; align-items: center; }
  body.full .avatar { width: 56px; height: 56px; border-width: 3px; }
  body.full .about h1 { font-size: 26px; }
  body.full .meta { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  body.full .contact { display: none; }
  body.full .work { padding: 22px; min-height: 0; }
  body.full:not(.step-pick) .desc, body.full:not(.step-pick) .meta { display: none; }
}
@media (max-width: 600px) {
  .pick, body.embed .pick { grid-template-columns: 1fr; gap: 16px; }
  .month { display: none; }
  .week { display: block; }
  .week .strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .wd { text-align: center; border-radius: 12px; padding: 6px 0; color: var(--faint); border: 0; background: none; }
  .wd small { display: block; font-size: 16px; }
  .wd b { font-size: 17px; font-weight: 500; }
  button.wd { background: var(--sky); color: var(--blue); }
  button.wd[aria-pressed="true"] { background: var(--blue); color: #fff; }
  .two { grid-template-columns: 1fr; }
  body.embed .about { padding: 20px 18px 0; grid-template-columns: 52px 1fr; }
  body.embed .avatar { width: 52px; height: 52px; }
  body.embed .about h1 { font-size: 22px; }
  body.embed .work { padding: 14px 18px 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .slot button, .day, .btn { transition: background-color .12s ease; }
}
