/* Анимация успешной отправки формы - иконка сердца подпрыгивает и становится зелёной */

#contact-heart-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#contact-heart-icon.heart-success {
    animation: heartBounceGreen 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes heartBounceGreen {
    0% {
        transform: translateY(0) scale(1);
        background: linear-gradient(to bottom right, rgb(244, 63, 94), rgb(239, 68, 68));
        box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.4);
    }
    25% {
        transform: translateY(-12px) scale(1.15);
        background: linear-gradient(to bottom right, rgb(34, 197, 94), rgb(22, 163, 74));
        box-shadow: 0 20px 40px -5px rgba(34, 197, 94, 0.6);
    }
    50% {
        transform: translateY(-8px) scale(1.1);
        background: linear-gradient(to bottom right, rgb(34, 197, 94), rgb(22, 163, 74));
        box-shadow: 0 15px 35px -5px rgba(34, 197, 94, 0.5);
    }
    75% {
        transform: translateY(-4px) scale(1.05);
        background: linear-gradient(to bottom right, rgb(34, 197, 94), rgb(22, 163, 74));
        box-shadow: 0 12px 30px -5px rgba(34, 197, 94, 0.45);
    }
    100% {
        transform: translateY(0) scale(1);
        background: linear-gradient(to bottom right, rgb(34, 197, 94), rgb(22, 163, 74));
        box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
    }
}

/* Флеш при успешной отправке контактной формы */
.contact-flash-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.contact-flash-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.contact-flash-card {
    margin: 1rem;
    padding: 1.75rem 2rem;
    max-width: 20rem;
    background: linear-gradient(145deg, rgb(15, 23, 42), rgb(30, 41, 59));
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 1.25rem;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 40px -10px rgba(34, 197, 94, 0.35);
    text-align: center;
    transform: scale(0.88);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.contact-flash-overlay.is-visible .contact-flash-card {
    transform: scale(1);
    opacity: 1;
}

.contact-flash-icon-wrap {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: rgb(34, 197, 94);
}

.contact-flash-check {
    width: 100%;
    height: 100%;
}

.contact-flash-circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.15s;
}

.contact-flash-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    transition: stroke-dashoffset 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.4s;
}

.contact-flash-overlay.is-visible .contact-flash-circle {
    stroke-dashoffset: 0;
}

.contact-flash-overlay.is-visible .contact-flash-path {
    stroke-dashoffset: 0;
}

.contact-flash-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin: 0 0 0.375rem;
}

.contact-flash-text {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}
