/**
 * VAKOG Representatiesysteem Test
 * Alle styling is geïsoleerd onder .cst-wrap om conflicten met
 * WordPress-thema's te voorkomen. Geen globale resets, geen body-styling.
 */

.cst-wrap {
	/* Oppervlakken: blijven (lichte aanpassing houdt de kaartopmaak intact) */
	--cst-bg: #F7F5F0;
	--cst-bg-card: #FFFFFF;
	--cst-border: #E8E4DE;
	--cst-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);

	/* Tekst en merkkleur volgen het thema. Op een Elementor-site pakt de test
	   automatisch de kit-kleuren over; daarbuiten gelden de eigen fallbacks. */
	--cst-text: var(--e-global-color-text, #1A1A1A);
	--cst-text-muted: #6B6560;
	--cst-primary: var(--e-global-color-primary, #77287C);

	/* Lettertype volgt het thema (Elementor global fonts), met de meegeleverde
	   fonts als fallback voor niet-Elementor-thema's. */
	--cst-font-body: var(--e-global-typography-text-font-family, 'DM Sans', sans-serif);
	--cst-font-heading: var(--e-global-typography-primary-font-family, 'Fraunces', serif);

	/* Vier stijlkleuren: bewust vast, ze coderen betekenis in radar en balken. */
	--cst-sturend: #2E86AB;
	--cst-expressief: #F18F01;
	--cst-analytisch: #3D348B;
	--cst-verbindend: #5B8C5A;

	background: var(--cst-bg);
	color: var(--cst-text);
	font-family: var(--cst-font-body);
	line-height: 1.6;
}

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

.cst-container {
	max-width: 680px;
	margin: 0 auto;
	padding: 20px;
}

/* HEADER */
.cst-wrap .cst-header {
	text-align: center;
	padding: 40px 0 30px;
}

.cst-wrap .cst-header h1 {
	font-family: var(--cst-font-heading);
	font-size: 28px;
	font-weight: 700;
	color: var(--cst-text);
	margin: 0 0 8px;
	letter-spacing: -0.5px;
	line-height: 1.2;
}

.cst-wrap .cst-header p {
	color: var(--cst-text-muted);
	font-size: 15px;
	max-width: 420px;
	margin: 0 auto;
}

/* PROGRESS */
.cst-wrap .cst-progress-container {
	margin-bottom: 32px;
}

.cst-wrap .cst-progress-bar-bg {
	height: 4px;
	background: var(--cst-border);
	border-radius: 2px;
	overflow: hidden;
}

.cst-wrap .cst-progress-bar-fill {
	height: 100%;
	background: var(--cst-primary);
	border-radius: 2px;
	transition: width 0.4s ease;
}

.cst-wrap .cst-progress-text {
	font-size: 13px;
	color: var(--cst-text-muted);
	margin-top: 8px;
	text-align: right;
}

/* QUESTION CARD */
.cst-wrap .cst-question-card {
	background: var(--cst-bg-card);
	border-radius: 16px;
	padding: 32px 28px;
	box-shadow: var(--cst-shadow);
	border: 1px solid var(--cst-border);
	animation: cst-fade-in 0.3s ease;
}

@keyframes cst-fade-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.cst-wrap .cst-question-number {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--cst-text-muted);
	margin-bottom: 12px;
}

.cst-wrap .cst-question-text {
	font-family: var(--cst-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 28px;
	color: var(--cst-text);
}

.cst-wrap .cst-question-context {
	font-size: 14px;
	color: var(--cst-text-muted);
	margin-bottom: 24px;
	font-style: italic;
}

/* LIKERT SCALE */
.cst-wrap .cst-likert-container {
	margin-bottom: 8px;
}

.cst-wrap .cst-likert-labels {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 12px;
	color: var(--cst-text-muted);
}

.cst-wrap .cst-likert-options {
	display: flex;
	gap: 8px;
	justify-content: center;
}

.cst-wrap .cst-likert-option {
	flex: 1;
	max-width: 80px;
	height: 52px;
	border: 2px solid var(--cst-border);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	background: var(--cst-bg-card);
	color: var(--cst-text-muted);
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.cst-wrap .cst-likert-option:hover {
	border-color: var(--cst-primary);
	color: var(--cst-primary);
	transform: translateY(-2px);
}

.cst-wrap .cst-likert-option.cst-selected {
	background: var(--cst-primary);
	border-color: var(--cst-primary);
	color: #fff;
	transform: translateY(-2px);
}

.cst-wrap .cst-likert-option:focus-visible {
	outline: 3px solid var(--cst-primary);
	outline-offset: 2px;
}

/* NAVIGATION */
.cst-wrap .cst-nav-buttons {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}

.cst-wrap .cst-btn {
	flex: 1;
	padding: 14px 24px;
	border-radius: 12px;
	font-family: var(--cst-font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	-webkit-tap-highlight-color: transparent;
}

.cst-wrap .cst-btn-back {
	background: var(--cst-bg);
	color: var(--cst-text-muted);
	border: 1px solid var(--cst-border);
}

.cst-wrap .cst-btn-back:hover {
	background: var(--cst-border);
}

.cst-wrap .cst-btn-next {
	background: var(--cst-primary);
	color: #fff;
}

.cst-wrap .cst-btn-next:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.cst-wrap .cst-btn-next:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	transform: none;
}

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

/* INTRO SCREEN */
.cst-wrap .cst-intro {
	text-align: center;
	padding: 20px 0;
}

.cst-wrap .cst-intro-icon {
	width: 80px;
	height: 80px;
	border-radius: 20px;
	background: var(--cst-primary);
	margin: 0 auto 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
}

.cst-wrap .cst-intro h2 {
	font-family: var(--cst-font-heading);
	font-size: 24px;
	margin: 0 0 16px;
	line-height: 1.3;
}

.cst-wrap .cst-intro p {
	color: var(--cst-text-muted);
	font-size: 15px;
	margin: 0 auto 12px;
	max-width: 480px;
}

.cst-wrap .cst-btn-start {
	margin-top: 28px;
	display: inline-block;
	padding: 16px 48px;
	background: var(--cst-primary);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-family: var(--cst-font-body);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cst-wrap .cst-btn-start:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cst-wrap .cst-btn-start:focus-visible {
	outline: 3px solid var(--cst-primary);
	outline-offset: 2px;
}

.cst-wrap .cst-info-list {
	text-align: left;
	max-width: 400px;
	margin: 20px auto;
	list-style: none;
	padding: 0;
}

.cst-wrap .cst-info-list li {
	padding: 8px 0;
	font-size: 14px;
	color: var(--cst-text-muted);
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.cst-wrap .cst-info-list li::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cst-primary);
	flex-shrink: 0;
	margin-top: 8px;
}

/* RESULTS */
.cst-wrap .cst-results-container {
	animation: cst-fade-in 0.5s ease;
}

.cst-wrap .cst-results-header {
	text-align: center;
	margin-bottom: 32px;
}

.cst-wrap .cst-results-header h2 {
	font-family: var(--cst-font-heading);
	font-size: 26px;
	margin: 0 0 8px;
	line-height: 1.3;
}

.cst-wrap .cst-results-header p {
	color: var(--cst-text-muted);
	font-size: 14px;
}

/* RADAR CHART */
.cst-wrap .cst-radar-card {
	background: var(--cst-bg-card);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--cst-shadow);
	border: 1px solid var(--cst-border);
	margin-bottom: 20px;
}

.cst-wrap .cst-radar-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.cst-wrap .cst-radar-svg {
	width: 100%;
	max-width: 420px;
	height: auto;
}

/* PROFILE BARS */
.cst-wrap .cst-profile-card {
	background: var(--cst-bg-card);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--cst-shadow);
	border: 1px solid var(--cst-border);
	margin-bottom: 20px;
}

.cst-wrap .cst-profile-card h3 {
	font-family: var(--cst-font-heading);
	font-size: 18px;
	margin: 0 0 20px;
}

.cst-wrap .cst-profile-item {
	margin-bottom: 16px;
}

.cst-wrap .cst-profile-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.cst-wrap .cst-profile-label {
	font-size: 14px;
	font-weight: 600;
}

.cst-wrap .cst-profile-score {
	font-size: 13px;
	color: var(--cst-text-muted);
}

.cst-wrap .cst-profile-bar-bg {
	height: 8px;
	background: var(--cst-border);
	border-radius: 4px;
	overflow: hidden;
}

.cst-wrap .cst-profile-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.8s ease;
}

/* INTERPRETATION */
.cst-wrap .cst-interpretation-card {
	background: var(--cst-bg-card);
	border-radius: 16px;
	padding: 28px;
	box-shadow: var(--cst-shadow);
	border: 1px solid var(--cst-border);
	margin-bottom: 20px;
}

.cst-wrap .cst-interpretation-card h3 {
	font-family: var(--cst-font-heading);
	font-size: 18px;
	margin: 0 0 16px;
}

.cst-wrap .cst-system-detail {
	padding: 16px 0;
	border-bottom: 1px solid var(--cst-border);
}

.cst-wrap .cst-system-detail:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.cst-wrap .cst-system-detail-name {
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cst-wrap .cst-system-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.cst-wrap .cst-system-detail-desc {
	font-size: 14px;
	color: var(--cst-text-muted);
	line-height: 1.5;
}

.cst-wrap .cst-system-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: 8px;
}

.cst-wrap .cst-tag-primary {
	background: var(--cst-primary);
	color: #fff;
}

.cst-wrap .cst-tag-secondary {
	background: var(--cst-border);
	color: var(--cst-text-muted);
}

/* DISCLAIMER */
.cst-wrap .cst-disclaimer {
	text-align: center;
	padding: 20px;
	font-size: 13px;
	color: var(--cst-text-muted);
	line-height: 1.5;
}

.cst-wrap .cst-btn-restart {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 32px;
	background: var(--cst-bg-card);
	color: var(--cst-text);
	border: 1px solid var(--cst-border);
	border-radius: 12px;
	font-family: var(--cst-font-body);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cst-wrap .cst-btn-restart:hover {
	background: var(--cst-border);
}

.cst-wrap .cst-btn-restart:focus-visible {
	outline: 3px solid var(--cst-primary);
	outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 480px) {
	.cst-container { padding: 16px; }
	.cst-wrap .cst-header h1 { font-size: 24px; }
	.cst-wrap .cst-question-text { font-size: 18px; }
	.cst-wrap .cst-question-card { padding: 24px 20px; }
	.cst-wrap .cst-likert-option { height: 48px; font-size: 16px; }
}

/* Op zeer smalle schermen de vijf knoppen naast elkaar houden */
@media (max-width: 360px) {
	.cst-wrap .cst-likert-options { gap: 5px; }
	.cst-wrap .cst-likert-option { height: 44px; font-size: 15px; border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
	.cst-wrap *,
	.cst-wrap *::before,
	.cst-wrap *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
