/* ТопДент — форма записи и «Заявка принята» (владелец 29.10: «второе окно очень некрасивое,
   кнопка должна быть центрированной»). Цвета и скругления — токены темы. */

/* Кнопка отправки — по центру; на телефоне — во всю ширину. */
.td-form .td-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 260px;
	margin-inline: auto;
}
@media (max-width: 560px) {
	.td-form .td-form__submit { width: 100%; min-width: 0; }
}

/* Пока заявка уходит — кружок на кнопке. */
.td-form__submit.td-btn--busy { cursor: progress; opacity: .92; }
.td-form__submit.td-btn--busy::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: td-lead-spin .7s linear infinite;
}

/* «Заявка принята»: галочка в круге, заголовок, когда перезвоним, кнопка «Хорошо» по центру. */
.td-lead-done {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 12px 8px 4px;
	text-align: center;
	outline: none;
	animation: td-lead-in .35s ease-out both;
}
.td-lead-done__icon { display: block; width: 76px; height: 76px; }
.td-lead-done__icon svg { display: block; width: 100%; height: 100%; }
.td-lead-done__icon circle {
	fill: var(--td-tint, #EEF5F4);
	stroke: var(--td-primary, #12A08C);
	stroke-width: 2.5;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: td-lead-ring .6s ease-out .05s forwards;
}
.td-lead-done__icon path {
	fill: none;
	stroke: var(--td-primary, #12A08C);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
	animation: td-lead-tick .35s ease-out .5s forwards;
}
.td-lead-done__title {
	display: block;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--td-deep, #123F35);
}
.td-lead-done__text {
	display: block;
	max-width: 36ch;
	font-size: 16px;
	line-height: 1.5;
	color: var(--td-ink-2, #52655B);
}
.td-lead-done__btn {
	display: flex;
	justify-content: center;
	min-width: 200px;
	margin: 8px auto 0;
}
@media (max-width: 560px) {
	.td-lead-done__btn { width: 100%; }
}

@keyframes td-lead-spin { to { transform: rotate(360deg); } }
@keyframes td-lead-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes td-lead-ring { to { stroke-dashoffset: 0; } }
@keyframes td-lead-tick { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
	.td-lead-done, .td-form__submit.td-btn--busy::after { animation: none; }
	.td-lead-done__icon circle, .td-lead-done__icon path { animation: none; stroke-dashoffset: 0; }
}

/* Маркер для темы (открыть окно с итогом) — не занимает места. */
.td-lead-done .td-status { display: none !important; }
