/* Copyright (c) 2026 VGX Global Consulting Private Limited. All rights reserved. */
/* Owner: Agent D. Public pages, served at /assets/public.css. Dark only, in the VGX brand:
   Montserrat for display, Ubuntu for text, the purple to pink gradient for actions and
   selection. Mobile first; works at 360px. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("/assets/fonts/ubuntu-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --purple: #8337c8;
  --purple-300: #b980ff;
  --purple-400: #9f55e8;
  --purple-600: #6a23a8;
  --purple-800: #3c0d68;
  --purple-900: #270648;
  --pink: #d94a7d;
  --grad: linear-gradient(135deg, #8337c8 0%, #d94a7d 100%);
  --grad-soft: linear-gradient(135deg, rgba(131, 55, 200, 0.18) 0%, rgba(217, 74, 125, 0.14) 100%);
  --bg: #09080d;
  --surface: #121118;
  --surface-2: #19171f;
  --field: #0e0d13;
  --line: #24212c;
  --line-strong: #353140;
  --text: #f4f2f8;
  --muted: #a39eaf;
  --faint: #5d5869;
  --error: #ff7d9d;
  --error-bg: rgba(217, 74, 125, 0.12);
  --success: #63d6a4;
  --success-bg: rgba(99, 214, 164, 0.12);
  --warning: #f5b955;
  --warning-bg: rgba(245, 185, 85, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --glow: 0 10px 30px -10px rgba(131, 55, 200, 0.55), 0 6px 24px -12px rgba(217, 74, 125, 0.5);
  --ring: 0 0 0 3px rgba(185, 128, 255, 0.35);
  --display:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --body: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(131, 55, 200, 0.24), transparent 62%),
    radial-gradient(760px 480px at 102% -8%, rgba(217, 74, 125, 0.14), transparent 60%), var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--purple-300);
  text-underline-offset: 3px;
}

a:hover {
  color: #d4b3ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple-300);
  outline-offset: 2px;
}

[hidden] {
  display: none;
}

.icon {
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.plain {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 10px;
}

h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
}

.muted {
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 15px;
}

/* ------------------------------------------------------------------ Page shell */

.site-header {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  border-radius: 8px;
}

.brand:hover {
  color: var(--text);
}

.logo-img {
  display: block;
  height: 40px;
  object-fit: contain;
}

.logo-vgx {
  width: auto;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.w-narrow .site-header,
.w-narrow .container {
  max-width: 600px;
}

.w-medium .site-header,
.w-medium .container {
  max-width: 800px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 8px 16px 32px;
  color: var(--faint);
  font-size: 12px;
}

.site-footer a {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  border-color: var(--purple-400);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 0 0 16px;
}

.card-centered {
  text-align: center;
  padding: 36px 22px 30px;
  overflow: hidden;
}

/* The VGX accent bar along the top edge. */
.card-centered::before,
.stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
}

.card-centered h1 {
  font-size: 24px;
}

.card-actions {
  margin: 22px 0 0;
}

/* Status icon on result and confirmation pages */

.status-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-300);
  background: var(--grad-soft);
  border: 1px solid rgba(185, 128, 255, 0.35);
}

.status-success {
  color: #fff;
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--glow);
}

.status-warning {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: rgba(245, 185, 85, 0.35);
}

.icon-lg {
  stroke-width: 2.2;
}

/* ------------------------------------------------------------------ Forms */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.card-centered .field {
  text-align: left;
}

label {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--field);
  color: var(--text);
  /* No transition on the focus ring: it must show at once. */
  transition: border-color 0.12s;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #4a4558;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--purple-400);
  box-shadow: var(--ring);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

input[aria-invalid="true"]:focus-visible,
textarea[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 125, 157, 0.3);
}

textarea {
  resize: vertical;
}

/* Dropdown questions: the native select with its arrow replaced by the VGX chevron. */
.select-wrap {
  position: relative;
  display: block;
}

.select-wrap select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.select-wrap select:has(option[value=""]:checked) {
  color: var(--muted);
}

.select-wrap option {
  background: var(--surface);
  color: var(--text);
}

.select-wrap .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

select[aria-invalid="true"] {
  border-color: var(--error);
}

select[aria-invalid="true"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 125, 157, 0.3);
}

.field-error {
  color: var(--error);
  font-size: 13px;
  margin: 0;
}

/* Helper line under a field, for example the work email hint. */
.field-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid rgba(255, 125, 157, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Privacy note under the booking form's buttons. */
.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* The away message keeps the admin's line breaks. */
.away-message {
  white-space: pre-line;
}

/* ------------------------------------------------------------------ Buttons */

button {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.12s,
    background 0.12s;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}

.btn-primary:hover:not(:disabled) {
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px -10px rgba(131, 55, 200, 0.7),
    0 8px 28px -12px rgba(217, 74, 125, 0.6);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--purple-400);
  background: rgba(131, 55, 200, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

.btn-danger {
  background: transparent;
  border-color: rgba(255, 125, 157, 0.45);
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error-bg);
}

.btn-block {
  width: 100%;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.token-form {
  margin-top: 22px;
}

.token-form + .token-form {
  margin-top: 10px;
}

/* ------------------------------------------------------------------ Meta and banners */

.meta,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.meta-item .icon {
  color: var(--purple-300);
}

.description {
  color: var(--muted);
  font-size: 14px;
}

.description p {
  margin: 0 0 10px;
}

.description p:last-child {
  margin-bottom: 0;
}

.banner {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 16px;
  background: var(--grad-soft);
  border: 1px solid rgba(185, 128, 255, 0.3);
  font-size: 14px;
}

.banner-error {
  background: var(--error-bg);
  border-color: rgba(255, 125, 157, 0.35);
  color: var(--error);
}

.banner-error a {
  color: inherit;
  font-weight: 600;
}

/* ------------------------------------------------------------------ Index */

.page-head {
  margin: 18px 0 28px;
}

.page-head h1 {
  font-size: 34px;
  display: inline-block;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.opening-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.opening {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.opening:hover {
  border-color: rgba(185, 128, 255, 0.5);
  transform: translateY(-1px);
}

.opening-body {
  flex: 1;
  min-width: 0;
}

.opening h2 {
  margin: 0 0 8px;
  font-size: 19px;
}

.opening h2 a {
  color: var(--text);
  text-decoration: none;
}

/* The whole card is the link target. */
.opening h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.opening h2 a:focus-visible {
  outline: none;
}

.opening h2 a:focus-visible::after {
  outline: 2px solid var(--purple-300);
  outline-offset: 2px;
}

.opening .meta {
  gap: 6px 16px;
  margin-bottom: 8px;
}

.opening-go {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--glow);
}

/* ------------------------------------------------------------------ Booking */

/* Phones: the intro, then the scheduler card with a day strip and the chosen day's times.
   760px and up: the week as seven columns with times lined up by clock time.
   1000px and up: the intro and month calendars in a column on the left. */

.booking {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.intro {
  padding: 4px 2px 0;
}

.host {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-300);
}

.intro h1 {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 16px;
}

.intro .meta-list {
  margin: 0 0 16px;
}

.intro .meta-item {
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 13px;
}

.intro .meta-item .icon {
  width: 15px;
  height: 15px;
}

/* The timezone chip: the native select is invisible and covers the readable label. */
.tz-item {
  position: relative;
  max-width: 100%;
}

.tz-item:hover {
  border-color: var(--purple-400);
}

.tz-item:focus-within {
  outline: 2px solid var(--purple-300);
  outline-offset: 2px;
}

.tz-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tz-name {
  min-width: 0;
}

.intro .tz-select .icon {
  color: var(--muted);
}

.tz-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  opacity: 0;
  cursor: pointer;
}

.stage {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Steps, as on book.vgx.digital. The page sets data-mode on #booking. */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 18px 16px 14px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}

.step + .step::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
}

.step-label {
  display: none;
}

.booking[data-mode="pick"] .step-pick,
.booking[data-mode="form"] .step-form,
.booking[data-mode="done"] .step-done {
  color: var(--text);
}

.booking[data-mode="pick"] .step-pick .step-label,
.booking[data-mode="form"] .step-form .step-label,
.booking[data-mode="done"] .step-done .step-label {
  display: inline;
}

.booking[data-mode="pick"] .step-pick .step-num,
.booking[data-mode="form"] .step-pick .step-num,
.booking[data-mode="form"] .step-form .step-num,
.booking[data-mode="done"] .step .step-num {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 16px -2px rgba(131, 55, 200, 0.7);
}

.stage .banner {
  margin: 14px 16px 0;
}

.picker {
  padding: 16px 16px 18px;
}

.picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 14px;
}

.picker-head h2 {
  flex: 1 0 100%;
  margin: 0;
  font-size: 18px;
}

/* Meeting length: a stepped slider over the offered lengths. The filled part of the track
   (--fill, 0 to 1) and each stop's place (--pos, 0 to 1) are set from booking.ts. The thumb is
   24px, so its centre runs from 12px to 100% - 12px; stops line up with it. */
.durations {
  --thumb: 24px;
  --track-grad: linear-gradient(90deg, #8337c8 0%, #d94a7d 100%);
  margin: 0 0 18px;
  padding: 14px 16px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.dur-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.durations-label {
  color: var(--muted);
  font-size: 13px;
}

.dur-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dur-range {
  --fill: 0;
  --fill-size: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--fill));
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

/* Focus shows on the thumb (a stronger glow) instead of a box around the track. */
.dur-range:focus,
.dur-range:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
}

.dur-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    var(--track-grad) 0 0 / var(--fill-size) 100% no-repeat,
    var(--line-strong);
}

.dur-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
}

.dur-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--track-grad);
}

.dur-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow:
    0 0 0 4px rgba(131, 55, 200, 0.28),
    0 0 18px rgba(217, 74, 125, 0.65);
  transition: box-shadow 0.15s;
}

.dur-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--pink);
  box-shadow:
    0 0 0 4px rgba(131, 55, 200, 0.28),
    0 0 18px rgba(217, 74, 125, 0.65);
}

.dur-range:hover::-webkit-slider-thumb,
.dur-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 6px rgba(131, 55, 200, 0.4),
    0 0 24px rgba(217, 74, 125, 0.8);
}

.dur-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 6px rgba(131, 55, 200, 0.4),
    0 0 24px rgba(217, 74, 125, 0.8);
}

.dur-stops {
  position: relative;
  height: 44px;
}

.dur-stop {
  --pos: 0;
  position: absolute;
  top: 0;
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--pos));
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}

/* A tick under the track for each stop. */
.dur-stop::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.dur-stop:hover {
  color: var(--text);
}

.dur-stop.is-current {
  color: var(--text);
  font-weight: 600;
}

.dur-stop.is-current::before {
  background: var(--purple-300);
  box-shadow: 0 0 8px rgba(185, 128, 255, 0.8);
}

.week-label {
  flex: 1;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.week-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s;
}

.seg-btn:hover:not(:disabled) {
  border-color: var(--purple-400);
  background: rgba(131, 55, 200, 0.1);
}

.seg-btn:disabled {
  opacity: 0.35;
}

.seg-text {
  padding: 0 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.week-nav .seg-btn .icon {
  width: 16px;
  height: 16px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 0 0 16px;
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.day:disabled {
  color: var(--faint);
  cursor: default;
}

.day-name {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.day:disabled .day-name {
  color: var(--faint);
}

.day.is-today .day-name {
  color: var(--pink);
}

.day-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line-strong);
  transition:
    border-color 0.12s,
    background 0.12s;
}

.day:disabled .day-num {
  border-color: transparent;
  font-weight: 400;
}

.day[aria-pressed="true"] .day-num {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 18px -4px rgba(131, 55, 200, 0.8);
}

.day:hover:not(:disabled):not([aria-pressed="true"]) .day-num {
  border-color: var(--purple-400);
}

.slots-day {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

.loading:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--pink);
  border-right-color: var(--purple);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.empty {
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
  text-align: center;
  font-size: 14px;
}

.day-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.day-col:not(.is-selected),
.cell {
  display: none;
}

.slot {
  position: relative;
  min-height: 48px;
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.12s,
    background 0.12s,
    box-shadow 0.12s;
}

.slot:hover {
  border-color: var(--purple-300);
  background: rgba(131, 55, 200, 0.14);
  box-shadow: 0 0 0 3px rgba(131, 55, 200, 0.16);
}

.slot[aria-pressed="true"] {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

.book-form {
  padding: 18px 16px 22px;
}

.book-form h2 {
  margin-bottom: 14px;
}

.chosen-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad) border-box;
  font-size: 14px;
}

.book-form .chosen-box .icon {
  color: var(--purple-300);
  margin-top: 2px;
}

.chosen {
  font-weight: 500;
  margin: 0;
}

.done {
  text-align: center;
  padding: 40px 18px 44px;
}

.done:focus {
  outline: none;
}

.done h2 {
  font-size: 24px;
}

.done #continue {
  margin-top: 18px;
}

/* ------------------------------------------------------------------ Month calendars */

.minical {
  display: none;
}

.month + .month {
  margin-top: 22px;
}

.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.month-title {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}

.month-year {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.month-nav {
  display: inline-flex;
  gap: 4px;
}

.mini-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.mini-btn:hover:not(:disabled) {
  border-color: var(--purple-400);
}

.mini-btn:disabled {
  opacity: 0.35;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  row-gap: 4px;
}

.month-wd {
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--faint);
  padding-bottom: 6px;
}

.mday {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  isolation: isolate;
}

.mday::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  z-index: -1;
}

.mday.is-open {
  color: var(--text);
  font-weight: 500;
}

.mday.is-open::before {
  background: rgba(131, 55, 200, 0.16);
  border: 1px solid rgba(185, 128, 255, 0.28);
}

.mday.in-week {
  background: rgba(255, 255, 255, 0.05);
}

.mday.week-start {
  border-radius: 15px 0 0 15px;
}

.mday.week-end {
  border-radius: 0 15px 15px 0;
}

.mday.week-start.week-end {
  border-radius: 15px;
}

.mday.is-today {
  color: #fff;
  font-weight: 700;
}

.mday.is-today::before {
  background: var(--grad);
  border: 0;
  box-shadow: 0 0 14px -2px rgba(217, 74, 125, 0.7);
}

.mday:hover:not(:disabled)::before {
  outline: 1px solid var(--purple-300);
}

.mday:disabled {
  cursor: default;
}

/* ------------------------------------------------------------------ Results */

.summary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad) border-box;
  text-align: left;
  max-width: 100%;
}

.summary p {
  margin: 0;
}

.summary .meta-item {
  color: var(--text);
  align-items: flex-start;
}

.summary-title strong {
  font-family: var(--display);
  font-weight: 600;
}

.conflicts {
  text-align: left;
  margin: 0 0 8px;
  padding: 12px 16px 12px 34px;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  border: 1px solid rgba(245, 185, 85, 0.3);
  color: var(--text);
}

/* ------------------------------------------------------------------ Privacy and prose */

.prose {
  padding: 30px 22px;
}

.prose h1 {
  font-size: 30px;
  margin-bottom: 4px;
}

.prose h2 {
  margin: 30px 0 8px;
  font-size: 17px;
}

.prose h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--grad);
}

.prose p:not(.muted) {
  color: #d9d5e2;
  line-height: 1.7;
}

/* ------------------------------------------------------------------ Wider screens */

@media (min-width: 560px) {
  h1 {
    font-size: 32px;
  }

  .card {
    padding: 26px;
  }

  .card-centered {
    padding: 44px 40px 38px;
  }

  .prose {
    padding: 44px 52px;
  }

  .step-label {
    display: inline;
  }

  .page-head h1 {
    font-size: 44px;
  }
}

@media (min-width: 760px) {
  .intro h1 {
    font-size: 36px;
  }

  .steps {
    padding: 20px 24px 16px;
  }

  .stage .banner {
    margin: 16px 24px 0;
  }

  .picker {
    padding: 20px 0 0;
  }

  .picker-head {
    flex-wrap: nowrap;
    padding: 0 24px;
    margin-bottom: 18px;
  }

  .picker-head h2 {
    flex: 1;
  }

  .week-label {
    flex: none;
  }

  .seg-btn {
    min-width: 34px;
    height: 34px;
  }

  .seg-text {
    padding: 0 14px;
  }

  .week {
    display: flex;
    flex-direction: column;
  }

  .days {
    margin: 0;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
  }

  .day {
    padding: 4px 0 14px;
    border-radius: 0;
  }

  .day-num,
  .day:disabled .day-num {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-color: transparent;
  }

  /* On wide screens every column shows, so the selected day is not highlighted. */
  .day[aria-pressed="true"] .day-num {
    background: transparent;
    box-shadow: none;
    color: inherit;
  }

  .day.is-today .day-num,
  .day.is-today[aria-pressed="true"] .day-num {
    border-color: transparent;
    background: var(--grad);
    color: #fff;
    box-shadow: 0 0 18px -4px rgba(217, 74, 125, 0.8);
  }

  .slots-day {
    display: none;
  }

  #loading,
  #no-slots {
    margin: 18px 24px 24px;
  }

  .slots:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0 8px;
    min-height: 360px;
  }

  .day-col,
  .day-col:not(.is-selected) {
    display: flex;
    gap: 0;
    padding: 14px 4px 18px;
  }

  .day-col + .day-col {
    border-left: 1px solid rgba(255, 255, 255, 0.04);
  }

  .slot,
  .cell {
    display: block;
    width: 100%;
    height: 30px;
    min-height: 30px;
    margin-bottom: 8px;
  }

  .slot {
    padding: 0 2px;
    font-size: 12.5px;
  }

  .book-form {
    max-width: 560px;
    padding: 24px 28px 30px;
  }

  .done {
    padding: 64px 28px;
  }
}

@media (min-width: 1000px) {
  .booking {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .side {
    gap: 26px;
    padding-top: 6px;
  }

  .intro h1 {
    font-size: 30px;
  }

  .minical {
    display: block;
    padding: 18px 18px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .booking[data-mode="form"] .minical,
  .booking[data-mode="done"] .minical {
    display: none;
  }
}
