/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Success Modal */
.success-modal {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease-out;
}

.success-modal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Header with Icon */
.modal-header {
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 60px;
    color: #4CAF50;
    font-weight: bold;
    animation: scaleIn 0.4s ease-out 0.2s backwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Body */
.modal-body {
    margin-bottom: 25px;
}

.modal-body h2 {
    color: #0b1d69;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
}

.modal-body p {
    color: #747579;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: center;
}

.modal-btn {
    background-color: #1e16f3;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 22px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.modal-btn:hover {
    background-color: #3f38ff;
    box-shadow: 0px 8px 20px rgba(30, 22, 243, 0.3);
    transform: translateY(-2px);
}

.modal-btn:active {
    transform: translateY(0px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .success-modal {
        padding: 30px 25px;
        max-width: 90%;
    }

    .modal-body h2 {
        font-size: 24px;
    }

    .modal-body p {
        font-size: 14px;
    }

    .modal-icon {
        font-size: 50px;
    }
}

@media (max-width: 480px) {
    .success-modal {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .modal-body h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .modal-body p {
        font-size: 13px;
    }

    .modal-btn {
        padding: 10px 30px;
        font-size: 13px;
    }

    .modal-icon {
        font-size: 45px;
    }
}
