/* callido project wizard. Same look as the rest of callido.nl: white 20px card,
   Roboto Serif titles, Manrope text, the site's gradient button. Colours fall
   back to the brand hex values when the child theme's variables are absent. */

.cwz {
	--cwz-navy: var(--callido-navy, #101431);
	--cwz-blue: var(--callido-blue, #4499D9);
	--cwz-steel: var(--callido-steel, #1D6BA9);
	--cwz-ice: var(--callido-ice, #E2EFF9);
	--cwz-off: var(--callido-off, #FAFAF8);
	--cwz-border: var(--callido-border, #E0DDD7);
	--cwz-red: #B42323;
	--cwz-text: #3D4160;
	max-width: 880px;
	margin: 0 auto 96px;
	color: var(--cwz-text);
	font-family: "Manrope", sans-serif;
	text-align: left;
}

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

.cwz [hidden] {
	display: none !important;
}

.cwz__intro {
	max-width: 640px;
	margin: 0 auto 40px;
	font-size: 20px;
	line-height: 1.6;
	text-align: center;
}

.cwz__card {
	margin: 0;
	padding: 40px 48px 44px;
	border: 1px solid var(--cwz-border);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 2px 24px rgba(16, 20, 49, .06);
}

.cwz__progress {
	display: inline-block;
	margin: 0 0 18px;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--cwz-ice);
	color: var(--cwz-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
}

.cwz .cwz__title {
	margin: 0 0 28px;
	color: var(--cwz-navy);
	font-family: "Roboto Serif", serif;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -.5px;
	outline: none;
}

.cwz .cwz__sketch-title,
.cwz .cwz__sub {
	margin: 0 0 8px;
	color: var(--cwz-navy);
	font-family: "Manrope", sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.cwz .cwz__sub {
	margin-top: 28px;
}

.cwz__lead,
.cwz__summary {
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 1.6;
}

/* Choices */

.cwz__set {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
}

.cwz .cwz__set legend,
.cwz .cwz__field label {
	display: block;
	font-family: "Manrope", sans-serif;
	margin: 0 0 10px;
	padding: 0;
	color: var(--cwz-navy);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.cwz__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cwz__chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.cwz__chip input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.cwz .cwz__chip span {
	display: inline-flex;
	font-family: "Manrope", sans-serif;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 8px 18px;
	border: 1.5px solid var(--cwz-border);
	border-radius: 999px;
	background: #fff;
	color: var(--cwz-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	transition: border-color .15s ease, background-color .15s ease;
}

.cwz__chip:hover span {
	border-color: var(--cwz-blue);
}

.cwz__chip input:checked + span {
	border-color: var(--cwz-navy);
	background: var(--cwz-navy);
	color: #fff;
}

.cwz__chip input:checked + span::before {
	content: "\2713";
	font-weight: 700;
}

.cwz__chip input:focus-visible + span {
	outline: 3px solid var(--cwz-blue);
	outline-offset: 2px;
}

/* Fields */

.cwz__field {
	margin: 0 0 22px;
}

.cwz__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
}

.cwz__help {
	margin: -4px 0 10px;
	font-size: 15px;
	line-height: 1.5;
}

.cwz .cwz__field input,
.cwz .cwz__field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 13px 16px;
	border: 1.5px solid #B9BCCB;
	border-radius: 10px;
	background: #fff;
	color: var(--cwz-navy);
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
}

.cwz .cwz__field textarea {
	min-height: 0;
	resize: vertical;
}

.cwz .cwz__field input::placeholder,
.cwz .cwz__field textarea::placeholder {
	color: #7B7F95;
	opacity: 1;
}

.cwz .cwz__field input:focus,
.cwz .cwz__field textarea:focus {
	border-color: var(--cwz-blue);
	outline: 3px solid rgba(68, 153, 217, .35);
	outline-offset: 0;
}

.cwz .cwz__field [aria-invalid="true"] {
	border-color: var(--cwz-red);
}

.cwz__count {
	margin: 6px 0 0;
	font-size: 13px;
	text-align: right;
}

.cwz__error {
	margin: 8px 0 0;
	color: var(--cwz-red);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
}

.cwz__privacy {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.6;
}

.cwz__privacy a,
.cwz__error a {
	color: var(--cwz-steel);
	text-decoration: underline;
}

.cwz__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons */

.cwz__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	margin: 32px 0 0;
}

.cwz .cwz__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 26px;
	border: 1.5px solid transparent;
	border-radius: 10px;
	background: linear-gradient(70deg, #7DBBEA 0%, var(--cwz-blue) 70%);
	color: var(--cwz-navy);
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: filter .2s ease;
}

.cwz .cwz__btn:hover {
	filter: brightness(.95);
	color: var(--cwz-navy);
}

.cwz .cwz__btn:focus-visible {
	outline: 3px solid var(--cwz-navy);
	outline-offset: 2px;
}

.cwz .cwz__btn[disabled] {
	cursor: default;
	filter: grayscale(.5) opacity(.7);
}

.cwz .cwz__btn--quiet {
	border-color: var(--cwz-navy);
	background: transparent;
}

.cwz .cwz__btn--quiet[data-go="back"] {
	margin-right: auto;
}

/* Sketch */

.cwz__wait {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 28px 24px;
	border-radius: 14px;
	background: var(--cwz-off);
	color: var(--cwz-navy);
	font-size: 17px;
	font-weight: 600;
}

.cwz__spinner {
	flex: none;
	width: 22px;
	height: 22px;
	border: 3px solid var(--cwz-ice);
	border-top-color: var(--cwz-blue);
	border-radius: 50%;
	animation: cwz-spin .9s linear infinite;
}

@keyframes cwz-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.cwz__spinner { animation-duration: 3s; }
}

.cwz__diagram {
	overflow-x: auto;
	padding: 8px;
	border: 1px solid var(--cwz-border);
	border-radius: 14px;
	background: var(--cwz-off);
	-webkit-overflow-scrolling: touch;
}

.cwz__diagram svg {
	max-width: 100% !important;
}

.cwz .cwz__legend,
.cwz .cwz__questions {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cwz .cwz__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 14px;
	font-size: 14px;
}

.cwz .cwz__legend li,
.cwz .cwz__questions li {
	margin: 0;
	padding: 0;
}

.cwz .cwz__legend li::before,
.cwz .cwz__questions li::before {
	content: none;
}

.cwz__legend li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cwz__legend span {
	display: inline-block;
	width: 22px;
	height: 14px;
	border-width: 1.5px;
}

.cwz .cwz__questions li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 26px;
	font-size: 16px;
	line-height: 1.55;
}

.cwz .cwz__questions li::before {
	content: "?";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--cwz-ice);
	color: var(--cwz-navy);
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.cwz__result .cwz__privacy {
	margin: 24px 0 0;
}

.cwz--off {
	text-align: center;
}

@media (max-width: 767px) {
	.cwz {
		margin-bottom: 64px;
	}

	.cwz__intro {
		margin-bottom: 28px;
		font-size: 18px;
	}

	.cwz__card {
		padding: 28px 20px 30px;
	}

	.cwz__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On a phone the diagram keeps a readable size and scrolls sideways. */
	.cwz__diagram svg {
		max-width: none !important;
	}

	.cwz .cwz__btn {
		width: 100%;
	}

	.cwz .cwz__btn--quiet[data-go="back"] {
		order: 3;
		margin-right: 0;
	}
}
