:root {
  --bk-bg: #f8f6f3;
  --bk-card: #ffffff;
  --bk-text: #1c1917;
  --bk-muted: #78716c;
  --bk-accent: #b45309;
  --bk-accent-hover: #92400e;
  --bk-border: #e7e5e4;
  --bk-radius: 16px;
  --bk-font: "DM Sans", system-ui, sans-serif;
  --bk-display: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bk-font);
  background: var(--bk-bg);
  color: var(--bk-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }

.bk-container {
  width: min(640px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.bk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bk-border);
}
.bk-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.bk-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--bk-display);
  font-size: 1.35rem;
  font-weight: 600;
  min-width: 0;
}
.bk-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bk-border);
  flex-shrink: 0;
}
.bk-header-nav { display: flex; gap: 0.5rem; flex-shrink: 0; }
.bk-link-ghost {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--bk-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.bk-link-ghost:hover { color: var(--bk-accent); background: #fff; }

.bk-main { padding: 1.5rem 0 3rem; }
.bk-hero { text-align: center; margin-bottom: 1.5rem; }
.bk-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bk-accent);
  margin: 0 0 0.5rem;
}
.bk-hero h1 {
  font-family: var(--bk-display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.bk-lead { margin: 0; color: var(--bk-muted); font-size: 1rem; max-width: 36ch; margin-inline: auto; }

.bk-loading { text-align: center; padding: 3rem; color: var(--bk-muted); }
.bk-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bk-border);
  border-top-color: var(--bk-accent);
  border-radius: 50%;
  animation: bk-spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }

.bk-card {
  background: var(--bk-card);
  border: 1px solid var(--bk-border);
  border-radius: var(--bk-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.04);
}
.bk-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.bk-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.bk-month-label { font-weight: 600; font-size: 1.05rem; }
.bk-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bk-border);
  border-radius: 10px;
  background: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--bk-text);
  transition: border-color 0.2s, background 0.2s;
}
.bk-icon-btn:hover { border-color: var(--bk-accent); }

.bk-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bk-muted);
  text-align: center;
}

.bk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bk-day {
  aspect-ratio: 1;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--bk-text);
}
.bk-day:hover:not(:disabled):not(.bk-day-empty) {
  border-color: var(--bk-accent);
  transform: translateY(-1px);
}
.bk-day-empty { background: transparent; cursor: default; }
.bk-day-disabled {
  background: #f5f5f4;
  color: #a8a29e;
  cursor: not-allowed;
  text-decoration: line-through;
}
.bk-day-today { box-shadow: inset 0 0 0 2px var(--bk-accent); }
.bk-day-selected {
  background: var(--bk-accent);
  color: #fff;
  border-color: var(--bk-accent);
}

.bk-hint { font-size: 0.85rem; color: var(--bk-muted); margin: 0.75rem 0 0; }

.bk-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.5rem;
}
.bk-slot {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--bk-border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.bk-slot:hover { border-color: var(--bk-accent); }
.bk-slot-selected {
  background: var(--bk-accent);
  color: #fff;
  border-color: var(--bk-accent);
}

.bk-form-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 520px) {
  .bk-form-grid { grid-template-columns: 1fr 1fr; }
}
.bk-field { display: flex; flex-direction: column; gap: 0.35rem; }
.bk-field span { font-size: 0.85rem; font-weight: 600; color: var(--bk-muted); }
.bk-field input,
.bk-field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bk-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--bk-accent);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}
.bk-field-full { margin-top: 0.85rem; }
.bk-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
.bk-summary {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border-radius: 10px;
  border: 1px solid #fde68a;
  font-size: 0.95rem;
}
.bk-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.bk-btn:active { transform: scale(0.98); }
.bk-btn-primary {
  background: linear-gradient(135deg, #d97706, var(--bk-accent));
  color: #fff;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.3);
}
.bk-btn-primary:hover { background: linear-gradient(135deg, var(--bk-accent), var(--bk-accent-hover)); }
.bk-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.bk-btn-ghost {
  background: #fff;
  color: var(--bk-text);
  border: 1px solid var(--bk-border);
}

.bk-success-card { text-align: center; padding: 2rem 1.25rem; margin-top: 0.5rem; }
.bk-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 64px;
  font-weight: 700;
}
.bk-success-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.bk-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  min-width: min(100%, 280px);
  padding: 1rem 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #1c1917 0%, #44403c 50%, #78716c 100%);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bk-btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.32);
  color: #fff;
}
.bk-btn-home-icon {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.9;
}

.bk-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--bk-muted);
}
.bk-footer a {
  color: inherit;
  text-decoration: none;
}
.bk-footer a:hover { opacity: 0.85; }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
