/* Troiana — /call/ scheduler styles. Uses the site's design tokens. */

.bk-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .bk-grid { grid-template-columns: 1fr; } }

.bk-intro h1 { margin: 12px 0 16px; }
.bk-intro > p { color: var(--ink); opacity: 0.72; max-width: 40ch; }

/* Service selector */
.bk-service-list { display: flex; flex-direction: column; gap: 10px; margin: 28px 0; }
.bk-service {
  text-align: left; width: 100%; cursor: pointer;
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.bk-service:hover { border-color: var(--ink); }
.bk-service.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bk-service__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bk-service__top b { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.bk-service__top i { font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); opacity: 0.6; }
.bk-service__desc { font-size: 13.5px; line-height: 1.45; color: var(--ink); opacity: 0.62; }

.bk-meta { border-top: 1px solid var(--hairline); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bk-meta__row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.bk-meta__row span { color: var(--ink); opacity: 0.55; }
.bk-meta__row b { font-weight: 500; }
.bk-meta__row a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Panel */
.bk-panel {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: #fff; padding: clamp(20px, 2.5vw, 30px); min-height: 420px;
}

/* Loading / empty */
.bk-loading, .bk-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 360px; text-align: center; color: var(--ink); opacity: 0.7; }
.bk-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.bk-spinner { width: 26px; height: 26px; border: 2px solid var(--hairline); border-top-color: var(--ink); border-radius: 50%; animation: bk-spin .8s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* Scheduler layout */
.bk-sched { display: grid; grid-template-columns: 1fr 190px; gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 560px) { .bk-sched { grid-template-columns: 1fr; } }

/* Calendar */
.bk-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-cal__title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.bk-cal__nav { width: 34px; height: 34px; border-radius: var(--radius-pill); border: 1px solid var(--hairline); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); display: grid; place-items: center; transition: border-color .15s ease; }
.bk-cal__nav:hover:not([disabled]) { border-color: var(--ink); }
.bk-cal__nav[disabled] { opacity: 0.3; cursor: default; }
.bk-cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.bk-cal__dow span { text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); opacity: 0.4; }
.bk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal__day, .bk-cal__pad { aspect-ratio: 1; display: grid; place-items: center; font-size: 13.5px; border-radius: var(--radius-sm); }
.bk-cal__day.is-off { color: var(--ink); opacity: 0.22; }
.bk-cal__day.is-open { cursor: pointer; border: 1px solid var(--hairline); background: #fff; color: var(--ink); font-weight: 500; transition: border-color .12s ease, background .12s ease, color .12s ease; }
.bk-cal__day.is-open:hover { border-color: var(--ink); }
.bk-cal__day.is-sel { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Slots */
.bk-slots__head { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.3; }
.bk-slots__hint { font-size: 13px; color: var(--ink); opacity: 0.5; }
.bk-slots__list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow-y: auto; }
@media (max-width: 560px) { .bk-slots__list { max-height: none; } }
.bk-slot { width: 100%; padding: 11px; border: 1px solid var(--hairline); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ink); transition: border-color .12s ease, background .12s ease; }
.bk-slot:hover { border-color: var(--ink); background: var(--paper); }

.bk-tznote { margin-top: 18px; font-size: 12px; color: var(--ink); opacity: 0.5; }
.bk-tznote b { font-weight: 500; opacity: 1; }

/* Details */
.bk-back { background: none; border: none; cursor: pointer; color: var(--ink); opacity: 0.65; font-size: 14px; padding: 0; margin-bottom: 16px; }
.bk-back:hover { opacity: 1; }
.bk-summary { border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 20px; background: var(--paper); }
.bk-summary__svc { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); opacity: 0.55; }
.bk-summary__when { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 4px 0 2px; }
.bk-summary__tz { font-size: 12.5px; color: var(--ink); opacity: 0.5; }
.bk-form .bk-confirm { width: 100%; margin-top: 4px; }

/* Confirmation */
.bk-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 20px 8px; min-height: 360px; justify-content: center; }
.bk-done__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.bk-done h2 { margin: 4px 0 0; }
.bk-done__when { font-size: 15px; color: var(--ink); opacity: 0.75; }
.bk-join { margin-top: 6px; }
.bk-done__note { font-size: 13px; color: var(--ink); opacity: 0.6; max-width: 34ch; }
.bk-book-another { margin-top: 6px; background: none; border: none; cursor: pointer; color: var(--ink); opacity: 0.6; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.bk-book-another:hover { opacity: 1; }
