/* The public booking page, in Untangle IT's colours: purple leads, orange for
   the one thing to press. Light only — the logo is drawn for light ground. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('../fonts/inter-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('../fonts/inter-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('../fonts/inter-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('../fonts/sora-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('../fonts/sora-700-latin.woff2') format('woff2'); }

:root {
  --purple: #8D63D8; --purple-deep: #6B46C1; --purple-soft: #C3A7F0; --purple-wash: #F1EAFB;
  --orange: #F27A1A; --orange-deep: #D95F00; --orange-wash: #FDE1C7;
  --ink: #0F172A; --ink-2: #475569; --ink-3: #64748B; --line: #E2E8F0; --cloud: #F8FAFC; --white: #FFFFFF;
  --ok: #188038; --err: #D93025;
  --brand: linear-gradient(150deg, #8D63D8 0%, #6B46C1 100%);
  --cta: linear-gradient(135deg, #F7943F 0%, #F27A1A 55%, #D95F00 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 60px -12px rgba(107, 70, 193, .25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--cloud); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(141, 99, 216, .16), transparent 70%),
    radial-gradient(700px 380px at 100% 0%, rgba(242, 122, 26, .10), transparent 70%),
    var(--cloud);
}
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; display: block; flex: none; }

/* brand bar and footer */
.bk-top { display: flex; justify-content: center; padding: 14px 16px; background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(141, 99, 216, .06); position: relative; }
.bk-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--purple), var(--purple-deep) 60%, var(--orange)); opacity: .9; }
.bk-logo img { height: 32px; width: auto; display: block; }
.bk-foot { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px 28px; color: var(--ink-3); font-size: 13px; }
.bk-foot b { color: var(--orange-deep); font-weight: 600; }

.bk { flex: 1; display: grid; place-items: center; padding: 36px 16px 24px; }
.bk-loading { color: var(--ink-3); padding: 24px; }
.bk-card {
  width: min(1080px, 100%); background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 310px minmax(0, 1fr); overflow: hidden; min-height: 560px;
  border: 1px solid rgba(141, 99, 216, .12);
}
.bk-card.form { width: min(880px, 100%); }

/* the brand panel: who and what */
.bk-info {
  position: relative; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; color: #fff;
  background: radial-gradient(420px 260px at 110% 110%, rgba(242, 122, 26, .35), transparent 70%), var(--brand); overflow: hidden;
}
.bk-info::after { /* the mark's swirl, quietly */
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 28px solid rgba(255, 255, 255, .06); pointer-events: none;
}
.bk-company { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.bk-host { font-weight: 600; color: rgba(255, 255, 255, .9); }
.bk-title { font-family: Sora, Inter, sans-serif; font-size: 27px; line-height: 1.22; margin: 0 0 4px; font-weight: 700; color: #fff; }
.bk-meta { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.bk-info .bk-meta { color: rgba(255, 255, 255, .92); }
.bk-meta svg { margin-top: 3px; opacity: .85; }
.bk-meta a { color: var(--purple-deep); word-break: break-all; font-weight: 600; }
.bk-info .bk-when { background: rgba(255, 255, 255, .14); border-radius: 10px; padding: 10px 12px; color: #fff; }
.bk-durs { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-dur { border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 18px; padding: 6px 15px; cursor: pointer; font-weight: 600; font-size: 13px; transition: background .12s; }
.bk-dur:hover { background: rgba(255, 255, 255, .18); }
.bk-dur.on { background: #fff; color: var(--purple-deep); border-color: #fff; }

/* the month and the times */
.bk-pick { display: grid; grid-template-columns: minmax(0, 1fr) 250px; }
.bk-cal { padding: 30px 30px 26px; }
.bk-cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.bk-cal-head h2 { font-family: Sora, Inter, sans-serif; font-size: 19px; margin: 0 auto 0 0; font-weight: 600; }
.bk-nav { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--purple-wash); color: var(--purple-deep); display: grid; place-items: center; cursor: pointer; transition: background .12s; }
.bk-nav:hover:not(:disabled) { background: var(--purple-soft); }
.bk-nav:disabled { background: none; color: var(--ink-3); cursor: default; opacity: .45; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-dow { font-size: 11px; font-weight: 600; color: var(--ink-3); text-align: center; padding: 6px 0; letter-spacing: .06em; }
.bk-day {
  aspect-ratio: 1; width: 100%; max-width: 52px; max-height: 52px; margin: 0 auto; border-radius: 50%; border: 0; background: none;
  color: #A0AABB; font-weight: 500; cursor: default; position: relative;
}
.bk-day.open { background: var(--purple-wash); color: var(--purple-deep); font-weight: 700; cursor: pointer; transition: background .12s, transform .12s; }
.bk-day.open:hover { background: var(--purple-soft); transform: translateY(-1px); }
.bk-day.sel { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -4px rgba(107, 70, 193, .55); }
.bk-day.today::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--orange); }
.bk-zone-box { margin-top: 24px; }
.bk-zone-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.bk-zone-row { position: relative; display: flex; align-items: center; }
.bk-zone-ico { position: absolute; left: 12px; color: var(--purple); pointer-events: none; }
.bk-zone {
  width: 100%; appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink);
  border: 1.5px solid var(--purple-soft); border-radius: 10px; padding: 11px 38px 11px 40px; background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B46C1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  text-overflow: ellipsis;
}
.bk-zone:hover { border-color: var(--purple); }
.bk-zone:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-wash); }
.bk-change { border: 0; background: none; padding: 0; color: #fff; font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.bk-times { padding: 30px 22px; border-left: 1px solid var(--line); max-height: 640px; overflow-y: auto; background: linear-gradient(180deg, rgba(241, 234, 251, .35), transparent 240px); }
.bk-times h3 { font-size: 15px; margin: 6px 0 16px; font-weight: 600; }
.bk-time-list { display: flex; flex-direction: column; gap: 8px; }
.bk-time {
  width: 100%; padding: 12px; border: 1.5px solid var(--purple-soft); border-radius: 10px; background: var(--white);
  color: var(--purple-deep); font-weight: 700; cursor: pointer; text-align: center; transition: border-color .12s, background .12s;
}
.bk-time:hover { border-color: var(--purple); background: var(--purple-wash); }
.bk-time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bk-time.on { background: var(--brand); color: #fff; border-color: transparent; display: grid; place-items: center; cursor: default; }
.bk-none { color: var(--ink-2); }
.bk-btn { border: 0; background: var(--cta); color: #fff; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(217, 95, 0, .6); transition: filter .12s, transform .12s; }
.bk-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.bk-btn:disabled { opacity: .6; cursor: default; transform: none; }
.bk-btn.big { padding: 14px 30px; border-radius: 26px; justify-self: start; margin-top: 8px; font-size: 15px; }
.bk-btn.ghost { background: none; color: var(--purple-deep); border: 1.5px solid var(--purple-soft); box-shadow: none; }
.bk-btn.ghost:hover { border-color: var(--purple); background: var(--purple-wash); filter: none; }

/* details */
.bk-form { padding: 32px; display: grid; gap: 6px; align-content: start; max-width: 540px; }
.bk-form h2 { font-family: Sora, Inter, sans-serif; font-size: 21px; margin: 6px 0 10px; }
.bk-form label { font-weight: 600; font-size: 13px; margin-top: 10px; color: var(--ink-2); }
.bk-form input, .bk-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--white); transition: border-color .12s, box-shadow .12s; }
.bk-form input:focus, .bk-form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-wash); }
.bk-zone:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.bk-form textarea { resize: vertical; }
.bk-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--purple-deep); font-weight: 600; cursor: pointer; padding: 0; justify-self: start; }
.bk-back svg { width: 16px; height: 16px; }
.bk-trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.bk-error { color: var(--err); font-size: 13px; min-height: 1em; margin: 4px 0 0; }
.bk-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); }

/* done, and a closed link */
.bk-done, .bk-gone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 32px 40px; width: min(580px, 100%); min-height: 0; grid-template-columns: none; position: relative; }
.bk-done::before { content: ''; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--purple), var(--purple-deep) 60%, var(--orange)); }
.bk-done h1, .bk-gone h1 { font-family: Sora, Inter, sans-serif; margin: 6px 0 0; font-size: 27px; }
.bk-muted { color: var(--ink-2); margin: 0; }
.bk-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(107, 70, 193, .6); }
.bk-tick svg { width: 30px; height: 30px; stroke-width: 3; }
.bk-ico-big svg { width: 46px; height: 46px; color: var(--purple-soft); }
.bk-summary { border: 1px solid var(--line); border-left: 4px solid var(--purple); border-radius: 12px; padding: 18px 20px; display: grid; gap: 10px; text-align: left; width: 100%; margin: 14px 0; background: var(--cloud); }
.bk-summary .bk-meta { color: var(--ink-2); }
.bk-summary .bk-meta svg { color: var(--purple); opacity: 1; }
.bk-sum-title { font-weight: 700; font-size: 17px; }

@media (max-width: 900px) {
  .bk-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bk-info { padding: 24px 22px; }
  .bk-pick { grid-template-columns: minmax(0, 1fr); }
  .bk-times { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .bk-time-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .bk-time-pair { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .bk-top { padding: 12px 16px; }
  .bk-logo img { height: 28px; }
  .bk { padding: 14px 10px 16px; place-items: start stretch; }
  .bk-card { border-radius: 16px; }
  .bk-cal { padding: 22px 14px; }
  .bk-grid { gap: 2px; }
  .bk-title { font-size: 23px; }
}

/* add to your own calendar */
.bk-adds { width: 100%; margin: 2px 0 14px; }
.bk-adds-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.bk-add-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-add {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: border-color .12s, background .12s, transform .12s;
}
.bk-add:hover { border-color: var(--purple); background: var(--purple-wash); transform: translateY(-1px); }
.bk-add-logo svg { width: 22px; height: 22px; display: block; }
@media (max-width: 420px) { .bk-add-row { grid-template-columns: minmax(0, 1fr); } }
