/*!
 * DK-TO: светлое окно «Заявка отправлена!» вместо тёмного.
 *
 * В теме tehosmotr26 затемнение (.dkt-modal-backdrop) лежит ВНУТРИ карточки
 * и накрывает её собой — окно выглядит серым, текст читается с трудом.
 * Здесь затемнение вынесено на всю страницу, а карточка сделана светлой.
 */

/* Затемнение — на весь экран, из самой секции, а не из карточки. */
.dkt-modal {
	z-index: 99990;
	padding: 20px;
	align-items: center;
	justify-content: center;
}

.dkt-modal::before {
	content: "";
	position: fixed;
	inset: 0;
	background: radial-gradient(120% 120% at 50% 0%, rgba(16, 34, 64, .42), rgba(6, 14, 28, .58));
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 0;
	animation: dktoModalFade .22s ease-out both;
}

/* Вложенное затемнение больше не нужно — иначе оно снова накроет текст. */
.dkt-modal .dkt-modal-backdrop {
	display: none !important;
}

/* Карточка */
.dkt-modal-card {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 42px 34px 32px;
	border: 1px solid #e4ecfa;
	border-radius: 26px;
	background:
		radial-gradient(120% 90% at 50% -10%, #eef7ff 0%, rgba(255, 255, 255, 0) 55%),
		#fff;
	text-align: center;
	box-shadow:
		0 30px 70px -20px rgba(8, 17, 32, .35),
		0 6px 18px rgba(8, 17, 32, .08),
		inset 0 1px 0 rgba(255, 255, 255, .9);
	animation: dktoModalPop .3s cubic-bezier(.2, .9, .3, 1.15) both;
}

/* Зелёный значок «галочка» — с мягким кольцом */
.dkt-modal-card > span:first-of-type {
	position: relative;
	width: 76px;
	height: 76px;
	margin: 0 auto;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: linear-gradient(160deg, #e9fbf3, #d3f4e6);
	color: #12a05f !important;
	box-shadow:
		0 0 0 8px rgba(53, 185, 138, .10),
		0 0 0 1px rgba(53, 185, 138, .22) inset;
}

.dkt-modal-card > span:first-of-type svg {
	width: 38px;
	height: 38px;
	stroke-width: 2.2;
}

/* Заголовок и текст */
.dkt-modal-card h2,
.dkt-modal-card h3 {
	margin: 22px 0 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #0a1428 !important;
}

.dkt-modal-card p {
	margin: 14px auto 0;
	max-width: 400px;
	font-size: 15px;
	line-height: 1.62;
	color: #56657d !important;
}

.dkt-modal-card p b,
.dkt-modal-card p strong {
	color: #0a1428;
	font-weight: 700;
}

/* Предупреждение (если заявка ушла не полностью) — аккуратная плашка */
.dkt-modal-card .dkt-modal-warn {
	margin: 18px auto 0;
	padding: 12px 14px;
	border: 1px solid #f6d8a3;
	border-radius: 12px;
	background: #fff8ec;
	color: #8a5a00 !important;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
}

/* Кнопка */
.dkt-modal-card .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 26px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: linear-gradient(180deg, #2f6bff, #1f56e0);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .7);
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.dkt-modal-card .btn:hover {
	background: linear-gradient(180deg, #3a75ff, #245ce8);
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -10px rgba(37, 99, 235, .8);
}

.dkt-modal-card .btn:active {
	transform: translateY(0);
}

.dkt-modal-card .btn:focus-visible,
.dkt-modal-card .btn:focus {
	outline: 3px solid rgba(37, 99, 235, .35);
	outline-offset: 3px;
}

/* Прокрутка внутри карточки — аккуратная */
.dkt-modal-card::-webkit-scrollbar {
	width: 8px;
}

.dkt-modal-card::-webkit-scrollbar-thumb {
	background: #dbe6f7;
	border-radius: 999px;
}

@keyframes dktoModalFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes dktoModalPop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
	.dkt-modal {
		padding: 14px;
		align-items: center;
	}

	.dkt-modal-card {
		padding: 30px 20px 24px;
		border-radius: 20px;
		max-height: calc(100vh - 28px);
	}

	.dkt-modal-card > span:first-of-type {
		width: 64px;
		height: 64px;
		box-shadow:
			0 0 0 6px rgba(53, 185, 138, .10),
			0 0 0 1px rgba(53, 185, 138, .22) inset;
	}

	.dkt-modal-card > span:first-of-type svg {
		width: 30px;
		height: 30px;
	}

	.dkt-modal-card h2,
	.dkt-modal-card h3 {
		font-size: 22px;
		margin-top: 18px;
	}

	.dkt-modal-card p {
		font-size: 14.5px;
	}

	.dkt-modal-card .btn {
		width: 100%;
		margin-top: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dkt-modal::before,
	.dkt-modal-card {
		animation: none !important;
	}
}
