/* Form animations */

@keyframes loadingBlink {

    0%,
    100% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }
}

.loading-dots-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-dots-container span {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: loadingBlink 1.4s infinite both;
}

.loading-dots-container span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots-container span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-8px);
    }

    80% {
        transform: translateX(8px);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shake {
    animation: shake 0.3s cubic-bezier(.36, .07, .19, .97) both;
}

.form-group {
    opacity: 0;
}

.form-container.visible .form-group,
.form-page-wrapper.visible .form-container .form-group {
    animation: slideUpFade 0.5s ease forwards;
}

.form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.form-group:nth-child(3) {
    animation-delay: 0.15s;
}

.form-group:nth-child(4) {
    animation-delay: 0.2s;
}

.form-group:nth-child(5) {
    animation-delay: 0.25s;
}

.form-group:nth-child(6) {
    animation-delay: 0.3s;
}

.form-container .cta-button {
    opacity: 0;
}

.form-container.visible .cta-button,
.form-page-wrapper.visible .form-container .cta-button {
    animation: slideUpFade 0.5s ease forwards;
    animation-delay: 0.35s;
}
