/* Booking + intake (public site) */
.book-page,
.intake-page {
  padding: 2.5rem 0 4rem;
  background: var(--color-bg);
}

.book-wrap,
.intake-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.book-wrap h1,
.intake-wrap h1 {
  margin-bottom: 0.5rem;
}

.book-lead {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.book-step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.45rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.book-step h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--color-border);
}

.book-step label {
  display: block;
  font-weight: 500;
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.book-step input,
.book-step select,
.book-step textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-cream);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.book-step input:focus,
.book-step select:focus,
.book-step textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 160, 112, 0.2);
  background: #fff;
}

.book-step textarea { min-height: 90px; resize: vertical; }

.book-optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.book-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.book-times-label {
  margin-top: 1.25rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ——— Calendar ——— */
.book-cal {
  margin-top: 0.35rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffcf8 0%, #f7f2ea 100%);
  padding: 1rem 0.9rem 1.1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.book-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.book-cal-head strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
  flex: 1;
  text-align: center;
}

.book-cal-nav {
  appearance: none;
  -webkit-appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  border: 1px solid var(--color-beige-dark);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 3px rgba(61, 56, 50, 0.06);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.book-cal-nav:hover {
  border-color: var(--color-gold);
  background: #fffaf0;
}

.book-cal-weekdays {
  display: flex !important;
  width: 100%;
  margin-bottom: 0.45rem;
}

.book-cal-weekdays span {
  flex: 1 1 0;
  width: 14.28%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.book-cal-grid {
  display: flex !important;
  flex-wrap: wrap;
  width: 100%;
}

.book-cal-day {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 14.28%;
  width: 14.28%;
  max-width: 14.28%;
  aspect-ratio: 1 / 1;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: default;
  color: #b0a89f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.book-cal-day.is-empty {
  visibility: hidden;
  pointer-events: none;
  border: none;
}

.book-cal-day.is-available {
  background: #fff;
  border-color: #e0d5c5;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(61, 56, 50, 0.05);
}

.book-cal-day.is-available:hover {
  border-color: var(--color-gold);
  background: #faf4e8;
  color: var(--color-gold-dark);
}

.book-cal-day.is-selected {
  background: var(--color-gold) !important;
  border-color: var(--color-gold-dark) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(154, 139, 92, 0.35);
}

.book-cal-day.is-unavailable,
.book-cal-day.is-past,
.book-cal-day.is-muted {
  opacity: 0.35;
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.book-cal-day.is-today:not(.is-selected):not(.is-past) {
  box-shadow: inset 0 0 0 2px var(--color-gold);
}

.book-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 201, 186, 0.7);
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.book-cal-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: -1px;
  border: 1px solid #e0d5c5;
}

.book-cal-legend .lg-avail i {
  background: #fff;
  border-color: var(--color-gold);
}

.book-cal-legend .lg-sel i {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
}

.book-cal-legend .lg-off i {
  background: transparent;
  border-color: #ccc;
  opacity: 0.5;
}

/* ——— Time slots ——— */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.slot-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-beige-dark);
  background: #fff;
  border-radius: 999px;
  padding: 0.65rem 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.slot-btn:hover {
  border-color: var(--color-gold);
  background: #faf6ee;
}

.slot-btn.is-selected {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
  color: #fff;
}

.slot-empty {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin-top: 0.55rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px dashed var(--color-beige-dark);
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.book-msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.book-msg.is-visible { display: block; }
.book-msg.is-error { background: #f8d7da; color: #721c24; }
.book-msg.is-ok { background: #d4edda; color: #155724; }

.intake-summary {
  background: var(--color-bg-alt);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.intake-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.intake-check input { width: auto; margin-top: 0.25rem; }
.intake-check label { margin: 0; font-weight: 400; }

@media (max-width: 480px) {
  .book-cal-day { font-size: 0.82rem; border-radius: 8px; }
  .book-cal-nav { width: 2.25rem; height: 2.25rem; min-width: 2.25rem; }
}
