/* ==========================================================================
   CF7 Lead Form
   Scoped to .wpcf7 .cf7-lead so theme styles don't leak in or out.
   ========================================================================== */

.wpcf7 .cf7-lead {
	--cf7l-font: "Mulish", "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--cf7l-label: #6b7280;
	--cf7l-text: #1f2937;
	--cf7l-placeholder: #9ca3af;
	--cf7l-field-bg: #f7f8fa;
	--cf7l-field-bg-focus: #ffffff;
	--cf7l-border: #e3e6ea;
	--cf7l-primary: #111111;
	--cf7l-primary-hover: #101010;
	--cf7l-link: #3b5bdb;
	--cf7l-error: #d93025;
	--cf7l-radius: 6px;
	--cf7l-field-h: 46px;

	width: 100%;
	max-width: 620px;
	font-family: var(--cf7l-font);
	color: var(--cf7l-text);
	box-sizing: border-box;
}

.wpcf7 .cf7-lead *,
.wpcf7 .cf7-lead *::before,
.wpcf7 .cf7-lead *::after {
	box-sizing: border-box;
}

/* Fields ------------------------------------------------------------------ */

.wpcf7 .cf7-lead__field {
	margin: 0 0 18px;
}

.wpcf7 .cf7-lead__label {
	display: block;
	margin: 0 0 11px;
	font-family: var(--cf7l-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cf7l-label);
}

.wpcf7 .cf7-lead .wpcf7-form-control-wrap {
	display: block;
	position: relative;
}

.wpcf7 .cf7-lead input[type="text"],
.wpcf7 .cf7-lead input[type="email"],
.wpcf7 .cf7-lead input[type="tel"] {
	display: block;
	width: 100%;
	height: var(--cf7l-field-h);
	margin: 0;
	padding: 0 15px;
	font-family: var(--cf7l-font);
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
	color: var(--cf7l-text);
	background-color: var(--cf7l-field-bg);
	border: 1px solid var(--cf7l-border);
	border-radius: var(--cf7l-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.wpcf7 .cf7-lead input::placeholder {
	color: var(--cf7l-placeholder);
	opacity: 1;
}

.wpcf7 .cf7-lead input[type="text"]:focus,
.wpcf7 .cf7-lead input[type="email"]:focus,
.wpcf7 .cf7-lead input[type="tel"]:focus {
	background-color: var(--cf7l-field-bg-focus);
	border-color: var(--cf7l-primary);
	box-shadow: 0 0 0 3px rgba(38, 91, 138, 0.12);
}

/* Phone field (intl-tel-input) ------------------------------------------- */

.wpcf7 .cf7-lead .iti {
	display: block;
	width: 100%;
}

.wpcf7 .cf7-lead .iti__flag-container {
	padding: 0;
}

.wpcf7 .cf7-lead .iti--separate-dial-code .iti__selected-flag,
.wpcf7 .cf7-lead .iti--separate-dial-code .iti__flag-container:hover .iti__selected-flag,
.wpcf7 .cf7-lead .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 12px 0 14px;
	background-color: transparent;
	border-right: 1px solid var(--cf7l-border);
	border-radius: var(--cf7l-radius) 0 0 var(--cf7l-radius);
	outline: none;
}

.wpcf7 .cf7-lead .iti__selected-flag:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(38, 91, 138, 0.35);
}

.wpcf7 .cf7-lead .iti__arrow {
	margin-left: 5px;
	border-left-width: 3.5px;
	border-right-width: 3.5px;
	border-top: 4px solid #4b5563;
}

.wpcf7 .cf7-lead .iti__arrow--up {
	border-top: none;
	border-bottom: 4px solid #4b5563;
}

.wpcf7 .cf7-lead .iti--separate-dial-code .iti__selected-dial-code {
	margin-left: 10px;
	font-family: var(--cf7l-font);
	font-size: 17px;
	font-weight: 400;
	color: #111827;
}

.wpcf7 .cf7-lead .iti__country-list {
	z-index: 20;
	max-height: 240px;
	margin-top: 4px;
	font-family: var(--cf7l-font);
	font-size: 14px;
	color: var(--cf7l-text);
	background: #fff;
	border: 1px solid var(--cf7l-border);
	border-radius: var(--cf7l-radius);
	box-shadow: 0 10px 24px rgba(16, 24, 40, 0.12);
}

.wpcf7 .cf7-lead .iti__country.iti__highlight {
	background-color: #eef3f8;
}

/* Consent checkbox (CF7 acceptance) -------------------------------------- */

.wpcf7 .cf7-lead__consent {
	margin: 30px 0 24px;
}

.wpcf7 .cf7-lead__consent .wpcf7-list-item {
	display: block;
	margin: 0;
}

.wpcf7 .cf7-lead__consent label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}

.wpcf7 .cf7-lead__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin: 0;
	background: #fff center / 10px 10px no-repeat;
	border: 1px solid #6b7280;
	border-radius: 2px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wpcf7 .cf7-lead__consent input[type="checkbox"]:checked {
	background-color: var(--cf7l-primary);
	border-color: var(--cf7l-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.wpcf7 .cf7-lead__consent input[type="checkbox"]:focus-visible {
	outline: 2px solid rgba(38, 91, 138, 0.4);
	outline-offset: 2px;
}

.wpcf7 .cf7-lead__consent .wpcf7-list-item-label {
	font-family: var(--cf7l-font);
	font-size: 9.5px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #4b5563;
}

.wpcf7 .cf7-lead__consent a {
	color: var(--cf7l-link);
	text-decoration: none;
	box-shadow: none;
}

.wpcf7 .cf7-lead__consent a:hover,
.wpcf7 .cf7-lead__consent a:focus {
	text-decoration: underline;
}

/* Submit button ----------------------------------------------------------- */

.wpcf7 .cf7-lead__actions {
	position: relative;
	margin: 0;
}

.wpcf7 .cf7-lead input[type="submit"].cf7-lead__submit,
.wpcf7 .cf7-lead .cf7-lead__submit {
	display: block;
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 0 24px;
	font-family: var(--cf7l-font);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: #fff;
	background-color: var(--cf7l-primary);
	border: 0;
	border-radius: var(--cf7l-radius);
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.wpcf7 .cf7-lead .cf7-lead__submit:hover,
.wpcf7 .cf7-lead .cf7-lead__submit:focus {
	color: #fff;
	background-color: var(--cf7l-primary-hover);
}

.wpcf7 .cf7-lead .cf7-lead__submit:focus-visible {
	outline: 3px solid rgba(38, 91, 138, 0.35);
	outline-offset: 2px;
}

.wpcf7 .cf7-lead .cf7-lead__submit:active {
	transform: translateY(1px);
}

/* CF7 disables the button until the acceptance box is ticked.
   Keep the same look as the design; only the cursor changes. */
.wpcf7 .cf7-lead .cf7-lead__submit[disabled] {
	background-color: var(--cf7l-primary);
	cursor: not-allowed;
	transform: none;
}

/* Keep CF7's spinner from pushing the layout around */
.wpcf7 .cf7-lead .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 18px;
	margin: -12px 0 0;
	background-color: rgba(255, 255, 255, 0.85);
}

/* Validation & responses -------------------------------------------------- */

.wpcf7 .cf7-lead .wpcf7-not-valid {
	border-color: var(--cf7l-error) !important;
}

.wpcf7 .cf7-lead .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-family: var(--cf7l-font);
	font-size: 12px;
	font-weight: 600;
	color: var(--cf7l-error);
}

.wpcf7 form .wpcf7-response-output {
	max-width: 620px;
	margin: 18px 0 0;
	padding: 12px 16px;
	font-family: "Mulish", "Muli", sans-serif;
	font-size: 14px;
	border-width: 1px;
	border-radius: 6px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 480px) {
	.wpcf7 .cf7-lead {
		--cf7l-field-h: 48px;
	}

	/* 16px stops iOS Safari zooming into the field on focus */
	.wpcf7 .cf7-lead input[type="text"],
	.wpcf7 .cf7-lead input[type="email"],
	.wpcf7 .cf7-lead input[type="tel"] {
		font-size: 16px;
	}

	.wpcf7 .cf7-lead__label {
		font-size: 12px;
		margin-bottom: 9px;
	}

	.wpcf7 .cf7-lead__consent {
		margin: 24px 0 20px;
	}

	.wpcf7 .cf7-lead__consent label {
		align-items: flex-start;
		gap: 10px;
	}

	.wpcf7 .cf7-lead__consent input[type="checkbox"] {
		margin-top: 1px;
	}

	.wpcf7 .cf7-lead__consent .wpcf7-list-item-label {
		font-size: 10px;
		line-height: 1.5;
	}

	.wpcf7 .cf7-lead .cf7-lead__submit {
		height: 54px;
	}
}