/* ============================================================
   Book-your-demo modal (UI only). Hand-written, no Tailwind needed.
   Palette: emerald #004d2c/#08361f/#0d6b3f, gold #c8a84b/#e5c76b
   ============================================================ */
.jxbd-root { position: fixed; inset: 0; z-index: 1000; display: none; }
.jxbd-root.is-open { display: block; }
.jxbd-backdrop { position: absolute; inset: 0; background: rgba(2, 20, 12, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: jxbd-fade .2s ease both; }
.jxbd-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(100% - 2rem); max-width: 600px; max-height: 90vh; max-height: 90dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #08361f; color: #fbf8f0; border: 1px solid #1c6b48; border-radius: 1.25rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55); animation: jxbd-pop .22s ease both;
  font-family: "Inter", sans-serif;
}
.jxbd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .8rem; border-bottom: 1px solid rgba(28, 107, 72, .7); background: #08361f; }
.jxbd-title { font-family: "Playfair Display", serif; font-size: 1.4rem; font-weight: 700; line-height: 1.2; color: #fbf8f0; margin: 0; }
.jxbd-close { flex: none; width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid #1c6b48; background: transparent; color: #fbf8f0; font-size: 1.25rem; line-height: 1; cursor: pointer; }
.jxbd-close:hover { background: #0d6b3f; }
.jxbd-steps { display: flex; gap: .5rem; margin-top: .6rem; font-size: .75rem; color: #d6d3c4; }
.jxbd-step { display: inline-flex; align-items: center; gap: .4rem; }
.jxbd-step b { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 9999px; border: 1px solid #1c6b48; font-weight: 600; font-size: .7rem; }
.jxbd-step.is-active { color: #e5c76b; font-weight: 600; }
.jxbd-step.is-active b, .jxbd-step.is-done b { background: #c8a84b; color: #0d1f14; border-color: #c8a84b; }
.jxbd-step + .jxbd-step::before { content: ""; display: inline-block; width: 1.5rem; height: 1px; background: #1c6b48; margin-right: .5rem; vertical-align: middle; }
.jxbd-body { flex: 1 1 auto; overflow-y: auto; padding: 1rem 1.25rem; -webkit-overflow-scrolling: touch; }
.jxbd-foot { padding: .8rem 1.25rem; padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(28, 107, 72, .7); background: #08361f; }
.jxbd-actions { display: flex; gap: .6rem; }
.jxbd-actions .jxbd-btn { flex: 1; }
.jxbd-alt { margin: .6rem 0 0; text-align: center; font-size: .8rem; color: #d6d3c4; }
.jxbd-alt a { color: #e5c76b; text-decoration: underline; }
.jxbd-btn { appearance: none; border: 0; cursor: pointer; border-radius: .8rem; padding: .8rem 1.1rem; font: 700 .95rem "Inter", sans-serif; transition: filter .2s, transform .15s; }
.jxbd-btn-primary { background: linear-gradient(135deg, #c8a84b, #e5c76b); color: #0d1f14; }
.jxbd-btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.jxbd-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.jxbd-btn-ghost { background: transparent; color: #fbf8f0; border: 1px solid #1c6b48; }
.jxbd-btn-ghost:hover { background: #0d6b3f; }
.jxbd-root :focus-visible { outline: 2px solid #e5c76b; outline-offset: 2px; }

.jxbd-label { display: block; font-size: .8rem; font-weight: 600; color: #d6d3c4; margin: 0 0 .45rem; }
.jxbd-pills { display: flex; gap: .5rem; margin-bottom: .9rem; flex-wrap: wrap; }
.jxbd-pill { border: 1px solid #1c6b48; background: rgba(255, 255, 255, .05); color: #fbf8f0; border-radius: 9999px; padding: .35rem .9rem; font: 600 .8rem "Inter", sans-serif; cursor: pointer; }
.jxbd-pill:hover { border-color: #c8a84b; }
.jxbd-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .1rem .7rem; margin-bottom: .6rem; scroll-snap-type: x proximity; }

/* Scrollbars (modal body + date strip): slim gold thumb on a faint emerald track.
   WebKit/Blink use the pseudo-elements; Firefox falls back to scrollbar-color. */
.jxbd-body::-webkit-scrollbar, .jxbd-strip::-webkit-scrollbar { width: 8px; height: 6px; }
.jxbd-body::-webkit-scrollbar-track, .jxbd-strip::-webkit-scrollbar-track { background: rgba(28, 107, 72, .25); border-radius: 9999px; }
.jxbd-body::-webkit-scrollbar-track { margin: .5rem 0; }
.jxbd-strip::-webkit-scrollbar-track { margin: 0 .25rem; }
.jxbd-body::-webkit-scrollbar-thumb, .jxbd-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c8a84b, #a8892f); border-radius: 9999px; border: 2px solid #08361f;
}
.jxbd-strip::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #c8a84b, #a8892f); border-width: 1px; }
.jxbd-body::-webkit-scrollbar-thumb:hover, .jxbd-strip::-webkit-scrollbar-thumb:hover { background: #e5c76b; }
.jxbd-body::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) {
  .jxbd-body, .jxbd-strip { scrollbar-width: thin; scrollbar-color: #c8a84b rgba(28, 107, 72, .25); }
}
.jxbd-chip { flex: none; scroll-snap-align: start; min-width: 4.4rem; padding: .55rem .5rem; text-align: center; border-radius: .8rem; border: 1px solid #1c6b48; background: rgba(255, 255, 255, .05); color: #fbf8f0; cursor: pointer; font-family: "Inter", sans-serif; }
.jxbd-chip small { display: block; font-size: .68rem; color: #d6d3c4; text-transform: uppercase; letter-spacing: .04em; }
.jxbd-chip strong { display: block; font-size: 1.3rem; line-height: 1.2; font-family: "Playfair Display", serif; }
.jxbd-chip em { display: block; font-style: normal; font-size: .7rem; color: #d6d3c4; }
.jxbd-chip:hover { border-color: #c8a84b; }
.jxbd-chip[aria-pressed="true"], .jxbd-slot[aria-pressed="true"] { background: #0d6b3f; border-color: #e5c76b; box-shadow: 0 0 0 2px rgba(229, 199, 107, .55); }
.jxbd-chip[aria-pressed="true"] small, .jxbd-chip[aria-pressed="true"] em { color: #e5c76b; }
.jxbd-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 640px) { .jxbd-slots { grid-template-columns: repeat(3, 1fr); } }
.jxbd-slot { padding: .6rem .4rem; border-radius: .75rem; border: 1px solid #1c6b48; background: rgba(255, 255, 255, .05); color: #fbf8f0; cursor: pointer; text-align: center; font: 600 .85rem "Inter", sans-serif; }
.jxbd-slot:hover { border-color: #c8a84b; }
.jxbd-slot span { display: block; font-weight: 400; font-size: .7rem; color: #d6d3c4; margin-top: .15rem; }
.jxbd-slot[aria-pressed="true"] span { color: #e5c76b; }
.jxbd-note { margin: .8rem 0 0; font-size: .78rem; color: #d6d3c4; }
.jxbd-empty { padding: 1rem; border: 1px dashed #1c6b48; border-radius: .8rem; color: #d6d3c4; font-size: .9rem; text-align: center; }

.jxbd-summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .9rem; border-radius: .8rem; border: 1px solid #c8a84b; background: rgba(200, 168, 75, .1); margin-bottom: 1rem; font-size: .88rem; }
.jxbd-summary b { display: block; color: #e5c76b; }
.jxbd-summary small { color: #d6d3c4; }
.jxbd-link { background: none; border: 0; color: #e5c76b; text-decoration: underline; cursor: pointer; font: 600 .85rem "Inter", sans-serif; }
.jxbd-field { margin-bottom: .9rem; }
.jxbd-field input, .jxbd-field textarea { width: 100%; box-sizing: border-box; border-radius: .7rem; border: 1px solid #1c6b48; background: rgba(0, 0, 0, .25); color: #fbf8f0; padding: .7rem .8rem; font: 400 1rem "Inter", sans-serif; }
.jxbd-field input::placeholder, .jxbd-field textarea::placeholder { color: #a9ad9c; }
.jxbd-field input[aria-invalid="true"], .jxbd-field textarea[aria-invalid="true"] { border-color: #ff9d8a; }
.jxbd-err { margin: .3rem 0 0; font-size: .78rem; color: #ffb4a6; }
.jxbd-err:empty { display: none; }

.jxbd-success { text-align: center; padding: 1rem 0; }
.jxbd-tick { width: 4rem; height: 4rem; border-radius: 9999px; margin: 0 auto 1rem; display: grid; place-items: center; background: #0d6b3f; border: 2px solid #e5c76b; font-size: 2rem; color: #e5c76b; }
.jxbd-success h3 { font-family: "Playfair Display", serif; font-size: 1.6rem; margin: 0 0 .5rem; }
.jxbd-success p { color: #d6d3c4; margin: 0 0 1rem; }
.jxbd-success .jxbd-summary { text-align: left; }

/* Mobile: bottom sheet */
@media (max-width: 639px) {
  .jxbd-dialog { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-width: none; height: 92vh; height: 92dvh; max-height: none; border-radius: 1.25rem 1.25rem 0 0; border-bottom: 0; animation: jxbd-slide .28s ease both; }
}
@keyframes jxbd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jxbd-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes jxbd-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .jxbd-backdrop, .jxbd-dialog { animation: none !important; } .jxbd-btn { transition: none; } }
.jxbd-success h3:focus { outline: none; }

/* ---- Live booking additions ---- */
.jxbd-slot:disabled, .jxbd-slot.is-booked { opacity: .45; cursor: not-allowed; background: rgba(255, 255, 255, .02); border-style: dashed; }
.jxbd-slot.is-booked:hover { border-color: #1c6b48; }
.jxbd-slot .jxbd-booked-tag { color: #ffb4a6; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .65rem; }
.jxbd-skel { min-height: 2.9rem; border-color: transparent; cursor: default; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(229, 199, 107, .16) 50%, rgba(255, 255, 255, .05) 70%); background-size: 200% 100%; animation: jxbd-shimmer 1.2s linear infinite; }
@keyframes jxbd-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.jxbd-banner { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: .8rem; font-size: .88rem; line-height: 1.45; border: 1px solid #c8a84b; background: rgba(200, 168, 75, .12); color: #fbf8f0; }
.jxbd-banner.is-error { border-color: #ff9d8a; background: rgba(255, 157, 138, .1); }
.jxbd-banner a { color: #e5c76b; text-decoration: underline; font-weight: 600; white-space: nowrap; }

.jxbd-group { margin-bottom: .9rem; padding: .8rem .8rem .1rem; border: 1px solid rgba(28, 107, 72, .8); border-radius: .9rem; }
.jxbd-group.is-invalid { border-color: #ff9d8a; }
.jxbd-hint { margin: 0 0 .7rem; font-size: .8rem; color: #d6d3c4; }
.jxbd-group > .jxbd-err { margin: -.4rem 0 .7rem; }

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.jxbd-hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.jxbd-spin { display: inline-block; width: .95rem; height: .95rem; margin-right: .5rem; vertical-align: -.15rem; border: 2px solid rgba(13, 31, 20, .3); border-top-color: #0d1f14; border-radius: 9999px; animation: jxbd-rot .7s linear infinite; }
@keyframes jxbd-rot { to { transform: rotate(360deg); } }

.jxbd-success h3 { font-size: 1.7rem; }
.jxbd-ref { display: inline-flex; flex-direction: column; gap: .1rem; margin: 0 auto 1rem; padding: .55rem 1.1rem; border: 1px dashed #c8a84b; border-radius: .8rem; background: rgba(200, 168, 75, .08); }
.jxbd-ref span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #d6d3c4; }
.jxbd-ref b { font-size: 1.2rem; color: #e5c76b; letter-spacing: .04em; }
.jxbd-next { text-align: left; margin: 0 0 1rem; padding: .9rem 1rem; border-radius: .9rem; background: rgba(0, 0, 0, .2); border: 1px solid rgba(28, 107, 72, .8); }
.jxbd-next h4 { margin: 0 0 .5rem; font-size: .85rem; color: #e5c76b; text-transform: uppercase; letter-spacing: .05em; }
.jxbd-next ol { margin: 0; padding-left: 1.2rem; list-style: decimal; color: #d6d3c4; font-size: .88rem; line-height: 1.5; }
.jxbd-next li + li { margin-top: .35rem; }
.jxbd-cal { display: inline-block; text-decoration: none; margin-bottom: .8rem; }
.jxbd-success .jxbd-change { margin: 0; font-size: .85rem; }
.jxbd-change a { color: #e5c76b; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .jxbd-skel, .jxbd-spin { animation-duration: 2.4s; } .jxbd-skel { animation: none; } }
