/* =========================================================================
   POPUP EVALUATION CSS - Longevinté Premium
   Aesthetic: Dark Clinical Luxury
   ========================================================================= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: #041611;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.05);
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--c-text-muted, #858481);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--c-primary, #D4AF37);
}

.popup-title {
    font-family: var(--font-heading, 'ABC Arizona Flare', serif);
    font-size: 32px;
    color: #FFFFFF;
    margin-bottom: 32px;
    font-weight: 400;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-label {
    font-family: var(--font-body, 'Aeonik', sans-serif);
    font-size: 13px;
    color: var(--c-primary, #D4AF37);
    font-weight: 500;
}

.popup-input, .popup-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: #FFFFFF;
    font-family: var(--font-body, 'Aeonik', sans-serif);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.popup-input:focus, .popup-select:focus {
    border-color: var(--c-primary, #D4AF37);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.popup-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.investment-text {
    font-family: var(--font-body, 'Aeonik', sans-serif);
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-primary, #D4AF37);
    font-weight: 500;
}

.popup-btn {
    width: 100%;
    height: 64px;
    background: var(--c-primary, #D4AF37);
    color: #041611;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body, 'Aeonik', sans-serif);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.popup-btn:hover {
    background: var(--c-primary-light, #E8D5B7);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

/* Specific for the select arrow */
.popup-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #041611;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    padding-right: 50px;
    color-scheme: dark;
}

.popup-select option {
    background-color: #041611;
    color: #f8f8f7;
    padding: 12px;
}

.popup-select option:hover,
.popup-select option:checked {
    background-color: #0d2a1f;
    color: #D4AF37;
}

@media (max-width: 480px) {
    .popup-container {
        padding: 32px 24px;
    }
    .popup-title {
        font-size: 28px;
    }
}
