/**
 * Referral by Providers page
 * Bright Horizons Psychiatry
 */

/* ——— Hero ——— */
.bhp-ref-hero {
	--bhp-ref-sticky-top: calc(var(--bhp-header-height, 4.5rem) + 2.5rem);
	position: relative;
	background:
		radial-gradient(ellipse 75% 55% at 88% 8%, rgba(75, 190, 221, 0.14), transparent 58%),
		radial-gradient(ellipse 50% 40% at 0% 100%, rgba(1, 58, 101, 0.06), transparent 50%),
		linear-gradient(165deg, #f0f5f9 0%, var(--bhp-white) 45%, #eef3f7 100%);
	color: var(--bhp-ink);
}

.bhp-ref-hero__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-ref-hero__inner {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: clamp(2.5rem, 5vw, 4rem);
	}
}

.bhp-ref-hero__col {
	min-width: 0;
	align-self: stretch;
}

.bhp-ref-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.85rem, 2vh, 1.25rem);
	width: 100%;
	max-width: 34rem;
	height: fit-content;
}

@media (min-width: 992px) {
	.bhp-ref-hero__content {
		position: sticky;
		top: var(--bhp-ref-sticky-top);
		z-index: 2;
	}
}

.bhp-ref-hero__eyebrow {
	margin: 0;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: var(--bhp-ls-wide);
	text-transform: uppercase;
	color: var(--bhp-primary);
	animation: bhp-ref-fade-in 0.7s var(--bhp-ease-out) both;
}

.bhp-ref-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: 1.08;
	color: var(--bhp-primary-dark);
	text-wrap: balance;
	animation: bhp-ref-fade-in 0.7s var(--bhp-ease-out) 0.04s both;
}

.bhp-ref-hero__lede {
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.4rem);
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-primary);
	text-wrap: balance;
	animation: bhp-ref-fade-in 0.7s var(--bhp-ease-out) 0.08s both;
}

.bhp-ref-hero__text {
	margin: 0;
	max-width: 34rem;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
	animation: bhp-ref-fade-in 0.7s var(--bhp-ease-out) 0.1s both;
}

.bhp-ref-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bhp-space-3);
	margin-top: var(--bhp-space-2);
	animation: bhp-ref-fade-in 0.7s var(--bhp-ease-out) 0.14s both;
}

.bhp-ref-hero__cta {
	margin: 0;
	border-radius: var(--bhp-btn-radius);
	box-shadow: none;
	transition:
		background-color var(--bhp-transition),
		border-color var(--bhp-transition),
		color var(--bhp-transition),
		transform var(--bhp-transition);
}

.bhp-ref-hero__cta:hover,
.bhp-ref-hero__cta:focus-visible {
	transform: translateY(-1px);
}

.bhp-ref-hero__cta--secondary:hover,
.bhp-ref-hero__cta--secondary:focus-visible {
	background-color: var(--bhp-primary-dark);
	border-color: var(--bhp-primary-dark);
	color: var(--bhp-white);
}

.bhp-ref-hero__form {
	width: 100%;
	min-width: 0;
	animation: bhp-ref-fade-in 0.85s var(--bhp-ease-out) 0.12s both;
}

.bhp-ref-hero__form-card {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-4);
	padding: clamp(1.15rem, 2.5vw, 1.65rem);
	background-color: var(--bhp-white);
	border: 1px solid var(--bhp-border);
	border-radius: var(--bhp-btn-radius);
	box-shadow: 0 12px 40px rgba(1, 58, 101, 0.08);
}

.bhp-ref-hero__form-header {
	display: flex;
	flex-direction: column;
}

.bhp-ref-hero__form-title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-hero__form-embed {
	width: 100%;
	min-height: 40rem;
	overflow: hidden;
	border-radius: 3px;
}

.bhp-ref-hero__form-embed iframe {
	display: block;
	width: 100%;
	min-height: 40rem;
	border: 0;
	background-color: transparent;
}

@keyframes bhp-ref-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* ——— Criteria ——— */
.bhp-ref-criteria {
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
	background-color: var(--bhp-surface);
	color: var(--bhp-ink);
}

.bhp-ref-criteria__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-3);
	max-width: 40rem;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.bhp-ref-criteria__title {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-criteria__intro {
	margin: 0;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

.bhp-ref-criteria__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 768px) {
	.bhp-ref-criteria__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.bhp-ref-criteria__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bhp-ref-criteria__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-4);
	height: 100%;
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
	background-color: var(--bhp-surface-soft);
	border-radius: var(--bhp-btn-radius);
}

.bhp-ref-criteria__card--accent {
	background-color: var(--bhp-primary);
	color: var(--bhp-white);
}

.bhp-ref-criteria__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1rem;
	color: var(--bhp-primary);
	background-color: var(--bhp-white);
	border-radius: 50%;
}

.bhp-ref-criteria__card--accent .bhp-ref-criteria__icon {
	color: var(--bhp-primary-dark);
	background-color: rgba(255, 255, 255, 0.92);
}

.bhp-ref-criteria__card-title {
	margin: 0;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-criteria__card--accent .bhp-ref-criteria__card-title {
	color: var(--bhp-white);
}

.bhp-ref-criteria__list {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-3);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhp-ref-criteria__list li {
	position: relative;
	margin: 0;
	padding-left: 1.35rem;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
}

.bhp-ref-criteria__list li::before {
	content: "";
	position: absolute;
	top: 0.55em;
	left: 0;
	width: 0.45rem;
	height: 0.45rem;
	background-color: var(--bhp-sky);
	border-radius: 50%;
}

.bhp-ref-criteria__card-text {
	margin: 0;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: rgba(255, 255, 255, 0.85);
	text-wrap: pretty;
}

/* ——— Steps ——— */
.bhp-ref-steps {
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
	background-color: var(--bhp-surface-soft);
	color: var(--bhp-ink);
}

.bhp-ref-steps__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-3);
	max-width: 36rem;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.bhp-ref-steps__title {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-steps__intro {
	margin: 0;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

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

@media (min-width: 900px) {
	.bhp-ref-steps__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bhp-ref-steps__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-3);
	height: 100%;
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
	background-color: var(--bhp-white);
	border-radius: var(--bhp-btn-radius);
}

.bhp-ref-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-bold);
	color: var(--bhp-white);
	background-color: var(--bhp-primary);
	border-radius: 50%;
}

.bhp-ref-steps__item-title {
	margin: 0;
	font-size: clamp(1.1rem, 2vw, 1.25rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-steps__item-text {
	margin: 0;
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

/* ——— Treatments ——— */
.bhp-ref-treatments {
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
	background-color: var(--bhp-white);
	color: var(--bhp-ink);
}

.bhp-ref-treatments__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhp-space-3);
	max-width: 40rem;
	margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.bhp-ref-treatments__title {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-treatments__intro {
	margin: 0;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

.bhp-ref-treatments__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.bhp-ref-treatments__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.bhp-ref-treatments__item {
	margin: 0;
	height: 100%;
}

.bhp-ref-treatments__link {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: var(--bhp-space-4);
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 1.65rem);
	text-decoration: none;
	color: inherit;
	background-color: var(--bhp-surface-soft);
	border-radius: var(--bhp-btn-radius);
	transition:
		background-color var(--bhp-transition),
		transform var(--bhp-transition);
}

.bhp-ref-treatments__link:hover,
.bhp-ref-treatments__link:focus-visible {
	background-color: #e8eef3;
	transform: translateY(-2px);
}

.bhp-ref-treatments__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1rem;
	color: var(--bhp-primary);
	background-color: var(--bhp-white);
	border-radius: 50%;
}

.bhp-ref-treatments__body {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-2);
	min-width: 0;
}

.bhp-ref-treatments__name {
	font-size: clamp(1.05rem, 2vw, 1.2rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-primary-dark);
}

.bhp-ref-treatments__text {
	font-size: var(--bhp-fs-sm);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

.bhp-ref-treatments__arrow {
	font-size: 1.15rem;
	line-height: 1;
	color: var(--bhp-primary);
	padding-top: 0.35rem;
}

/* ——— Contact ——— */
.bhp-ref-contact {
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
	background-color: var(--bhp-surface-soft);
	color: var(--bhp-ink);
}

.bhp-ref-contact__inner {
	display: grid;
	gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

@media (min-width: 900px) {
	.bhp-ref-contact__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		align-items: start;
		gap: clamp(2.5rem, 5vw, 4rem);
	}
}

.bhp-ref-contact__copy {
	display: flex;
	flex-direction: column;
	gap: var(--bhp-space-3);
	max-width: 28rem;
}

.bhp-ref-contact__title {
	margin: 0;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-contact__text {
	margin: 0;
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-medium);
	line-height: var(--bhp-lh-relaxed);
	color: var(--bhp-ink-muted);
	text-wrap: pretty;
}

.bhp-ref-contact__details {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--bhp-space-4);
	margin: 0;
	padding: clamp(1.35rem, 2.5vw, 1.85rem);
	list-style: none;
	background-color: var(--bhp-white);
	border-radius: var(--bhp-btn-radius);
}

@media (min-width: 600px) {
	.bhp-ref-contact__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.bhp-ref-contact__detail {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
}

.bhp-ref-contact__label {
	font-size: var(--bhp-fs-xs);
	font-weight: var(--bhp-fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bhp-ink-subtle);
}

.bhp-ref-contact__detail a,
.bhp-ref-contact__detail span:not(.bhp-ref-contact__label) {
	font-size: var(--bhp-fs-base);
	font-weight: var(--bhp-fw-semibold);
	line-height: var(--bhp-lh-snug);
	color: var(--bhp-primary-dark);
	text-decoration: none;
}

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

/* ——— FAQ ——— */
.bhp-ref-faq {
	padding-top: var(--bhp-section-y);
	padding-bottom: var(--bhp-section-y);
	background-color: var(--bhp-white);
	color: var(--bhp-ink);
}

.bhp-ref-faq__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.75rem, 4vw, 3rem);
	align-items: start;
}

@media (min-width: 900px) {
	.bhp-ref-faq__inner {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: clamp(2.5rem, 5vw, 4.5rem);
	}
}

.bhp-ref-faq__header {
	margin: 0;
}

@media (min-width: 900px) {
	.bhp-ref-faq__header {
		position: sticky;
		top: 6rem;
		padding-top: clamp(1.25rem, 2.5vw, 2rem);
	}
}

.bhp-ref-faq__title {
	margin: 0;
	max-width: 16rem;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: var(--bhp-fw-bold);
	letter-spacing: var(--bhp-ls-tight);
	line-height: var(--bhp-lh-tight);
	color: var(--bhp-primary-dark);
	text-wrap: balance;
}

.bhp-ref-faq__list {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	margin: 0;
}

.bhp-ref-faq__list .bhp-faq-item:last-child {
	border-bottom: 1px solid var(--bhp-border);
}
