.tpc-configurator {
	--tpc-border: #d9dee8;
	--tpc-soft: #f7f9fc;
	--tpc-green: #1D4731;
	--tpc-tile-border: var(--tpc-border);
	--tpc-selected-border: var(--tpc-accent, #f26300);
	--tpc-heading: var(--tpc-navy, #061b52);
	--tpc-intro: var(--tpc-muted, #667085);
	--tpc-legend: #1D4731;
	--tpc-badge-bg: #1D4731;
	--tpc-badge-text: #ffffff;
	--tpc-progress-fill: var(--tpc-accent, #f26300);
	--tpc-progress-track: var(--tpc-border);
	--tpc-progress-label: var(--tpc-muted, #667085);
	--tpc-button-bg: var(--tpc-accent, #f26300);
	--tpc-button-text: #ffffff;
	--tpc-result-bg: #f6fff6;
	--tpc-result-border: #b9dfbd;
	--tpc-rec-title: var(--tpc-navy, #061b52);
	--tpc-rec-text: var(--tpc-navy, #061b52);
	--tpc-kicker-bg: #dff2df;
	--tpc-kicker-text: var(--tpc-green);
	--tpc-feature-bg: #ffffff;
	--tpc-feature-border: var(--tpc-border);
	--tpc-feature-text: var(--tpc-navy, #061b52);
	--tpc-target-bg: #ffffff;
	--tpc-target-color: var(--tpc-green);
	--tpc-form-label: var(--tpc-navy, #061b52);
	--tpc-input-bg: #ffffff;
	--tpc-input-border: var(--tpc-border);
	--tpc-input-text: #202939;
	display: grid;
	gap: 28px;
	grid-template-columns: 1fr;
	align-items: start;
	color: var(--tpc-navy);
	font-family: inherit;
	container-type: inline-size;
	max-width: 100%;
}

.tpc-layout-stacked {
	grid-template-columns: 1fr;
}

.tpc-main,
.tpc-form-panel {
	min-width: 0;
}

.tpc-header {
	margin-bottom: 24px;
}

.tpc-header h2 {
	margin: 0 0 6px;
	color: var(--tpc-heading);
	font-size: 38px;
	line-height: 1.1;
	letter-spacing: 0;
}

.tpc-header p {
	margin: 0;
	color: var(--tpc-intro);
	font-size: 17px;
	line-height: 1.45;
}

.tpc-steps {
	display: grid;
	gap: 22px;
}

.tpc-step {
	margin: 0;
	padding: 0;
	border: 0;
}

.tpc-step legend {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--tpc-legend);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}

.tpc-step legend span {
	display: inline-grid;
	width: 31px;
	height: 31px;
	place-items: center;
	border-radius: 999px;
	background: var(--tpc-badge-bg);
	color: var(--tpc-badge-text);
	font-size: 16px;
	line-height: 1;
}

.tpc-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	grid-auto-rows: 1fr;
	gap: 10px;
	align-items: stretch;
}

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

.tpc-columns-3 .tpc-options {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tpc-columns-4 .tpc-options {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tpc-columns-5 .tpc-options {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tpc-columns-6 .tpc-options {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tpc-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	min-height: var(--tpc-tile-min-height);
	height: 100%;
	padding: 16px 12px;
	border: 2px solid var(--tpc-tile-border);
	border-radius: 8px;
	background: var(--tpc-option-bg);
	color: var(--tpc-option-text);
	box-shadow: 0 8px 22px rgba(6, 27, 82, 0.05);
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.25;
	font-weight: 800;
	text-align: center;
	white-space: normal;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tpc-option:hover,
.tpc-option:focus-visible {
	border-color: var(--tpc-selected-border);
	outline: 0;
}

.tpc-option[data-selected] {
	background: var(--tpc-selected-bg);
	color: var(--tpc-selected-text);
	border-color: var(--tpc-selected-border);
	box-shadow: 0 8px 22px rgba(242, 99, 0, 0.18);
}

.tpc-option:focus,
.tpc-option:active {
	background: var(--tpc-option-bg) !important;
	color: var(--tpc-option-text) !important;
}

.tpc-option[data-selected],
.tpc-option[data-selected]:hover,
.tpc-option[data-selected]:focus,
.tpc-option[data-selected]:active {
	background: var(--tpc-selected-bg) !important;
	color: var(--tpc-selected-text) !important;
	border-color: var(--tpc-selected-border) !important;
}

.tpc-option span:not(.tpc-icon) {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	white-space: normal !important;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	line-height: 1.25;
}

.tpc-option[hidden],
.tpc-option-wrap[hidden],
.tpc-step[hidden],
.tpc-program[hidden] {
	display: none !important;
}

.tpc-icon {
	display: inline-grid;
	width: 38px;
	height: 38px;
	place-items: center;
	color: currentColor;
}

.tpc-icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.tpc-icon svg.tpc-flag {
	stroke: none;
	border-radius: 3px;
	overflow: hidden;
}

.tpc-option .tpc-icon {
	color: currentColor;
}

.tpc-option[data-selected] .tpc-icon {
	color: currentColor;
}

.tpc-programs {
	margin-top: 28px;
}

.tpc-program {
	display: none;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	padding: 24px;
	border: 1px solid var(--tpc-result-border);
	border-radius: 8px;
	background: var(--tpc-result-bg);
	box-shadow: 0 12px 28px rgba(67, 160, 71, 0.1);
}

.tpc-program[data-active] {
	display: grid;
}

.tpc-target {
	display: grid;
	width: 58px;
	height: 58px;
	place-items: center;
	border-radius: 999px;
	background: var(--tpc-target-bg);
	color: var(--tpc-target-color);
	box-shadow: 0 8px 22px rgba(6, 27, 82, 0.12);
}

.tpc-kicker {
	display: inline-block;
	margin: 0 0 6px;
	padding: 4px 10px;
	border-radius: 4px;
	background: var(--tpc-kicker-bg);
	color: var(--tpc-kicker-text);
	font-size: 14px;
	font-weight: 900;
	text-transform: uppercase;
}

.tpc-program h3,
.tpc-form h3 {
	margin: 0 0 8px;
	color: var(--tpc-rec-title);
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: 0;
}

.tpc-program p {
	margin: 0 0 16px;
	color: var(--tpc-rec-text);
	line-height: 1.55;
}

.tpc-program ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.tpc-program li {
	padding: 8px 10px;
	border: 1px solid var(--tpc-feature-border);
	border-radius: 6px;
	background: var(--tpc-feature-bg);
	color: var(--tpc-feature-text);
	font-size: 14px;
	font-weight: 700;
}

.tpc-button {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 6px;
	background: var(--tpc-button-bg);
	color: var(--tpc-button-text);
	box-shadow: 0 10px 24px rgba(242, 99, 0, 0.22);
	cursor: pointer;
	font: inherit;
	font-weight: 900;
	text-align: center;
	text-decoration: none;
}

.tpc-form-panel {
	position: sticky;
	top: 24px;
	padding: 22px;
	border: 1px solid var(--tpc-border);
	border-radius: 8px;
	background: var(--tpc-surface);
	box-shadow: 0 14px 40px rgba(6, 27, 82, 0.11);
}

.tpc-form {
	display: grid;
	gap: 12px;
}

.tpc-form label,
.tpc-radio-group legend {
	display: grid;
	gap: 5px;
	color: var(--tpc-form-label);
	font-size: 14px;
	font-weight: 800;
}

.tpc-form input,
.tpc-form select,
.tpc-form textarea {
	width: 100%;
	min-height: 42px;
	padding: 9px 12px;
	border: 1px solid var(--tpc-input-border);
	border-radius: 6px;
	background: var(--tpc-input-bg);
	color: var(--tpc-input-text);
	font: inherit;
	font-weight: 500;
}

.tpc-form textarea {
	resize: vertical;
}

.tpc-radio-group {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
}

.tpc-radio-group label {
	display: flex;
	gap: 8px;
	align-items: center;
	font-weight: 500;
}

.tpc-radio-group input {
	width: auto;
	min-height: auto;
}

.tpc-form .tpc-button {
	width: 100%;
	margin-top: 4px;
}

.tpc-gf-form .gform_wrapper,
.tpc-gf-form form {
	margin: 0;
}

.tpc-gf-form .gform_wrapper input,
.tpc-gf-form .gform_wrapper select,
.tpc-gf-form .gform_wrapper textarea {
	max-width: 100%;
}

.tpc-gf-placeholder {
	margin: 0;
	color: var(--tpc-muted);
	line-height: 1.5;
}

.tpc-privacy,
.tpc-status {
	margin: 0;
	color: var(--tpc-muted);
	font-size: 13px;
	text-align: center;
}

.tpc-status {
	padding: 10px;
	border-radius: 6px;
	background: var(--tpc-soft);
}

.tpc-status[data-state="success"] {
	background: #edf8ee;
	color: #1b7f32;
}

.tpc-status[data-state="error"] {
	background: #fff0ed;
	color: #b42318;
}

@container (max-width: 700px) {
	.tpc-columns-4 .tpc-options,
	.tpc-columns-5 .tpc-options,
	.tpc-columns-6 .tpc-options {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container (max-width: 520px) {
	.tpc-options,
	.tpc-columns-2 .tpc-options,
	.tpc-columns-3 .tpc-options,
	.tpc-columns-4 .tpc-options,
	.tpc-columns-5 .tpc-options,
	.tpc-columns-6 .tpc-options {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
		gap: 8px;
	}
}

@media (max-width: 920px) {
	.tpc-configurator {
		grid-template-columns: 1fr;
	}

	.tpc-form-panel {
		position: static;
	}
}

@media (max-width: 560px) {
	.tpc-header h2 {
		font-size: 28px;
	}

	.tpc-step legend {
		font-size: 18px;
	}

	.tpc-options,
	.tpc-columns-2 .tpc-options,
	.tpc-columns-3 .tpc-options,
	.tpc-columns-4 .tpc-options,
	.tpc-columns-5 .tpc-options,
	.tpc-columns-6 .tpc-options {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
		gap: 8px;
	}

	.tpc-option {
		min-height: 104px;
		padding: 14px 8px;
		font-size: 12.5px;
		line-height: 1.2;
		gap: 6px;
	}

	.tpc-icon {
		width: 30px;
		height: 30px;
	}

	.tpc-result {
		padding: 16px;
	}

	.tpc-program {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

@media (max-width: 400px) {
	.tpc-option {
		font-size: 11.5px;
		padding: 12px 6px;
	}

	.tpc-icon {
		width: 26px;
		height: 26px;
	}

	.tpc-step legend {
		font-size: 16px;
	}
}

.tpc-step--locked {
	display: none !important;
}

.tpc-progress {
	margin: 0 0 20px;
}

.tpc-progress__label {
	margin: 0 0 6px;
	color: var(--tpc-progress-label);
	font-size: 14px;
	font-weight: 800;
}

.tpc-progress__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--tpc-progress-track);
	overflow: hidden;
}

.tpc-progress__fill {
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: var(--tpc-progress-fill);
	transition: width 220ms ease;
}

.tpc-next {
	margin-top: 16px;
}

.tpc-result {
	margin-top: 28px;
	padding: 24px;
	border: 1px solid var(--tpc-result-border);
	border-radius: 10px;
	background: var(--tpc-result-bg);
	box-shadow: 0 12px 28px rgba(67, 160, 71, 0.1);
}

.tpc-result--locked {
	display: none !important;
}

.tpc-result .tpc-programs {
	margin-top: 0;
}

.tpc-result .tpc-program {
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0 0 18px;
}

.tpc-result .tpc-form {
	margin-top: 18px;
	padding-top: 22px;
	border-top: 1px solid var(--tpc-border);
}

.tpc-result [data-configurator-cta] {
	display: none;
}


.tpc-option-wrap {
	position: relative;
	min-width: 0;
	height: 100%;
	display: flex;
}

.tpc-option-wrap > .tpc-option {
	flex: 1 1 auto;
	width: 100%;
}

.tpc-info {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 3;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 1.5px solid var(--tpc-accent);
	border-radius: 50%;
	background: #fff;
	color: var(--tpc-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tpc-info:hover,
.tpc-info[aria-expanded="true"] {
	background: var(--tpc-accent);
	color: #fff;
}

.tpc-popover {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
	z-index: 9999;
	width: max-content;
	max-width: min(280px, 80vw);
	padding: 12px 30px 12px 14px;
	background: #fff;
	color: var(--tpc-navy);
	border: 1.5px solid var(--tpc-accent);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(6, 27, 82, 0.22);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
}

.tpc-popover[hidden] {
	display: none;
}

.tpc-popover--below {
	top: calc(100% + 10px);
	bottom: auto;
}

.tpc-popover::after {
	content: "";
	position: absolute;
	left: var(--tpc-arrow, 50%);
	width: 12px;
	height: 12px;
	background: #fff;
	transform: translateX(-50%) rotate(45deg);
}

.tpc-popover:not(.tpc-popover--below)::after {
	top: 100%;
	margin-top: -7px;
	border-right: 1.5px solid var(--tpc-accent);
	border-bottom: 1.5px solid var(--tpc-accent);
}

.tpc-popover--below::after {
	bottom: 100%;
	margin-bottom: -7px;
	border-left: 1.5px solid var(--tpc-accent);
	border-top: 1.5px solid var(--tpc-accent);
}

.tpc-popover__text {
	display: block;
}

.tpc-popover__close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--tpc-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

/* --- Cursussamensteller: prijs en toelichtingen --- */

.tpc-step-intro {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tpc-muted);
}

.tpc-price {
	margin: 6px 0 4px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--tpc-price, var(--tpc-accent));
}

.tpc-price[data-no-price] {
	font-size: 20px;
	font-weight: 700;
}

.tpc-price:empty {
	display: none;
}

.tpc-price-note {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--tpc-muted);
}

.tpc-form-intro {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tpc-muted);
}
