/* Boekings- en wijzigpagina (booksession.html, modifysession.html).
   Zelfde huisstijl als de reading-pagina's: paars/goud, Cormorant + DM Sans. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:      #7b4fa6;
  --purple-dark: #4a2d8f;
  --purple-mid:  #5a2d82;
  --purple-deep: #3d1f5a;
  --gold:        #b8943f;
  --gold-light:  #d4ad5a;
  --gold-warm:   #c8a440;
  --gold-pale:   #e8d5a0;
  --muted:       rgba(74,45,143,0.65);
  --line:        rgba(212,173,90,0.45);
  --error:       #a3263b;
}

html, body { min-height: 100%; font-family: 'DM Sans', sans-serif; color: var(--purple-deep); overflow-x: hidden; }
body { background: #f7f2fa; }
.bg-flower { position: fixed; inset: 0; z-index: 0; background: url('/images/achtergrond1.jpg') center / cover no-repeat; pointer-events: none; }

/* ── navigatie ── */
.back-link {
  position: fixed; top: 22px; left: 22px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(8px);
  border: 1px solid var(--gold-pale); color: var(--purple-dark); text-decoration: none;
  padding: 8px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 500;
  box-shadow: 0 2px 14px rgba(184,148,63,0.18);
}
.lang-switch {
  position: fixed; top: 22px; right: 22px; z-index: 1000; display: flex; gap: 6px;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(8px); padding: 5px;
  border-radius: 30px; box-shadow: 0 2px 14px rgba(184,148,63,0.18);
}
.lang-switch button {
  display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent;
  color: var(--purple); font-family: inherit; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase; padding: 6px 12px; border-radius: 22px; cursor: pointer;
}
.lang-switch button.is-active { background: var(--purple); color: #fff; }
.lang-switch button svg { width: 20px; height: 14px; display: block; border-radius: 2px; }

/* ── kaart ── */
.booking-page { position: relative; z-index: 1; min-height: 100vh; display: flex; justify-content: center; padding: 96px 16px 64px; }
.booking-card {
  width: 100%; max-width: 620px; background: rgba(255,255,255,0.9);
  border: 1.5px solid rgba(212,173,90,0.28); border-radius: 28px;
  padding: 48px 44px 44px; box-shadow: 0 20px 80px rgba(90,45,130,0.14);
}
.eyebrow { font-size: 0.76rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 18px; }
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2rem, 5vw, 2.6rem);
  font-style: italic; font-weight: 400; color: var(--purple-dark); line-height: 1.15; text-align: center; margin-bottom: 10px;
}
.lead { text-align: center; color: var(--purple-mid); font-style: italic; line-height: 1.7; margin-bottom: 8px; }
.price-display { text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 600; color: var(--gold-warm); margin: 6px 0 2px; }
.price-vat { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; font-weight: 400; opacity: 0.75; margin-left: 0.35em; vertical-align: middle; }
/* ── kortingscode ── */
.promo-box { max-width: 420px; margin: 14px auto 0; }
.promo-row { display: flex; gap: 10px; }
.promo-row input {
  flex: 1; min-width: 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 50px;
  font: inherit; font-size: 0.95rem; color: var(--purple-deep); background: #fff; outline: none;
  text-transform: uppercase;
}
.promo-row input::placeholder { text-transform: none; }
.promo-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,173,90,0.18); }
.promo-row button {
  flex: none; padding: 0 22px; border-radius: 50px; cursor: pointer; border: 1.5px solid #cbb3e8;
  background: transparent; color: var(--purple); font: inherit; font-size: 0.9rem; letter-spacing: 0.03em;
}
.promo-row button:hover:not([disabled]) { background: #f6efff; }
.promo-row button[disabled] { opacity: 0.5; cursor: default; }
.promo-msg { display: none; margin-top: 8px; font-size: 0.88rem; line-height: 1.5; text-align: center; }
.promo-msg.show { display: block; }
.promo-msg.ok { color: #1d6b38; }
.promo-msg.err { color: var(--error); }
.price-was { text-decoration: line-through; opacity: 0.55; font-size: 0.7em; margin-right: 0.35em; }
@media (max-width: 520px) {
  .promo-row { flex-direction: column; }
  .promo-row button { padding: 12px 22px; }
}

.divider { display: flex; align-items: center; gap: 12px; margin: 26px auto; max-width: 180px; color: var(--gold); font-size: 12px; }
.divider span.l { flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold), transparent); }

/* ── secties ── */
.bk-section { margin-top: 30px; }
.bk-step {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--purple-dark);
}
.bk-step .n {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600; transform: translateY(-2px);
}
.bk-hint { font-size: 0.85rem; color: var(--muted); font-style: italic; line-height: 1.6; margin-top: 8px; }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.bk-field label, .bk-label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.4px; color: var(--purple-mid); }
.bk-field input, .bk-field textarea, .bk-field select, .bk-combo-input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--purple-deep);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.bk-field textarea { min-height: 110px; resize: vertical; }
.bk-field input:focus, .bk-field textarea:focus, .bk-field select:focus, .bk-combo-input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,173,90,0.18);
}
.bk-field.is-invalid input, .bk-field.is-invalid textarea, .bk-field.is-invalid select { border-color: var(--error); }

/* ── zoekbare keuzelijst ── */
.bk-combo { position: relative; }
.bk-combo-input { padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.bk-combo-list {
  display: none; position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 240px; overflow-y: auto; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(61,31,90,0.16); padding: 4px;
}
.bk-combo.is-open .bk-combo-list { display: block; }
.bk-combo-list li { padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.92rem; }
.bk-combo-list li:hover, .bk-combo-list li.is-active { background: rgba(212,173,90,0.16); }
.bk-combo-list li.is-current { font-weight: 600; color: var(--purple-dark); }
.bk-combo-list li.bk-combo-empty { color: var(--muted); cursor: default; font-style: italic; }

/* ── personen ── */
.bk-persons { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-person { position: relative; }
.bk-person input { position: absolute; opacity: 0; pointer-events: none; }
.bk-person span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 50px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; color: var(--purple-mid);
  transition: all .15s;
}
.bk-person span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--gold); background: #fff; }
.bk-person input:checked + span { background: rgba(123,79,166,0.08); border-color: var(--purple); color: var(--purple-dark); }
.bk-person input:checked + span::before { background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' stroke='white' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--purple); }
.bk-person input:focus-visible + span { box-shadow: 0 0 0 3px rgba(212,173,90,0.3); }

/* ── kalender ── */
.bk-slots { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,255,255,0.7); }
.bk-slot-msg { text-align: center; color: var(--muted); font-style: italic; padding: 14px 6px; line-height: 1.6; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bk-cal-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--purple-dark); text-transform: capitalize; }
.bk-cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--purple); font-size: 1.2rem; cursor: pointer; }
.bk-cal-nav:disabled { opacity: 0.3; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-wd { text-align: center; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); padding: 4px 0; }
.bk-cal-day {
  height: 40px; max-width: 48px; width: 100%; justify-self: center; border: none; border-radius: 50%; background: transparent; font: inherit; font-size: 0.9rem;
  color: rgba(61,31,90,0.28); cursor: default;
}
.bk-cal-day.is-open { color: var(--purple-dark); background: rgba(212,173,90,0.16); font-weight: 600; cursor: pointer; }
.bk-cal-day.is-open:hover { background: rgba(212,173,90,0.32); }
.bk-cal-day.is-selected { background: var(--purple) !important; color: #fff; }
.bk-times { margin-top: 14px; border-top: 1px solid rgba(212,173,90,0.3); padding-top: 12px; }
.bk-times-day { text-align: center; font-weight: 500; color: var(--purple-mid); margin-bottom: 10px; text-transform: capitalize; }
.bk-times-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; padding: 2px; }
.bk-time {
  border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 0; font: inherit; font-size: 0.9rem;
  color: var(--purple-dark); cursor: pointer; transition: all .12s;
}
.bk-time:hover { border-color: var(--gold); background: rgba(212,173,90,0.1); }
.bk-time.is-selected { background: var(--purple); border-color: var(--purple); color: #fff; }
.bk-chosen { margin-top: 12px; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; color: var(--purple-dark); min-height: 1.4em; }

/* ── knoppen en meldingen ── */
.btn-book {
  display: block; width: 100%; margin-top: 26px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: #fff;
  padding: 17px 32px; border-radius: 50px; font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 0.4px;
  box-shadow: 0 4px 24px rgba(184,148,63,0.38); transition: transform .15s, box-shadow .15s; text-align: center; text-decoration: none;
}
.btn-book:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(184,148,63,0.48); }
.btn-book:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-secondary {
  display: inline-block; border: 1.5px solid var(--purple); background: #fff; color: var(--purple-dark);
  padding: 12px 26px; border-radius: 50px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
}
.btn-secondary.is-danger { border-color: var(--error); color: var(--error); }
.bk-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.bk-error { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(163,38,59,0.07); color: var(--error); font-size: 0.9rem; line-height: 1.5; display: none; }
.bk-error.is-shown { display: block; }
.bk-note { margin-top: 18px; text-align: center; font-size: 0.86rem; color: var(--muted); font-style: italic; line-height: 1.7; }
.bk-notice { margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: rgba(212,173,90,0.14); color: var(--purple-mid); text-align: center; font-size: 0.9rem; line-height: 1.6; }
.bk-done { text-align: center; }
.bk-done .when { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.45rem; color: var(--purple-dark); margin: 14px 0 4px; }
.bk-done .what { font-weight: 500; color: var(--purple-mid); margin-bottom: 14px; }
.bk-done p { line-height: 1.7; color: var(--purple-mid); }
.bk-hidden { display: none !important; }
.bk-confirm { margin-top: 16px; padding: 16px; border: 1px solid rgba(163,38,59,0.3); border-radius: 14px; text-align: center; }

@media (max-width: 560px) {
  .booking-card { padding: 34px 20px 30px; border-radius: 22px; }
  .bk-row { grid-template-columns: 1fr; gap: 0; }
  .lang-switch { top: 14px; right: 14px; }
  .back-link { top: 14px; left: 14px; }
  .booking-page { padding-top: 78px; }
}
