/*!
 * Zorgmatch Check v1.1.0
 * Everything is scoped to #zorgmatch-check: the theme (Twenty Twenty-One) styles every <button>
 * with high-specificity :not() chains, and the site's custom CSS sets fonts/sizes with !important.
 * Colours come from CSS variables set inline per site (see config/*.php).
 * Themes: .zmc--theme-card (KraamZus: rounded card) and .zmc--theme-band (De Kraamvogel: full-width navy band).
 */

#zorgmatch-check {
	/* Defaults (KraamZus); every value is overridden inline from the brand config. */
	--zmc-brand: #E2388C;
	--zmc-dark: #52155A;
	--zmc-soft: #EFBAD7;
	--zmc-tint: #FBE3EF;
	--zmc-close: #FFFFFF;
	--zmc-text: var(--zmc-dark);
	--zmc-head-a: var(--zmc-brand);
	--zmc-head-b: var(--zmc-dark);
	--zmc-title: var(--zmc-dark);
	--zmc-counter: var(--zmc-dark);
	--zmc-answer-text: var(--zmc-dark);
	--zmc-selected-bg: var(--zmc-dark);
	--zmc-selected-text: #FFFFFF;
	--zmc-prev-bg: var(--zmc-soft);
	--zmc-prev-text: var(--zmc-dark);
	--zmc-cta-bg: var(--zmc-soft);
	--zmc-cta-text: var(--zmc-dark);
	--zmc-cta-hover-bg: var(--zmc-dark);
	--zmc-cta-hover-text: #FFFFFF;
	--zmc-panel-text: var(--zmc-dark);
	--zmc-focus: var(--zmc-dark);
	--zmc-radius-card: 20px;
	--zmc-radius-row: 10px;
	--zmc-radius-panel: 10px;
	--zmc-radius-btn: 3px;
	background: #FFFFFF;
	color: var(--zmc-text);
	padding: 70px 0;
	scroll-margin-top: 110px;
	font-family: "Roboto", sans-serif;
}

#zorgmatch-check *,
#zorgmatch-check *::before,
#zorgmatch-check *::after {
	box-sizing: border-box;
}

#zorgmatch-check [hidden] {
	display: none !important;
}

#zorgmatch-check .zmc__inner {
	position: relative;
	z-index: 1;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 10px;
}

/* Screen-reader-only text */
#zorgmatch-check .zmc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Shared button reset (beats theme button styles) ---------- */

#zorgmatch-check button,
#zorgmatch-check .zmc__cta {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	font-family: "Roboto", sans-serif;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

#zorgmatch-check button:focus,
#zorgmatch-check .zmc__cta:focus {
	outline: none;
}

#zorgmatch-check button:focus-visible,
#zorgmatch-check .zmc__cta:focus-visible {
	outline: 3px solid var(--zmc-focus) !important;
	outline-offset: 3px;
}

/* ---------- Teaser ---------- */

/* Column widths measured from the XD (scaled to the 1120px content width): text 654 / gap 72 / photo 394. */
#zorgmatch-check .zmc__teaser {
	display: grid;
	grid-template-columns: minmax(0, 654fr) minmax(0, 394fr);
	gap: 72px;
	align-items: start; /* in both XDs the photo's top lines up with the kicker */
}

#zorgmatch-check.zmc--layout-photo-left .zmc__teaser {
	grid-template-columns: minmax(0, 394fr) minmax(0, 654fr);
	gap: 72px;
}

#zorgmatch-check.zmc--layout-photo-left .zmc__photo {
	order: -1;
}

#zorgmatch-check.zmc--no-photo .zmc__teaser {
	grid-template-columns: minmax(0, 1fr);
	max-width: 760px;
}

#zorgmatch-check .zmc__kicker {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	color: var(--zmc-brand);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 2px;
	text-transform: uppercase;
}

#zorgmatch-check .zmc__kicker span {
	font-size: 13px;
}

#zorgmatch-check .zmc__kicker-icon {
	display: block;
	width: 25px;
	height: 17px;
	flex: none;
}

/* Size/line-height come from the site's global h2 rule (45/55px). */
#zorgmatch-check .zmc__headline {
	margin: 0 0 22px;
	padding: 0;
	color: var(--zmc-head-b);
	font-weight: 700;
	letter-spacing: normal;
}

#zorgmatch-check.zmc--custom-head-font .zmc__headline {
	font-family: var(--zmc-head-font) !important;
}

#zorgmatch-check .zmc__headline span {
	font-family: inherit !important; /* the site's custom CSS forces Roboto on every span */
	font-weight: inherit;
}

#zorgmatch-check .zmc__headline-a {
	color: var(--zmc-head-a);
}

#zorgmatch-check .zmc__headline-b {
	color: var(--zmc-head-b);
}

#zorgmatch-check.zmc--head-break .zmc__headline-b {
	display: block;
}

#zorgmatch-check .zmc__teaser p {
	margin: 0 0 24px; /* one empty line between the paragraphs, as in the XD */
	color: var(--zmc-text);
	line-height: 1.65;
}

#zorgmatch-check .zmc__start {
	display: inline-block;
	margin-top: 6px;
	padding: 10px 24px;
	border-radius: var(--zmc-radius-btn);
	background: var(--zmc-brand);
	color: #FFFFFF;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

#zorgmatch-check .zmc__start:hover,
#zorgmatch-check .zmc__start:active {
	background: var(--zmc-dark);
	color: #FFFFFF;
}

#zorgmatch-check .zmc__photo-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1; /* the XD photo is (almost) square */
	object-fit: cover;
	object-position: 60% 30%;
	border-radius: 20px;
}

/* Round/transparent cut-out photos (De Kraamvogel): keep the original shape. */
#zorgmatch-check.zmc--photo-natural .zmc__photo-img {
	object-fit: contain;
	border-radius: 0;
	max-width: 440px;
	margin: 0 auto;
}

/* ---------- Quiz card ----------
 * Sizes measured from both XDs and scaled by 1120/1006 (XD content width → live content width),
 * the same factor that maps the XD teaser text to the live 15px. Desktop values; smaller below 1024px. */

#zorgmatch-check .zmc__card {
	background: var(--zmc-brand);
	border-radius: var(--zmc-radius-card);
	padding: 38px 46px 42px;
	color: var(--zmc-title);
	animation: zmc-in .25s ease-out;
}

/* In the XDs the quiz is a bit wider than the teaser column: the answers stick out ~11px per side,
 * and the KraamZus pink card another 46px (its padding). */
@media (min-width: 1280px) {
	#zorgmatch-check.zmc--theme-card .zmc__card {
		margin: 0 -57px;
	}
	#zorgmatch-check.zmc--theme-band .zmc__card {
		margin: 0 -11px;
	}
	/* Quiz state: less white around the card than around the teaser (XD). */
	#zorgmatch-check.zmc--theme-card.is-open {
		padding-top: 56px;
		padding-bottom: 20px;
	}
}

#zorgmatch-check .zmc__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 26px;
}

#zorgmatch-check .zmc__title {
	margin: 0;
	padding: 0;
	color: var(--zmc-title);
	font-size: 44px !important;
	line-height: 1.2 !important;
	font-weight: 700;
	letter-spacing: normal;
	scroll-margin-top: 130px;
}

/* The title only receives focus from the script (so screen readers follow the step); it is not interactive. */
#zorgmatch-check .zmc__title:focus,
#zorgmatch-check .zmc__title:focus-visible {
	outline: none !important;
}

#zorgmatch-check .zmc__close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: -2px -12px 0 0;
	padding: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--zmc-close);
	line-height: 1;
}

#zorgmatch-check .zmc__close svg {
	display: block;
	width: 34px;
	height: 34px;
}

#zorgmatch-check .zmc__close svg path {
	stroke-width: 1.5;
}

#zorgmatch-check .zmc__close:hover {
	background: rgba(255, 255, 255, .2);
	color: var(--zmc-close);
}

#zorgmatch-check .zmc__answers {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#zorgmatch-check .zmc__answer {
	display: block;
	width: 100%;
	padding: 12px 20px;
	border: 2px solid #FFFFFF;
	border-radius: var(--zmc-radius-row);
	background: #FFFFFF;
	color: var(--zmc-answer-text);
	font-size: 33px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	white-space: normal;
}

#zorgmatch-check .zmc__answer:hover {
	background: var(--zmc-tint);
	border-color: var(--zmc-tint);
	color: var(--zmc-answer-text);
}

#zorgmatch-check .zmc__answer[aria-pressed="true"],
#zorgmatch-check .zmc__answer[aria-pressed="true"]:hover {
	background: var(--zmc-selected-bg);
	border-color: var(--zmc-selected-bg);
	color: var(--zmc-selected-text);
}

#zorgmatch-check .zmc__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	margin-top: 38px;
}

#zorgmatch-check .zmc__prev {
	min-width: 205px;
	padding: 10px 20px;
	border-radius: var(--zmc-radius-btn);
	background: var(--zmc-prev-bg);
	color: var(--zmc-prev-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}

#zorgmatch-check .zmc__prev:hover {
	background: #FFFFFF;
	color: var(--zmc-dark);
}

#zorgmatch-check .zmc__counter {
	margin-left: auto;
	color: var(--zmc-counter);
	font-size: 41px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 3px;
	font-variant-numeric: tabular-nums;
}

#zorgmatch-check .zmc__counter span {
	font-size: inherit;
}

/* ---------- Outcome ---------- */

#zorgmatch-check .zmc__panel {
	padding: 22px 22px 26px;
	border-radius: var(--zmc-radius-panel);
	background: #FFFFFF;
	color: var(--zmc-panel-text);
}

#zorgmatch-check .zmc__panel p {
	margin: 0 0 1.25em;
	color: var(--zmc-panel-text);
	font-size: 33px !important; /* site sets p to 15px !important; the XD uses the answer size here */
	line-height: 1.3;
}

#zorgmatch-check .zmc__panel p:last-child {
	margin-bottom: 0;
}

/* Klaviyo embed: no fixed height, no box when empty. */
#zorgmatch-check .zmc__email-target > .zmc__email > div:not(:empty) {
	margin-top: 22px;
}

#zorgmatch-check .zmc__email {
	max-width: 100%;
	overflow: visible;
}

#zorgmatch-check .zmc__cta-row {
	margin-top: 36px;
	text-align: center;
}

#zorgmatch-check .zmc__cta {
	display: inline-block;
	min-width: 205px;
	padding: 11px 24px;
	border-radius: var(--zmc-radius-btn);
	background: var(--zmc-cta-bg);
	color: var(--zmc-cta-text);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
}

#zorgmatch-check .zmc__cta:hover,
#zorgmatch-check .zmc__cta:focus,
#zorgmatch-check .zmc__cta:active {
	background: var(--zmc-cta-hover-bg);
	color: var(--zmc-cta-hover-text);
	text-decoration: none !important;
}

/* ---------- Theme "band" (De Kraamvogel): brush-edge backgrounds, quiz as a full-width navy band ---------- */

#zorgmatch-check.zmc--theme-band {
	--zmc-radius-row: 0;
	--zmc-radius-panel: 0;
	position: relative;
	padding: calc(50px + 1.3vw) 0 70px;
	background: #FFFFFF var(--zmc-bg-light) center top / cover no-repeat;
}

#zorgmatch-check.zmc--theme-band .zmc__kicker {
	font-weight: 400;
	letter-spacing: 3px;
}

/* Quiz/outcome: navy band (with its brush edge) on top of the light-blue brush, like the XD. */
#zorgmatch-check.zmc--theme-band.is-open {
	padding-bottom: calc(34px + 2.4vw);
	background:
		var(--zmc-bg-band) center top clamp(12px, 1.5vw, 28px) / cover no-repeat,
		var(--zmc-bg-light) center top / cover no-repeat,
		#FFFFFF;
}

/* Bottom edge: brush from navy back into light blue. */
#zorgmatch-check.zmc--theme-band.is-open::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: max(2.4vw, 14px);
	background: var(--zmc-bg-light) center top / 100% auto no-repeat;
	pointer-events: none;
}

#zorgmatch-check.zmc--theme-band .zmc__card {
	background: transparent;
	border-radius: 0;
	padding: 40px 0 8px;
}

#zorgmatch-check.zmc--theme-band .zmc__answers {
	gap: 14px;
}

#zorgmatch-check.zmc--theme-band .zmc__prev:hover {
	background: #FFFFFF;
	color: var(--zmc-dark);
}

@keyframes zmc-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	#zorgmatch-check .zmc__card { animation: none; }
	#zorgmatch-check button,
	#zorgmatch-check .zmc__cta { transition: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1023px) {
	#zorgmatch-check .zmc__teaser,
	#zorgmatch-check.zmc--layout-photo-left .zmc__teaser { gap: 32px; }
	#zorgmatch-check .zmc__card { padding: 28px 30px 30px; }
	#zorgmatch-check.zmc--theme-band .zmc__card { padding: 32px 0 6px; }
	#zorgmatch-check .zmc__title { font-size: 32px !important; }
	#zorgmatch-check .zmc__answer { font-size: 24px; }
	#zorgmatch-check .zmc__panel p { font-size: 23px !important; }
	#zorgmatch-check .zmc__counter { font-size: 32px; }
	#zorgmatch-check .zmc__foot { margin-top: 28px; }
}

/* ---------- Mobile (not designed: stacked, full width, photo below the text) ---------- */

@media (max-width: 767px) {
	#zorgmatch-check { padding: 50px 0; }
	#zorgmatch-check.zmc--theme-band { padding: 56px 0 50px; }
	#zorgmatch-check.zmc--theme-band.is-open { padding-bottom: 60px; }
	#zorgmatch-check .zmc__inner { padding: 0 20px; }
	#zorgmatch-check .zmc__teaser,
	#zorgmatch-check.zmc--layout-photo-left .zmc__teaser { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	#zorgmatch-check.zmc--layout-photo-left .zmc__photo { order: 0; }
	#zorgmatch-check .zmc__start { width: 100%; text-align: center; }
	#zorgmatch-check .zmc__photo-img { aspect-ratio: 4 / 3; }

	#zorgmatch-check .zmc__card { padding: 20px 18px 18px; border-radius: 16px; }
	#zorgmatch-check.zmc--theme-band .zmc__card { padding: 18px 0 4px; border-radius: 0; }
	#zorgmatch-check .zmc__head { gap: 10px; margin-bottom: 16px; }
	#zorgmatch-check .zmc__title { font-size: 22px !important; line-height: 1.25 !important; }
	#zorgmatch-check .zmc__close { width: 44px; height: 44px; margin: -8px -10px 0 0; }
	#zorgmatch-check .zmc__close svg { width: 24px; height: 24px; }
	#zorgmatch-check .zmc__answers,
	#zorgmatch-check.zmc--theme-band .zmc__answers { gap: 10px; }
	#zorgmatch-check .zmc__answer { padding: 11px 14px; font-size: 18px; line-height: 1.35; }
	#zorgmatch-check .zmc__foot { margin-top: 20px; }
	#zorgmatch-check .zmc__counter { font-size: 26px; letter-spacing: 2px; }
	#zorgmatch-check .zmc__prev { min-width: 0; padding: 10px 24px; }

	#zorgmatch-check .zmc__panel { padding: 18px 16px 20px; }
	#zorgmatch-check .zmc__panel p { font-size: 17px !important; line-height: 1.45; margin-bottom: 1em; }
	#zorgmatch-check .zmc__cta-row { margin-top: 24px; }
	#zorgmatch-check .zmc__cta { display: block; width: 100%; min-width: 0; }
}
