/*
 * [tpx_professionals] -- the practitioner page and its application pop-up
 * (v0.6.91, BLD-012 Part 2). Same brand tokens and alias convention as
 * tpx-privacy.css: local --tpx-pr-* properties fall back to the shared
 * --tpx-* tokens and never re-declare the same name.
 */

.tpx-practitioners {
	--tpx-pr-primary: var(--tpx-primary, #ad1a66);
	--tpx-pr-primary-dark: var(--tpx-primary-dark, #6b0f3f);
	--tpx-pr-primary-light: var(--tpx-primary-light, #fbeaf2);
	--tpx-pr-accent: #f420ce;
	--tpx-pr-surface: var(--tpx-surface, #ffffff);
	--tpx-pr-text: var(--tpx-text, #241b20);
	--tpx-pr-text-muted: var(--tpx-text-muted, #746b70);
	--tpx-pr-border: var(--tpx-border, #eee0e7);
	--tpx-pr-radius: var(--tpx-radius, 18px);
	--tpx-pr-shadow-lg: var(--tpx-shadow-lg, 0 20px 60px rgba(173, 26, 102, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08));
	--tpx-pr-font: var(--tpx-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

	max-width: 880px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3rem;
	font-family: var(--tpx-pr-font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--tpx-pr-text);
}

.tpx-practitioners * {
	box-sizing: border-box;
}

/* --- Top ---------------------------------------------------------------- */
.tpx-pr-hero {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 2.6rem 2rem 2.2rem;
	border-radius: var(--tpx-pr-radius);
	background: linear-gradient(135deg, var(--tpx-pr-primary-light), #fff 70%);
	box-shadow: var(--tpx-pr-shadow-lg);
	margin-bottom: 1.75rem;
}
.tpx-pr-hero::before,
.tpx-pr-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	background: linear-gradient(90deg, var(--tpx-pr-primary), var(--tpx-pr-accent));
}
.tpx-pr-spark-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
}
.tpx-pr-spark {
	width: 44px;
	height: 34px;
}
.tpx-pr-eyebrow {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--tpx-pr-primary-dark);
	margin-bottom: 0.6rem;
}
.tpx-pr-hero h1 {
	margin: 0 0 0.8rem;
	font-size: clamp(1.6rem, 4.2vw, 2.3rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--tpx-pr-primary);
}
.tpx-pr-hero p {
	max-width: 62ch;
	margin: 0 auto;
	font-size: 1.06rem;
}

/* --- The sections --------------------------------------------------------- */
.tpx-pr-card {
	position: relative;
	overflow: hidden;
	background: var(--tpx-pr-surface);
	border-radius: var(--tpx-pr-radius);
	box-shadow: var(--tpx-pr-shadow-lg);
	padding: 2.2rem 2.25rem 1.4rem;
	margin-bottom: 1.75rem;
}
.tpx-pr-section {
	max-width: 65ch;
	margin: 0 auto 1.6rem;
}
.tpx-pr-section h2,
.tpx-pr-apply h2 {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--tpx-pr-primary-dark);
}
.tpx-pr-section p {
	margin: 0 0 0.75rem;
}
.tpx-pr-section ul,
.tpx-pr-section ol {
	margin: 0 0 0.75rem;
	padding-left: 1.3em;
}
.tpx-pr-section li {
	margin-bottom: 0.4rem;
}
.tpx-pr-section a {
	color: var(--tpx-pr-primary);
	font-weight: 600;
}
.tpx-pr-free {
	background: var(--tpx-pr-primary-light);
	border-radius: 12px;
	padding: 1rem 1.25rem;
}

/* --- Apply ---------------------------------------------------------------- */
.tpx-pr-apply {
	text-align: center;
	padding: 2rem 1.5rem;
	border-radius: var(--tpx-pr-radius);
	border: 2px solid var(--tpx-pr-border);
	background: var(--tpx-pr-surface);
	margin-bottom: 1.25rem;
}
.tpx-pr-apply p {
	max-width: 56ch;
	margin: 0 auto 1rem;
}
.tpx-pr-apply-btn {
	display: inline-block;
	padding: 0.85rem 2rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--tpx-pr-primary), #c42a7c);
	color: #fff !important;
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(173, 26, 102, 0.28);
}
.tpx-pr-apply-btn:hover,
.tpx-pr-apply-btn:focus {
	filter: brightness(1.06);
}
.tpx-pr-apply-btn:focus-visible {
	outline: 3px solid var(--tpx-pr-primary-dark);
	outline-offset: 3px;
}
.tpx-pr-questions {
	font-size: 0.92rem;
	color: var(--tpx-pr-text-muted);
}
.tpx-pr-questions a {
	color: var(--tpx-pr-primary);
}
.tpx-pr-confirmation {
	font-size: 1.08rem;
	font-weight: 600;
	color: var(--tpx-pr-primary-dark);
	background: var(--tpx-pr-primary-light);
	border-radius: 12px;
	padding: 1rem 1.25rem;
}
.tpx-pr-foot {
	text-align: center;
	font-style: italic;
	font-size: 0.88rem;
	color: var(--tpx-pr-text-muted);
}

/* --- The pop-up ----------------------------------------------------------- */
html.tpx-pr-locked,
body.tpx-pr-locked {
	overflow: hidden;
}
.tpx-pr-modal[hidden] {
	display: none;
}
.tpx-pr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 16px;
}
.tpx-pr-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(36, 27, 32, 0.6);
}
.tpx-pr-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 760px;
	max-height: 92vh;
	background: #fff;
	border-radius: var(--tpx-pr-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
.tpx-pr-dialog-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px 12px 24px;
	border-bottom: 1px solid var(--tpx-pr-border);
	background: #fff;
	flex: 0 0 auto;
}
.tpx-pr-dialog-head h2 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--tpx-pr-primary-dark);
}
.tpx-pr-close {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--tpx-pr-primary-light);
	color: var(--tpx-pr-primary-dark);
	font-size: 1.7rem;
	line-height: 1;
	cursor: pointer;
}
.tpx-pr-close:hover {
	background: #f6d4e4;
}
.tpx-pr-close:focus-visible {
	outline: 3px solid var(--tpx-pr-primary);
	outline-offset: 2px;
}
.tpx-pr-dialog-body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 8px 12px;
}
/* The wizard's own card sits flat inside the dialog. */
.tpx-pr-dialog-body .tpx-wizard {
	box-shadow: none;
	margin: 0 auto;
}

@media (max-width: 600px) {
	.tpx-practitioners {
		padding: 1.25rem 0 2rem;
	}
	.tpx-pr-hero,
	.tpx-pr-card {
		padding: 1.9rem 1.15rem 1.2rem;
	}
	/* On a phone the pop-up fills the screen and scrolls inside, the X always visible. */
	.tpx-pr-modal {
		padding: 0;
		align-items: stretch;
	}
	.tpx-pr-dialog {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}
	.tpx-pr-dialog-head {
		padding: 10px 10px 10px 16px;
	}
}
