/* ========== POPUP FORM ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.popup-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    text-align: center;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1.25rem;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.popup-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.popup-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1rem;
    color: var(--white);
}

.popup-body {
    padding: 2rem;
}

.popup-form .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.popup-form .form-control,
.popup-form .form-select {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition-base);
}

.popup-form .form-control:focus,
.popup-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.popup-benefits {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.popup-benefits h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.popup-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-dark);
    font-size: 0.9375rem;
}

.popup-benefits li:last-child {
    margin-bottom: 0;
}

.popup-benefits li i {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

@media (max-width: 575px) {
    .popup-content {
        width: 95%;
    }

    .popup-header,
    .popup-body {
        padding: 1.5rem;
    }

    .popup-header h3 {
        font-size: 1.5rem;
    }
}