/* ═══════════════════════════════════════════════════════════════
   Booking module – public + shared styles
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1830 0%, #292643 60%, #1e1740 100%);
  color: #dddafc;
  line-height: 1.6;
}

.page-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px 60px;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(187,161,190,.2);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.card--narrow { max-width: 480px; }
.card--wide   { max-width: 900px; }
.card--center { text-align: center; }

h1 { color: #dddafc; font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.subtitle { color: #9e90c8; font-size: .88rem; margin-bottom: 28px; line-height: 1.7; }

/* ── Form fields ──────────────────────────────────────────── */
.field { margin-bottom: 18px; }

label {
  display: block;
  color: #bba1be;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
label .hint { text-transform: none; font-weight: 400; color: #7a6f9e; }

input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(187,161,190,.25);
  border-radius: 8px;
  padding: 11px 14px;
  color: #f0ecff;
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  color-scheme: dark;
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #bba1be;
  background: rgba(255,255,255,.1);
}
textarea { resize: vertical; min-height: 72px; }
select option { background: #292643; }

.code-input {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
}

.hint { color: #6e6598; font-size: .76rem; margin-top: 4px; }

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 32px 20px; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #6c63af, #bba1be);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .03em;
  transition: opacity .2s, transform .1s;
  text-decoration: none;
  text-align: center;
}
.btn-primary:hover  { opacity: .9; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-block { display: block; }

.btn-danger {
  background: transparent;
  border: 1px solid rgba(192,57,43,.5);
  border-radius: 7px;
  color: #e07070;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  padding: 10px 20px;
  transition: background .2s, color .2s;
}
.btn-danger:hover { background: rgba(192,57,43,.18); color: #f1948a; }

.btn-ghost {
  background: rgba(187,161,190,.15);
  border: none;
  border-radius: 7px;
  color: #bba1be;
  cursor: pointer;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  padding: 10px 20px;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(187,161,190,.25); }

/* ── Flash messages ───────────────────────────────────────── */
.flash {
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: .87rem;
  line-height: 1.6;
}
.flash--error {
  background: rgba(192,57,43,.14);
  border: 1px solid rgba(192,57,43,.38);
  color: #f1948a;
}
.flash--success {
  background: rgba(39,174,96,.12);
  border: 1px solid rgba(39,174,96,.35);
  color: #82e0aa;
}
.flash--info {
  background: rgba(52,152,219,.1);
  border: 1px solid rgba(52,152,219,.3);
  color: #85c1e9;
}

/* ── Note box ─────────────────────────────────────────────── */
.note {
  background: rgba(52,152,219,.07);
  border-left: 3px solid rgba(52,152,219,.3);
  border-radius: 0 6px 6px 0;
  color: #7fb3d3;
  font-size: .8rem;
  padding: 10px 14px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ── Opening hours toggle ─────────────────────────────────── */
.hours-toggle { margin-bottom: 28px; }

#hoursBtn {
  width: 100%;
  background: rgba(187,161,190,.08);
  border: 1px solid rgba(187,161,190,.2);
  border-radius: 8px;
  color: #bba1be;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
#hoursBtn:hover { background: rgba(187,161,190,.14); }
.chev { display: inline-block; transition: transform .3s; }
.chev--open { transform: rotate(180deg); }

.hours-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.hours-panel--open { max-height: 500px; }

.hours-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: .84rem;
}
.hours-table td { padding: 5px 8px; }
.hours-table .day { color: #7a6f9e; font-weight: 500; }
.closed-tag { color: #6e6598; font-style: italic; }

/* ── Booking summary (amend / confirm) ────────────────────── */
.booking-summary {
  background: rgba(187,161,190,.07);
  border: 1px solid rgba(187,161,190,.18);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
  text-align: left;
}
.sum-row {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-size: .88rem;
}
.sum-row .lbl { color: #7a6f9e; font-size: .8rem; min-width: 90px; flex-shrink: 0; }
.code-display {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: #dddafc;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid rgba(187,161,190,.12); margin: 28px 0; }

/* ── Cancel zone ──────────────────────────────────────────── */
.cancel-zone {
  border: 1px solid rgba(192,57,43,.28);
  border-radius: 10px;
  padding: 20px;
  background: rgba(192,57,43,.05);
}
.cancel-zone h3 { color: #e07070; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.cancel-zone p  { color: #9e8080; font-size: .82rem; margin-bottom: 14px; }
#cancelConfirm { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.confirm-text { color: #f1948a; font-size: .84rem; font-weight: 500; width: 100%; }

/* ── Back link ────────────────────────────────────────────── */
.back-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #7a6f9e;
  font-size: .84rem;
  text-decoration: none;
  transition: color .2s;
}
.back-link:hover { color: #bba1be; }

/* ── Confirm page ─────────────────────────────────────────── */
.confirm-icon { font-size: 3rem; margin-bottom: 12px; }

/* ── Section label ────────────────────────────────────────── */
.section-label {
  color: #8c80ba;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 14px;
}
