/**
 * Birth Plan Builder — front-end styles.
 *
 * Colours and fonts read from Elementor's global CSS variables first, so the
 * builder follows the site's brand automatically. The literal values in each
 * fallback are Birthing Peace's exported globals, which keeps the builder on
 * brand even in an Elementor-free context (a preview, an email, a theme switch).
 *
 * Everything is scoped under .bpbp so nothing leaks into the surrounding theme.
 */

.bpbp {
	/* Brand */
	--bpbp-primary: var(--e-global-color-primary, #44316e);
	--bpbp-accent: var(--e-global-color-5f1ca78, #fffcaa);
	--bpbp-page: var(--e-global-color-a74adf1, #fffded);
	--bpbp-ink: var(--e-global-color-text, #4c5b5c);
	--bpbp-muted: var(--e-global-color-secondary, #54595f);

	/*
	 * The warm secondary. It carries the sub-headings, rules and botanical
	 * detail on the finished plan, and it is what stops a document set entirely
	 * in one purple from reading as a form rather than a keepsake. Overridden
	 * from the settings screen alongside the accent.
	 */
	--bpbp-gold: #b08a4a;
	--bpbp-paper: #fdfbf6;

	/* Derived surfaces */
	--bpbp-surface: #ffffff;
	--bpbp-tint: color-mix(in srgb, var(--bpbp-primary) 5%, #ffffff);
	--bpbp-tint-strong: color-mix(in srgb, var(--bpbp-primary) 11%, #ffffff);
	--bpbp-line: color-mix(in srgb, var(--bpbp-primary) 16%, #ffffff);
	--bpbp-line-soft: color-mix(in srgb, var(--bpbp-primary) 9%, #ffffff);
	--bpbp-line-strong: color-mix(in srgb, var(--bpbp-primary) 55%, #ffffff);
	--bpbp-gold-line: color-mix(in srgb, var(--bpbp-gold) 42%, #ffffff);
	--bpbp-gold-soft: color-mix(in srgb, var(--bpbp-gold) 24%, #ffffff);
	--bpbp-gold-wash: color-mix(in srgb, var(--bpbp-gold) 8%, #ffffff);
	--bpbp-danger: #a33a3a;
	--bpbp-success: #2f6b4f;

	/* Type */
	--bpbp-font-heading: var(--e-global-typography-secondary-font-family, "Old Standard TT"), Georgia, "Times New Roman", serif;
	--bpbp-font-body: var(--e-global-typography-text-font-family, "Roboto"), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Shape */
	--bpbp-radius: 12px;
	--bpbp-radius-sm: 8px;

	max-width: 820px;
	margin: 0 auto;
	font-family: var(--bpbp-font-body);
	color: var(--bpbp-ink);
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}

/* Older browsers without color-mix fall back to fixed tints of the brand purple. */
@supports not (color: color-mix(in srgb, #000 50%, #fff)) {
	.bpbp {
		--bpbp-tint: #f6f4f9;
		--bpbp-tint-strong: #ece8f2;
		--bpbp-line: #ddd7e6;
		--bpbp-line-soft: #ebe7f1;
		--bpbp-line-strong: #a294c2;
		--bpbp-gold-line: #dcc9a6;
		--bpbp-gold-soft: #efe4d0;
		--bpbp-gold-wash: #faf6ef;
	}
}

.bpbp *,
.bpbp *::before,
.bpbp *::after {
	box-sizing: border-box;
}

.bpbp .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* The Birthing Peace four-point mark, drawn rather than loaded. */
.bpbp-mark {
	display: inline-block;
	width: 0.66em;
	height: 0.66em;
	background: currentColor;
	color: var(--bpbp-primary);
	vertical-align: -0.06em;
	clip-path: polygon(50% 0%, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0% 50%, 41% 41%);
}

.bpbp-mark--on-dark {
	color: var(--bpbp-accent);
}

/*
 * A heart, cut from a square. Drawn rather than loaded for the same reason as
 * the four-point mark: it has to survive being cloned into the print document
 * and printed with no network available.
 */
.bpbp-heart {
	display: inline-block;
	width: 0.78em;
	height: 0.78em;
	background: currentColor;
	color: var(--bpbp-gold);
	vertical-align: -0.08em;
	clip-path: polygon(50% 100%, 10% 62%, 0 38%, 8% 14%, 28% 6%, 50% 22%, 72% 6%, 92% 14%, 100% 38%, 90% 62%);
}

.bpbp-mark--sm {
	width: 0.5em;
	height: 0.5em;
	flex: 0 0 auto;
	margin-top: 0.52em;
	opacity: 0.85;
}

.bpbp-noscript {
	padding: 16px 18px;
	margin: 0 0 20px;
	border-left: 3px solid var(--bpbp-primary);
	background: var(--bpbp-tint);
	border-radius: var(--bpbp-radius-sm);
}

/* ── Intro ──────────────────────────────────────────────────────────────── */

.bpbp-intro {
	text-align: center;
	margin-bottom: 28px;
}

.bpbp-intro__heading {
	font-family: var(--bpbp-font-heading);
	font-weight: 500;
	font-size: clamp(1.75rem, 4vw, 2.4rem);
	line-height: 1.18;
	color: var(--bpbp-primary);
	margin: 0 0 12px;
}

.bpbp-intro__body {
	max-width: 60ch;
	margin: 0 auto 16px;
	color: var(--bpbp-muted);
}

.bpbp-intro__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 16px;
	border-radius: 999px;
	background: var(--bpbp-accent);
	color: var(--bpbp-primary);
	font-size: 0.82rem;
	letter-spacing: 0.02em;
}

/* ── Progress ───────────────────────────────────────────────────────────── */

.bpbp-progress {
	margin-bottom: 18px;
}

.bpbp-progress__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bpbp-progress__label {
	color: var(--bpbp-muted);
}

.bpbp-progress__count {
	color: var(--bpbp-primary);
	font-weight: 500;
}

.bpbp-progress__track {
	height: 5px;
	border-radius: 999px;
	background: var(--bpbp-line-soft);
	overflow: hidden;
}

.bpbp-progress__fill {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--bpbp-primary);
	transition: width 0.35s ease;
}

.bpbp-dots {
	display: flex;
	gap: 7px;
	justify-content: center;
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}

.bpbp-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bpbp-line);
	transition: all 0.25s ease;
}

.bpbp-dot.is-done {
	background: var(--bpbp-primary);
	opacity: 0.55;
}

.bpbp-dot.is-active {
	background: var(--bpbp-primary);
	width: 22px;
	border-radius: 999px;
	opacity: 1;
}

/* ── Card & steps ───────────────────────────────────────────────────────── */

.bpbp-card {
	background: var(--bpbp-surface);
	border: 1px solid var(--bpbp-line);
	border-radius: var(--bpbp-radius);
	padding: clamp(20px, 4vw, 38px);
	box-shadow: 0 1px 2px rgba(68, 49, 110, 0.04), 0 12px 32px -20px rgba(68, 49, 110, 0.35);
}

.bpbp-step[hidden] {
	display: none;
}

.bpbp-step__eyebrow {
	margin: 0 0 6px;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bpbp-primary);
	opacity: 0.72;
}

.bpbp-step__title {
	font-family: var(--bpbp-font-heading);
	font-weight: 500;
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	line-height: 1.25;
	color: var(--bpbp-primary);
	margin: 0 0 8px;
}

.bpbp-step__hint {
	margin: 0 0 26px;
	color: var(--bpbp-muted);
	font-size: 0.94rem;
	max-width: 62ch;
}

.bpbp-rule {
	border: 0;
	border-top: 1px solid var(--bpbp-line-soft);

	/*
	 * The air around a rule is set here rather than on the fields either side of
	 * it. Sibling margins collapse into the larger of the two, so a field's own
	 * top margin never adds to this — it is simply swallowed by it.
	 */
	margin: 48px 0;
}

/* ── Fields ─────────────────────────────────────────────────────────────── */

.bpbp-field {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.bpbp-field:last-of-type {
	margin-bottom: 0;
}

.bpbp-label {
	display: block;
	padding: 0;
	font-weight: 500;
	font-size: 1rem;
	color: var(--bpbp-primary);
	margin-bottom: 4px;
}

.bpbp-required {
	color: var(--bpbp-primary);
	opacity: 0.55;
	margin-left: 2px;
	font-size: 0.9em;
}

.bpbp-sublabel {
	display: block;
	font-size: 0.85rem;
	color: var(--bpbp-muted);
	margin-bottom: 10px;
}

.bpbp-input {
	display: block;
	width: 100%;
	padding: 11px 14px;
	font: inherit;
	font-size: 0.98rem;
	color: var(--bpbp-ink);
	background: var(--bpbp-surface);
	border: 1px solid var(--bpbp-line);
	border-radius: var(--bpbp-radius-sm);
	margin-top: 6px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bpbp-input::placeholder {
	color: var(--bpbp-muted);
	opacity: 0.6;
}

.bpbp-input:focus {
	outline: none;
	border-color: var(--bpbp-primary);
	box-shadow: 0 0 0 3px var(--bpbp-tint-strong);
}

.bpbp-input--area {
	min-height: 88px;
	resize: vertical;
	line-height: 1.55;
}

.bpbp-input--select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 40px;
	cursor: pointer;
}

.bpbp-counter {
	display: block;
	margin-top: 5px;
	font-size: 0.78rem;
	color: var(--bpbp-muted);
	text-align: right;
	min-height: 1em;
}

.bpbp-error {
	display: block;
	margin-top: 6px;
	font-size: 0.84rem;
	color: var(--bpbp-danger);
}

.bpbp-field.is-invalid .bpbp-input,
.bpbp-lead__field.is-invalid .bpbp-input {
	border-color: var(--bpbp-danger);
}

.bpbp-field.is-invalid .bpbp-option__label {
	border-color: color-mix(in srgb, var(--bpbp-danger) 40%, #ffffff);
}

/* ── Choice options ─────────────────────────────────────────────────────── */

.bpbp-options {
	display: grid;
	grid-template-columns: 1fr;
	gap: 9px;
	margin-top: 4px;
}

.bpbp-options--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bpbp-option {
	position: relative;
	min-width: 0;
}

.bpbp-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}

.bpbp-option__label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	height: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bpbp-line);
	border-radius: var(--bpbp-radius-sm);
	background: var(--bpbp-surface);
	cursor: pointer;
	font-size: 0.94rem;
	line-height: 1.4;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bpbp-option__label:hover {
	border-color: color-mix(in srgb, var(--bpbp-primary) 40%, #ffffff);
	background: var(--bpbp-tint);
}

.bpbp-option__marker {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin-top: 1px;
	border: 1.5px solid var(--bpbp-line);
	background: var(--bpbp-surface);
	position: relative;
	transition: all 0.15s ease;
}

/* Squares for "choose many", circles for "choose one". Named roles are a
   "choose many" list too, so they take the square and its tick. */
.bpbp-field--choice[data-bpbp-type="checkbox"] .bpbp-option__marker,
.bpbp-field--choice[data-bpbp-type="people"] .bpbp-option__marker {
	border-radius: 5px;
}

.bpbp-field--choice[data-bpbp-type="radio"] .bpbp-option__marker {
	border-radius: 50%;
}

.bpbp-option__input:checked + .bpbp-option__label {
	border-color: var(--bpbp-primary);
	background: var(--bpbp-tint);
}

.bpbp-option__input:checked + .bpbp-option__label .bpbp-option__marker {
	border-color: var(--bpbp-primary);
	background: var(--bpbp-primary);
}

.bpbp-field--choice[data-bpbp-type="checkbox"] .bpbp-option__input:checked + .bpbp-option__label .bpbp-option__marker::after,
.bpbp-field--choice[data-bpbp-type="people"] .bpbp-option__input:checked + .bpbp-option__label .bpbp-option__marker::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(43deg);
}

.bpbp-field--choice[data-bpbp-type="radio"] .bpbp-option__input:checked + .bpbp-option__label .bpbp-option__marker::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: #fff;
}

.bpbp-option__input:focus-visible + .bpbp-option__label {
	outline: 2px solid var(--bpbp-primary);
	outline-offset: 2px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.bpbp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--bpbp-line-soft);
}

.bpbp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.3;
	border: 1px solid transparent;
	border-radius: var(--bpbp-radius-sm);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.bpbp-btn:focus-visible {
	outline: 2px solid var(--bpbp-primary);
	outline-offset: 2px;
}

.bpbp-btn--primary {
	background: var(--bpbp-primary);
	color: #fff;
}

.bpbp-btn--primary:hover:not(:disabled) {
	background: color-mix(in srgb, var(--bpbp-primary) 86%, #000000);
	color: #fff;
}

.bpbp-btn--ghost {
	background: transparent;
	color: var(--bpbp-muted);
	padding-left: 4px;
	padding-right: 12px;
}

.bpbp-btn--ghost:hover {
	color: var(--bpbp-primary);
}

.bpbp-btn--outline {
	background: var(--bpbp-surface);
	border-color: var(--bpbp-line);
	color: var(--bpbp-primary);
}

.bpbp-btn--outline:hover:not(:disabled) {
	border-color: var(--bpbp-primary);
	background: var(--bpbp-tint);
}

.bpbp-btn--accent {
	background: var(--bpbp-accent);
	color: var(--bpbp-primary);
}

.bpbp-btn--accent:hover {
	background: color-mix(in srgb, var(--bpbp-accent) 82%, var(--bpbp-primary));
	color: var(--bpbp-primary);
}

.bpbp-btn--lg {
	padding: 14px 26px;
	font-size: 1rem;
}

.bpbp-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.bpbp-btn.is-busy {
	opacity: 0.75;
	cursor: progress;
}

.bpbp-linkbtn {
	background: none;
	border: 0;
	padding: 4px 6px;
	font: inherit;
	font-size: 0.88rem;
	color: var(--bpbp-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.bpbp-linkbtn:hover {
	color: var(--bpbp-primary);
}

/* ── Doula notes ────────────────────────────────────────────────────────── */

/*
 * A supportive aside beside the questions. It never reaches the finished plan:
 * these are here to steady someone who is making a lot of decisions at once,
 * while the document their care team reads stays short.
 */
.bpbp-note {
	position: relative;
	margin: 24px 0 0;
	padding: 15px 18px 15px 46px;
	border: 1px solid var(--bpbp-gold-line);
	border-radius: var(--bpbp-radius-sm);
	background: var(--bpbp-gold-wash);
}

.bpbp-note + .bpbp-rule,
.bpbp-rule + .bpbp-note {
	margin-top: 24px;
}

.bpbp-note__mark {
	position: absolute;
	top: 17px;
	left: 18px;
	width: 15px;
	height: 15px;
	background: var(--bpbp-gold);
	clip-path: polygon(50% 100%, 10% 62%, 0 38%, 8% 14%, 28% 6%, 50% 22%, 72% 6%, 92% 14%, 100% 38%, 90% 62%);
}

.bpbp-note__kind {
	margin: 0 0 3px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bpbp-gold);
}

.bpbp-note__body {
	margin: 0;
	font-family: var(--bpbp-font-heading);
	font-size: 0.96rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--bpbp-muted);
}

/* ── Named roles ────────────────────────────────────────────────────────── */

/*
 * Each role can carry a name. The box appears only once the role is ticked, and
 * it stays in the markup when the role is unticked, so a name typed and then
 * reconsidered is still there if the parent changes their mind back.
 */
.bpbp-option--person {
	display: flex;
	flex-direction: column;
}

.bpbp-option--person .bpbp-option__input:checked ~ .bpbp-option__label {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom-color: transparent;
}

.bpbp-option__name {
	margin-top: 0;
	padding: 9px 14px 9px 44px;
	font-size: 0.9rem;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.bpbp-option__name[hidden] {
	display: none;
}

/* ── Compact question tables ────────────────────────────────────────────── */

/*
 * Four independent yes/no questions, drawn as one small table. Four separate
 * fieldsets for four two-word answers reads as a wall; this reads as a set of
 * decisions, which is what it is.
 */
.bpbp-matrix {
	margin: 0 0 22px;
	padding: 14px 18px 6px;
	border: 1px solid var(--bpbp-line);
	border-radius: var(--bpbp-radius-sm);
	background: var(--bpbp-tint);
}

.bpbp-matrix__title {
	margin: 0 0 6px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bpbp-gold);
}

.bpbp-matrix__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--bpbp-line-soft);
}

.bpbp-matrix__row:last-child {
	border-bottom: 0;
}

.bpbp-matrix__label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.95rem;
	color: var(--bpbp-primary);
}

.bpbp-matrix__choices {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
}

.bpbp-matrix__row .bpbp-error {
	flex: 1 0 100%;
	margin-top: 0;
}

.bpbp-pill {
	position: relative;
	display: inline-flex;
}

.bpbp-pill__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}

.bpbp-pill__label {
	display: inline-block;
	min-width: 62px;
	padding: 7px 16px;
	border: 1px solid var(--bpbp-line);
	border-radius: 999px;
	background: var(--bpbp-surface);
	font-size: 0.88rem;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.bpbp-pill__label:hover {
	border-color: var(--bpbp-line-strong);
}

.bpbp-pill__input:checked + .bpbp-pill__label {
	border-color: var(--bpbp-primary);
	background: var(--bpbp-primary);
	color: #fff;
}

.bpbp-pill__input:focus-visible + .bpbp-pill__label {
	outline: 2px solid var(--bpbp-primary);
	outline-offset: 2px;
}

.bpbp-matrix__row.is-invalid .bpbp-pill__label {
	border-color: var(--bpbp-danger);
}

/* ── Result: the plan ───────────────────────────────────────────────────── */

/*
 * The preview is the document. It carries the same paper, the same botanical
 * mark, the same gold sub-headings and the same two columns as the downloaded
 * PDF, because this is also what print.css prints — and a parent who has just
 * seen this on screen should recognise what comes out of the printer and what
 * lands in their downloads folder as the same thing.
 */
.bpbp-plan {
	position: relative;
	margin-bottom: 26px;
	padding: clamp(14px, 2.6vw, 22px);
	border: 1px solid var(--bpbp-gold-line);
	border-radius: var(--bpbp-radius);
	background: var(--bpbp-paper);
	color: #33312c;
}

/* The inner rule that frames the sheet. */
.bpbp-plan::before {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1px solid var(--bpbp-gold-soft);
	border-radius: 7px;
	pointer-events: none;
}

.bpbp-plan__header {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	align-items: start;
	gap: clamp(8px, 2vw, 18px);
	padding: 10px 6px clamp(16px, 3vw, 24px);
}

.bpbp-plan__sprig {
	display: block;
	width: 92px;
	margin-top: -10px;
	color: var(--bpbp-gold-line);
}

.bpbp-plan__sprig svg {
	display: block;
	width: 100%;
	height: auto;
}

.bpbp-sprig__stem {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.bpbp-sprig__leaves,
.bpbp-sprig__berries {
	fill: currentColor;
}

.bpbp-plan__titles {
	min-width: 0;
	text-align: center;
	padding-top: 6px;
}

.bpbp-plan__title {
	font-family: var(--bpbp-font-heading);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.6vw, 2.15rem);
	line-height: 1.14;
	color: var(--bpbp-primary);
	margin: 0;
	overflow-wrap: break-word;
}

/*
 * "Birth Plan", set between two rules, in the same script face the PDF embeds.
 * The @font-face for it is emitted by class-bpbp-shortcode.php, which is where
 * the URL is known; the serif italic behind it is what shows for the moment
 * before the file arrives, and is what the PDF falls back to as well.
 */
.bpbp-plan__script {
	display: flex;
	align-items: center;
	gap: clamp(8px, 2vw, 16px);
	margin: 2px 0 0;
}

.bpbp-plan__script::before,
.bpbp-plan__script::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--bpbp-gold-line);
}

.bpbp-plan__script span {
	flex: 0 0 auto;
	font-family: "BPBP Script", var(--bpbp-font-heading);
	font-style: italic;
	font-size: clamp(1.6rem, 3.6vw, 2.3rem);
	word-spacing: 0.12em;
	line-height: 1.2;
	color: var(--bpbp-primary);
}

.bpbp-plan__meta {
	display: inline-block;
	margin: clamp(8px, 2vw, 14px) 0 0;
	padding: 5px 16px;
	border-radius: 999px;
	background: var(--bpbp-gold-wash);
	font-family: var(--bpbp-font-heading);
	font-size: 0.88rem;
	color: #33312c;
}

.bpbp-plan__meta[hidden] {
	display: none;
}

.bpbp-plan__quote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 138px;
	padding: 12px 10px;
	border: 1px solid var(--bpbp-gold-line);
	border-radius: 8px;
	font-family: var(--bpbp-font-heading);
	font-style: italic;
	font-size: 0.92rem;
	line-height: 1.34;
	text-align: center;
	color: #33312c;
}

.bpbp-plan__quote-mark {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: 2px 0 4px;
	background: var(--bpbp-gold);
	clip-path: polygon(50% 100%, 10% 62%, 0 38%, 8% 14%, 28% 6%, 50% 22%, 72% 6%, 92% 14%, 100% 38%, 90% 62%);
}

/* Narrow screens: the sprig steps aside and the quote drops below the name. */
@media (max-width: 640px) {
	.bpbp-plan__header {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
	}

	.bpbp-plan__sprig {
		display: none;
	}
}

/* ── The plan body, in two columns ──────────────────────────────────────── */

.bpbp-plan__body {
	padding: 0 6px;
	font-family: var(--bpbp-font-heading);
	column-count: 2;
	column-gap: 26px;
	column-rule: 1px solid var(--bpbp-gold-soft);
}

@media (max-width: 640px) {
	.bpbp-plan__body {
		column-count: 1;
		column-rule: 0;
	}
}

.bpbp-plan__section + .bpbp-plan__section {
	margin-top: 18px;
}

.bpbp-plan__section-title {
	font-family: var(--bpbp-font-heading);
	font-weight: 700;
	font-size: 1.06rem;
	line-height: 1.2;
	color: var(--bpbp-primary);
	margin: 0 0 7px;
	padding-bottom: 5px;
	border-bottom: 1px solid var(--bpbp-gold-soft);
	break-after: avoid;
	page-break-after: avoid;
}

/* The sub-heading a run of bullets sits under, e.g. "SOUND / ATMOSPHERE". */
.bpbp-plan__group-title {
	margin: 12px 0 3px;
	font-family: var(--bpbp-font-body);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bpbp-gold);
	break-after: avoid;
	page-break-after: avoid;
}

.bpbp-plan__section-title + .bpbp-plan__group-title {
	margin-top: 2px;
}

.bpbp-plan__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpbp-plan__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 1px 0;
	font-size: 0.92rem;
	line-height: 1.42;
	break-inside: avoid;
	page-break-inside: avoid;
}

.bpbp-plan__item .bpbp-mark--sm {
	width: 4px;
	height: 4px;
	margin-top: 0.62em;
	border-radius: 50%;
	clip-path: none;
	background: var(--bpbp-primary);
	opacity: 0.55;
}

.bpbp-plan__text strong {
	color: #33312c;
	font-weight: 700;
}

.bpbp-plan__empty {
	margin: 0;
	color: var(--bpbp-muted);
	font-style: italic;
}

/* ── The final note ─────────────────────────────────────────────────────── */

.bpbp-plan__note {
	margin: clamp(16px, 3vw, 24px) 6px 0;
	padding: 13px 17px;
	border: 1px solid var(--bpbp-gold-line);
	border-radius: 6px;
	background: var(--bpbp-gold-wash);
	break-inside: avoid;
	page-break-inside: avoid;
}

.bpbp-plan__note-kind {
	margin: 0 0 4px;
	font-family: var(--bpbp-font-body);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--bpbp-gold);
}

.bpbp-plan__note-body {
	margin: 0;
	font-family: var(--bpbp-font-heading);
	font-size: 0.88rem;
	font-style: italic;
	line-height: 1.4;
	color: #6f6a62;
}

/*
 * Lives in the markup only so the printed page can carry the same footer line
 * as the PDF. print.css reveals it.
 */
.bpbp-plan__footer {
	display: none;
}

/* ── Result: lead capture ───────────────────────────────────────────────── */

.bpbp-lead {
	background: var(--bpbp-page);
	border: 1px solid var(--bpbp-line);
	border-radius: var(--bpbp-radius);
	padding: clamp(18px, 3vw, 28px);
}

.bpbp-lead__title {
	font-family: var(--bpbp-font-heading);
	font-weight: 500;
	font-size: 1.3rem;
	color: var(--bpbp-primary);
	margin: 0 0 6px;
}

.bpbp-lead__body {
	margin: 0 0 20px;
	font-size: 0.93rem;
	color: var(--bpbp-muted);
	max-width: 58ch;
}

.bpbp-lead__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}

.bpbp-lead__field {
	min-width: 0;
}

.bpbp-lead__field--wide {
	grid-column: 1 / -1;
}

.bpbp-lead__field label {
	display: block;
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--bpbp-primary);
}

.bpbp-optional {
	font-weight: 400;
	color: var(--bpbp-muted);
	opacity: 0.8;
}

/* Honeypots: off-screen, untabbable, invisible to assistive technology. */
.bpbp-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.bpbp-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 10px;
	align-items: start;
	margin-top: 18px;
	font-size: 0.87rem;
	color: var(--bpbp-muted);
}

.bpbp-consent input {
	margin-top: 4px;
	accent-color: var(--bpbp-primary);
	width: 16px;
	height: 16px;
}

.bpbp-consent label {
	cursor: pointer;
}

.bpbp-consent .bpbp-error {
	grid-column: 2;
	margin-top: 2px;
}

.bpbp-consent.is-invalid label {
	color: var(--bpbp-danger);
}

.bpbp-turnstile {
	margin-top: 16px;
	min-height: 0;
}

.bpbp-turnstile:not(:empty) {
	min-height: 66px;
}

.bpbp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.bpbp-actions .bpbp-btn {
	flex: 1 1 200px;
}

.bpbp-privacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 16px 0 0;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--bpbp-muted);
}

/* A small padlock, drawn in CSS so no icon font is needed. */
.bpbp-lock {
	flex: 0 0 auto;
	position: relative;
	width: 11px;
	height: 9px;
	margin-top: 5px;
	border-radius: 2px;
	background: var(--bpbp-primary);
	opacity: 0.6;
}

.bpbp-lock::before {
	content: "";
	position: absolute;
	left: 2px;
	top: -5px;
	width: 7px;
	height: 7px;
	border: 1.5px solid var(--bpbp-primary);
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */

.bpbp-alert {
	padding: 12px 16px;
	border-radius: var(--bpbp-radius-sm);
	font-size: 0.92rem;
	margin-bottom: 18px;
}

.bpbp-alert--success {
	background: color-mix(in srgb, var(--bpbp-success) 10%, #ffffff);
	border-left: 3px solid var(--bpbp-success);
	color: var(--bpbp-success);
}

.bpbp-alert--error {
	background: color-mix(in srgb, var(--bpbp-danger) 8%, #ffffff);
	border-left: 3px solid var(--bpbp-danger);
	color: var(--bpbp-danger);
	margin: 16px 0 0;
}

/* ── Consultation CTA ───────────────────────────────────────────────────── */

.bpbp-cta {
	margin-top: 22px;
	padding: clamp(20px, 3vw, 30px);
	border-radius: var(--bpbp-radius);
	background: var(--bpbp-primary);
	color: #fff;
	text-align: center;
}

.bpbp-cta__title {
	font-family: var(--bpbp-font-heading);
	font-weight: 500;
	font-size: 1.35rem;
	color: #fff;
	margin: 0 0 8px;
}

.bpbp-cta__body {
	margin: 0 auto 18px;
	max-width: 52ch;
	font-size: 0.93rem;
	color: rgba(255, 255, 255, 0.86);
}

.bpbp-restart-row {
	margin: 18px 0 0;
	text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
	.bpbp-options--two,
	.bpbp-lead__grid {
		grid-template-columns: 1fr;
	}

	.bpbp-nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.bpbp-nav .bpbp-btn {
		width: 100%;
	}

	.bpbp-actions .bpbp-btn {
		flex: 1 1 100%;
	}

	.bpbp-progress__meta {
		font-size: 0.72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpbp * {
		transition: none !important;
	}
}
