/*
 * booking.css — full-screen conversational flow voor /boek/*
 * Hergebruikt :root tokens uit style.css (laad style.css ervoor).
 * Prefix: .bk-*
 */

/* ─── Shell & layout ────────────────────────────────────────── */

body.bk-body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
}

body.bk-body .floating-cta { display: none; }

.bk-shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

/* ─── Top bar ───────────────────────────────────────────────── */

.bk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.bk-brand {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  opacity: 0.85;
  text-decoration: none;
}

.bk-meta {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.bk-meta strong {
  color: var(--copper);
  font-weight: 500;
}

.bk-close {
  background: none;
  border: none;
  color: var(--text);
  opacity: 0.55;
  font-size: 22px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.bk-close:hover,
.bk-close:focus-visible {
  opacity: 1;
  outline: none;
}

/* ─── Progress bar ──────────────────────────────────────────── */

.bk-progress {
  height: 2px;
  background: rgba(232, 228, 223, 0.06);
  position: relative;
}

.bk-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--copper);
  width: 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Stage ─────────────────────────────────────────────────── */

.bk-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  overflow-y: auto;
}

.bk-step {
  width: 100%;
  max-width: 640px;
  animation: bk-slidein 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bk-slidein {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bk-step { animation: none; }
  .bk-progress__fill { transition: none; }
}

.bk-step__index {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 16px;
  font-weight: 500;
  opacity: 0.85;
}

.bk-step__question {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.bk-step__sub {
  font-size: 16px;
  opacity: 0.65;
  margin: 0 0 36px;
  line-height: 1.6;
  font-style: italic;
}

/* ─── Choice options ────────────────────────────────────────── */

.bk-options {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.bk-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  background: rgba(232, 228, 223, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
  width: 100%;
}

.bk-option:hover,
.bk-option:focus-visible {
  border-color: var(--copper);
  background: rgba(161, 118, 67, 0.06);
  outline: none;
}

.bk-option[aria-pressed="true"] {
  border-color: var(--copper);
  background: rgba(161, 118, 67, 0.1);
}

.bk-option__letter {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-weight: 500;
}

.bk-option[aria-pressed="true"] .bk-option__letter {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--bg);
  opacity: 1;
}

/* ─── Text input ────────────────────────────────────────────── */

.bk-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.bk-field__input,
.bk-field__textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 22px;
  padding: 14px 0;
  width: 100%;
  transition: border-color 0.2s;
}

.bk-field__textarea {
  font-size: 18px;
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.bk-field__input:focus,
.bk-field__textarea:focus {
  outline: none;
  border-bottom-color: var(--copper);
}

.bk-field__hint {
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-style: italic;
}

.bk-field__error {
  font-size: 13px;
  color: #c47a4f;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}

.bk-field--invalid .bk-field__input,
.bk-field--invalid .bk-field__textarea {
  border-bottom-color: #c47a4f;
}

.bk-field--invalid .bk-field__error {
  opacity: 1;
}

/* ─── Honeypot (invisible to humans) ────────────────────────── */

.bk-trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ─── Bottom navigation ─────────────────────────────────────── */

.bk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.bk-nav__hint {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

.bk-nav__hint kbd {
  font-family: inherit;
  background: rgba(232, 228, 223, 0.06);
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--copper);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.bk-nav__btns {
  display: flex;
  gap: 12px;
}

.bk-btn {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  min-height: 44px;
}

.bk-btn:hover,
.bk-btn:focus-visible {
  border-color: var(--text);
  outline: none;
}

.bk-btn--primary {
  background: var(--copper);
  color: var(--bg);
  border-color: var(--copper);
  font-weight: 500;
}

.bk-btn--primary:hover,
.bk-btn--primary:focus-visible {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
}

.bk-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ─── Success state ─────────────────────────────────────────── */

.bk-success {
  text-align: center;
  max-width: 540px;
  animation: bk-slidein 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bk-success__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--copper);
}

.bk-success__mark svg {
  width: 28px;
  height: 28px;
}

.bk-success__title {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.bk-success__body {
  opacity: 0.75;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.bk-success__back {
  display: inline-block;
  color: var(--copper);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(161, 118, 67, 0.3);
  padding-bottom: 4px;
  margin-top: 8px;
  transition: border-color 0.2s;
}

.bk-success__back:hover {
  border-bottom-color: var(--copper);
}

/* ─── Error state ───────────────────────────────────────────── */

.bk-error {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(196, 122, 79, 0.4);
  background: rgba(196, 122, 79, 0.06);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #d89671;
}

.bk-error a {
  color: var(--copper);
  text-decoration: underline;
}

/* ─── Privacy micro-disclaimer ──────────────────────────────── */

.bk-privacy {
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.5;
  font-style: italic;
}

.bk-privacy a {
  color: var(--copper);
  text-decoration: underline;
  text-decoration-color: rgba(161, 118, 67, 0.4);
}

/* ─── /boek/ hub layout ─────────────────────────────────────── */

.bk-hub {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 80px 32px 100px;
  max-width: 980px;
  margin: 0 auto;
}

.bk-hub__label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 24px;
}

.bk-hub__title {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
}

.bk-hub__lede {
  font-size: 18px;
  opacity: 0.7;
  max-width: 560px;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 64px;
}

.bk-hub__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 800px) {
  .bk-hub__grid { grid-template-columns: 1fr; }
}

.bk-hub__card {
  display: block;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  background: rgba(232, 228, 223, 0.03);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.bk-hub__card:hover,
.bk-hub__card:focus-visible {
  border-color: var(--copper);
  background: rgba(161, 118, 67, 0.05);
  transform: translateY(-2px);
  outline: none;
}

.bk-hub__card-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 14px;
}

.bk-hub__card-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.bk-hub__card-body {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  margin: 0 0 24px;
  font-style: italic;
  flex: 1;
}

.bk-hub__card-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--copper);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Mobile ────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .bk-topbar { padding: 14px 18px; }
  .bk-stage  { padding: 28px 18px; }
  .bk-nav    { padding: 14px 18px; }
  .bk-nav__hint { display: none; }
  .bk-step__question { font-size: 24px; }
  .bk-field__input { font-size: 18px; }
  .bk-success__title { font-size: 28px; }
  .bk-hub    { padding: 48px 20px 80px; }
}

/* iOS Safari: input font-size ≥ 16px to prevent autozoom on focus */
@supports (-webkit-touch-callout: none) {
  .bk-field__input,
  .bk-field__textarea {
    font-size: max(16px, 1rem);
  }
}
