/* Enrollment Error Notifications */
.enrollment-error-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid #f44336;
    animation: slideInUp 0.3s ease-out;
}

.enrollment-error-notification .error-content {
    padding: 30px;
    text-align: center;
}

.enrollment-error-notification .error-content i {
    font-size: 48px;
    color: #f44336;
    margin-bottom: 15px;
}

.enrollment-error-notification .error-content h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.enrollment-error-notification .error-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.error-actions button {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.error-actions button:hover {
    background: #e9e9e9;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 16px;
}

/* Payment Loading Overlay */
.payment-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease-out;
}

.payment-loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.payment-loading-content p {
    margin: 20px 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.payment-loading-content small {
    color: #666;
    font-size: 14px;
}

/* Spinner Animation */
.spinner-ring {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring:after {
    content: " ";
    display: block;
    width: 46px;
    height: 46px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid #667eea;
    border-color: #667eea transparent #667eea transparent;
    animation: spinner-ring 1.2s linear infinite;
}

@keyframes spinner-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .enrollment-error-notification {
        width: 95%;
        margin: 20px;
    }
    
    .enrollment-error-notification .error-content {
        padding: 25px 20px;
    }
    
    .error-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .error-actions button,
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .payment-loading-content {
        padding: 30px 20px;
    }
}

/* Animation for error notifications */
@keyframes slideInUp {
    from {
        transform: translate(-50%, -40%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
