/* ======================================================
   Contact Form 7 Global Styles
====================================================== */

.wpcf7,
.wpcf7-form {
	margin: 0;
}

.wpcf7-form p {
	margin: 0;
}

.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* Form grid */

.wpcf7 .result-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
}

.wpcf7 .result-form-field {
	min-width: 0;
}

.wpcf7 .result-form-submit {
	grid-column: 1 / -1;
	margin-top: 4px;
}

/* Inputs */

.wpcf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 select,
.wpcf7 textarea {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid #dce1ec;
	border-radius: 12px;
	color: #171b32;
	background: #ffffff;
	font: inherit;
	font-size: 14px;
	line-height: 48px;
	outline: 0;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.wpcf7 select {
	padding-right: 38px;
	line-height: normal;
	cursor: pointer;
}

.wpcf7 textarea {
	height: auto;
	min-height: 100px;
	padding-top: 12px;
	padding-bottom: 12px;
	line-height: 1.5;
	resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #73798a;
	opacity: 1;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
	border-color: #7657d6;
	box-shadow: 0 0 0 3px rgba(118, 87, 214, 0.12);
}

/* Submit */

.wpcf7 input[type="submit"] {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 28px;
	color: #ffffff;
	background: #ed417f;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 50px;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.wpcf7 input[type="submit"]:hover {
	background: #d92c6b;
	transform: translateY(-1px);
}

.wpcf7 input[type="submit"]:focus-visible {
	outline: 3px solid #7657d6;
	outline-offset: 3px;
}

/* Conditional fields */

.wpcf7 .wpcf7cf_group {
	width: 100%;
	margin: 0;
}

/* Validation */

.wpcf7 .wpcf7-not-valid {
	border-color: #c62828 !important;
}

.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 5px;
	color: #c62828;
	font-size: 12px;
	line-height: 1.4;
}

.wpcf7 .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.wpcf7 .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 10px 12px !important;
	border-radius: 10px;
	font-size: 12px;
	line-height: 1.45;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #e7a93b;
	background: #fff9ec;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #2e9f67;
	background: #effaf4;
}

/* ======================================================
   Mobile
====================================================== */

@media (max-width: 600px) {
	.wpcf7 .result-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.wpcf7 input:not([type="submit"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
	.wpcf7 select,
	.wpcf7 textarea {
		height: 44px;
		padding-inline: 12px;
		font-size: 13px;
		line-height: 44px;
	}

	.wpcf7 input[type="submit"] {
		height: 46px;
		line-height: 46px;
	}
}

/* Very small screens */

@media (max-width: 420px) {
	.wpcf7 .result-form-grid {
		grid-template-columns: 1fr;
	}

	.wpcf7 .result-form-submit {
		grid-column: auto;
	}
}

/* ======================================================
   International telephone input
====================================================== */

.wpcf7 .iti {
	display: block;
	width: 100%;
}

.wpcf7 .iti input[type="tel"] {
	width: 100%;
	padding-left: 92px;
}

.wpcf7 .iti--separate-dial-code .iti__selected-flag {
	min-width: 82px;
	padding: 0 10px;
	border-radius: 12px 0 0 12px;
	background: transparent;
}

.wpcf7 .iti--separate-dial-code .iti__selected-dial-code {
	margin-left: 7px;
	color: #171b32;
	font-size: 14px;
}

.wpcf7 .iti__flag-container {
	z-index: 5;
}

.wpcf7 .iti__country-list {
	z-index: 999999;
	width: 320px;
	max-height: 240px;
	margin-top: 5px;
	padding: 0;
	overflow-y: auto;
	border: 1px solid #dce1ec;
	border-radius: 10px;
	color: #171b32;
	background: #ffffff;
	box-shadow: 0 12px 35px rgba(16, 27, 77, 0.18);
	list-style: none;
}

.wpcf7 .iti__country {
	display: flex;
	padding: 9px 12px;
	align-items: center;
	list-style: none;
	font-size: 14px;
}

.wpcf7 .iti__country:hover,
.wpcf7 .iti__country.iti__highlight {
	background: #f2f3f8;
}

.wpcf7 .iti__country-name {
	margin-right: 6px;
}

.wpcf7 .iti__dial-code {
	color: #777f91;
}

.wpcf7 .phone-error {
	display: block;
	margin-top: 5px;
	color: #d93025;
	font-size: 12px;
	line-height: 1.4;
}

.wpcf7 input[type="tel"].wpcf7-not-valid {
	border-color: #d93025 !important;
}

@media (max-width: 600px) {
	.wpcf7 .iti__country-list {
		width: min(310px, calc(100vw - 40px));
	}

	.wpcf7 .iti input[type="tel"] {
		padding-left: 86px;
	}
}