/* PSY Booking — modal, slots, form. Brand vars with hex fallbacks (theme-independent). */
.psy-modal {
  --teal: var(--wp--preset--color--teal, #2F5D62);
  --dark: var(--wp--preset--color--dark, #1F2E30);
  --muted: var(--wp--preset--color--muted, #5A6C6E);
  --sand: var(--wp--preset--color--sand, #CBBBA0);
  --surface: var(--wp--preset--color--surface, #fff);
  --border: rgba(31,46,48,.10);
  --bad: #8a4b3a;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; transition: opacity .19s ease;
}
.psy-modal.open { opacity: 1; }
.psy-modal[hidden] { display: none; }
.psy-backdrop { position: absolute; inset: 0; border: 0; background: rgba(31,46,48,.45); cursor: pointer; }
.psy-panel { position: relative; background: var(--surface); border-radius: 24px; max-width: 560px; width: 100%; max-height: 90vh; overflow: hidden; box-shadow: 0 24px 60px rgba(31,46,48,.28); transform: translateY(8px); transition: transform .19s ease; }
.psy-modal.open .psy-panel { transform: none; }
.psy-x { position: absolute; top: 14px; right: 14px; z-index: 2; border: 0; background: rgba(31,46,48,.06); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--dark); }
.psy-x:hover { background: rgba(31,46,48,.12); }
.psy-body { padding: 30px 30px 26px; overflow-y: auto; max-height: 90vh; color: var(--dark); line-height: 1.6; }
.psy-body h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.7rem; line-height: 1.15; margin: 0 0 6px; }
/* bio modal section labels — mirror a3.css .modal-body h4 (the static build) so WP matches Vercel */
.psy-body h4 { font: 700 11px Manrope; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 28px 0 12px; }
.psy-body h4:first-of-type { margin-top: 22px; }
.psy-sub, .psy-role { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.psy-info { background: rgba(47,93,98,.06); border-radius: 12px; padding: 10px 14px; font-size: .9rem; color: var(--dark); margin: 12px 0; }

/* chooser */
.psy-chlist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.psy-chrow { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.psy-chrow:hover { border-color: var(--teal); box-shadow: 0 8px 22px rgba(31,46,48,.08); }
.psy-chmeta { display: flex; flex-direction: column; }
.psy-chmeta b { font-weight: 700; font-size: 1rem; }
.psy-chmeta i { font-style: normal; color: var(--muted); font-size: .82rem; }
/* service-format picker rows (reuse chooser-row look) */
a.psy-chrow { text-decoration: none; color: var(--dark); }
.psy-svcrow { justify-content: space-between; }
.psy-svcgo { color: var(--teal); font-weight: 700; font-size: 1.1rem; flex: none; }
.psy-ava { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: 0 0 56px; display: flex; align-items: center; justify-content: center; background: var(--sand); }
.psy-ava img { width: 100%; height: 100%; object-fit: cover; }
.psy-ava-i { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; color: var(--dark); }
.psy-ava--sm { width: 46px; height: 46px; flex-basis: 46px; }
.psy-mhead { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }

/* steps */
.psy-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0; font-size: .8rem; color: var(--muted); }
.psy-steps span { display: inline-flex; align-items: center; gap: 6px; }
.psy-steps b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(31,46,48,.08); font-size: .72rem; }
.psy-steps .is-active { color: var(--dark); font-weight: 600; }
.psy-steps .is-active b { background: var(--teal); color: #fff; }
.psy-steps .is-done b { background: var(--teal); color: #fff; }
.psy-steps em { color: rgba(31,46,48,.3); font-style: normal; }

.psy-risk { font-size: .85rem; color: var(--muted); background: rgba(203,187,160,.18); border-left: 3px solid var(--sand); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0; }
.psy-soon { background: rgba(203,187,160,.22); border-left: 3px solid var(--sand); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: .9rem; margin: 12px 0; }
.psy-tznote { font-size: .8rem; color: var(--muted); margin: 4px 0 10px; }
.psy-err { color: var(--bad); font-size: .88rem; }
.psy-notice { background: rgba(203,187,160,.22); border-left: 3px solid var(--sand); border-radius: 0 10px 10px 0; padding: 10px 14px; }

/* buttons */
.psy-btn { display: inline-block; background: var(--teal); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.5rem; font: 600 .92rem Manrope, sans-serif; cursor: pointer; text-decoration: none; transition: background .18s; }
.psy-btn:hover { background: var(--dark); color: #fff; }
.psy-btn:disabled { opacity: .6; cursor: wait; }
.psy-btn-pay { width: 100%; text-align: center; }
.psy-link { background: none; border: 0; color: var(--teal); font: 600 .85rem Manrope, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }
.psy-link:hover { color: var(--dark); }
.psy-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }

/* slots */
.psy-slotzone { margin-top: 6px; }
.psy-slotday h4 { font: 600 .8rem Manrope; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 8px; }
.psy-slotchips { display: flex; flex-wrap: wrap; gap: 8px; }
.psy-slotchip { min-width: 96px; display: flex; flex-direction: column; align-items: center; gap: 1px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; cursor: pointer; transition: border-color .18s, background .18s; }
.psy-slotchip:hover { border-color: var(--teal); background: rgba(47,93,98,.05); }
.psy-slotchip b { font: 700 .95rem Manrope; color: var(--dark); }
.psy-slotchip i { font: 500 .72rem Manrope; font-style: normal; color: var(--muted); }
.psy-pager { display: flex; justify-content: space-between; margin-top: 16px; }
.psy-skel { height: 14px; width: 40%; border-radius: 6px; background: linear-gradient(90deg,#eee,#f6f6f6,#eee); background-size: 200% 100%; animation: psy-sh 1.2s infinite; margin: 14px 0 8px; }
.psy-skelrow { display: flex; gap: 8px; }
.psy-skelrow i { height: 44px; width: 96px; border-radius: 12px; background: linear-gradient(90deg,#eee,#f6f6f6,#eee); background-size: 200% 100%; animation: psy-sh 1.2s infinite; }
@keyframes psy-sh { to { background-position: -200% 0; } }

/* form */
.psy-picksum { margin-top: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.psy-picksum b { font: 700 .95rem Manrope; }
.psy-picksum span { font: 500 .8rem Manrope; color: var(--muted); }
.psy-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.psy-field { display: flex; flex-direction: column; gap: 6px; }
.psy-field label { font: 600 .8rem Manrope; letter-spacing: .02em; }
.psy-form input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: 500 .98rem Manrope; color: var(--dark); }
.psy-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(47,93,98,.12); }
.psy-form input.is-bad { border-color: var(--bad); background: rgba(138,75,58,.03); }
.psy-fhint { font: 500 .78rem Manrope; color: var(--muted); }
.psy-ferr { font: 600 .82rem Manrope; color: var(--bad); }
.psy-ferr:empty { display: none; }
.psy-gerr { padding: 10px 14px; background: rgba(138,75,58,.06); border-radius: 10px; }
.psy-promo-link { align-self: flex-start; background: none; border: 0; padding: 0; font: 600 .85rem Manrope; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.psy-promo-row { display: flex; gap: 10px; }
.psy-promo-row input { flex: 1; text-transform: uppercase; }
.psy-btn-ghost { white-space: nowrap; border: 1px solid var(--border); border-radius: 12px; padding: 0 16px; font: 600 .85rem Manrope; color: var(--teal); background: var(--surface); cursor: pointer; }
.psy-btn-ghost:hover { border-color: var(--teal); }
.psy-precap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; background: rgba(47,93,98,.05); border-radius: 12px; padding: 12px 16px; }
.psy-precap span { font: 600 .78rem Manrope; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.psy-precap b { font: 700 1.2rem Manrope; color: var(--teal); }
.psy-precap i { font: 500 .8rem Manrope; font-style: normal; color: var(--muted); }
.psy-paynote { font: 500 .78rem Manrope; color: var(--muted); }

/* result page */
.psy-rez { max-width: 560px; margin: 48px auto; background: var(--wp--preset--color--surface,#fff); border: 1px solid rgba(31,46,48,.08); border-radius: 24px; box-shadow: 0 1px 2px rgba(31,46,48,.04),0 10px 30px rgba(31,46,48,.07); padding: 40px 36px; text-align: center; font-family: Manrope, sans-serif; color: var(--wp--preset--color--dark,#1F2E30); }
.psy-rez h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 2rem; margin: 0 0 12px; }
.psy-rez p { color: var(--wp--preset--color--muted,#5A6C6E); line-height: 1.6; margin: 8px 0; }
.psy-rez-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: rgba(47,93,98,.1); color: var(--wp--preset--color--teal,#2F5D62); }
.psy-rez-ico.warn { background: rgba(203,187,160,.25); color: #7a6840; }
.psy-rez-ico.bad { background: rgba(138,75,58,.08); color: #8a4b3a; }
.psy-rez-when { margin: 18px 0; background: rgba(47,93,98,.05); border-radius: 12px; padding: 14px 18px; font: 700 .95rem Manrope; }
.psy-rez-when i { display: block; font: 500 .8rem Manrope; font-style: normal; color: var(--wp--preset--color--muted,#5A6C6E); margin-top: 4px; }
.psy-rez .psy-btn { margin-top: 20px; }
.psy-rez-ref { font: 500 .72rem Manrope; color: var(--wp--preset--color--muted,#5A6C6E); margin-top: 22px; word-break: break-all; }
.psy-spin { width: 36px; height: 36px; border: 3px solid rgba(47,93,98,.15); border-top-color: var(--wp--preset--color--teal,#2F5D62); border-radius: 50%; margin: 0 auto 20px; animation: psy-spin 1s linear infinite; }
@keyframes psy-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) { .psy-body { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .psy-skel, .psy-skelrow i, .psy-spin { animation: none; } .psy-modal, .psy-panel { transition: none; } }
