body.wpcm-modal-open {
	overflow: hidden;
}

.wpcm-overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(21, 26, 34, 0.62);
	backdrop-filter: blur(2px);
}

.wpcm-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(680px, calc(100vw - 24px));
	max-height: calc(100vh - 32px);
	overflow: visible;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, -50%);
}

.wpcm-modal,
.wpcm-modal * {
	box-sizing: border-box;
}

.wpcm-content {
	padding: 46px 38px 30px;
	font-family: "Montserrat", "Arial", sans-serif;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}

.wpcm-modal .wpcm-close {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(50%, -50%);
	z-index: 2;
	width: 44px;
	height: 44px;
	border: 3px solid #2d2d2d;
	border-radius: 50%;
	background: #ffffff;
	color: #2d2d2d;
	font-size: 0;
	line-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: opacity 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.wpcm-modal .wpcm-close::before {
	content: "\00d7";
	font-size: 34px;
	line-height: 1;
	font-family: Arial, sans-serif;
	font-weight: 400;
	transform: translateY(-1px);
}

.wpcm-modal .wpcm-title {
	margin: 0;
	font-size: clamp(22px, 3.2vw, 42px) !important;
	font-weight: 800 !important;
	line-height: 1.12 !important;
	text-align: center;
	color: #26282c;
}

.wpcm-modal .wpcm-subtitle {
	margin: 16px auto 24px;
	max-width: 88%;
	font-size: clamp(14px, 1.5vw, 20px) !important;
	line-height: 1.35 !important;
	text-align: center;
	color: #7f7f82;
}

.wpcm-modal .wpcm-form label {
	display: block;
	margin: 14px 0 8px;
	font-size: 12px !important;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: #919599;
}

.wpcm-modal .wpcm-form input[type="text"],
.wpcm-modal .wpcm-form input[type="tel"] {
	width: 100%;
	height: 52px;
	border: 2px solid #e4e7ea;
	border-radius: 2px;
	font-size: 16px !important;
	padding: 8px 14px;
	color: #2f3338;
	background: #ffffff;
}

.wpcm-modal .wpcm-form input[type="text"]:focus,
.wpcm-modal .wpcm-form input[type="tel"]:focus {
	border-color: #babfc5;
	outline: none;
}

.wpcm-modal .wpcm-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	margin-top: 24px;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	background-color: var(--wpcm-submit-bg, #cb3e38);
	color: #ffffff;
	font-size: clamp(15px, 1.6vw, 22px) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	transition: opacity 0.22s ease, filter 0.22s ease;
}

.wpcm-modal .wpcm-submit::before {
	content: "";
	width: 0;
	height: 0;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	opacity: 0;
}

.wpcm-modal .wpcm-submit:not(:disabled):hover,
.wpcm-modal .wpcm-submit:not(:disabled):focus-visible {
	opacity: 0.92;
}

.wpcm-modal .wpcm-submit:disabled {
	cursor: wait;
	filter: saturate(0.85);
}

.wpcm-modal .wpcm-submit.is-loading::before {
	width: 16px;
	height: 16px;
	opacity: 1;
	animation: wpcm-spin 0.75s linear infinite;
}

.wpcm-modal .wpcm-messengers {
	margin-top: 18px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.wpcm-modal .wpcm-messengers-text {
	font-size: 14px !important;
	line-height: 1.4;
	color: #5f656c;
	text-align: center;
}

.wpcm-modal .wpcm-messengers-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.wpcm-modal .wpcm-messenger-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #e4e7ea;
	border-radius: 999px;
	background: #ffffff;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcm-modal .wpcm-messenger-link:hover,
.wpcm-modal .wpcm-messenger-link:focus-visible {
	transform: translateY(-1px);
	border-color: #c8cdd2;
	box-shadow: 0 8px 18px rgba(38, 40, 44, 0.08);
}

.wpcm-modal .wpcm-messenger-link img {
	display: block;
	width: 28px;
	height: 28px;
}

.wpcm-modal .wpcm-close:hover,
.wpcm-modal .wpcm-close:focus-visible {
	opacity: 0.86;
	background-color: #f5f7f9;
	border-color: #1f1f1f;
}

@keyframes wpcm-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.wpcm-modal .wpcm-consent {
	margin: 14px auto 0;
	max-width: 92%;
	font-size: clamp(12px, 1vw, 16px) !important;
	line-height: 1.35;
	color: #7b7f84;
	text-align: center;
}

.wpcm-modal .wpcm-consent * {
	font-size: inherit !important;
	line-height: inherit !important;
	color: inherit;
}

.wpcm-modal .wpcm-consent p {
	margin: 0;
}

.wpcm-modal .wpcm-consent a,
.wpcm-consent-link {
	color: #52565b;
	text-decoration: underline;
}

.wpcm-modal .wpcm-consent a:hover,
.wpcm-modal .wpcm-consent a:focus,
.wpcm-consent-link:hover,
.wpcm-consent-link:focus {
	color: #2f3338;
}

.wpcm-consent-link-text {
	color: #52565b;
}

.wpcm-feedback {
	display: none;
	margin-bottom: 14px;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.45;
}

.wpcm-feedback.is-visible {
	display: block;
}

.wpcm-feedback.is-success {
	background: #e8f6ec;
	color: #1e7c3b;
}

.wpcm-feedback.is-error {
	background: #fdeaea;
	color: #b42929;
}

.wpcm-honeypot-field {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 768px) {
	.wpcm-content {
		padding: 34px 18px 24px;
	}

	.wpcm-modal .wpcm-close {
		width: 38px;
		height: 38px;
		border-width: 2px;
	}

	.wpcm-modal .wpcm-close::before {
		font-size: 28px;
	}

	.wpcm-modal .wpcm-subtitle {
		max-width: 100%;
	}

	.wpcm-modal .wpcm-form label {
		font-size: 12px;
	}

	.wpcm-modal .wpcm-form input[type="text"],
	.wpcm-modal .wpcm-form input[type="tel"] {
		height: 48px;
		font-size: 16px;
	}

	.wpcm-modal .wpcm-submit {
		height: 52px;
		font-size: 16px;
	}

	.wpcm-modal .wpcm-consent {
		font-size: 13px;
	}

	.wpcm-modal .wpcm-messengers-text {
		font-size: 13px !important;
	}
}
