/* Drakaki Booking — uses the theme's colour tokens when available. */
.dbk {
  --dbk-accent: var(--green, #6C5486);
  --dbk-accent-dark: var(--green-dark, #56426D);
  --dbk-soft: var(--mint, #E7DFEF);
  --dbk-softer: var(--mist, #EDE6F3);
  --dbk-ink: var(--ink, #2A2233);
  --dbk-muted: var(--muted, #665C71);
  --dbk-line: var(--stone, #E6DEEC);
  --dbk-paper: #FFFFFF;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  background: var(--dbk-paper);
  border: 1px solid var(--dbk-line);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(42, 34, 51, 0.08);
  overflow: hidden;
  color: var(--dbk-ink);
  font-family: inherit;
  min-height: 520px;
}
.dbk *, .dbk *::before, .dbk *::after { box-sizing: border-box; }
.dbk button { font-family: inherit; }
.dbk [hidden] { display: none !important; }

/* Left: event info */
.dbk-info { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border-right: 1px solid var(--dbk-line); }
.dbk-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.dbk-host { margin: 0; font-size: 14px; font-weight: 600; color: var(--dbk-muted); }
.dbk-title { margin: 0 0 6px; font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
.dbk-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dbk-meta li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--dbk-muted); font-weight: 500; }
.dbk-meta .dbk-ico { flex-shrink: 0; margin-top: 1px; color: var(--dbk-muted); }
.dbk-meta .dbk-picked, .dbk-meta .dbk-picked-tz { color: var(--dbk-accent); }
.dbk-meta .dbk-picked .dbk-ico, .dbk-meta .dbk-picked-tz .dbk-ico { color: var(--dbk-accent); }
.dbk-desc { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--dbk-muted); }

/* Right: steps */
.dbk-main { position: relative; padding: 32px; min-width: 0; }
.dbk-pad { padding: 40px; }
.dbk--single { display: block; max-width: 640px; margin: 0 auto; min-height: 0; }
.dbk-h { margin: 0 0 22px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; outline: none; }
.dbk-msg { font-size: 15.5px; line-height: 1.6; color: var(--dbk-muted); margin: 0 0 18px; }

.dbk-loading { display: flex; gap: 6px; justify-content: center; padding: 120px 0; }
.dbk-loading span { width: 8px; height: 8px; border-radius: 50%; background: var(--dbk-soft); animation: dbk-pulse 1s ease-in-out infinite; }
.dbk-loading span:nth-child(2) { animation-delay: .15s; }
.dbk-loading span:nth-child(3) { animation-delay: .3s; }
@keyframes dbk-pulse { 50% { background: var(--dbk-accent); transform: scale(1.2); } }

.dbk-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.has-day .dbk-pick { grid-template-columns: minmax(0, 1fr) minmax(190px, 230px); }

/* Calendar */
.dbk-cal-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 14px; }
.dbk-month { min-width: 150px; text-align: center; font-size: 15.5px; font-weight: 600; }
.dbk-nav { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--dbk-softer); color: var(--dbk-accent); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s ease; }
.dbk-nav:hover:not(:disabled) { background: var(--dbk-soft); }
.dbk-nav:disabled { background: transparent; color: #C9C2D1; cursor: default; }
.dbk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; justify-items: center; }
.dbk-grid.is-loading { opacity: .5; }
.dbk-wd { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--dbk-muted); padding: 4px 0 8px; }
.dbk-day { position: relative; width: 44px; height: 44px; max-width: 100%; aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; color: #A9A1B2; font-size: 15px; font-weight: 500; cursor: default; }
.dbk-day.is-available { background: var(--dbk-softer); color: var(--dbk-accent); font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.dbk-day.is-available:hover { background: var(--dbk-soft); }
.dbk-day.is-selected, .dbk-day.is-selected:hover { background: var(--dbk-accent); color: #FFFFFF; }
.dbk-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dbk-empty { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--dbk-softer); text-align: center; }
.dbk-empty p { margin: 0 0 6px; font-size: 14.5px; color: var(--dbk-muted); }
.dbk-link { border: 0; background: none; padding: 0; color: var(--dbk-accent); font-weight: 600; font-size: 14.5px; cursor: pointer; }

/* Time zone */
.dbk-tz { margin-top: 22px; }
.dbk-tz label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.dbk-tz-row { display: flex; align-items: center; gap: 8px; color: var(--dbk-muted); }
.dbk-tz select { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--dbk-line); border-radius: 12px; background: #FFFFFF; font: inherit; font-size: 14px; color: var(--dbk-ink); }
.dbk-tz-now { margin: 6px 0 0 24px; font-size: 12.5px; color: var(--dbk-muted); }

/* Times */
.dbk-times { display: flex; flex-direction: column; min-width: 0; animation: dbk-in .25s ease; }
@keyframes dbk-in { from { opacity: 0; transform: translateX(8px); } }
.dbk-times-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 38px; }
.dbk-day-label { margin: 0; font-size: 15px; font-weight: 500; }
.dbk-fmt { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--dbk-softer); }
.dbk-fmt button { border: 0; background: transparent; padding: 4px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--dbk-muted); cursor: pointer; }
.dbk-fmt button.is-on { background: #FFFFFF; color: var(--dbk-ink); box-shadow: 0 1px 3px rgba(42, 34, 51, .12); }
.dbk-slots { list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.dbk-slots li { display: flex; gap: 6px; }
.dbk-slot { flex: 1; min-height: 50px; border: 1px solid var(--dbk-accent); border-radius: 12px; background: #FFFFFF; color: var(--dbk-accent); font-size: 15px; font-weight: 700; cursor: pointer; transition: border-width .1s ease, background .15s ease; }
.dbk-slot:hover { border-width: 2px; }
.dbk-slots li.is-selected .dbk-slot { flex: 1 1 50%; background: #6A6272; border-color: #6A6272; color: #FFFFFF; }
.dbk-next { flex: 1 1 50%; min-height: 50px; border: 0; border-radius: 12px; background: var(--dbk-accent); color: #FFFFFF; font-size: 15px; font-weight: 600; cursor: pointer; animation: dbk-in .2s ease; }
.dbk-next:hover { background: var(--dbk-accent-dark); }

/* Details */
.dbk-step--details { max-width: 520px; }
.dbk-back { width: 40px; height: 40px; margin-bottom: 14px; border: 1px solid var(--dbk-line); border-radius: 50%; background: #FFFFFF; color: var(--dbk-accent); font-size: 18px; cursor: pointer; }
.dbk-back:hover { background: var(--dbk-softer); }
.dbk-summary { margin: -10px 0 22px; padding: 12px 16px; border-radius: 14px; background: var(--dbk-softer); font-size: 14.5px; font-weight: 600; color: var(--dbk-accent); }
.dbk-form { display: flex; flex-direction: column; gap: 16px; }
.dbk-field { display: flex; flex-direction: column; gap: 6px; }
.dbk-field label { font-size: 14px; font-weight: 600; }
.dbk-req { color: var(--dbk-accent); }
.dbk-field input, .dbk-field textarea { width: 100%; padding: 13px 16px; border: 1px solid #DDD3E6; border-radius: 14px; background: #FFFFFF; font: inherit; font-size: 15px; color: var(--dbk-ink); }
.dbk-field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.dbk-field input:focus, .dbk-field textarea:focus, .dbk-tz select:focus { outline: none; border-color: var(--dbk-accent); box-shadow: 0 0 0 3px rgba(108, 84, 134, .15); }
.dbk-field [aria-invalid] { border-color: #B4473A; }
.dbk-err { margin: 0; font-size: 13px; color: #9C3A2E; }
.dbk-hp { position: absolute; left: -9999px; }
.dbk-form-msg { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: #F6E4E0; color: #8E3A2F; font-size: 14.5px; font-weight: 600; }
.dbk-form .dbk-form-msg { margin: 0; }

.dbk-btn { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; padding: 15px 28px; border: 1px solid var(--dbk-accent); border-radius: 999px; background: var(--dbk-accent); color: #FFFFFF; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s ease; }
.dbk-btn:hover { background: var(--dbk-accent-dark); color: #FFFFFF; }
.dbk-btn:disabled { opacity: .7; cursor: progress; }
.dbk-btn--ghost { background: #FFFFFF; color: var(--dbk-ink); border-color: var(--dbk-line); }
.dbk-btn--ghost:hover { background: var(--dbk-softer); color: var(--dbk-ink); }
.dbk-btn--danger { background: #9C3A2E; border-color: #9C3A2E; }
.dbk-btn--danger:hover { background: #7E2E24; }

/* Done */
.dbk-step--done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; }
.dbk-check { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--dbk-accent); color: #FFFFFF; }
.dbk-step--done .dbk-h { margin-bottom: 8px; font-size: 24px; }
.dbk-done-sub { margin: 0 0 22px; color: var(--dbk-muted); font-size: 15px; }
.dbk-done-card { width: 100%; max-width: 420px; padding: 18px 22px; border: 1px solid var(--dbk-line); border-radius: 18px; text-align: left; }
.dbk-done-card p { margin: 0 0 6px; font-size: 14.5px; color: var(--dbk-muted); }
.dbk-done-card .dbk-done-title { font-size: 17px; font-weight: 700; color: var(--dbk-ink); }
.dbk-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 14px; }
.dbk-small { margin: 0; font-size: 13px; color: var(--dbk-muted); }
.dbk.is-done .dbk-picked, .dbk.is-done .dbk-picked-tz { display: none; }

/* Mobile */
@media (max-width: 760px) {
  .dbk { grid-template-columns: 1fr; border-radius: 24px; min-height: 0; }
  .dbk-info { padding: 22px 20px; border-right: 0; border-bottom: 1px solid var(--dbk-line); }
  .dbk-avatar { width: 52px; height: 52px; }
  .dbk-title { font-size: 21px; }
  .dbk-desc { display: none; }
  .dbk-main { padding: 22px 16px 26px; }
  .has-day .dbk-pick { grid-template-columns: 1fr; }
  .dbk-slots { max-height: none; }
  .dbk-day { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .dbk-times, .dbk-next { animation: none; }
}

/* Keep steps clear of a sticky site header when scrolled into view. */
.dbk, .dbk-times { scroll-margin-top: 110px; }

/* ---------- v2: profile / event list ---------- */
.dbk--profile { display: block; max-width: 760px; margin: 0 auto; padding: 36px clamp(18px, 4vw, 44px) 40px; min-height: 0; }
.dbk-profile-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--dbk-line); text-align: center; }
.dbk-profile-head .dbk-avatar { width: 72px; height: 72px; }
.dbk-profile-intro { margin: 4px 0 0; color: var(--dbk-muted); font-size: 15px; }
.dbk-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dbk-event-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 20px 26px; border: 1px solid var(--dbk-line); border-radius: 18px; color: var(--dbk-ink); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.dbk-event-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: var(--dbk-color, var(--dbk-accent)); }
.dbk-event-card:hover { border-color: var(--dbk-accent); box-shadow: 0 10px 26px rgba(42, 34, 51, .08); transform: translateY(-2px); color: var(--dbk-ink); }
.dbk-event-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.dbk-event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--dbk-muted); }
.dbk-event-meta .dbk-ico { width: 16px; height: 16px; margin-left: 4px; }
.dbk-event-meta .dbk-ico:first-child { margin-left: 0; }
.dbk-event-desc { font-size: 14.5px; line-height: 1.55; color: var(--dbk-muted); }
.dbk-event-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--dbk-accent); }
.dbk-event-go .dbk-ico { width: 16px; height: 16px; transition: transform .2s ease; }
.dbk-event-card:hover .dbk-event-go .dbk-ico { transform: translateX(3px); }

/* Back link in the info panel */
.dbk-back--link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-bottom: 4px; }

/* Reschedule: former time */
.dbk-former { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--dbk-softer); font-size: 13.5px; color: var(--dbk-muted); }
.dbk-former span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Group seats on time buttons */
.dbk-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.2; }
.dbk-slot small { font-size: 11.5px; font-weight: 600; opacity: .8; }

/* Questions */
.dbk-help { margin: -2px 0 2px; font-size: 13px; color: var(--dbk-muted); }
.dbk-field select { width: 100%; padding: 13px 40px 13px 16px; border: 1px solid #DDD3E6; border-radius: 14px; background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%236C5486' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; font: inherit; font-size: 15px; color: var(--dbk-ink); -webkit-appearance: none; appearance: none; }
.dbk-field select:focus { outline: none; border-color: var(--dbk-accent); box-shadow: 0 0 0 3px rgba(108, 84, 134, .15); }
.dbk-choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dbk-legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.dbk-choice { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid #DDD3E6; border-radius: 12px; font-size: 15px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.dbk-choice:hover { border-color: var(--dbk-accent); }
.dbk-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--dbk-accent); }
.dbk-choice:has(input:checked) { border-color: var(--dbk-accent); background: var(--dbk-softer); }
.dbk-choices[aria-invalid] .dbk-choice { border-color: #B4473A; }
.dbk-add-guests { align-self: flex-start; }

/* Cancel screen */
.dbk-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dbk-pad .dbk-form { max-width: 520px; }

/* Done: custom message */
.dbk-done-msg { max-width: 460px; margin: -8px 0 18px; padding: 14px 18px; border-radius: 14px; background: var(--dbk-softer); font-size: 15px; line-height: 1.55; color: var(--dbk-ink); }
.dbk-done-card a { color: var(--dbk-accent); font-weight: 600; }
.dbk-small a { color: var(--dbk-accent); font-weight: 600; }
