* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue-800: #0d3a77;
  --blue-600: #1764d8;
  --ink-900: #1c2b45;
  --ink-700: #31415c;
  --ink-500: #64748b;
  --danger: #b23f36;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: #fff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.25rem calc(3rem + env(safe-area-inset-bottom));
}

/* iOS Safari ignores overflow:hidden on body for touch scrolling, so the lock
   also pins the body in place; JS sets `top` to preserve the scroll position. */
body.is-locked {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* Honeypot: invisible to humans, filled by bots. Off-screen instead of
   display:none, which some bots detect. */
.booking-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-shell {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.booking-logo {
  display: block;
  height: 32px;
  margin: 0.75rem auto 1.75rem;
}

/* "Inter Alternates": Inter with the alternate glyphs ("salt") enabled,
   applied to titles and subtitles at the design team's request. */
.booking-title,
.booking-subtitle,
.booking-form-title,
.booking-testimonials-title,
.booking-testimonials-subtitle {
  font-feature-settings: "salt" 1;
}

.booking-title {
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--blue-800);
  margin-bottom: 0.75rem;
}

.booking-subtitle {
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.booking-day {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.booking-day-label {
  min-width: 9rem;
  font-weight: 700;
  color: var(--ink-700);
}

.booking-nav {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe7f5;
  border-radius: 9999px;
  background: #fff;
  color: var(--ink-700);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(28, 43, 69, 0.06);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.booking-nav:not(:disabled):hover { border-color: rgba(23, 100, 216, 0.45); }

.booking-nav:not(:disabled):active { transform: scale(0.92); }
.booking-nav:disabled { opacity: 0.35; cursor: default; }

.booking-hint {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.booking-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.booking-slot {
  border: 1px solid rgba(23, 100, 216, 0.18);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f2f8ff, #e3effd);
  color: var(--blue-600);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 0.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 100, 216, 0.07);
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.booking-slot:not(.is-selected):hover {
  background: linear-gradient(135deg, #e9f3ff, #d7e8fc);
  border-color: rgba(23, 100, 216, 0.4);
  box-shadow: 0 6px 16px rgba(23, 100, 216, 0.14);
  transform: translateY(-1px);
}

.booking-slot:active { transform: scale(0.96); }

.booking-slot.is-selected {
  background: linear-gradient(135deg, #3b93f0, #1764d8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 100, 216, 0.3);
}

.booking-slot--now {
  background: linear-gradient(135deg, #eefbf4, #dcf5e8);
  border-color: rgba(20, 154, 88, 0.28);
  color: #14804a;
}

.booking-slot--now::before { content: "⚡ "; }

.booking-slot--now:not(.is-selected):hover {
  background: linear-gradient(135deg, #e3f8ec, #cdefdd);
  border-color: rgba(20, 154, 88, 0.5);
  box-shadow: 0 6px 16px rgba(20, 154, 88, 0.16);
}

.booking-slot--now.is-selected {
  background: linear-gradient(135deg, #2bc177, #149a58);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 154, 88, 0.3);
}

.booking-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--ink-500);
  padding: 1.5rem 0;
}

.booking-spinner {
  width: 1em;
  height: 1em;
  border: 2px solid rgba(23, 100, 216, 0.25);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: booking-spin 0.7s linear infinite;
}

.booking-spinner--light {
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
}

@keyframes booking-spin { to { transform: rotate(360deg); } }

.booking-status {
  color: var(--danger);
  font-size: 0.92rem;
  min-height: 1.3rem;
  margin-bottom: 0.75rem;
}

/* ---- Form overlay ---- */

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(18, 34, 61, 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.booking-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.booking-sheet {
  width: 100%;
  max-width: 30rem;
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  text-align: left;
  box-shadow: 0 -18px 50px rgba(18, 34, 61, 0.25);
  transform: translateY(24px);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.3, 1);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.booking-overlay.is-open .booking-sheet { transform: translateY(0); }

@media (min-width: 640px) {
  .booking-overlay { align-items: center; padding: 1.5rem; }

  .booking-sheet {
    border-radius: 1.5rem;
    transform: translateY(0) scale(0.96);
  }

  .booking-overlay.is-open .booking-sheet { transform: translateY(0) scale(1); }
}

.booking-sheet-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: none;
  color: var(--blue-600);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  margin-bottom: 0.75rem;
}

.booking-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(23, 100, 216, 0.08);
  border: 1px solid rgba(23, 100, 216, 0.22);
  color: var(--blue-600);
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.1rem;
}

.booking-chip--now {
  background: rgba(34, 192, 107, 0.10);
  border-color: rgba(34, 192, 107, 0.35);
  color: #14804a;
}

.booking-form-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 1rem;
}

.booking-field { margin-bottom: 0.95rem; }

.booking-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink-700);
  margin-bottom: 0.4rem;
}

.booking-field input {
  width: 100%;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(80, 156, 232, 0.35);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--ink-900);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.booking-field input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 100, 216, 0.18);
}

.booking-field input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(178, 63, 54, 0.12);
}

.booking-field-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.booking-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(120deg, #2f88e8, #1764d8);
  border: 0;
  border-radius: 1rem;
  color: #fff;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.booking-submit:not(:disabled):active { transform: scale(0.98); }
.booking-submit:disabled { opacity: 0.55; cursor: default; }

.booking-sheet-status {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.25rem;
  margin-top: 0.7rem;
  text-align: center;
}

/* Wide container of its own: the Senja testimonials render columns
   (masonry) on desktop; the booking funnel stays narrow. */
.booking-testimonials {
  width: 100%;
  max-width: 72rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e8eef7;
  text-align: center;
}

.booking-testimonials-title {
  font-size: clamp(1.25rem, 4.5vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--blue-800);
  margin: 0 auto 0.5rem;
  max-width: 34rem;
}

.booking-testimonials-subtitle {
  color: var(--ink-500);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 auto 2rem;
  max-width: 34rem;
}

/* ---- Success ---- */

.booking-success {
  background: #fff;
  border: 1px solid rgba(34, 192, 107, 0.35);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 14px 40px rgba(23, 160, 93, 0.10);
  animation: booking-pop 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes booking-pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.booking-success[hidden], .booking-overlay[hidden] { display: none; }

.booking-success-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }

.booking-success-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #14804a;
  margin-bottom: 0.5rem;
}

.booking-success-text { color: var(--ink-500); line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .booking-spinner { animation-duration: 1.6s; }
  .booking-slot, .booking-nav, .booking-submit, .booking-sheet, .booking-overlay { transition: none; }
  .booking-success { animation: none; }
}
