/* ─── Reservation page header ────────────────────────── */
.res-header {
  background: var(--bg-navy);
  color: var(--text-light);
  padding: 48px 24px 40px;
  text-align: center;
}
.res-header__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--accent-terracotta-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.res-header__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.25;
  color: var(--text-white);
  max-width: 720px;
  margin: 0 auto 12px;
}
.res-header__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .res-header { padding: 64px 80px 56px; }
}

/* ─── Stepper ────────────────────────────────────────── */
.stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stepper__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  font-weight: 500;
}
.stepper__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sand);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.stepper__item.is-done .stepper__dot { background: var(--accent-olive); color: var(--text-white); }
.stepper__item.is-active .stepper__dot { background: var(--bg-navy); color: var(--text-white); }
.stepper__item.is-active { color: var(--bg-navy); }
.stepper__bar { width: 24px; height: 1px; background: var(--border-light); }

/* ─── Step container ─────────────────────────────────── */
.res-flow {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}
.res-step { display: none; flex-direction: column; gap: 24px; }
.res-step.is-active { display: flex; }
.res-step__title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.2;
  color: var(--text-dark);
}
.res-step__hint {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ─── Guests row ─────────────────────────────────────── */
.res-guests {
  display: flex;
  gap: 16px;
}
.res-guests .counter { flex: 1; }

/* ─── Calendar (1:1 iz pencil-a s6GTSH) ──────────────── */
.cal {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}
.cal__nav {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-sm);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.cal__nav [data-lucide] { width: 20px; height: 20px; }
.cal__nav:hover:not([disabled]) { background: var(--bg-cream); color: var(--bg-navy); }
.cal__nav[disabled] { opacity: 0.3; cursor: not-allowed; }
.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 36px;
  gap: 2px;
}
.cal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.cal__day:hover:not([disabled]):not(.is-selected) { background: var(--bg-cream); }
.cal__day[disabled] { opacity: 0.3; cursor: not-allowed; color: var(--text-muted); }
.cal__day.is-today { font-weight: 600; color: var(--accent-terracotta); }
.cal__day.is-selected {
  background: var(--accent-blue);
  color: var(--text-white);
  font-weight: 600;
}
.cal__day.is-outside { opacity: 0; pointer-events: none; }

/* ─── Slot presets and grid ──────────────────────────── */
.res-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.res-presets__btn {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.res-presets__btn:hover { border-color: var(--bg-navy); }
.res-presets__btn.is-active { background: var(--bg-navy); color: var(--text-white); border-color: var(--bg-navy); }
.res-presets__label { font-weight: 600; }
.res-presets__hint { font-size: 11px; opacity: 0.7; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.slot-grid__divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 4px 0;
}
.slot-grid__divider::before,
.slot-grid__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ─── Step nav ───────────────────────────────────────── */
.res-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.res-actions .btn { flex: 1; }
.res-actions__back {
  flex: 0 0 auto;
  padding: 12px 16px;
}

/* ─── WhatsApp OTP modal ─────────────────────────────── */
.otp-modal {
  width: 100%;
  max-width: 720px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-white);
}
.otp-modal__inner {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .otp-modal__inner { grid-template-columns: 1fr 1fr; }
}
.otp-modal__form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.otp-input {
  width: 44px;
  height: 56px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-cream);
  color: var(--text-dark);
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.otp-input.is-filled {
  border-color: var(--accent-olive);
  background: var(--bg-white);
}

/* ─── Phone mockup ───────────────────────────────────── */
.phone-mock {
  background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-deep) 100%);
  padding: 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.phone-mock__frame {
  width: 240px;
  height: 420px;
  background: #efeae3;
  border-radius: 28px;
  padding: 14px 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.phone-mock__notch {
  width: 100px;
  height: 18px;
  background: #1c1c1c;
  border-radius: 0 0 12px 12px;
  align-self: center;
  margin-top: -14px;
}
.phone-mock__header {
  background: #075E54;
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-mock__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--bg-navy);
  font-weight: 700;
}
.phone-mock__name { font-size: 12px; font-weight: 600; }
.phone-mock__status { font-size: 10px; opacity: 0.8; }
.phone-mock__msg {
  background: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-dark);
  align-self: flex-start;
  max-width: 90%;
  margin-top: 8px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.phone-mock__msg.is-shown { opacity: 1; transform: translateY(0); }
.phone-mock__code {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--bg-navy);
  display: block;
  margin: 6px 0 2px;
}
.phone-mock__time { font-size: 10px; color: var(--text-secondary); text-align: right; margin-top: 4px; }

/* ─── Success ──────────────────────────────────────── */
.res-success {
  text-align: center;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.res-success__check {
  width: 72px;
  height: 72px;
  background: var(--accent-olive);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}
.res-success__check::before, .res-success__check::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--accent-olive);
  opacity: 0;
}
.res-success__check::before { animation: pulse-ring 2s ease-out infinite; inset: -8px; }
.res-success__check::after  { animation: pulse-ring 2s ease-out 1s infinite; inset: -8px; }
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}
.res-success__title {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.2;
  color: var(--text-dark);
}
.res-success__summary {
  background: var(--bg-sand);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  width: 100%;
  max-width: 380px;
}
.res-success__summary-row { display: flex; justify-content: space-between; font-size: 14px; }
.res-success__summary-row strong { color: var(--bg-navy); }
.res-success__bozo {
  background: var(--bg-cream);
  border-left: 3px solid var(--accent-terracotta);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dark);
  max-width: 480px;
  text-align: left;
}
.res-success__bozo strong { color: var(--accent-terracotta); }
.res-success__reminder {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Confetti ──────────────────────────────────────── */
.confetti {
  position: fixed;
  pointer-events: none;
  inset: 0;
  z-index: 90;
  overflow: hidden;
}
.confetti__piece {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
}

/* ─── Contact section (mobile reservation page) ──────── */
.res-contact {
  background: var(--bg-sand);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.res-contact__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}
.res-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.res-contact__item [data-lucide] {
  color: var(--accent-terracotta);
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}

/* ─── Group warning modal ───────────────────────────── */
.modal--group {
  background: var(--bg-cream);
  border-top: 4px solid var(--accent-terracotta);
}
