/* HappyHealthy Braverman test */
.hhbt {
	--hhbt-green: #1e3d30;
	--hhbt-btn: #2d5a47;
	--hhbt-btn-hover: #24493a;
	--hhbt-mint: #eef5f1;
	--hhbt-line: #dfe7e2;
	--hhbt-text: #212529;
	--hhbt-muted: #5b6660;
	--hhbt-radius: 14px;
	margin: 28px 0;
	color: var(--hhbt-text);
	scroll-margin-top: 110px;
}
.hhbt *, .hhbt *::before, .hhbt *::after { box-sizing: border-box; }
.hhbt [hidden] { display: none !important; }
.hhbt h2, .hhbt h3, .hhbt h4 { color: var(--hhbt-green); }

/* Badges, knoppen */
.hhbt-badge {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hhbt-btn);
	background: var(--hhbt-mint);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.hhbt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 24px;
	border: 2px solid var(--hhbt-btn);
	border-radius: 999px;
	background: var(--hhbt-btn);
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s, transform .1s;
}
.hhbt-btn:hover { background: var(--hhbt-btn-hover); border-color: var(--hhbt-btn-hover); }
.hhbt-btn:active { transform: translateY(1px); }
.hhbt-btn:disabled { opacity: .6; cursor: wait; }
.hhbt-btn--ghost { background: transparent; color: var(--hhbt-btn) !important; }
.hhbt-btn--ghost:hover { background: var(--hhbt-mint); color: var(--hhbt-btn) !important; }
.hhbt-link {
	background: none; border: 0; padding: 0; font: inherit; color: var(--hhbt-btn);
	text-decoration: underline; cursor: pointer; font-weight: 600;
}

/* Voortgang */
.hhbt-progress {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(255,255,255,.96);
	backdrop-filter: blur(4px);
	padding: 12px 0 10px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--hhbt-line);
}
.admin-bar .hhbt-progress { top: 32px; }
.hhbt-progress__steps { display: flex; gap: 6px; margin-bottom: 8px; }
.hhbt-progress__dot { flex: 1; height: 6px; border-radius: 6px; background: var(--hhbt-line); transition: background .2s; }
.hhbt-progress__dot.is-done { background: #8fbfa8; }
.hhbt-progress__dot.is-active { background: var(--hhbt-btn); }
.hhbt-progress__bar { display: none; }
.hhbt-progress__text { font-size: 14px; color: var(--hhbt-muted); }

.hhbt-resume {
	display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
	background: var(--hhbt-mint); border-radius: 10px; padding: 10px 14px; font-size: 15px; margin-bottom: 12px;
}

/* Introductie per deel */
.hhbt-partintro {
	background: var(--hhbt-mint);
	border-radius: var(--hhbt-radius);
	padding: 22px 24px;
	margin: 12px 0 22px;
}
.hhbt-partintro h2 { margin: 0 0 8px; font-size: 1.5em; }
.hhbt-partintro p { margin: 0; }
.hhbt-partintro--two { background: #f4f0fa; }

/* Stap */
.hhbt-step__head { display: flex; flex-direction: column; margin: 8px 0 6px; }
.hhbt-step__count { font-size: 14px; color: var(--hhbt-muted); font-weight: 600; }
.hhbt-step__title { margin: 2px 0 6px; font-size: 1.6em; }

.hhbt-group { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.hhbt-group legend {
	font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
	color: var(--hhbt-muted); padding: 14px 0 8px;
}

/* Vraag */
.hhbt-q {
	display: flex; align-items: center; justify-content: space-between; gap: 12px 18px;
	padding: 12px 14px; margin: 0 -14px; border-radius: 10px;
	border-bottom: 1px solid var(--hhbt-line);
	transition: background .2s;
}
.hhbt-q:last-child { border-bottom: 0; }
.hhbt-q.is-missing { background: #fff1ee; box-shadow: inset 3px 0 0 #d0583f; }
.hhbt-q__text { margin: 0 !important; flex: 1; line-height: 1.45; }
.hhbt-q__opts { display: flex; gap: 8px; flex-shrink: 0; }
.hhbt-opt { position: relative; margin: 0; cursor: pointer; }
.hhbt-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hhbt-opt span {
	display: inline-block; min-width: 86px; text-align: center;
	padding: 8px 14px; border: 2px solid var(--hhbt-line); border-radius: 999px;
	font-weight: 600; font-size: 15px; color: var(--hhbt-muted); background: #fff;
	transition: all .15s; user-select: none;
}
.hhbt-opt:hover span { border-color: #a9c4b7; color: var(--hhbt-text); }
.hhbt-opt input:focus-visible + span { outline: 3px solid #9cc8b3; outline-offset: 2px; }
.hhbt-opt--yes input:checked + span { background: var(--hhbt-btn); border-color: var(--hhbt-btn); color: #fff; }
.hhbt-opt--no input:checked + span { background: #5b6660; border-color: #5b6660; color: #fff; }

.hhbt-error {
	background: #fff1ee; color: #9c2f1c; border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 8px 0 0;
}
.hhbt-nav { display: flex; justify-content: space-between; gap: 12px; margin: 22px 0 8px; }

@media (max-width: 560px) {
	.hhbt-q { flex-direction: column; align-items: stretch; margin: 0 -8px; padding: 12px 8px; }
	.hhbt-q__opts { width: 100%; }
	.hhbt-opt { flex: 1; }
	.hhbt-opt span { width: 100%; min-width: 0; }
	.hhbt-nav .hhbt-btn { padding: 10px 18px; }
}

/* Laden */
.hhbt-loading { text-align: center; padding: 50px 0; color: var(--hhbt-muted); }
.hhbt-spinner {
	width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%;
	border: 4px solid var(--hhbt-line); border-top-color: var(--hhbt-btn);
	animation: hhbt-spin .8s linear infinite;
}
@keyframes hhbt-spin { to { transform: rotate(360deg); } }

/* Uitslag */
.hhbt-res { animation: hhbt-in .4s ease both; }
@keyframes hhbt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hhbt-res__intro h2 { margin: 4px 0 8px; font-size: 1.8em; line-height: 1.25; }
.hhbt-muted { color: var(--hhbt-muted); font-size: 15px; margin-top: -4px; }

.hhbt-types { display: grid; gap: 16px; margin: 18px 0; }
.hhbt-type {
	background: var(--hhbt-soft); border-radius: var(--hhbt-radius); padding: 20px 22px;
	border-left: 5px solid var(--hhbt-c);
}
.hhbt-type__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.hhbt-type__icon {
	width: 48px; height: 48px; border-radius: 50%; background: var(--hhbt-c); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; font-family: "Libre Baskerville", Georgia, serif; flex-shrink: 0;
}
.hhbt-type__name { display: block; font-size: 1.3em; color: var(--hhbt-c); }
.hhbt-type__sub { color: var(--hhbt-muted); font-weight: 600; }
.hhbt-type p { margin: 0 0 12px; }
.hhbt-type__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.hhbt-type__cols h4 { margin: 8px 0 6px; font-size: 16px; }
@media (max-width: 560px) { .hhbt-type__cols { grid-template-columns: 1fr; } }

.hhbt-list { list-style: none; margin: 0 0 6px !important; padding: 0 !important; }
.hhbt-list li { position: relative; padding-left: 24px; margin: 0 0 6px; line-height: 1.5; }
.hhbt-list li::before {
	position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%;
	font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hhbt-list--plus li::before { content: "✓"; background: #dcefe5; color: #2d7a57; }
.hhbt-list--watch li::before { content: "!"; background: #fbe9d7; color: #b4651e; }

.hhbt-card {
	background: #fff; border: 1px solid var(--hhbt-line); border-radius: var(--hhbt-radius);
	padding: 22px 24px; margin: 18px 0;
}
.hhbt-card h3 { margin: 0 0 8px; }
.hhbt-card--plain { padding: 6px 24px; }

/* Grafiek deel 1 */
.hhbt-chart { display: grid; grid-template-columns: 1fr; gap: 6px; }
.hhbt-chart__radar { width: 100%; max-width: 440px; margin: 0 auto; }
.hhbt-radar { width: 100%; height: auto; display: block; overflow: visible; }
.hhbt-radar__grid { fill: none; stroke: #e3eae6; stroke-width: 1; }
.hhbt-radar__axis { stroke: #d5ded9; stroke-width: 1; }
.hhbt-radar__area { fill: rgba(45, 90, 71, .18); stroke: #2d5a47; stroke-width: 2.5; stroke-linejoin: round; }
.hhbt-radar__label { font-size: 21px; font-weight: 700; }
.hhbt-radar__value { font-size: 17px; fill: #5b6660; }
.hhbt-res .hhbt-radar__area { transform-origin: 50% 50%; animation: hhbt-grow .7s ease both .1s; }
@keyframes hhbt-grow { from { transform: scale(.2); opacity: 0; } to { transform: none; opacity: 1; } }

.hhbt-bar { margin: 0 0 14px; }
.hhbt-bar__label { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 5px; }
.hhbt-bar__label span:first-child { font-weight: 700; }
.hhbt-bar__label span:last-child { color: var(--hhbt-muted); }
.hhbt-bar.is-dominant .hhbt-bar__label span:first-child::after { content: " · dominant"; color: var(--hhbt-muted); font-weight: 600; font-size: 13px; }
.hhbt-bar__track { height: 12px; background: #edf1ef; border-radius: 12px; overflow: hidden; }
.hhbt-bar__fill, .hhbt-zbar__fill {
	display: block; height: 100%; width: var(--w); border-radius: 12px;
	animation: hhbt-fill .9s cubic-bezier(.2,.8,.2,1) both .15s;
}
@keyframes hhbt-fill { from { width: 0; } to { width: var(--w); } }

/* Deel 2 */
.hhbt-def__row { padding: 12px 0; border-bottom: 1px solid var(--hhbt-line); }
.hhbt-def__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.hhbt-pill {
	display: inline-block; color: #fff; font-size: 13px; font-weight: 700;
	padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}
.hhbt-pill--sm { font-size: 12px; padding: 2px 9px; }
.hhbt-zbar { position: relative; height: 16px; border-radius: 16px; overflow: hidden; }
.hhbt-zbar__zones { position: absolute; inset: 0; display: flex; }
.hhbt-zbar__zones span, .hhbt-legend i { display: block; height: 100%; }
.hhbt-zbar__zones .z1, .hhbt-legend .z1 { background: #e3f2ea; }
.hhbt-zbar__zones .z2, .hhbt-legend .z2 { background: #fbf0db; }
.hhbt-zbar__zones .z3, .hhbt-legend .z3 { background: #fbe3dd; }
.hhbt-zbar__fill { position: relative; opacity: .95; }
.hhbt-def__meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--hhbt-muted); margin-top: 6px; }
.hhbt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--hhbt-muted); padding-top: 12px; }
.hhbt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hhbt-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.06); }

/* Hulp */
.hhbt-care { background: #fff4e5; border-radius: var(--hhbt-radius); padding: 16px 20px; margin: 18px 0; line-height: 1.6; }

/* Optin */
.hhbt-optin {
	background: var(--hhbt-green); color: #fff; border-radius: var(--hhbt-radius);
	padding: 24px; margin: 22px 0;
}
.hhbt-optin h3 { color: #fff !important; margin: 0 0 6px; }
.hhbt-optin p { margin: 0 0 14px; color: #dbe9e1; }
.hhbt-optin__row { display: flex; gap: 10px; flex-wrap: wrap; }
.hhbt-optin input[type=email] {
	flex: 1 1 240px; min-height: 48px; padding: 10px 18px; border-radius: 999px;
	border: 2px solid transparent; font: inherit; color: var(--hhbt-text); background: #fff;
}
.hhbt-optin input[type=email]:focus { outline: none; border-color: #9cc8b3; }
.hhbt-optin .hhbt-btn { background: #f2b544; border-color: #f2b544; color: #1e3d30 !important; }
.hhbt-optin .hhbt-btn:hover { background: #e7a52c; border-color: #e7a52c; }
.hhbt-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; line-height: 1.45; color: #e8f1ec; cursor: pointer; }
.hhbt-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #f2b544; }
.hhbt-check a { color: #fff; text-decoration: underline; }
.hhbt-optin__msg { margin: 14px 0 0 !important; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff !important; font-weight: 600; }
.hhbt-optin__msg.is-error { background: #fff1ee; color: #9c2f1c !important; }
.hhbt-optin.is-done .hhbt-optin__row, .hhbt-optin.is-done .hhbt-check { display: none; }
.hhbt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hhbt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Uitklappen */
.hhbt-acc { border-top: 1px solid var(--hhbt-line); }
.hhbt-acc:first-of-type { border-top: 0; }
.hhbt-acc summary {
	display: flex; align-items: center; gap: 10px; padding: 14px 0; cursor: pointer; list-style: none;
	font-weight: 700; color: var(--hhbt-green);
}
.hhbt-acc summary::-webkit-details-marker { display: none; }
.hhbt-acc summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--hhbt-btn); transition: transform .2s; }
.hhbt-acc[open] summary::after { transform: rotate(45deg); }
.hhbt-acc__dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.hhbt-acc__title { font-size: 1.05em; }
.hhbt-acc__body { padding: 0 0 14px; }
.hhbt-acc__body p { margin: 0 0 10px; }
.hhbt-acc__body ul:not(.hhbt-list) { padding-left: 20px; }
.hhbt-acc__body li { margin-bottom: 6px; }

/* CTA en overig */
.hhbt-cta { background: var(--hhbt-mint); border-radius: var(--hhbt-radius); padding: 22px 24px; margin: 18px 0; text-align: center; }
.hhbt-cta h3 { margin: 0 0 6px; }
.hhbt-cta p { margin: 0 0 14px; }
.hhbt-disclaimer { font-size: 14px; color: var(--hhbt-muted); }
.hhbt-res__again { text-align: center; margin: 20px 0 6px; }

@media (prefers-reduced-motion: reduce) {
	.hhbt *, .hhbt *::before { animation: none !important; transition: none !important; }
}
