/* ── BOOKING WIDGET ──────────────────────────────────────────────────────────
   Uses CSS custom properties defined in index.html's :root block.
   ─────────────────────────────────────────────────────────────────────────── */

.book-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--terracotta);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s, transform 0.15s;
}

.book-fab:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  cursor: pointer;
}

.book-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

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

.book-modal {
  background: #fff;
  width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 2px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s;
}

.book-overlay.open .book-modal {
  transform: translateY(0);
}

.book-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.book-close:hover { color: var(--text); }

.book-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.book-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.book-toggle {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--stone);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 28px;
}

.book-toggle-btn {
  flex: 1;
  padding: 11px;
  border: none;
  background: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.book-toggle-btn:not(:last-child) {
  border-right: 1px solid var(--stone);
}

.book-toggle-btn.active {
  background: var(--terracotta);
  color: #fff;
}

.book-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 20px;
}

.book-field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.book-field input {
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.book-field input:focus { border-color: var(--terracotta); }

.book-field textarea {
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  resize: vertical;
  line-height: 1.5;
}

.book-field textarea:focus { border-color: var(--terracotta); }

.book-field-hint {
  font-size: 12px;
  color: var(--muted);
}

.book-submit {
  width: 100%;
  padding: 15px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.book-submit:hover:not(:disabled) { opacity: 0.85; }
.book-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.book-status {
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
}

.book-status--success { color: var(--terracotta); }
.book-status--error   { color: var(--error); }

@media (max-width: 520px) {
  .book-fab   { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 13px; }
  .book-modal { width: calc(100vw - 32px); padding: 28px 24px; }
}
