/* NS Partners — Investor Selection Popup v1.6 */

#ns-investor-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 20, 32, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: nsInvFadeIn .3s ease;
}
#ns-investor-overlay.ns-inv-closing {
    animation: nsInvFadeOut .3s ease forwards;
}
@keyframes nsInvFadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes nsInvFadeOut { from { opacity:1; } to { opacity:0; } }

.ns-inv-modal {
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: nsInvSlideUp .3s ease;
}
@keyframes nsInvSlideUp { from { transform:translateY(20px); opacity:0; } to { transform:translateY(0); opacity:1; } }

.ns-inv-title {
    font-size: 22px;
    font-weight: 700;
    color: #3681B0;
    margin: 0 0 12px;
    letter-spacing: .02em;
}
.ns-inv-intro {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 28px;
}
.ns-inv-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #3681B0;
    margin-bottom: 10px;
}
.ns-inv-field { margin-bottom: 24px; }
.ns-inv-select-wrap { position: relative; }
.ns-inv-select {
    width: 100%;
    padding: 13px 40px 13px 16px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: border-color .2s;
    outline: none;
}
.ns-inv-select:focus { border-color: #3681B0; box-shadow: 0 0 0 3px rgba(54,129,176,.15); }
.ns-inv-select-arr {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #75726C;
    font-size: 18px;
}
.ns-inv-radios { display: flex; flex-direction: column; gap: 12px; }
.ns-inv-radio-lbl {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    color: #222;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color .2s, background .2s;
}
.ns-inv-radio-lbl:hover { border-color: #3681B0; background: #f0f6fc; }
.ns-inv-radio-inp { position: absolute; opacity: 0; width: 0; height: 0; }
.ns-inv-radio-inp:focus-visible + .ns-inv-radio-custom { box-shadow: 0 0 0 3px rgba(54,129,176,.4); }
.ns-inv-radio-inp:checked ~ * { color: #3681B0; }
.ns-inv-radio-lbl:has(.ns-inv-radio-inp:checked) { border-color: #3681B0; background: #eef5fb; }
.ns-inv-radio-custom {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #b0b0b0;
    flex-shrink: 0;
    position: relative;
    transition: border-color .2s;
}
.ns-inv-radio-inp:checked + .ns-inv-radio-custom { border-color: #3681B0; }
.ns-inv-radio-inp:checked + .ns-inv-radio-custom::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #3681B0;
    border-radius: 50%;
}
.ns-inv-err {
    font-size: 12px;
    color: #c0392b;
    margin-top: 6px;
}
.ns-inv-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.ns-inv-enquiry { font-size: 13px; color: #75726C; }
.ns-inv-btn-submit {
    padding: 13px 32px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    background: #3681B0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.ns-inv-btn-submit:hover { background: #2a6a96; }
.ns-inv-btn-back {
    padding: 13px 20px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #75726C;
    background: none;
    border: 1.5px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s;
}
.ns-inv-btn-back:hover { border-color: #3681B0; color: #3681B0; }

/* Disclaimer */
.ns-inv-disclaimer-scroll {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    scrollbar-width: thin;
}
.ns-inv-disc-h {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #3681B0;
    margin: 16px 0 8px;
}
.ns-inv-disc-h:first-child { margin-top: 0; }
.ns-inv-disc-p { margin-bottom: 12px; }
.ns-inv-accept-text {
    font-size: 13px;
    color: #333;
    font-style: italic;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Profile bar (shown after acceptance) */
.ns-investor-profile-bar {
    background: #eef5fb;
    border-bottom: 2px solid #3681B0;
    padding: 12px 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    font-size: 12px;
    color: #75726C;
}
.ns-ipb-label { letter-spacing: .04em; }
.ns-ipb-change {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #3681B0;
    background: none;
    border: 1px solid #3681B0;
    padding: 5px 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.ns-ipb-change:hover { background: #3681B0; color: #fff; }

/* Mobile */
@media (max-width: 600px) {
    .ns-inv-modal { padding: 28px 20px; }
    .ns-inv-title { font-size: 18px; }
    .ns-inv-foot { flex-direction: column; align-items: stretch; }
    .ns-inv-btn-submit, .ns-inv-btn-back { width: 100%; text-align: center; }
    .ns-investor-profile-bar { padding: 12px 20px; flex-direction: column; gap: 8px; align-items: flex-start; }
}
