/* ==========================================================================
   Booking page (book-an-appointments.php, custom/js/book-page.js)
   Desktop: a sticky plum side with the photo, the title and a live "your visit"
   slip; the form on the right in four numbered blocks.
   Phone: the side becomes a short photo intro; a recap sits above the button.
   No cards: days, times and topics are pills; blocks are split by rules.
   Tokens (--pg-*), .pg-wrap and .pg-i come from custom/css/nav.css.
   ========================================================================== */

.pg-bp { display: block; font-family: var(--pg-font); color: var(--pg-ink); background: #fff; }
.pg-bp *, .pg-bp *::before, .pg-bp *::after { box-sizing: border-box; }
.pg-bp :where(p, ol, ul, dl, dd, fieldset, legend, h2, h3) { margin: 0; padding: 0; }
.pg-bp :where(ol, ul) { list-style: none; }
.pg-bp fieldset { min-width: 0; border: 0; }
.pg-bp a { text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
.pg-bp a:focus-visible, .pg-bp button:focus-visible { outline: 2px solid var(--pg-pink); outline-offset: 3px; }
.pg-bp .pg-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-bp input[type="radio"], .pg-bp input[type="checkbox"] {
	position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}

/* --------------------------------------------------------------------------
   Stage: side + form
   -------------------------------------------------------------------------- */
.pg-bp__stage {
	display: grid;
	grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
	align-items: start;
	border-bottom: 1px solid var(--pg-line);
}

/* Side ------------------------------------------------------------------- */
.pg-bp__side {
	position: sticky;
	top: var(--pg-bar-h);
	min-height: calc(100vh - var(--pg-bar-h));
	display: flex;
	overflow: hidden;
	background: var(--pg-plum-deep);
	color: #fff;
	isolation: isolate;
}
.pg-bp__photo {
	position: absolute; inset: 0; z-index: -2;
	width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 42%;
}
.pg-bp__side::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(42, 35, 99, .96) 0%, rgba(42, 35, 99, .86) 26%, rgba(42, 35, 99, .18) 52%, rgba(42, 35, 99, .55) 70%, rgba(36, 30, 86, .97) 88%),
		radial-gradient(520px 320px at 100% 0%, rgba(230, 8, 127, .28), transparent 70%);
}
.pg-bp__side-in {
	display: flex; flex-direction: column;
	width: 100%;
	padding: 30px var(--pg-gutter) 30px;
}

.pg-bp__crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.pg-bp__crumbs a { color: rgba(255, 255, 255, .7); }
.pg-bp__crumbs a:hover { color: #fff; }
.pg-bp__crumbs .pg-i { width: 14px; height: 14px; opacity: .6; }
.pg-bp__crumbs span { color: #fff; font-weight: 500; }

.pg-bp__eyebrow {
	margin-bottom: 10px;
	font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
	color: #ff7cc0;
}
.pg-bp__title {
	margin: 0 0 14px;
	font: 600 clamp(34px, 3.4vw, 52px)/1.06 var(--pg-font);
	letter-spacing: -.02em; text-transform: none;
	color: #fff;
}
.pg-bp h1.pg-bp__title span { display: block; color: #ff7cc0; }
.pg-bp__lede { font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .82); }

/* Live slip: what has been chosen so far */
.pg-bp__slip {
	margin-top: auto;
	padding-top: 40px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 28px;
}
.pg-bp__slip > div {
	display: flex; flex-direction: column; gap: 3px;
	padding: 13px 0;
	border-top: 1px dashed rgba(255, 255, 255, .28);
}
.pg-bp__slip dt { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pg-bp__slip dd {
	font-size: 18px; font-weight: 500; line-height: 1.3; color: #fff;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	transition: color .25s;
}
.pg-bp__slip dd.is-empty { color: rgba(255, 255, 255, .42); font-weight: 400; }
.pg-bp__slip dd.is-new { animation: pg-bp-pop .45s var(--pg-ease); }
@keyframes pg-bp-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pg-bp__status {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	margin-top: 16px; padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	font-size: 14.5px; color: rgba(255, 255, 255, .78);
}
.pg-bp__dot { width: 8px; height: 8px; border-radius: 50%; background: #ffb4b4; }
.pg-bp__status.is-open .pg-bp__dot { background: #5fe3a1; box-shadow: 0 0 0 4px rgba(95, 227, 161, .2); }
.pg-bp__status a { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #fff; font-weight: 500; }
.pg-bp__status a:hover { color: #ff7cc0; }
.pg-bp__status .pg-i { width: 16px; height: 16px; }

/* Form side -------------------------------------------------------------- */
.pg-bp__main { min-width: 0; padding: 30px var(--pg-gutter) 44px 48px; }
.pg-bp__form { display: block; }

.pg-bp__alert {
	margin-bottom: 18px; padding: 12px 16px;
	border-left: 3px solid var(--pg-pink);
	background: var(--pg-blush);
	font-size: 15px; line-height: 1.5; color: var(--pg-pink-deep);
}

.pg-bp__block { padding: 22px 0 24px; border-bottom: 1px solid var(--pg-line); }
.pg-bp__block:first-of-type { padding-top: 6px; }
.pg-bp__head {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
	float: none; /* Bootstrap floats legends; a float here pushes the time rows sideways */
	width: 100%; margin-bottom: 14px !important;
	font: 600 20px/1.25 var(--pg-font); color: var(--pg-ink);
}
.pg-bp__head small { font-size: 13.5px; font-weight: 400; color: var(--pg-muted); }
.pg-bp__num {
	font-size: 13px; font-weight: 700; letter-spacing: .08em;
	color: var(--pg-pink);
	font-variant-numeric: tabular-nums;
}

/* Days strip */
.pg-bp__days {
	display: flex; gap: 8px;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x proximity; scrollbar-width: none;
	padding: 2px 2px 6px;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.pg-bp__days::-webkit-scrollbar { display: none; }
.pg-bp__day { position: relative; flex: none; scroll-snap-align: start; cursor: pointer; }
.pg-bp__day span {
	display: flex; flex-direction: column; align-items: center;
	width: 76px; padding: 10px 0 11px;
	border: 1px solid var(--pg-line); border-radius: 16px;
	font-size: 12.5px; color: var(--pg-muted);
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--pg-ease);
}
.pg-bp__day em { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pg-bp__day b { font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--pg-ink); }
.pg-bp__day:hover span { border-color: rgba(59, 50, 132, .35); }
.pg-bp__day input:checked + span { background: var(--pg-plum); border-color: var(--pg-plum); color: rgba(255, 255, 255, .78); }
.pg-bp__day input:checked + span b { color: #fff; }
.pg-bp__day input:focus-visible + span { outline: 2px solid var(--pg-pink); outline-offset: 2px; }
.pg-bp__day:active span { transform: scale(.96); }

/* Times */
.pg-bp__panel + .pg-bp__panel { margin-top: 22px; }
.pg-bp__panel-day { margin-bottom: 8px !important; font-weight: 600; color: var(--pg-plum); }
.pg-bp__form.is-js .pg-bp__panel:not([data-current]) { display: none; }
.pg-bp__form.is-js .pg-bp__panel + .pg-bp__panel { margin-top: 0; }
.pg-bp__form.is-js .pg-bp__panel-day { display: none; }
.pg-bp__form.is-js .pg-bp__panel[data-current] { animation: pg-bp-fade .35s var(--pg-ease); }
@keyframes pg-bp-fade { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }

.pg-bp__part { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.pg-bp__part + .pg-bp__part { margin-top: 10px; }
.pg-bp__part-name { padding-top: 9px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pg-muted); }
.pg-bp__times { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-bp__time { position: relative; cursor: pointer; }
.pg-bp__time span {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 0 16px;
	border: 1px solid var(--pg-line); border-radius: 999px;
	font-size: 15px; font-weight: 500; color: var(--pg-ink);
	font-variant-numeric: tabular-nums;
	transition: background-color .2s, border-color .2s, color .2s;
}
.pg-bp__time:hover span { border-color: var(--pg-pink); color: var(--pg-pink); }
.pg-bp__time input:checked + span { background: var(--pg-pink); border-color: var(--pg-pink); color: #fff; }
.pg-bp__time input:focus-visible + span { outline: 2px solid var(--pg-plum); outline-offset: 2px; }

.pg-bp__none { font-size: 15.5px; color: var(--pg-muted); }

/* Topic chips */
.pg-bp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-bp__chip { position: relative; cursor: pointer; }
.pg-bp__chip span {
	display: inline-flex; align-items: center; gap: 0;
	min-height: 40px; padding: 0 16px;
	border-radius: 999px; background: var(--pg-lilac);
	font-size: 15px; color: var(--pg-ink);
	transition: background-color .2s, color .2s, gap .25s var(--pg-ease);
}
.pg-bp__chip .pg-i { width: 0; height: 16px; stroke-width: 2.4; transition: width .25s var(--pg-ease); }
.pg-bp__chip:hover span { background: #e7e3f7; }
.pg-bp__chip input:checked + span { background: var(--pg-plum); color: #fff; gap: 6px; }
.pg-bp__chip input:checked + span .pg-i { width: 16px; }
.pg-bp__chip input:focus-visible + span { outline: 2px solid var(--pg-pink); outline-offset: 2px; }

/* Details */
.pg-bp__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.pg-bp__field { display: flex; flex-direction: column; min-width: 0; }
.pg-bp__field--wide { grid-column: 1 / -1; }
.pg-bp__field label { margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pg-muted); }
.pg-bp__field label small { font-weight: 400; letter-spacing: 0; text-transform: none; }
.pg-bp__input {
	width: 100%; min-height: 48px; padding: 8px 0;
	border: 0; border-bottom: 1.5px solid #d9d5ea; border-radius: 0;
	background: transparent;
	font: 400 18px/1.4 var(--pg-font); color: var(--pg-ink);
	transition: border-color .2s;
}
textarea.pg-bp__input { resize: vertical; min-height: 64px; }
.pg-bp__input::placeholder { color: #b3afc8; }
.pg-bp__input:focus { outline: 0; border-bottom-color: var(--pg-plum); box-shadow: 0 1.5px 0 var(--pg-plum); }
.pg-bp__input.is-invalid { border-bottom-color: var(--pg-pink); }
.pg-bp__hint { min-height: 20px; padding-top: 5px; font-size: 13.5px; color: var(--pg-muted); }
.pg-bp__hint.is-error { color: var(--pg-pink-deep); }

/* Phone widget */
.pg-bp .iti { display: block; width: 100%; }
.pg-bp .iti__selected-country { border-radius: 0; }
.pg-bp .iti__selected-country-primary { padding-left: 0; }
.pg-bp .iti__dropdown-content { border-radius: 12px; border: 1px solid var(--pg-line); box-shadow: 0 18px 40px rgba(36, 31, 74, .14); }

/* Consent */
.pg-bp__consent { position: relative; display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; cursor: pointer; font-size: 14.5px; line-height: 1.55; color: var(--pg-muted); }
.pg-bp__tick {
	display: grid; place-items: center; flex: none;
	width: 22px; height: 22px; margin-top: 1px;
	border: 1.5px solid #cfcae4; border-radius: 6px;
	transition: background-color .2s, border-color .2s;
}
.pg-bp__tick .pg-i { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.6; opacity: 0; transition: opacity .2s; }
.pg-bp__consent input:checked + .pg-bp__tick { background: var(--pg-plum); border-color: var(--pg-plum); }
.pg-bp__consent input:checked + .pg-bp__tick .pg-i { opacity: 1; }
.pg-bp__consent input:focus-visible + .pg-bp__tick { outline: 2px solid var(--pg-pink); outline-offset: 2px; }
.pg-bp__consent.is-invalid .pg-bp__tick { border-color: var(--pg-pink); }
.pg-bp__consent a { color: var(--pg-plum); text-decoration: underline; text-underline-offset: 3px; }

/* Send */
.pg-bp__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 24px; }
.pg-bp__recap { display: none; }
.pg-bp__btn {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 56px; padding: 0 30px;
	border: 0; border-radius: 999px;
	background: var(--pg-pink); color: #fff;
	font: 600 17px/1 var(--pg-font);
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(230, 8, 127, .26);
	transition: background-color .2s, transform .2s var(--pg-ease), box-shadow .2s;
}
.pg-bp__btn:hover { background: var(--pg-pink-deep); transform: translateY(-1px); box-shadow: 0 16px 32px rgba(230, 8, 127, .32); }
.pg-bp__btn:active { transform: scale(.98); }
.pg-bp__btn .pg-i { transition: transform .25s var(--pg-ease); }
.pg-bp__btn:hover .pg-i { transform: translateX(3px); }
.pg-bp__btn.is-busy { pointer-events: none; opacity: .75; }
.pg-bp__btn.is-busy .pg-i { animation: pg-bp-nudge .8s ease-in-out infinite; }
@keyframes pg-bp-nudge { 50% { transform: translateX(5px); } }
.pg-bp__private { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--pg-muted); }
.pg-bp__private .pg-i { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   After you book
   -------------------------------------------------------------------------- */
.pg-bp__after {
	padding: 56px 0 60px;
	background: radial-gradient(600px 300px at 100% 0%, rgba(230, 8, 127, .06), transparent 70%), var(--pg-lilac);
}
.pg-bp__after-grid { display: grid; grid-template-columns: minmax(0, 32fr) minmax(0, 68fr); gap: 48px; align-items: start; }
.pg-bp__after-intro .pg-bp__eyebrow { color: var(--pg-pink); }
.pg-bp__h2 { margin-bottom: 12px !important; font: 600 clamp(28px, 2.6vw, 40px)/1.1 var(--pg-font); letter-spacing: -.02em; color: var(--pg-ink); text-transform: none; }
.pg-bp h2.pg-bp__h2 span { color: var(--pg-pink); }
.pg-bp__after-intro p:last-child { font-size: 16.5px; line-height: 1.6; color: var(--pg-muted); }

.pg-bp__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.pg-bp__steps li { position: relative; padding-top: 22px; border-top: 2px solid rgba(59, 50, 132, .14); }
.pg-bp__steps li::before {
	content: ""; position: absolute; left: 0; top: -2px;
	width: 48px; height: 2px; background: var(--pg-pink);
}
.pg-bp__step-no { display: block; margin-bottom: 10px; font-size: 44px; font-weight: 300; line-height: 1; color: var(--pg-plum); }
.pg-bp__steps h3 { margin-bottom: 6px !important; font: 600 19px/1.3 var(--pg-font); color: var(--pg-ink); text-transform: none; letter-spacing: 0; }
.pg-bp__steps p { font-size: 15.5px; line-height: 1.6; color: var(--pg-muted); }

/* --------------------------------------------------------------------------
   Rather talk
   -------------------------------------------------------------------------- */
.pg-bp__talk { padding: 22px 0; background: var(--pg-plum); color: #fff; }
.pg-bp__talk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.pg-bp__talk-title { font-size: 19px; font-weight: 600; }
.pg-bp__talk-list { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-left: auto !important; }
.pg-bp__talk-list a, .pg-bp__talk-list span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.pg-bp__talk-list a:hover { color: #ff7cc0; }
.pg-bp__talk-list .pg-i { width: 17px; height: 17px; color: #ff7cc0; }

/* --------------------------------------------------------------------------
   Smaller screens
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
	.pg-bp__main { padding-left: 36px; }
	.pg-bp__part { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.pg-bp__part-name { padding-top: 0; }
	.pg-bp__after-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Short desktop screens: the side scrolls with the page instead of sticking */
@media (min-width: 900px) and (max-height: 700px) {
	.pg-bp__side { position: relative; top: 0; }
}

@media (max-width: 899.98px) {
	.pg-bp__stage { display: block; }
	.pg-bp__side { position: relative; top: 0; min-height: 0; }
	.pg-bp__photo { object-position: 50% 30%; }
	.pg-bp__side::before {
		background: linear-gradient(180deg, rgba(42, 35, 99, .9) 0%, rgba(42, 35, 99, .62) 45%, rgba(36, 30, 86, .95) 100%);
	}
	.pg-bp__side-in { padding: 20px var(--pg-gutter) 22px; }
	.pg-bp__crumbs { margin-bottom: 16px; }
	.pg-bp__lede { font-size: 16px; }
	.pg-bp__slip { display: none; }
	.pg-bp__status { margin-top: 18px; padding-top: 14px; font-size: 14px; }

	.pg-bp__main { padding: 22px var(--pg-gutter) 32px; }
	.pg-bp__head { font-size: 18.5px; }
	.pg-bp__days { margin-right: calc(var(--pg-gutter) * -1); padding-right: var(--pg-gutter); }
	.pg-bp__day span { width: 68px; }
	.pg-bp__day em { font-size: 10px; letter-spacing: .02em; }
	.pg-bp__fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }

	.pg-bp__send { flex-direction: column; align-items: stretch; gap: 12px; }
	.pg-bp__recap {
		display: flex; align-items: center; gap: 10px;
		font-size: 15.5px; font-weight: 500; color: var(--pg-plum);
	}
	.pg-bp__recap[hidden] { display: none; }
	.pg-bp__recap .pg-i { color: var(--pg-pink); }
	.pg-bp__btn { justify-content: center; width: 100%; }
	.pg-bp__private { justify-content: center; }

	.pg-bp__after { padding: 40px 0 44px; }
	.pg-bp__steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.pg-bp__step-no { font-size: 36px; }

	.pg-bp__talk { padding: 22px 0 24px; }
	.pg-bp__talk-list { margin-left: 0 !important; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.pg-bp *, .pg-bp *::before, .pg-bp *::after { animation: none !important; transition: none !important; }
}
