/* South Star — окно «Заявка принята» (PR #23) и ошибки полей форм.
   z-index 1300: выше окна «−10%» (1050), тостов (1100) и окна звонка (1200) — после заявки главное это окно. */
.ss .ss-modal.ss-done { z-index: 1300; }
.ss .ss-done__box { max-width: 460px; padding: 32px 28px 24px; text-align: center; outline: none; }
.ss .ss-done__x { display: grid; place-items: center; color: var(--ss-text); text-decoration: none; }
.ss .ss-done__ok {
    display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%; background: rgba(28, 122, 64, .1); color: var(--ss-green);
    box-shadow: inset 0 0 0 2px rgba(28, 122, 64, .25);
}
.ss .ss-done__h {
    margin: 0 0 12px; font-family: var(--ss-fd); font-style: italic; font-weight: 400; font-synthesis: style;
    text-transform: uppercase; letter-spacing: .01em; font-size: 26px; line-height: 1.1; color: var(--ss-text);
}
.ss .ss-done__p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--ss-text); }
.ss .ss-done__phone { white-space: nowrap; font-weight: 700; }
.ss .ss-done__nw { white-space: nowrap; }
.ss .ss-done__sub { margin-top: 4px; font-size: 14px; color: var(--ss-muted); }
.ss .ss-done__msg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.ss .ss-done__msg .ss-button { height: 44px; padding: 0 10px; font-size: 14px; gap: 6px; text-decoration: none; }
.ss .ss-done__msg svg { flex: none; fill: currentColor; }
.ss .ss-done__close { text-decoration: none; }
html.ss-done-lock, html.ss-done-lock body { overflow: hidden; }

/* Закрытие без JS: ссылка на #ssLeadX — окно прячется, страница остаётся на месте (якорь закреплён вверху экрана) */
.ss-done-x { position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: hidden; }
.ss-done-x:target + .ss-donew .ss-done.is-open { display: none; }

@media (max-width: 480px) {
    .ss .ss-done__box { padding: 28px 18px 18px; }
    .ss .ss-done__h { font-size: 22px; }
    .ss .ss-done__msg { grid-template-columns: 1fr; }
    .ss .ss-done__msg .ss-button { height: 46px; font-size: 15px; }
}

/* Ошибка у поля (ss-lead.js и формы заказа). Работает и в старых формах вне обёртки .ss */
.ss-ferr { margin: 6px 0 0; color: #a8000b; font-size: 14px; line-height: 1.35; font-weight: 500; text-align: left; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a8000b !important; box-shadow: 0 0 0 1px #a8000b; }
