/**
 * Book Consultation page
 * Bright Horizons Psychiatry
 */

.bhp-book {
	--bhp-book-sticky-top: calc(var(--bhp-header-height, 4.5rem) + 2.5rem);
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	background:
		radial-gradient(ellipse 70% 55% at 88% 8%, rgba(75, 190, 221, 0.14), transparent 58%),
		linear-gradient(165deg, #eef4f8 0%, var(--bhp-white) 40%, #f3f6f9 100%);
	color: var(--bhp-ink);
}

.bhp-book__inner {
	display: grid;
	align-items: start;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-top: clamp(2.25rem, 5vw, 3.75rem);
	padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 992px) {
	.bhp-book__inner {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
		gap: clamp(2.5rem, 5vw, 4rem);
	}
}

.bhp-book__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1rem, 2vh, 1.35rem);
	max-width: 34rem;
	animation: bhp-book-rise 0.8s var(--bhp-ease-out, ease-out) both;
}

@media (min-width: 992px) {
	.bhp-book__copy {
		position: sticky;
		top: var(--bhp-book-sticky-top);
	}
}

.bhp-book__eyebrow {
	margin: 0;
	font-size: var(--bhp-fs-sm, 0.875rem);
	font-weight: var(--bhp-fw-semibold, 600);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bhp-primary);
}

.bhp-book__title {
	margin: 0;
	font-size: clamp(1.85rem, 4.2vw, 2.75rem);
	font-weight: var(--bhp-fw-bold, 700);
	letter-spacing: var(--bhp-ls-tight, -0.035em);
	line-height: 1.12;
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-book__text {
	margin: 0;
	font-size: var(--bhp-fs-base, 1rem);
	font-weight: var(--bhp-fw-medium, 500);
	line-height: var(--bhp-lh-relaxed, 1.65);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

.bhp-book__trust {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.bhp-book__trust-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-size: var(--bhp-fs-sm, 0.875rem);
	font-weight: var(--bhp-fw-medium, 500);
	line-height: var(--bhp-lh-snug, 1.35);
	color: var(--bhp-ink);
}

.bhp-book__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: var(--bhp-radius-full, 9999px);
	background: rgba(1, 58, 101, 0.08);
	color: var(--bhp-primary);
	font-size: 0.8rem;
	line-height: 1;
}

.bhp-book__call {
	margin-top: 0.35rem;
}

.bhp-book__form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	width: 100%;
	animation: bhp-book-fade 0.95s var(--bhp-ease-out, ease-out) 0.1s both;
}

.bhp-book__form-card {
	width: 100%;
	padding: clamp(0.75rem, 1.5vw, 1.15rem);
	background: var(--bhp-white);
	border: 1px solid rgba(0, 17, 30, 0.08);
	border-radius: var(--bhp-btn-radius, 0.25rem);
	box-shadow: 0 18px 40px rgba(0, 17, 30, 0.06);
}

.bhp-book__form-card .bhp-ghl-calendar,
.bhp-book__form-card .bhp-g-hero__form-embed {
	min-height: 782px;
}

.bhp-book__form-empty {
	margin: 0 0 1rem;
	font-size: var(--bhp-fs-base, 1rem);
	line-height: var(--bhp-lh-relaxed, 1.65);
	color: var(--bhp-ink-muted);
}

.bhp-book__legal {
	margin: clamp(0.85rem, 1.5vw, 1.15rem) 0 0;
	padding: 0 0.25rem;
	font-size: var(--bhp-fs-xs, 0.8125rem);
	line-height: var(--bhp-lh-relaxed, 1.65);
	color: var(--bhp-ink-subtle);
	text-align: center;
	text-wrap: pretty;
}

.bhp-book__legal a {
	color: var(--bhp-primary);
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.bhp-book__legal a:hover,
.bhp-book__legal a:focus-visible {
	color: var(--bhp-primary-dark);
}

/* ——— Steps ——— */
.bhp-book-steps {
	background: var(--bhp-surface-soft, #f4f6f8);
	padding-top: clamp(2.75rem, 6vw, 4.5rem);
	padding-bottom: clamp(3rem, 6vw, 5rem);
}

.bhp-book-steps__header {
	max-width: 36rem;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}

.bhp-book-steps__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--bhp-fw-bold, 700);
	letter-spacing: var(--bhp-ls-tight, -0.035em);
	line-height: 1.15;
	color: var(--bhp-primary-dark);
}

.bhp-book-steps__intro {
	margin: 0;
	font-size: var(--bhp-fs-base, 1rem);
	line-height: var(--bhp-lh-relaxed, 1.65);
	color: var(--bhp-ink-muted);
}

.bhp-book-steps__list {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

@media (min-width: 768px) {
	.bhp-book-steps__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(1.5rem, 3vw, 2rem);
	}
}

.bhp-book-steps__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
}

.bhp-book-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: var(--bhp-radius-full, 9999px);
	background: var(--bhp-primary);
	color: var(--bhp-white);
	font-size: var(--bhp-fs-sm, 0.875rem);
	font-weight: var(--bhp-fw-bold, 700);
	line-height: 1;
}

.bhp-book-steps__item-title {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	font-weight: var(--bhp-fw-semibold, 600);
	letter-spacing: var(--bhp-ls-tight, -0.035em);
	line-height: var(--bhp-lh-snug, 1.35);
	color: var(--bhp-ink);
}

.bhp-book-steps__item-text {
	margin: 0;
	font-size: var(--bhp-fs-sm, 0.875rem);
	line-height: var(--bhp-lh-relaxed, 1.65);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

@keyframes bhp-book-rise {
	from {
		opacity: 0;
		transform: translateY(0.85rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes bhp-book-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bhp-book__copy,
	.bhp-book__form {
		animation: none;
	}
}

/* Alternating section fills after hero + insurance */
.bhp-book ~ .bhp-reviews-grid.bhp-lp-reviews {
	background: var(--bhp-white);
}

.bhp-book ~ .bhp-reviews-grid.bhp-lp-reviews .bhp-reviews-card {
	background: var(--bhp-surface-soft, #f4f6f8);
}

/* Medical team — centered intro + one-row members */
.bhp-book-team .bhp-lp-team {
	background: var(--bhp-surface-soft, #f4f6f8);
}

.bhp-book-team .bhp-lp-team__inner {
	grid-template-columns: 1fr;
	justify-items: center;
	gap: clamp(1.75rem, 3.5vw, 2.5rem);
}

.bhp-book-team .bhp-lp-team__intro {
	align-items: center;
	text-align: center;
	max-width: 40rem;
}

.bhp-book-team .bhp-lp-team__members {
	width: 100%;
}

.bhp-book-team .bhp-lp-team__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	max-width: 56rem;
	margin-inline: auto;
}

.bhp-book-team .bhp-lp-team__item:first-child {
	grid-column: auto;
}

@media (max-width: 639px) {
	.bhp-book-team .bhp-lp-team__grid {
		grid-template-columns: 1fr;
		max-width: 18rem;
	}
}
