/* ============================================================
 * CF7 — стили сообщения об успешной отправке
 * ============================================================ */

.wpcf7-form.cf7success-fading {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cf7success {
    text-align: center;
    padding: 44px 24px;
    animation: cf7success-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cf7success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    display: block;
}

.cf7success-icon__circle {
    stroke: #22a35c;
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: cf7success-draw-circle 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cf7success-icon__check {
    stroke: #22a35c;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: cf7success-draw-check 0.35s 0.45s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cf7success-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    opacity: 0;
    animation: cf7success-fade-up 0.4s 0.65s ease forwards;
}

.cf7success-text {
    font-size: 15px;
    color: #6b6d78;
    line-height: 1.55;
    max-width: 360px;
    margin: 0 auto;
    opacity: 0;
    animation: cf7success-fade-up 0.4s 0.75s ease forwards;
}

@keyframes cf7success-pop {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes cf7success-draw-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes cf7success-draw-check {
    to { stroke-dashoffset: 0; }
}

@keyframes cf7success-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cf7success,
    .cf7success-title,
    .cf7success-text,
    .cf7success-icon__circle,
    .cf7success-icon__check {
        animation: none !important;
        opacity: 1 !important;
        stroke-dashoffset: 0 !important;
    }
    .wpcf7-form.cf7success-fading {
        transition: none;
    }
}
