/* ============================================================
   Sukhi marketing site — SHARED OVERLAYS
   Privacy notice, contact modal, Calendly modal. Injected on every
   page by site-ui.js.

   Split out of site-chrome.css because the blog pages use the older
   nav/footer and must NOT inherit the newer chrome — they load this
   file alone, the ten main pages load both.
   ============================================================ */

.privacy-notice,
.contact-modal,
.calendly-modal {
  --ui-white: var(--white, var(--sukhi-bg-card, #fff));
  --ui-ink: var(--ink, var(--sukhi-ink, #18181a));
  --ui-mid: var(--mid, var(--sukhi-mid, #5a5855));
  --ui-line: var(--line, var(--border, var(--sukhi-border, #e5e7eb)));
  --ui-alt: var(--alt, var(--bg-alt, var(--sukhi-bg-page, #f8fafb)));
  --ui-accent: var(--accent, var(--sukhi-primary, #086a6b));
  --ui-accent-dark: var(--accent-dark, var(--sukhi-primary-dark, #065758));
  font-family: inherit;
}

/* ---------- PRIVACY NOTICE ----------
   US/CCPA model: analytics runs by default and the visitor may opt
   out, so this is a corner notice rather than a full-width blocking
   gate. Deliberately small and low-contrast — it should be findable
   and honest, not the first thing anyone reads on a wellness site. */
.privacy-notice {
  position: fixed; z-index: 900;
  /* Bottom-RIGHT: every page puts its hero CTA on the left, so a
     bottom-left notice sits directly on top of the primary button. */
  right: 24px; bottom: 24px; width: min(380px, calc(100vw - 48px));
  background: var(--ui-white);
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  padding: 22px 24px 18px;
  box-shadow: 0 20px 48px -16px rgba(8, 16, 16, .28);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.privacy-notice.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.privacy-notice-close {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: transparent; color: var(--ui-mid);
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.privacy-notice-close:hover { background: var(--ui-alt); color: var(--ui-ink); }
.privacy-notice-title { font-size: .95rem; font-weight: 700; color: var(--ui-ink); margin: 0 0 6px; }
.privacy-notice-body { font-size: .82rem; line-height: 1.6; color: var(--ui-mid); margin: 0 0 16px; }
.privacy-notice-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.privacy-notice-accept {
  background: var(--ui-accent); color: #fff; border: none;
  padding: 9px 22px; border-radius: 999px;
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .2s ease;
}
.privacy-notice-accept:hover { background: var(--ui-accent-dark); }
.privacy-notice-opt {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 500; color: var(--ui-mid);
  text-decoration: underline; text-underline-offset: 3px;
}
.privacy-notice-opt:hover { color: var(--ui-ink); }
.privacy-notice-link {
  display: inline-block; margin-top: 12px;
  font-size: .74rem; color: var(--ui-mid);
  text-decoration: underline; text-underline-offset: 3px;
}
.privacy-notice-link:hover { color: var(--ui-ink); }
@media (max-width: 560px) {
  .privacy-notice { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .privacy-notice { transition: opacity .2s ease; transform: none; }
  .privacy-notice.open { transform: none; }
}

/* ---------- CONTACT MODAL ----------
   Was inline on index.html only; every other page used a mailto:
   link. z-index sits above the sticky nav (200) — the old inline
   version used 100, so the nav painted over the backdrop. */
.contact-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.contact-modal.open { display: flex; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 12, 12, .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.contact-modal-panel {
  position: relative; background: var(--ui-white);
  border-radius: var(--sukhi-radius-card, 20px);
  width: 100%; max-width: 560px; padding: 40px 40px 32px;
  box-shadow: 0 30px 70px -20px rgba(8, 16, 16, .4);
  max-height: 88vh; overflow-y: auto;
}
.contact-modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--ui-alt); color: var(--ui-ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.contact-modal-panel h3 { font-size: 1.4rem; margin: 0 0 6px; color: var(--ui-ink); }
.contact-modal-sub { color: var(--ui-mid); font-size: .92rem; margin: 0 0 24px; }
#contactForm { display: flex; flex-direction: column; gap: 16px; }
/* min-width:0 is load-bearing. A grid item defaults to min-width:auto, so the
   label refuses to shrink below its input's intrinsic width (~20 characters)
   and the second column overflows the panel instead of splitting it evenly. */
#contactForm label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: .85rem; font-weight: 600; color: var(--ui-ink); }
#contactForm .optional { font-weight: 400; color: var(--ui-mid); }
#contactForm input, #contactForm textarea {
  font: inherit; font-weight: 400; padding: 11px 13px; border-radius: 10px;
  width: 100%; min-width: 0; box-sizing: border-box;
  border: 1px solid var(--ui-line); background: var(--ui-alt); color: var(--ui-ink); resize: vertical;
}
#contactForm input:focus, #contactForm textarea:focus { outline: 2px solid var(--ui-accent); outline-offset: 1px; }
/* minmax(0,1fr) rather than 1fr for the same reason — 1fr floors at min-content. */
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#contactForm .btn {
  margin-top: 4px; border: none; cursor: pointer;
  background: var(--ui-accent); color: #fff;
  padding: 13px 28px; border-radius: 999px;
  font: inherit; font-size: .92rem; font-weight: 600;
  justify-content: center;
}
#contactForm .btn:hover { background: var(--ui-accent-dark); }
#contactForm .btn:disabled { opacity: .6; cursor: not-allowed; }
.contact-form-status { font-size: .86rem; min-height: 1.2em; }
.contact-form-status.error { color: #b3475a; }
.contact-form-status.success { color: var(--ui-accent); }
@media (max-width: 480px) {
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-modal-panel { padding: 36px 24px 26px; }
}

/* ---------- CALENDLY MODAL ----------
   Keeps booking on our origin so Calendly's postMessage events can be
   recorded as a real funnel (opened / time selected / scheduled).
   Tall panel because the widget needs vertical room for the month grid. */
.calendly-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.calendly-modal.open { display: flex; }
.calendly-modal-backdrop { position: absolute; inset: 0; background: rgba(6, 12, 12, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.calendly-modal-panel {
  position: relative; background: var(--ui-white);
  border-radius: 20px; overflow: hidden;
  width: 100%; max-width: 1000px; height: min(88vh, 760px);
  box-shadow: 0 30px 70px -20px rgba(8, 16, 16, .45);
}
.calendly-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--ui-white); color: var(--ui-ink);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(8, 16, 16, .18);
}
.calendly-modal-close:hover { background: var(--ui-alt); }
.calendly-modal-mount { width: 100%; height: 100%; }
.calendly-modal-loading {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--ui-mid); font-size: .9rem;
}
@media (max-width: 700px) {
  .calendly-modal { padding: 0; }
  .calendly-modal-panel { height: 100vh; max-width: none; border-radius: 0; }
}
