/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: var(--dark-purple);
}

.modal-body {
    padding: 60px 40px 40px;
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-green);
    margin-bottom: 20px;
}

.modal-body h3 {
    color: var(--dark-purple);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-body p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Floating Action Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-glow);
    animation: floatRandom 15s ease-in-out infinite;
    opacity: 0.1;
}

.floating-circle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.floating-circle:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 15%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes floatRandom {
    0%, 100% { 
        transform: translate(0px, 0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% { 
        transform: translate(20px, -30px) rotate(90deg) scale(1.1);
        opacity: 0.3;
    }
    50% { 
        transform: translate(-15px, -45px) rotate(180deg) scale(0.9);
        opacity: 0.2;
    }
    75% { 
        transform: translate(30px, -20px) rotate(270deg) scale(1.05);
        opacity: 0.25;
    }
}