/* ---- Neutralise CF7 wrappers so the design markup drives layout ---- */
.form-block .wpcf7,
.contact-form .wpcf7,
.footer-form .wpcf7 {
	display: block;
	margin: 0;
}
.wpcf7 form.wpcf7-form {
	display: block;
}
.wpcf7 .wpcf7-response-output {
	display: none !important;
}
.wpcf7-spinner {
	display: none;
}
.select-item .wpcf7-form-control-wrap {
	display: block;
}
.wpcf7-form-control-wrap {
	position: relative;
	display: block;
}
.input-box .wpcf7-form-control-wrap {
	flex: 1;
}

/* ---- Validation ---- */
.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.3;
	color: #d3455b;
}
.wpcf7-form-control-wrap .wpcf7-not-valid {
	border-color: #d3455b;
}

/* ---- Acceptance checkbox mapped to the design's .check-item / .check-label ---- */
.form-check .wpcf7-form-control-wrap,
.form-check .wpcf7-acceptance,
.form-check .wpcf7-list-item {
	display: block;
	margin: 0;
}
.form-check .wpcf7-list-item label {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}
.form-check .wpcf7-acceptance input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 0;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.form-check .wpcf7-list-item-label {
	position: relative;
	display: block;
	padding: max(2px, 2rem) 0 max(2px, 2rem) max(36px, 36rem);
	font-size: var(--button);
	line-height: 120%;
	letter-spacing: -0.03em;
	color: var(--black-200);
}
.form-check .wpcf7-list-item-label:after {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	content: '';
	width: max(24px, 24rem);
	height: max(24px, 24rem);
	background: url(../images/checkbox.svg) 50% 50% no-repeat;
	background-size: contain;
}
.form-check .wpcf7-acceptance input:checked + .wpcf7-list-item-label:after {
	background-image: url(../images/checkbox-active.svg);
}

/* Blue variant uses the white checkbox icons */
.form-blue .form-check .wpcf7-list-item-label {
	color: var(--white-600);
}
.form-blue .form-check .wpcf7-list-item-label:after {
	background-image: url(../images/checkbox-white.svg);
}
.form-blue .form-check .wpcf7-acceptance input:checked + .wpcf7-list-item-label:after {
	background-image: url(../images/checkbox-white-active.svg);
}
