/* =========================================================================
   Boekingstool — kennismakingsgesprek
   ========================================================================= */

/* Teaser-kaart op de pagina */
.booking-teaser {
  background: linear-gradient(160deg, var(--ink) 0%, #0a1a2c 100%);
  border: 1px solid rgba(194,160,90,0.35);
  border-radius: 8px;
  padding: 34px;
  color: var(--paper);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.booking-teaser::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(194,160,90,0.05) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.booking-teaser > * { position: relative; z-index: 1; }
.bt-head { text-align: center; padding-bottom: 22px; border-bottom: 1px solid rgba(194,160,90,0.25); margin-bottom: 22px; }
.bt-caption { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); }
.bt-list { list-style: none; margin: 0 0 24px; padding: 0; }
.bt-list li { display: flex; align-items: center; gap: 14px; padding: 11px 0; font-size: 1.02rem; color: rgba(246,241,231,0.9); border-bottom: 1px solid rgba(246,241,231,0.08); }
.bt-list li:last-child { border-bottom: 0; }
.bt-list li span { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(194,160,90,0.18); color: var(--brass-lt); font-size: 0.9rem; }
.bt-note { font-size: 0.85rem; color: rgba(246,241,231,0.55); text-align: center; margin: 14px 0 0; }

/* Overlay + modal */
.booking-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,18,30,0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.booking-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.booking-modal {
  position: relative;
  width: min(100%, 940px);
  max-height: min(92vh, 720px);
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
  animation: popIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

.booking-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  font-size: 1.5rem; line-height: 1; color: var(--ink);
  cursor: pointer; transition: 0.18s;
}
.booking-close:hover { background: var(--ink); color: var(--paper); }

/* Aside */
.booking-aside {
  background: linear-gradient(165deg, var(--ink) 0%, #0a1a2c 100%);
  color: var(--paper);
  padding: 36px 30px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.booking-aside::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(194,160,90,0.05) 0 2px, transparent 2px 22px);
}
.booking-aside > * { position: relative; z-index: 1; }
.ba-emblem { margin-bottom: 18px; }
.booking-aside h2 { color: var(--paper); font-size: 1.45rem; margin-bottom: 14px; overflow-wrap: break-word; hyphens: auto; }
.ba-info { font-size: 0.9rem; color: rgba(246,241,231,0.65); line-height: 1.5; margin-bottom: 26px; }
.ba-summary { list-style: none; margin: 0 0 auto; padding: 0; }
.ba-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(246,241,231,0.12); font-size: 0.95rem; }
.ba-summary .k { color: rgba(246,241,231,0.6); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.ba-summary .v { color: var(--paper); font-weight: 500; text-align: right; }
.ba-steps { display: flex; gap: 8px; margin-top: 26px; }
.ba-steps .dot { width: 30px; height: 4px; border-radius: 2px; background: rgba(246,241,231,0.2); transition: 0.25s; }
.ba-steps .dot.active { background: var(--brass); }

/* Main */
.booking-main { padding: 40px 38px 0; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; max-height: min(92vh, 720px); }
.booking-step { display: flex; flex-direction: column; min-height: 0; }
.booking-step[hidden] { display: none; }
.booking-step { animation: stepIn 0.3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* Kalender */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-title { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); text-transform: capitalize; }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  font-size: 1.3rem; line-height: 1; color: var(--ink); cursor: pointer; transition: 0.18s;
}
.cal-nav:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-bottom: 8px; }
.cal-dow span { text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.cal-day {
  aspect-ratio: 1; border: 1px solid transparent; border-radius: 6px;
  background: var(--card); color: var(--text);
  font-size: 0.98rem; cursor: pointer; transition: 0.15s;
  display: grid; place-items: center;
}
.cal-day:hover:not(:disabled) { border-color: var(--brass); background: var(--white); }
.cal-day.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--brass); }
.cal-day:disabled, .cal-day.empty { background: transparent; color: var(--text-mute); opacity: 0.4; cursor: default; }
.cal-day.empty { pointer-events: none; }

/* Slots */
.slots-wrap { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.slots-head { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.slots-head span { color: var(--brass-dim); text-transform: none; letter-spacing: 0; font-size: 13px; }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot {
  padding: 11px 8px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); color: var(--ink); font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: 0.15s; text-align: center;
}
.slot:hover:not(:disabled) { border-color: var(--brass); background: var(--white); }
.slot.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.slot:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.slots-empty { color: var(--text-soft); font-size: 0.95rem; padding: 8px 0; }

/* Acties — vaste balk onderaan, altijd zichtbaar */
.booking-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: sticky; bottom: 0; z-index: 3;
  margin-top: 24px; padding: 16px 0;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
}
.booking-actions .btn { flex-shrink: 0; }
.ba-hint { font-size: 0.9rem; color: var(--text-mute); }

/* Formulier */
.form-title { font-size: 1.5rem; margin-bottom: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 7px; }
.field label span { color: var(--danger); }
.field label .opt { color: var(--text-mute); text-transform: none; letter-spacing: 0; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font-family: var(--sans); font-size: 1rem;
  color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 6px; transition: 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: var(--white); box-shadow: 0 0 0 3px rgba(184,146,74,0.14); }
.field textarea { resize: vertical; }
.form-error { background: rgba(164,64,47,0.08); border: 1px solid rgba(164,64,47,0.3); color: var(--danger); padding: 12px 14px; border-radius: 6px; font-size: 0.92rem; margin-bottom: 8px; }

/* Bevestiging */
.booking-done { text-align: center; padding: 24px 8px; }
.done-check {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 22px;
  background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center;
  animation: popIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.booking-done h3 { font-size: 1.7rem; margin-bottom: 12px; }
.booking-done p { color: var(--text-soft); max-width: 44ch; margin: 0 auto 22px; }
.done-summary {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 20px; margin-bottom: 24px; display: inline-block; text-align: left; min-width: 280px;
}
.done-summary .dl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.done-summary .dv { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 12px; }
.done-summary .dv:last-child { margin-bottom: 0; }
.done-summary .ref { color: var(--brass-dim); font-family: var(--mono); font-size: 0.95rem; }

/* Responsive modal */
@media (max-width: 760px) {
  .booking-modal { grid-template-columns: 1fr; max-height: 94vh; }
  .booking-aside { padding: 26px 24px 22px; }
  .ba-summary { margin-bottom: 18px; }
  .booking-aside .ba-info { margin-bottom: 18px; }
  .booking-main { padding: 28px 22px; }
}
