.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal[hidden] {
	display: none;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	background: var(--kalev-color-surface, #3a1414);
	border-radius: var(--kalev-radius-lg, 16px);
	padding: 40px;
}

.modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	color: var(--color-accent);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.modal__title {
	margin: 0 0 24px;
	color: var(--color-accent);
}

body.is-modal-open {
	overflow: hidden;
}

.wpcf7.is-submitted .cta__fields,
.wpcf7.is-submitted .cta__consent,
.wpcf7.is-submitted .cta__submit {
	display: none;
}

.wpcf7.is-submitted .cta__actions {
	justify-content: center;
	margin-top: 0;
}

/* убираем стандартную зелёную рамку CF7 при успешной отправке */
.wpcf7 form.sent .wpcf7-response-output {
	border-color: transparent;
	background: transparent;
	padding: 0;
}

.wpcf7.is-submitted .wpcf7-response-output {
	position: relative;
	margin: 28px 0 0;
	padding-top: 32px;
	color: var(--kalev-color-text, #f5dcc3);
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}


@media (max-width: 1024px) {
	.modal__dialog {
		padding: 24px;
	}
}