/* =====================================================
   ANIMATIONS - FIXED: Smooth, No Jitter
   ===================================================== */

/* Radio Card Animation - Use transform only */
.radio-card {
    opacity: 0;
    transform: translateY(15px) translateZ(0);
    animation: fadeUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.radio-card:nth-child(1) { animation-delay: 0.03s; }
.radio-card:nth-child(2) { animation-delay: 0.06s; }
.radio-card:nth-child(3) { animation-delay: 0.09s; }
.radio-card:nth-child(4) { animation-delay: 0.12s; }
.radio-card:nth-child(5) { animation-delay: 0.15s; }
.radio-card:nth-child(6) { animation-delay: 0.18s; }
.radio-card:nth-child(7) { animation-delay: 0.21s; }
.radio-card:nth-child(8) { animation-delay: 0.24s; }
.radio-card:nth-child(9) { animation-delay: 0.27s; }
.radio-card:nth-child(10) { animation-delay: 0.3s; }
.radio-card:nth-child(11) { animation-delay: 0.33s; }
.radio-card:nth-child(12) { animation-delay: 0.36s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Section Header Animation */
.section-header {
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    backface-visibility: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

/* Toast Notification - Smooth */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    /* Use transform for smooth animation */
    transform: translateX(-50%) translateY(20px) translateZ(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backface-visibility: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) translateZ(0);
}

.toast i {
    margin-right: 8px;
}

/* Smooth Scroll Behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}