/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: var(--secondary-color);
    color: var(--primary-color);
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 8px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.close-icon {
    line-height: 1;
}

.popup-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.popup-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.popup-text p {
    margin-bottom: 1.5rem;
}

.popup-text p:last-child {
    margin-bottom: 0;
}

.popup-text a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.popup-text a:hover {
    border-bottom-color: #000;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .popup-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .popup-title {
        font-size: 1.8rem;
    }
    
    .popup-text {
        font-size: 0.95rem;
    }
}