/* ── Newsletter Popup ── */

.nlp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 30, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nlp-overlay.nlp-visible {
    opacity: 1;
    visibility: visible;
}

.nlp-card {
    background: linear-gradient(145deg, #0d1235 0%, #0a0e27 100%);
    border: 1px solid rgba(0, 230, 118, 0.25);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0,230,118,0.08);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nlp-overlay.nlp-visible .nlp-card {
    transform: translateY(0) scale(1);
}

.nlp-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.nlp-close:hover { color: rgba(255,255,255,0.7); }

/* ── Box animation ── */
.nlp-box-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.nlp-box {
    font-size: 2.8rem;
    animation: nlp-float 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(0,230,118,0.4));
    user-select: none;
}

@keyframes nlp-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%       { transform: translateY(-8px) rotate(3deg); }
}

/* ── Step 1: quiz ── */
.nlp-step { display: none; }
.nlp-step.nlp-active { display: block; }

.nlp-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00e676;
    margin-bottom: 0.5rem;
}

.nlp-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.nlp-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.nlp-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nlp-quiz-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nlp-quiz-btn:hover {
    border-color: rgba(0,230,118,0.5);
    background: rgba(0,230,118,0.07);
    transform: translateX(3px);
}

.nlp-quiz-btn .nlp-quiz-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Step 2: form ── */
.nlp-form-headline {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.nlp-form-sub {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.nlp-value-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.nlp-value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
}

.nlp-value-item i {
    color: #00e676;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.nlp-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.nlp-input::placeholder { color: rgba(255,255,255,0.3); }
.nlp-input:focus {
    outline: none;
    border-color: rgba(0,230,118,0.5);
}

.nlp-submit {
    width: 100%;
    background: #00e676;
    color: #000;
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nlp-submit:hover {
    background: #00ff85;
    transform: translateY(-1px);
}

.nlp-legal {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    margin-top: 0.75rem;
    line-height: 1.4;
}

/* ── Step 3: success ── */
.nlp-success-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: nlp-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes nlp-pop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.nlp-success-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
}

.nlp-success-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    text-align: center;
    line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .nlp-card { padding: 1.5rem 1.25rem; border-radius: 16px; }
    .nlp-title, .nlp-form-headline { font-size: 1.05rem; }
}
