/* ============================================================================
   PhotosbyB4 — Online Booking (modal + floating CTA)
   Brand: navy #1A1A2E surfaces, pink #FF71CB accent, Rubik / Karla / Clickerscript.
   Modeled on the Tee's Flooring booking flow, restyled to the PhotosbyB4 system.
   All selectors scoped under .pbk / .pbk-fab to avoid collisions with page CSS.
   ============================================================================ */

:root {
  --pbk-navy: #1A1A2E;
  --pbk-navy-deep: #141425;
  --pbk-navy-hover: #2D2D4A;
  --pbk-pink: #FF71CB;
  --pbk-pink-light: #FF9EE0;
  --pbk-line: rgba(255, 255, 255, .14);
  --pbk-muted: rgba(255, 255, 255, .66);
}

/* ── Floating CTA ─────────────────────────────────────────────────────────── */
.pbk-fab {
  position: fixed; z-index: 940; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pbk-pink); color: var(--pbk-navy);
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: .3px; text-decoration: none;
  box-shadow: 0 8px 26px rgba(255, 113, 203, .38), 0 2px 8px rgba(20, 20, 37, .3);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.pbk-fab:hover { background: var(--pbk-pink-light); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 113, 203, .46); }
.pbk-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pbk-fab svg { width: 18px; height: 18px; flex-shrink: 0; }
/* If a page has a back-to-top control, lift the FAB so they stack, not overlap. */
.pbk-fab.pbk-fab--raised { bottom: 84px; }
@media (max-width: 560px) {
  .pbk-fab { right: 14px; bottom: 14px; padding: 12px 18px; font-size: 14px; }
  .pbk-fab.pbk-fab--raised { bottom: 74px; }
  .pbk-fab .pbk-fab-label { display: inline; }
}

/* ── Overlay + panel ──────────────────────────────────────────────────────── */
.pbk { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pbk[hidden] { display: none; }
.pbk__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 22, .72); backdrop-filter: blur(3px); }
.pbk__panel {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--pbk-navy); color: #fff; border: 1px solid var(--pbk-line);
  border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: pbk-rise .28s cubic-bezier(.16, .84, .44, 1);
}
@keyframes pbk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.pbk__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s ease;
}
.pbk__close:hover { background: rgba(255, 255, 255, .18); }
.pbk__close:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 2px; }

.pbk__eyebrow {
  font-family: 'Karla', sans-serif; font-weight: 700; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pbk-pink); margin: 0 0 .5rem;
}
.pbk__title { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.2; margin: 0 0 .5rem; color: #fff; }
.pbk__title em { font-family: 'Clickerscript', cursive; font-style: normal; color: var(--pbk-pink); font-size: 1.35em; }
.pbk__sub { font-family: 'Karla', sans-serif; color: var(--pbk-muted); line-height: 1.55; margin: 0 0 1.4rem; font-size: .98rem; }

/* ── Step 1: session type + day + time picker ─────────────────────────────── */
.pbk-lbl { font-family: 'Karla', sans-serif; font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin: 0 0 .6rem; }
.pbk-lbl--gap, .pbk-lbl--time { margin-top: 1.3rem; }

/* session-type pills — pre-selected from the page, always changeable */
.pbk-types { display: flex; flex-wrap: wrap; gap: 8px; }
.pbk-type {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  background: var(--pbk-navy-deep); border: 1.5px solid var(--pbk-line); color: #fff;
  font-family: 'Karla', sans-serif; font-weight: 600; font-size: .92rem; transition: all .15s ease;
}
.pbk-type:hover { border-color: var(--pbk-pink-light); }
.pbk-type.sel { background: var(--pbk-pink); border-color: var(--pbk-pink); color: var(--pbk-navy); }
.pbk-type:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 2px; }

/* package (tier) pills — reuse .pbk-type, with a muted price + optional label */
.pbk-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.pbk-tier .pbk-tier-price { color: var(--pbk-muted); font-weight: 500; margin-left: 3px; }
.pbk-tier.sel .pbk-tier-price { color: var(--pbk-navy); }
.pbk-opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--pbk-muted); }

/* dates WRAP and fill each row; collapse to ~2 rows with a show-more expander */
.pbk-dates { display: flex; flex-wrap: wrap; gap: 8px; }
.pbk-dates.pbk-collapsed { max-height: 132px; overflow: hidden; }
.pbk-more {
  margin-top: 10px; background: none; border: 0; cursor: pointer; padding: 4px 2px;
  color: var(--pbk-pink-light); font-family: 'Karla', sans-serif; font-weight: 600; font-size: .85rem;
}
.pbk-more:hover { color: var(--pbk-pink); }
.pbk-more:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 2px; border-radius: 4px; }
.pbk-more[hidden] { display: none; }
.pbk-date {
  flex: 0 0 auto; min-width: 58px; height: 62px; box-sizing: border-box; padding: 8px 6px; border-radius: 12px; cursor: pointer;
  background: var(--pbk-navy-deep); border: 1.5px solid var(--pbk-line); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: all .15s ease;
  font-family: 'Karla', sans-serif;
}
.pbk-date:hover { border-color: var(--pbk-pink-light); }
.pbk-date .d-dow { font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--pbk-muted); }
.pbk-date .d-num { font-family: 'Rubik', sans-serif; font-size: 1.25rem; font-weight: 600; line-height: 1; }
.pbk-date .d-mon { font-size: .66rem; text-transform: uppercase; color: var(--pbk-muted); }
.pbk-date.sel { background: var(--pbk-pink); border-color: var(--pbk-pink); color: var(--pbk-navy); }
.pbk-date.sel .d-dow, .pbk-date.sel .d-mon { color: rgba(20, 20, 37, .72); }
.pbk-date:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 2px; }

.pbk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pbk-time {
  padding: 11px 8px; border-radius: 10px; cursor: pointer; text-align: center;
  background: var(--pbk-navy-deep); border: 1.5px solid var(--pbk-line); color: #fff;
  font-family: 'Karla', sans-serif; font-size: .92rem; font-weight: 600; transition: all .15s ease;
}
.pbk-time:hover { border-color: var(--pbk-pink-light); }
.pbk-time.sel { background: var(--pbk-pink); border-color: var(--pbk-pink); color: var(--pbk-navy); }
.pbk-time:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 2px; }
.pbk-hint { grid-column: 1 / -1; font-family: 'Karla', sans-serif; color: var(--pbk-muted); font-size: .92rem; margin: 0; padding: 6px 0; }
.pbk-hint a { color: var(--pbk-pink-light); }

.pbk-note { font-family: 'Karla', sans-serif; font-size: .82rem; color: var(--pbk-muted); margin: 1.1rem 0 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.pbk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 1.4rem; padding: 15px 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--pbk-pink); color: var(--pbk-navy);
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: .3px;
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.pbk-btn:hover { background: var(--pbk-pink-light); }
.pbk-btn:disabled { opacity: .55; cursor: not-allowed; }
.pbk-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pbk-back {
  background: none; border: 0; color: var(--pbk-pink-light); cursor: pointer;
  font-family: 'Karla', sans-serif; font-size: .9rem; font-weight: 600; padding: 0 0 1rem; display: inline-flex; align-items: center; gap: 4px;
}
.pbk-back:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 2px; border-radius: 4px; }

/* ── Step 2: details ──────────────────────────────────────────────────────── */
.pbk-picked {
  font-family: 'Karla', sans-serif; font-size: .92rem; color: #fff; background: var(--pbk-navy-deep);
  border: 1px solid var(--pbk-line); border-left: 3px solid var(--pbk-pink);
  border-radius: 10px; padding: 11px 14px; margin: 0 0 1.2rem;
}
.pbk-picked strong { color: var(--pbk-pink-light); }
.pbk-fld { display: block; margin-bottom: .95rem; }
.pbk-fld > span { display: block; font-family: 'Karla', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .74); margin-bottom: .4rem; }
.pbk-fld input, .pbk-fld select, .pbk-fld textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; box-sizing: border-box;
  background: var(--pbk-navy-deep); border: 1.5px solid var(--pbk-line); color: #fff;
  font-family: 'Karla', sans-serif; font-size: 1rem; transition: border-color .15s ease;
}
.pbk-fld textarea { resize: vertical; min-height: 68px; }
.pbk-fld input::placeholder, .pbk-fld textarea::placeholder { color: rgba(255, 255, 255, .4); }
.pbk-fld input:focus, .pbk-fld select:focus, .pbk-fld textarea:focus { outline: 0; border-color: var(--pbk-pink); }
.pbk-fld input.pbk-invalid { border-color: var(--pbk-pink-light); }
.pbk-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
@media (max-width: 460px) { .pbk-2col { grid-template-columns: 1fr; gap: 0; } }
.pbk-fld select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FF71CB' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 34px; }
.pbk-fld select option { background: var(--pbk-navy); color: #fff; }

/* A2P consent */
.pbk-consent { background: var(--pbk-navy-deep); border: 1px solid var(--pbk-line); border-left: 3px solid var(--pbk-pink); border-radius: 10px; padding: 13px 15px; margin: .4rem 0 1rem; }
.pbk-consent .pbk-consent-row { display: flex; align-items: flex-start; gap: 10px; }
.pbk-consent input.pbk-consent-check { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--pbk-pink); }
.pbk-consent label { font-family: 'Karla', sans-serif; font-size: .8rem; line-height: 1.5; color: var(--pbk-muted); }
.pbk-fine { font-family: 'Karla', sans-serif; font-size: .74rem; line-height: 1.5; color: rgba(255, 255, 255, .5); margin: .7rem 0 0; }
.pbk-fine a { color: var(--pbk-pink-light); }

.pbk-tswrap { margin: 1rem 0 .2rem; min-height: 4px; }
/* "verified, you're human" pill after Turnstile passes (bot-detection state) */
.pbk-verified { display: flex; align-items: center; gap: .5rem; margin: .55rem 0 0; padding: .55rem .8rem; border-radius: 10px; background: rgba(255, 113, 203, .12); border: 1px solid rgba(255, 158, 224, .4); color: var(--pbk-pink-light); font-family: 'Karla', sans-serif; font-weight: 700; font-size: .88rem; }
.pbk-verified[hidden] { display: none; }
.pbk-verified svg { flex: none; }
.pbk-err { font-family: 'Karla', sans-serif; color: var(--pbk-pink-light); font-size: .9rem; margin: .8rem 0 0; }

/* ── Branded bot-check wrapper (frames the Turnstile so it feels native) ────── */
.pbk-check-block { margin: 1rem 0 .2rem; padding: 12px 14px; border-radius: 12px; background: var(--pbk-navy-deep); border: 1px solid var(--pbk-line); }
.pbk-check-cap { display: flex; align-items: center; gap: 7px; font-family: 'Karla', sans-serif; font-size: .78rem; letter-spacing: .01em; color: var(--pbk-muted); margin-bottom: .6rem; }
.pbk-check-cap::before { content: ""; width: 13px; height: 13px; flex: none; background: var(--pbk-pink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ── Contact section header (accompanies the toggle) ────────────────────────── */
.pbk-eyebrow-c { font-family: 'Karla', sans-serif; font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pbk-pink); display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1rem; }
.pbk-eyebrow-c::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pbk-pink); }
.pbk-clicker { font-family: 'Clickerscript', cursive; color: var(--pbk-pink); font-size: 1.25em; }
.pbk-sub-c { max-width: 620px; margin: 0 auto 1.1rem; }
.pbk-callline { font-family: 'Karla', sans-serif; font-size: 1rem; color: rgba(255, 255, 255, .72); margin: 0 0 1.6rem; }
.pbk-callline a { color: var(--pbk-pink-light); font-weight: 700; text-decoration: none; }

/* ── Contact section: Book/Message segmented toggle + inline booking card ────── */
.pbk-toggle { display: inline-flex; background: var(--pbk-navy-deep); border: 1px solid var(--pbk-line); border-radius: 999px; padding: 4px; gap: 2px; margin-bottom: 2.25rem; }
.pbk-toggle button { border: 0; background: none; cursor: pointer; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: .95rem; color: rgba(255, 255, 255, .7); padding: 11px 26px; border-radius: 999px; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.pbk-toggle button:hover { color: #fff; }
.pbk-toggle button.sel { background: var(--pbk-pink); color: var(--pbk-navy); box-shadow: 0 4px 14px rgba(255, 113, 203, .3); }
.pbk-toggle button:focus-visible { outline: 2px solid var(--pbk-pink); outline-offset: 3px; }
.pbk-panel[hidden] { display: none; }
.pbk-inline { max-width: 620px; margin: 0 auto; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid var(--pbk-line); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2rem); }
.pbk-inline .pbk-btn { margin-top: 1.2rem; }

/* ── Confirm ──────────────────────────────────────────────────────────────── */
.pbk-conf-h { font-family: 'Rubik', sans-serif; font-weight: 500; font-size: clamp(1.35rem, 3.4vw, 1.8rem); line-height: 1.2; margin: 0 0 .5rem; color: #fff; }
.pbk-conf-h em { font-family: 'Clickerscript', cursive; font-style: normal; color: var(--pbk-pink); font-size: 1.3em; }
.pbk-conf-msg { font-family: 'Karla', sans-serif; color: var(--pbk-muted); line-height: 1.55; margin: 0 0 .2rem; }
.pbk-confirm { text-align: center; padding: .5rem 0; }
.pbk-check { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 113, 203, .14); color: var(--pbk-pink); }
.pbk-check svg { width: 34px; height: 34px; }
.pbk-check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: pbk-draw .5s ease .1s forwards; }
@keyframes pbk-draw { to { stroke-dashoffset: 0; } }
.pbk-sig { font-family: 'Clickerscript', cursive; font-size: 1.9rem; color: var(--pbk-pink-light); margin: .6rem 0 0; }

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .pbk__panel { animation: none; }
  .pbk-check svg path { animation: none; stroke-dashoffset: 0; }
  .pbk-fab { transition: none; }
}

/* ── Mobile: full-screen sheet ────────────────────────────────────────────── */
@media (max-width: 560px) {
  .pbk { padding: 0; align-items: stretch; }
  .pbk__panel { max-width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; }
}
