/* assets/css/booking-wizard.css */

/* ── OVERLAY ── */
#bw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#bw-overlay.open {
  display: flex;
}

/* ── CONTAINER ── */
.bw-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Barlow', system-ui, sans-serif;
}

/* ── HEADER ── */
.bw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.bw-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.bw-close:hover { background: #f3f4f6; color: #111; }
.bw-close:focus-visible { outline: 2px solid #007A9B; outline-offset: 2px; }

/* ── STAP INDICATOR ── */
.bw-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.bw-step {
  display: flex;
  align-items: center;
}
.bw-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.bw-step.active .bw-step-dot {
  background: #1B3248;
  border-color: #1B3248;
  color: #fff;
}
.bw-step.done .bw-step-dot {
  background: #007A9B;
  border-color: #007A9B;
  color: #fff;
}
.bw-step-line {
  width: 24px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 2px;
}
.bw-step.done + .bw-step .bw-step-line,
.bw-step.done .bw-step-line { background: #007A9B; }

/* ── BODY ── */
.bw-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ── FOOTER ── */
.bw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.bw-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.bw-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}
.bw-btn-secondary:hover { background: #e5e7eb; }
.bw-btn-primary {
  background: #1B3248;
  color: #fff;
}
.bw-btn-primary:hover { background: #007A9B; }
.bw-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.bw-btn:focus-visible { outline: 2px solid #007A9B; outline-offset: 2px; }
.bw-btn:active { transform: scale(0.98); }

/* ── STAP 1: KALENDER ── */
.bw-step1 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .bw-step1 { grid-template-columns: 1fr; } }
.bw-sloep-img { width: 100%; height: 160px; object-fit: cover; object-position: center 60%; border-radius: 10px; }
@media (max-width: 600px) { .bw-sloep-img { height: 220px; } }
.bw-sloep-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bw-spec-badge {
  background: #f0f9ff;
  color: #007A9B;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #bae6fd;
}

/* Kalender */
.bw-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bw-cal-nav {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  color: #1B3248;
  transition: background 0.15s;
}
.bw-cal-nav:hover { background: #f3f4f6; }
.bw-cal-nav:focus-visible { outline: 2px solid #007A9B; outline-offset: 2px; }
.bw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.bw-cal-dow {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  padding: 4px 0;
  text-transform: uppercase;
}
.bw-cal-day {
  padding: 7px 0;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  color: #1B3248;
  transition: background 0.15s;
  border: 2px solid transparent;
}
.bw-cal-day:hover:not(.bw-cal-day--disabled):not(.bw-cal-day--empty) {
  background: #e0f2fe;
}
.bw-cal-day--disabled {
  color: #d1d5db;
  background: #f9fafb;
  cursor: not-allowed;
  text-decoration: line-through;
}
.bw-cal-day--past {
  color: #d1d5db;
  cursor: not-allowed;
}
.bw-cal-day--selected {
  background: #1B3248 !important;
  color: #fff !important;
  border-color: #1B3248;
}
.bw-cal-day--today { border-color: #007A9B; }
.bw-cal-day--empty { cursor: default; }
.bw-cal-day:focus-visible { outline: 2px solid #007A9B; outline-offset: -2px; }

/* ── STAP 2: DAGDELEN ── */
.bw-dagdeel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 600px) { .bw-dagdeel-grid { grid-template-columns: repeat(4, 1fr); } }
.bw-dagdeel-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.bw-dagdeel-card:hover { border-color: #007A9B; background: #f0f9ff; }
.bw-dagdeel-card:focus-visible { outline: 2px solid #007A9B; outline-offset: 2px; }
.bw-dagdeel-card:active { transform: scale(0.98); }
.bw-dagdeel-card.selected {
  background: #1B3248;
  border-color: #1B3248;
  color: #fff;
}
.bw-dagdeel-card .dd-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.bw-dagdeel-card .dd-tijd { font-size: 12px; opacity: 0.7; margin-bottom: 8px; }
.bw-dagdeel-card .dd-prijs { font-size: 18px; font-weight: 700; }
.bw-dagdeel-card.selected .dd-prijs { color: #bae6fd; }

/* ── STAP 3: EXTRA'S ── */
.bw-arrangement-group { display: flex; gap: 10px; margin-bottom: 20px; }
.bw-arr-btn {
  flex: 1;
  padding: 10px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.bw-arr-btn:hover { border-color: #007A9B; }
.bw-arr-btn:focus-visible { outline: 2px solid #007A9B; outline-offset: 2px; }
.bw-arr-btn:active { transform: scale(0.98); }
.bw-arr-btn.selected { background: #1B3248; border-color: #1B3248; color: #fff; }
.bw-arr-btn .arr-extra { font-size: 11px; font-weight: 400; opacity: 0.75; display: block; margin-top: 2px; }

.bw-addon-list { display: flex; flex-direction: column; gap: 10px; }
.bw-addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}
.bw-addon-label { font-size: 14px; font-weight: 600; color: #1B3248; }
.bw-addon-prijs { font-size: 13px; color: #6b7280; margin-top: 2px; }
.bw-addon-qty { display: flex; align-items: center; gap: 10px; }
.bw-qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #1B3248;
  background: #fff;
  color: #1B3248;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.bw-qty-btn:hover { background: #1B3248; color: #fff; }
.bw-qty-btn:focus-visible { outline: 2px solid #007A9B; outline-offset: 2px; }
.bw-qty-num { font-weight: 700; font-size: 15px; min-width: 16px; text-align: center; }

.bw-subtotaal {
  margin-top: 16px;
  text-align: right;
  font-size: 15px;
  color: #6b7280;
}
.bw-subtotaal strong { color: #1B3248; font-size: 18px; }

/* ── STAP 4: GEGEVENS ── */
.bw-booking-summary {
  background: #f0f9ff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #1B3248;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.bw-booking-summary span { font-weight: 600; }
.bw-field { margin-bottom: 18px; }
.bw-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 6px;
}
.bw-field input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #e5e7eb;
  padding: 8px 0;
  font-size: 15px;
  font-family: 'Barlow', system-ui, sans-serif;
  color: #1B3248;
  outline: none;
  background: transparent;
  transition: border-color 0.2s;
}
.bw-field input:focus { border-color: #007A9B; }

/* ── STAP 5: BETALEN ── */
.bw-overzicht-tabel { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.bw-overzicht-tabel tr td { padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.bw-overzicht-tabel tr td:last-child { text-align: right; font-weight: 600; color: #1B3248; }
.bw-totaal-rij td { font-size: 16px; font-weight: 700 !important; border-top: 2px solid #1B3248; border-bottom: none !important; color: #1B3248 !important; padding-top: 12px !important; }
.bw-betaal-notice {
  background: #fef9c3;
  border-left: 3px solid #ca8a04;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  color: #713f12;
  margin-bottom: 20px;
}
