/* ─── Discovery-call modal ("Talk to us") — shared by /book-now and /pricing ───
   Loaded with /call-modal.js, which builds the modal. Uses the landing-page
   tokens each page defines on :root (--forest, --font-text, --font-display,
   --ease-out-quint, --shadow-lift, ...). */
:root { --z-modal-backdrop: 200; --z-modal: 210; }
.call-modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal-backdrop);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(30, 47, 34, 0.44);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out-quart), visibility .3s;
}
.call-modal-overlay.open { opacity: 1; visibility: visible; }
.call-modal {
  position: relative; z-index: var(--z-modal);
  width: 100%; max-width: 520px; max-height: calc(100dvh - 40px);
  overflow-y: auto; background: var(--linen); border-radius: 22px;
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-lift);
  transform: translateY(16px) scale(0.98); transition: transform .35s var(--ease-out-quint);
}
.call-modal-overlay.open .call-modal { transform: none; }
.call-modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--hairline); background: var(--linen-2);
  color: var(--ink-mid); font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}
.call-modal-close:hover { background: var(--cream); color: var(--forest); border-color: var(--forest-light); }
.call-modal .cm-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--forest); font-weight: 700; }
.call-modal h3 { font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 27px); font-weight: 800; color: var(--deep-forest); letter-spacing: -0.02em; margin: 8px 0 6px; line-height: 1.15; }
.call-modal .cm-sub { font-size: 14.5px; color: var(--ink-mid); line-height: 1.55; margin-bottom: 22px; max-width: 42ch; }
/* Call-now row — the immediate alternative to picking a slot. Sits above the
   calendar because "ring them now" is the shorter path for anyone already
   holding their phone; the calendar stays the considered option below. */
.call-modal .cm-callnow {
  display: flex; align-items: center; gap: 15px;
  padding: 17px 20px; margin: 2px 0 4px;
  background: var(--forest); border: 1.5px solid var(--forest); border-radius: 18px;
  text-decoration: none; color: #fff;
  box-shadow: 0 2px 6px rgba(30, 47, 34, .18), 0 12px 28px rgba(30, 47, 34, .16);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.call-modal .cm-callnow:hover {
  background: var(--forest-light); border-color: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(30, 47, 34, .20), 0 18px 38px rgba(30, 47, 34, .20);
}
.call-modal .cm-callnow:active { transform: translateY(0); }
.call-modal .cm-callnow:focus-visible { outline: 2px solid var(--deep-forest); outline-offset: 3px; }
.call-modal .cm-callnow-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.call-modal .cm-callnow-icon svg { width: 20px; height: 20px; }
.call-modal .cm-callnow-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.call-modal .cm-callnow-label { font-size: 16.5px; font-weight: 800; color: #fff; letter-spacing: -0.015em; line-height: 1.2; }
.call-modal .cm-callnow-when { font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.35; }
.call-modal .cm-callnow-num {
  flex: 0 0 auto; font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: -0.015em; white-space: nowrap;
}
/* Closed: still the loudest thing in the modal, but outlined rather than solid,
   because the honest promise is a voicemail and not a conversation. */
.call-modal .cm-callnow.is-closed {
  background: var(--linen); border-color: var(--forest);
  box-shadow: 0 1px 3px rgba(30, 47, 34, .07);
}
.call-modal .cm-callnow.is-closed:hover { background: #fff; border-color: var(--forest); box-shadow: 0 4px 14px rgba(30, 47, 34, .10); }
.call-modal .cm-callnow.is-closed .cm-callnow-icon { background: var(--forest); color: #fff; }
.call-modal .cm-callnow.is-closed .cm-callnow-label { color: var(--deep-forest); }
.call-modal .cm-callnow.is-closed .cm-callnow-when { color: var(--ink-mid); }
.call-modal .cm-callnow.is-closed .cm-callnow-num { color: var(--forest); }

.call-modal .cm-or {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 14px; color: var(--ink-mid); font-size: 12.5px;
}
.call-modal .cm-or::before,
.call-modal .cm-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--hairline); }

@media (max-width: 420px) {
  .call-modal .cm-callnow { flex-wrap: wrap; gap: 10px 12px; }
  .call-modal .cm-callnow-num { width: 100%; padding-left: 54px; font-size: 17px; }
}

.call-modal .cm-cal { margin-top: 4px; }
.call-modal .cm-time-wrap { margin-top: 22px; }
.call-modal .cm-time-hint { font-size: 13px; font-weight: 600; color: var(--deep-forest); margin-bottom: 10px; }
.call-modal .cm-fields { margin-top: 22px; }
.cm-confirm { text-align: center; padding: 10px 0 4px; }
.cm-confirm .cm-seal { width: 62px; height: 62px; border-radius: 50%; background: rgba(47, 74, 51, 0.1); color: var(--forest); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cm-confirm .cm-seal svg { width: 30px; height: 30px; }
.cm-confirm h3 { margin-bottom: 10px; }
.cm-confirm .cm-when { font-size: 17px; font-weight: 700; color: var(--forest); margin-bottom: 8px; }
.cm-confirm p { font-size: 14.5px; color: var(--ink-mid); line-height: 1.6; margin: 0 auto 22px; max-width: 40ch; }
@media (prefers-reduced-motion: reduce) {
  .call-modal-overlay, .call-modal { transition: opacity .01s, visibility .01s; }
  .call-modal { transform: none; }
}
/* The calendar, time and form pieces the modal uses. /book-now's own reserve
   form styles the same classes; these copies are scoped to the modal so the
   modal looks the same on a page that has no reserve form (/pricing), and the
   $149 checkout's rules stay where they are. */
.call-modal .cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.call-modal .cal-nav { background: none; border: 1px solid var(--hairline); border-radius: 980px; width: 36px; height: 36px; cursor: pointer; color: var(--ink-mid); font-size: 15px; transition: background .14s, color .14s, border-color .14s; }
.call-modal .cal-nav:hover { background: var(--cream); color: var(--forest); border-color: var(--forest-light); }
.call-modal .cal-month { font-family: var(--font-display); font-weight: 700; color: var(--deep-forest); font-size: 18px; }
.call-modal .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.call-modal .cal-dow { font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; text-align: center; padding: 4px 0 8px; font-weight: 700; }
.call-modal .cal-day { aspect-ratio: 1/1; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 14px; color: var(--ink); display: flex; align-items: center; justify-content: center; transition: background .14s, color .14s; padding: 0; font-family: var(--font-text); font-weight: 500; }
.call-modal .cal-day:hover { background: var(--cream); }
.call-modal .cal-day.empty, .call-modal .cal-day.empty:hover { cursor: default; background: transparent; }
.call-modal .cal-day.past { color: var(--ink-soft); cursor: not-allowed; opacity: 0.32; }
.call-modal .cal-day.past:hover { background: transparent; }
.call-modal .cal-day.unavailable { color: var(--ink-soft); text-decoration: line-through; cursor: not-allowed; opacity: 0.32; }
.call-modal .cal-day.unavailable:hover { background: transparent; }
.call-modal .cal-day.selected { background: var(--forest); color: var(--linen); border-color: var(--forest); font-weight: 700; }
.call-modal .cal-day.today { border-color: var(--sage-light); }

.call-modal .time-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.call-modal .time-slot { padding: 13px 8px; background: var(--cream); border: 1px solid var(--hairline); border-radius: 11px; cursor: pointer; font-size: 14px; text-align: center; color: var(--ink); transition: background .14s, border-color .14s; font-family: var(--font-text); font-weight: 500; }
.call-modal .time-slot:hover:not(.busy) { background: var(--linen); border-color: var(--forest-light); }
.call-modal .time-slot.busy { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.call-modal .time-slot.selected { background: var(--forest); color: var(--linen); border-color: var(--forest); font-weight: 700; }
.call-modal .avail-note { font-size: 12px; color: var(--ink-soft); margin-top: 14px; text-align: center; }

.call-modal .rsv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 540px) { .call-modal .rsv-row { grid-template-columns: 1fr; } }
.call-modal .rsv-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mid); margin-bottom: 7px; }
.call-modal .rsv-field input { width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--hairline); background: var(--linen); font-family: var(--font-text); font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.call-modal .rsv-field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 74, 51, 0.1); }
.call-modal .rsv-error { color: #b91c1c; font-size: 13px; padding: 11px 14px; background: rgba(215, 0, 21, 0.06); border: 1px solid rgba(215, 0, 21, 0.2); border-radius: 10px; margin-top: 14px; display: none; line-height: 1.5; }
.call-modal .rsv-continue-btn { width: 100%; padding: 15px 24px; background: var(--forest); color: var(--linen); border: none; border-radius: 980px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 18px; font-family: var(--font-text); transition: background .18s, transform .2s var(--ease-out-quint); }
.call-modal .rsv-continue-btn:hover:not(:disabled) { background: var(--forest-light); transform: translateY(-1px); }
.call-modal .rsv-continue-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.call-modal .rsv-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.call-modal .rsv-actions-note { font-size: 13px; color: var(--forest); margin-top: 12px; min-height: 17px; }

/* The confirm screen's "Add to Google Calendar" pill. Scoped because /pricing's
   own .btn-pill is the light-on-dark style of its closing band. */
.call-modal .btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 24px; border-radius: 980px; background: var(--forest); color: var(--linen); font-family: var(--font-text); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; text-decoration: none; border: 1.5px solid var(--forest); cursor: pointer; margin: 0; transition: transform .28s var(--ease-out-quint), background .2s ease, box-shadow .28s var(--ease-out-quint); }
.call-modal .btn-pill:hover { background: var(--forest-light); color: var(--linen); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30, 47, 34, 0.22); }
.call-modal .btn-pill:active { transform: translateY(0); }
.call-modal .btn-pill svg { flex-shrink: 0; }
