/**
 * Coach profile (single-coaches.php) styles.
 *
 * The organising idea: a coach belongs to one of four elements (AIR / FIRE /
 * EARTH / WATER), and that element sets --cp-accent for the whole profile, so
 * a FIRE boxer's page and an AIR yoga teacher's page read as different pages
 * from the same system. Every accent below resolves through the token -- never
 * a literal -- so adding a fifth element is one block of CSS.
 *
 * Base palette: olive #A1A51B, gold #CCA178, dark #44382B, light bg #FAF8F4
 * Fonts: Poppins (display), Inter (body/utility) -- both already loaded globally.
 */

.coach-profile {
	--cp-olive: #a1a51b;
	--cp-gold: #cca178;
	--cp-dark: #44382b;
	--cp-darker: #2b241c;
	--cp-black: #111111;
	--cp-muted: #7a7a7a;
	--cp-light: #faf8f4;
	--cp-line: #ece3d5;
	--cp-radius: 14px;
	--cp-radius-lg: 20px;
	--cp-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

	/* Element accent -- overridden by the .coach-profile--* modifiers below.
	   --cp-accent-ink is text drawn ON a solid accent fill, so it stays dark
	   for every element to keep button and pill labels above 4.5:1. */
	--cp-accent: #cca178;
	--cp-accent-soft: rgba(204, 161, 120, 0.16);
	--cp-accent-line: rgba(204, 161, 120, 0.42);
	--cp-accent-ink: #2b241c;
	--cp-glyph-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cca178' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");

	background: var(--cp-light);
	font-family: "Inter", "Montserrat", sans-serif;
	color: #2b2b2b;
	padding-bottom: 60px;
}

.coach-profile--air {
	--cp-accent: #e8b58a;
	--cp-accent-soft: rgba(232, 181, 138, 0.16);
	--cp-accent-line: rgba(232, 181, 138, 0.44);
	--cp-accent-ink: #2b1d10;
	--cp-glyph-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8b58a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5h9.5a2.75 2.75 0 1 0-2.6-3.65'/%3E%3Cpath d='M3 12.5h13.5a2.75 2.75 0 1 1-2.6 3.65'/%3E%3Cpath d='M3 16.5h6'/%3E%3C/svg%3E");
}

.coach-profile--fire {
	--cp-accent: #e06a3f;
	--cp-accent-soft: rgba(224, 106, 63, 0.16);
	--cp-accent-line: rgba(224, 106, 63, 0.44);
	--cp-accent-ink: #2c1208;
	--cp-glyph-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e06a3f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.75c3.4 3.1 5.5 5.9 5.5 9.05a5.5 5.5 0 0 1-11 0c0-1.6.55-3 1.6-4.4.35 1.35 1.05 2.2 2.1 2.55.2-2.6.8-4.7 1.8-7.2Z'/%3E%3Cpath d='M12 20.25a2.6 2.6 0 0 1-2.6-2.6c0-1.15.75-2.1 2.6-3.9 1.85 1.8 2.6 2.75 2.6 3.9a2.6 2.6 0 0 1-2.6 2.6Z'/%3E%3C/svg%3E");
}

.coach-profile--earth {
	--cp-accent: #a7ad4a;
	--cp-accent-soft: rgba(167, 173, 74, 0.18);
	--cp-accent-line: rgba(167, 173, 74, 0.46);
	--cp-accent-ink: #1f2109;
	--cp-glyph-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7ad4a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 18.5h20'/%3E%3Cpath d='M2 18.5 8.5 7l4.25 7.4'/%3E%3Cpath d='m10.5 18.5 5-8.5 6.5 8.5'/%3E%3C/svg%3E");
}

.coach-profile--water {
	--cp-accent: #6fafc0;
	--cp-accent-soft: rgba(111, 175, 192, 0.18);
	--cp-accent-line: rgba(111, 175, 192, 0.46);
	--cp-accent-ink: #0f272e;
	--cp-glyph-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236fafc0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7.5c2.2 0 2.2 2 4.4 2s2.2-2 4.4-2 2.2 2 4.4 2 2.2-2 4.4-2'/%3E%3Cpath d='M2 12.5c2.2 0 2.2 2 4.4 2s2.2-2 4.4-2 2.2 2 4.4 2 2.2-2 4.4-2'/%3E%3Cpath d='M2 17.5c2.2 0 2.2 2 4.4 2s2.2-2 4.4-2 2.2 2 4.4 2 2.2-2 4.4-2'/%3E%3C/svg%3E");
}

.coach-profile .cp-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Anchor jumps from the hero CTA clear any sticky header. */
@media (prefers-reduced-motion: no-preference) {
	html:has(.coach-profile) {
		scroll-behavior: smooth;
	}
}

/* ---------- Hero ---------- */
.cp-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background:
		radial-gradient(900px 520px at 20% 12%, var(--cp-accent-soft), transparent 62%),
		linear-gradient(135deg, var(--cp-dark) 0%, var(--cp-darker) 100%);
	padding: clamp(40px, 6vw, 76px) 24px clamp(38px, 5vw, 66px);
}

/* Hairline that hands the hero off to the stats band below it. */
.cp-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--cp-accent-line), transparent);
}

/* The signature: the coach's element, stamped huge and almost invisible. */
.cp-hero__watermark {
	position: absolute;
	top: 50%;
	right: -6%;
	z-index: -1;
	transform: translateY(-50%);
	line-height: 0;
	color: var(--cp-accent);
	opacity: 0.06;
	pointer-events: none;
}

.cp-hero__watermark svg {
	width: clamp(300px, 40vw, 540px);
	height: auto;
	stroke-width: 0.5;
}

.cp-hero__inner {
	position: relative;
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(240px, 340px) 1fr;
	gap: clamp(30px, 5vw, 62px);
	align-items: center;
}

.cp-hero__media {
	position: relative;
	border-radius: var(--cp-radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: #1d1914;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.cp-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px var(--cp-accent-line);
	pointer-events: none;
}

.cp-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.cp-hero__img--placeholder {
	background: linear-gradient(160deg, #3a2f24 0%, #1d1914 100%);
}

.cp-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	color: #fff;
	min-width: 0;
}

/* Element eyebrow: glyph, name, then a rule that runs out to the column edge. */
.cp-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0 0 20px;
	color: var(--cp-accent);
	font-family: "Inter", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.cp-hero__eyebrow .cp-glyph {
	flex: none;
}

.cp-hero__eyebrow-rule {
	flex: 1;
	height: 1px;
	min-width: 20px;
	background: linear-gradient(90deg, var(--cp-accent-line), transparent);
}

/* Two classes (0,2,0) so this outranks Elementor's kit rule
   `.elementor-kit-6 h1 { color: #000 }` (0,1,1), which otherwise renders the
   coach's name black on the dark band. Same reason for the section title below. */
.coach-profile .cp-hero__name {
	font-family: "Poppins", sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 10px;
	color: #fff;
}

.cp-hero__title {
	font-family: "Inter", sans-serif;
	font-size: clamp(1rem, 1.6vw, 1.14rem);
	font-weight: 400;
	line-height: 1.5;
	max-width: 46ch;
	color: var(--cp-accent);
	margin: 0 0 22px;
}

.cp-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0 0 28px;
}

.cp-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.92);
	font-family: "Inter", sans-serif;
	font-size: 0.8rem;
	font-weight: 500;
	padding: 8px 15px;
	border-radius: 999px;
	letter-spacing: 0.01em;
}

/* Platform discipline (sub-category) classification pill. */
.cp-badge--category {
	background: var(--cp-accent-soft);
	border-color: var(--cp-accent-line);
	color: var(--cp-accent);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.74rem;
}

.cp-badge--category::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.cp-badge--location .cp-icon {
	flex: none;
	color: var(--cp-accent);
}

.cp-hero__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px 26px;
}

/* Price lockup: label above, figure and unit sharing a baseline.
   Three classes (0,3,0) to outrank `.price-card .price-value` (0,2,0), which
   elemento-core injects inline into wp_head -- so source order can't be relied on. */
.coach-profile .cp-hero__price .price-card {
	display: grid;
	grid-template-columns: auto auto;
	grid-template-areas:
		"top top"
		"value unit";
	align-items: baseline;
	column-gap: 9px;
	text-align: left;
	padding: 0;
	background: none;
	border: 0;
}

.coach-profile .cp-hero__price .price-card .top-heading {
	grid-area: top;
	margin: 0 0 4px;
	font-family: "Inter", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1;
}

.coach-profile .cp-hero__price .price-card .price-value {
	grid-area: value;
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--cp-accent);
}

.coach-profile .cp-hero__price .price-card .bottom-heading {
	grid-area: unit;
	margin: 0;
	font-family: "Inter", sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: lowercase;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1;
}

/* ---------- Buttons ---------- */
.coach-profile .cp-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 25px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.coach-profile .cp-btn--primary {
	background: var(--cp-accent);
	color: var(--cp-accent-ink);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.coach-profile .cp-btn--primary:hover,
.coach-profile .cp-btn--primary:focus {
	color: var(--cp-accent-ink);
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.coach-profile .cp-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.coach-profile .cp-btn .cp-icon {
	flex: none;
	transition: transform 0.22s ease;
}

.coach-profile .cp-btn:hover .cp-icon {
	transform: translateX(3px);
}

/* ---------- Stats band (years experience + coaching modes) ---------- */
.cp-stats {
	background: #f8f3ee;
	border-bottom: 1px solid var(--cp-line);
	padding: 26px 24px;
}

.cp-stats .ef-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.cp-stats .ef-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	min-width: 120px;
}

.cp-stats .ef-stat__icon {
	position: relative;
	width: 64px;
	height: 64px;
}

.cp-stats .ef-stat__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cp-stats .ef-stat__value {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Poppins", sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--cp-dark);
}

.cp-stats .ef-stat__img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.cp-stats .ef-stat__label {
	font-family: "Inter", sans-serif;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cp-muted);
}

/* ---------- Sections ---------- */
.cp-section {
	background: #fff;
	border-radius: var(--cp-radius);
	box-shadow: var(--cp-shadow);
	padding: 32px 28px;
	margin: 32px 0;
}

.cp-section__title {
	font-family: "Poppins", sans-serif;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--cp-dark);
	margin: 0 0 20px;
	position: relative;
	padding-bottom: 12px;
}

.cp-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 52px;
	height: 3px;
	border-radius: 3px;
	background: var(--cp-accent);
}

/* 0,2,0 -- outranks `.elementor-kit-6 h2 { color: #000 }`. */
.coach-profile .cp-section__title--light {
	color: #fff;
}

.cp-notice {
	padding: 60px 24px;
	text-align: center;
	font-size: 1.1rem;
	color: var(--cp-muted);
}

/* About / More info */
.cp-about .coach_about_description,
.cp-more-info .coach_more_info_description {
	font-size: 1.02rem;
	line-height: 1.75;
	color: #444;
	margin: 0;
}

/* ---------- Features grid ---------- */
.cp-features .coach-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
}

.cp-features .coach-feature {
	background: var(--cp-light);
	border: 1px solid #efe9e0;
	border-radius: var(--cp-radius);
	text-align: center;
	padding: 24px 16px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cp-features .coach-feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--cp-shadow);
}

.cp-features .coach-feature img {
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin: 0 auto 12px;
	display: block;
}

.cp-features .coach-feature p {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--cp-dark);
}

/* ---------- Gallery ---------- */
.coach-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.coach-gallery-item {
	border-radius: var(--cp-radius);
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.coach-gallery-item img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.coach-gallery-item:hover img {
	transform: scale(1.05);
}

/* ---------- Video ---------- */
.cp-video iframe,
.cp-video video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--cp-radius);
	display: block;
}

/* ---------- Map ---------- */
.cp-map {
	border-radius: var(--cp-radius);
	overflow: hidden;
}

.cp-map iframe,
.cp-map #map {
	width: 100%;
	height: 360px;
	border: 0;
	border-radius: var(--cp-radius);
	display: block;
}

/* ---------- Reviews ---------- */
.cp-section .coach-reviews,
.cp-section .reviews-wrap {
	color: #444;
}

/* ---------- Related coaches ---------- */
.cp-related {
	background: transparent;
	box-shadow: none;
	padding: 32px 0 0;
}

.cp-related .coaches-carousel {
	margin-top: 8px;
}

/* ---------- Hero responsive ---------- */
@media (max-width: 900px) {
	.cp-hero__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cp-hero__media {
		max-width: 300px;
		width: 100%;
	}

	.cp-hero__watermark {
		right: -18%;
		opacity: 0.045;
	}
}

@media (max-width: 768px) {
	.cp-stats .ef-stats {
		gap: 24px;
	}

	.cp-section {
		padding: 24px 18px;
		margin: 20px 0;
	}

	.coach-profile .cp-container {
		padding: 0 16px;
	}
}

@media (max-width: 480px) {
	.cp-hero__row {
		gap: 14px 18px;
	}

	.coach-profile .cp-btn {
		flex: 1 1 100%;
		justify-content: center;
	}

	.cp-features .coach-features {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Booking
   Scoped under .cp-booking to override the three layers the
   coach-booking-system plugin ships: assets/cbs-styles.css, an inline
   <style> block inside the shortcode, and element-level rules on
   input/select/button. The plugin's markup and JS are untouched.
   ============================================================ */
.cp-booking {
	position: relative;
	overflow: hidden;
	scroll-margin-top: 90px;
	background:
		radial-gradient(760px 420px at 78% 0%, var(--cp-accent-soft), transparent 60%),
		linear-gradient(135deg, var(--cp-dark) 0%, var(--cp-darker) 100%);
	padding: 78px 0 80px 0;
	margin-top: 32px;
}

@media (max-width: 768px) {
	.cp-booking {
		padding: 48px 0 52px 0;
	}
}

.cp-booking .cp-section__title {
	margin-bottom: 10px;
}

.cp-booking__lede {
	max-width: 52ch;
	margin: 0 0 32px;
	font-family: "Inter", sans-serif;
	font-size: 0.97rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.68);
}

.coach-profile .cp-booking .booking-container {
	display: flex;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	background: #fff;
	border-radius: var(--cp-radius-lg);
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

/* --- Sidebar / stepper --- */
.coach-profile .cp-booking .booking-sidebar {
	position: relative;
	width: 264px;
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #faf7f2;
	border-right: 1px solid var(--cp-line);
	padding: 30px 22px;
}

/* The old connector was a single line on the sidebar running top to bottom, so
   it dangled well past the last step. Connectors now exist only *between*
   steps, which makes that impossible. */
.coach-profile .cp-booking .booking-sidebar::before {
	content: none;
}

.coach-profile .cp-booking .step {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 4px;
	margin: 0;
	border-bottom: none;
	background: transparent;
	opacity: 0.5;
	cursor: default;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--cp-dark);
	transition: opacity 0.25s ease;
}

.coach-profile .cp-booking .step.active {
	opacity: 1;
	font-weight: 600;
}

/* The steps only occupy the top third of a sidebar as tall as the form pane.
   Stripe is the sole payment method the form offers, so this is both true and
   the reassurance a visitor wants right before they commit. */
.coach-profile .cp-booking .booking-sidebar::after {
	content: "Payments are processed securely by Stripe.";
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--cp-line);
	font-family: "Inter", sans-serif;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--cp-muted);
}

.coach-profile .cp-booking .step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 26px;
	top: calc(100% - 4px);
	width: 2px;
	height: 18px;
	border-radius: 2px;
	background: var(--cp-line);
}

.coach-profile .cp-booking .step .cbs-ico {
	flex: none;
	width: 46px;
	height: 46px;
	padding: 12px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--cp-line);
	color: var(--cp-muted);
	box-sizing: border-box;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.coach-profile .cp-booking .step.active .cbs-ico {
	background: var(--cp-accent);
	border-color: transparent;
	color: var(--cp-accent-ink);
	box-shadow: 0 8px 20px var(--cp-accent-soft);
}

/* --- Form panel --- */
.coach-profile .cp-booking #coach-booking-form {
	flex: 1;
	min-width: 0;
	background: #fff;
}

.coach-profile .cp-booking .form-step {
	padding: clamp(24px, 3vw, 36px);
	background: #fff;
}

.coach-profile .cp-booking .form-step label {
	display: block;
	margin: 0 0 8px;
	font-family: "Inter", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cp-muted);
}

.coach-profile .cp-booking .form-step input,
.coach-profile .cp-booking .form-step select {
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 4px;
	padding: 13px 15px;
	border: 1px solid var(--cp-line);
	border-radius: 12px;
	background: #fcfaf7;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: #2f2a22;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.coach-profile .cp-booking .form-step input:focus,
.coach-profile .cp-booking .form-step select:focus {
	outline: none;
	border-color: var(--cp-accent);
	box-shadow: 0 0 0 3px var(--cp-accent-soft);
	background: #fff;
}

.coach-profile .cp-booking .error-message {
	display: block;
	margin: 0 0 14px;
	font-family: "Inter", sans-serif;
	font-size: 12px;
	color: #c2252f;
}

/* --- Package picker --- */
.coach-profile .cp-booking .session-package {
	margin: 0 0 26px;
}

/* The calendar is inert until a package is chosen, and nothing said so. The
   select is `required` with an empty first option, so :invalid is exactly
   "nothing chosen yet" -- the hint disappears on its own once one is picked. */
.coach-profile .cp-booking .session-package:has(select:invalid)::after {
	content: "Choose a package to see this coach's available dates.";
	display: block;
	margin-top: 9px;
	font-family: "Inter", sans-serif;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--cp-muted);
}

/* --- Calendar and time slots, side by side --- */
.coach-profile .cp-booking #session-slots {
	display: grid;
	grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	gap: 24px;
	align-items: stretch;
}

.coach-profile .cp-booking .calendar-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--cp-line);
	border-radius: 16px;
	box-shadow: none;
	box-sizing: border-box;
}

.coach-profile .cp-booking .calendar-header {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.coach-profile .cp-booking .calendar-header h3 {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--cp-dark);
}

/* Was a centred row of its own, which cost a whole line for one 3-letter chip. */
.coach-profile .cp-booking .timezone-wrapper {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	justify-content: flex-end;
	margin: 0;
}

.coach-profile .cp-booking .timezone {
	background: #fff;
	border: 1px solid var(--cp-line);
	color: var(--cp-muted);
	font-family: "Inter", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
}

.coach-profile .cp-booking .calendar-nav {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	align-items: center;
	/* Safety net: the two selects plus the arrows can outgrow a narrow calendar
	   card, and the arrows must never spill past its edge. */
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

/* Raised to (0,4,1) on purpose: the generic
   `.coach-profile .cp-booking .form-step select` rule above is (0,3,1) and
   would otherwise stretch these two to width:100%. */
.coach-profile .cp-booking .calendar-nav select.month-select,
.coach-profile .cp-booking .calendar-nav select.year-select {
	width: auto;
	margin: 0;
	/* Sized so month + year + both arrows still share one row inside the 340px
	   calendar column; any wider and the arrows wrap to a line of their own. */
	padding: 8px 21px 8px 9px;
	border: 1px solid var(--cp-line);
	border-radius: 10px;
	background-color: #fcfaf7;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2344382b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 6px center;
	background-size: 10px;
	font-family: "Inter", sans-serif;
	font-size: 12.5px;
	color: var(--cp-dark);
	cursor: pointer;
}

.coach-profile .cp-booking .nav-arrows {
	display: flex;
	gap: 6px;
	margin-left: auto;
}

.coach-profile .cp-booking .arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--cp-line);
	background: #f7f2ea;
	color: var(--cp-dark);
	font-size: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.coach-profile .cp-booking .arrow:hover:not(:disabled) {
	background: var(--cp-accent);
	border-color: transparent;
	color: var(--cp-accent-ink);
}

.coach-profile .cp-booking .weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin: 4px 0 6px;
	text-align: center;
}

.coach-profile .cp-booking .weekdays span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	aspect-ratio: auto;
	font-family: "Inter", sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cp-muted);
}

.coach-profile .cp-booking .days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	justify-items: stretch;
}

.coach-profile .cp-booking .day {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	height: auto;
	aspect-ratio: 1 / 1;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	font-family: "Inter", sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	color: #3b332a;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.coach-profile .cp-booking .day:hover:not(.inactive):not(.disabled) {
	background: #f5efe6;
}

.coach-profile .cp-booking .day.inactive,
.coach-profile .cp-booking .day.disabled {
	background: transparent;
	color: #c9c1b5;
	cursor: not-allowed;
}

/* Today reads as a ring, not a fill -- the solid accent is reserved for the
   date the visitor actually picked, so the two never compete. */
.coach-profile .cp-booking .day.current {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--cp-accent);
	color: var(--cp-dark);
	font-weight: 700;
}

.coach-profile .cp-booking .day.selected {
	background: var(--cp-accent);
	box-shadow: none;
	color: var(--cp-accent-ink);
	font-weight: 700;
}

/* --- Time slots --- */
.coach-profile .cp-booking .time-slots-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	margin: 0;
}

/* Two states, one panel: nothing rendered yet (:empty) and the plugin's
   "No available dates." paragraph. */
.coach-profile .cp-booking .time-slots-container:empty::before,
.coach-profile .cp-booking .time-slots-container > p {
	display: grid;
	place-content: center;
	flex: 1 1 auto;
	min-height: 232px;
	margin: 0;
	/* place-content centres the text inside the padded box, and the glyph sits a
	   fixed distance above that centre -- so both stay put at any panel height. */
	padding: 46px 24px 0;
	border: 1px dashed var(--cp-accent-line);
	border-radius: 16px;
	background-color: var(--cp-accent-soft);
	background-image: var(--cp-glyph-url);
	background-repeat: no-repeat;
	background-position: center calc(50% - 34px);
	background-size: 34px;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	font-size: 13.5px;
	line-height: 1.55;
	color: #6b6155;
	text-align: center;
}

.coach-profile .cp-booking .time-slots-container:empty::before {
	content: "Choose a date to see available times.";
}

/* When no package is chosen the plugin's JS injects
   `<p>Please select a package...</p>` straight into #session-slots, right after
   the calendar -- so it lands in the right-hand column on its own. Style it as
   that column's panel, and suppress the date placeholder underneath it so the
   pane never shows two empty states at once. */
.coach-profile .cp-booking #session-slots > p {
	display: grid;
	place-content: center;
	flex: 1 1 auto;
	min-height: 232px;
	margin: 0;
	/* place-content centres the text inside the padded box, and the glyph sits a
	   fixed distance above that centre -- so both stay put at any panel height. */
	padding: 46px 24px 0;
	border: 1px dashed var(--cp-accent-line);
	border-radius: 16px;
	background-color: var(--cp-accent-soft);
	background-image: var(--cp-glyph-url);
	background-repeat: no-repeat;
	background-position: center calc(50% - 34px);
	background-size: 34px;
	box-sizing: border-box;
	font-family: "Inter", sans-serif;
	font-size: 13.5px;
	line-height: 1.55;
	color: #6b6155;
	text-align: center;
}

/* That .after() can run more than once; only the first copy is ever shown. */
.coach-profile .cp-booking #session-slots > p ~ p {
	display: none;
}

.coach-profile .cp-booking #session-slots:has(> p) .time-slots-container:empty::before {
	content: none;
}

.coach-profile .cp-booking .accordion {
	margin: 0;
	background: #fff;
	border: 1px solid var(--cp-line);
	border-radius: 14px;
	overflow: hidden;
}

.coach-profile .cp-booking .accordion-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	background: #faf7f2;
	border-radius: 0;
	cursor: pointer;
	font-family: "Inter", sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--cp-dark);
}

.coach-profile .cp-booking .accordion-header::after {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344382b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: none;
	transition: transform 0.3s ease;
}

.coach-profile .cp-booking .accordion-header.active::after {
	transform: rotate(180deg);
}

.coach-profile .cp-booking .accordion-content {
	padding: 14px 16px;
	background: #fff;
	border: none;
	border-radius: 0;
}

.coach-profile .cp-booking .time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
	gap: 8px;
}

.coach-profile .cp-booking .time-slot {
	flex: none;
	padding: 11px 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: #f7f2ea;
	font-family: "Inter", sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--cp-dark);
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.coach-profile .cp-booking .time-slot:hover {
	background: #efe7da;
}

.coach-profile .cp-booking .time-slot.selected {
	background: var(--cp-accent);
	border-color: transparent;
	color: var(--cp-accent-ink);
}

/* Real slots carry data-time; the plugin reuses .time-slot for its "No slots
   available" and error text too. Those are messages, not choices, so they must
   not read as pickable chips -- including after a stray click adds .selected. */
.coach-profile .cp-booking .time-slot:not([data-time]),
.coach-profile .cp-booking .time-slot:not([data-time]).selected,
.coach-profile .cp-booking .time-slot:not([data-time]):hover {
	grid-column: 1 / -1;
	padding: 4px 2px;
	background: transparent;
	border-color: transparent;
	color: var(--cp-muted);
	font-weight: 500;
	text-align: left;
	cursor: default;
}

/* --- Buttons --- */
.coach-profile .cp-booking .form-step button {
	width: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 24px 10px 0 0;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.coach-profile .cp-booking .form-step button.next-step,
.coach-profile .cp-booking #book-now-btn {
	background: var(--cp-accent);
	color: var(--cp-accent-ink);
	box-shadow: 0 10px 24px var(--cp-accent-soft);
}

.coach-profile .cp-booking .form-step button.next-step:hover:not(:disabled),
.coach-profile .cp-booking #book-now-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px var(--cp-accent-soft);
}

.coach-profile .cp-booking .form-step button.prev-step {
	background: #fff;
	color: var(--cp-dark);
	border-color: var(--cp-line);
	box-shadow: none;
}

/* "Not yet", rather than the old opacity: .45 that read as broken. */
.coach-profile .cp-booking .form-step button:disabled {
	background: #f4f0e9;
	color: #9c9282;
	border: 1px dashed var(--cp-line);
	box-shadow: none;
	opacity: 1;
	transform: none;
	cursor: not-allowed;
}

.coach-profile .cp-booking .spinner {
	border-color: currentColor;
	border-top-color: transparent;
}

/* --- Summary --- */
.coach-profile .cp-booking .booking-summary {
	background: #faf7f2;
	border: 1px solid var(--cp-line);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 22px;
}

.coach-profile .cp-booking .booking-summary h3 {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: var(--cp-dark);
	margin: 0 0 14px;
}

.coach-profile .cp-booking #summary-details p {
	margin: 6px 0;
	font-family: "Inter", sans-serif;
	font-size: 14px;
	color: #555;
}

.coach-profile .cp-booking #summary-details strong {
	color: var(--cp-dark);
}

.coach-profile .cp-booking #summary-details ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.coach-profile .cp-booking #summary-details li {
	font-size: 14px;
	color: #555;
	margin: 4px 0;
}

/* --- Booking message --- */
.coach-profile .cp-booking #booking-message {
	display: none;
	max-width: 1080px;
	margin: 18px auto 0;
	padding: 14px 18px;
	border-radius: 12px;
	font-family: "Inter", sans-serif;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.coach-profile .cp-booking #booking-message.success {
	display: block;
	background: #eafaf0;
	color: #1e7d46;
	border: 1px solid #bfe6cf;
}

.coach-profile .cp-booking #booking-message.error {
	display: block;
	background: #fdecef;
	color: #c2252f;
	border: 1px solid #f4c3c9;
}

/* --- Focus visibility --- */
.coach-profile .cp-booking .form-step button:focus-visible,
.coach-profile .cp-booking .form-step select:focus-visible,
.coach-profile .cp-booking .arrow:focus-visible,
.coach-profile .cp-booking .day:focus-visible,
.coach-profile .cp-booking .time-slot:focus-visible,
.coach-profile .cp-booking .accordion-header:focus-visible {
	outline: 2px solid var(--cp-accent);
	outline-offset: 2px;
}

/* --- Booking responsive --- */
@media (max-width: 1040px) {
	.coach-profile .cp-booking #session-slots {
		grid-template-columns: 1fr;
	}

	.coach-profile .cp-booking .calendar-container {
		max-width: 380px;
	}

	.coach-profile .cp-booking .time-slots-container:empty::before,
	.coach-profile .cp-booking .time-slots-container > p,
	.coach-profile .cp-booking #session-slots > p {
		min-height: 180px;
	}
}

@media (max-width: 860px) {
	.coach-profile .cp-booking .booking-container {
		flex-direction: column;
	}

	.coach-profile .cp-booking .booking-sidebar {
		width: 100%;
		flex-direction: row;
		justify-content: space-between;
		gap: 6px;
		border-right: none;
		border-bottom: 1px solid var(--cp-line);
		padding: 16px;
	}

	.coach-profile .cp-booking .step {
		flex: 1;
		flex-direction: column;
		gap: 8px;
		text-align: center;
		padding: 8px 4px;
		font-size: 11.5px;
	}

	/* The horizontal strip reads as a sequence on its own; a rotated connector
	   would only add noise. */
	.coach-profile .cp-booking .step:not(:last-child)::before,
	.coach-profile .cp-booking .booking-sidebar::after {
		content: none;
	}

	.coach-profile .cp-booking .step .cbs-ico {
		width: 40px;
		height: 40px;
		padding: 10px;
	}

	/* Between here and ~700px the sidebar is a horizontal strip, so the form
	   pane has the full card width back -- enough for two columns again. */
	.coach-profile .cp-booking .calendar-container {
		max-width: 380px;
	}
}

@media (max-width: 860px) and (min-width: 700px) {
	.coach-profile .cp-booking #session-slots {
		grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
	}
}

@media (max-width: 520px) {
	.coach-profile .cp-booking .calendar-container {
		padding: 14px;
	}

	.coach-profile .cp-booking .calendar-nav {
		gap: 5px;
	}

	/* A phone-width calendar card can't hold month, year and both arrows on one
	   row without squeezing "September" and "2026" down to a letter each. The
	   selects keep enough width to stay readable and the arrows wrap beneath
	   them, right-aligned -- legible beats compact. */
	.coach-profile .cp-booking .calendar-nav select.month-select,
	.coach-profile .cp-booking .calendar-nav select.year-select {
		flex: 0 1 auto;
		min-width: 0;
		padding: 7px 18px 7px 8px;
		font-size: 12px;
		background-position: right 5px center;
		background-size: 9px;
	}

	.coach-profile .cp-booking .nav-arrows {
		flex: none;
	}

	.coach-profile .cp-booking .arrow {
		width: 29px;
		height: 29px;
	}
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.coach-profile *,
	.coach-profile *::before,
	.coach-profile *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.coach-profile .cp-btn:hover,
	.coach-profile .cp-btn--primary:hover,
	.coach-profile .cp-booking .form-step button:hover:not(:disabled),
	.cp-features .coach-feature:hover,
	.coach-gallery-item:hover img {
		transform: none;
	}
}
