/* ============================================================
   New Landing — Join Beta Modal
   ============================================================ */

/* Overlay */
.nl-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.nl-modal.is-active { display: flex; }

.nl-modal--success {
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Form wrap */
.nl-modal__form-wrap {
    position: relative;
    max-width: 695px;
    width: 100%;
    background: #0e1629;
    border: 1px solid #45556c;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    padding: 50px 72px 40px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Close button */
.nl-modal__close {
    position: absolute;
    top: 32px;
    right: 41px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.nl-modal__close svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.55);
    transition: stroke 0.2s;
}

.nl-modal__close:hover svg { stroke: #fff; }

/* Content */
.nl-modal__content { display: flex; flex-direction: column; gap: 25px; }

.nl-modal__title {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25;
    margin: 0;
}

.nl-modal__form   { display: flex; flex-direction: column; gap: 24px; }
.nl-modal__fields { display: flex; flex-direction: column; gap: 24px; }
.nl-modal__row    { display: flex; flex-direction: row; gap: 22px; }
.nl-modal__group  { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.nl-modal__label {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.2px;
}

.nl-modal__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(49, 65, 88, 0.3);
    border: 1px solid #45556c;
    border-radius: 12px;
    padding: 8px 12px;
    height: 40px;
    box-sizing: border-box;
}

.nl-modal__input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.3px;
}

.nl-modal__input-wrap input::placeholder { color: rgba(255, 255, 255, 0.5); }

.nl-modal__phone-wrap { padding-left: 12px; }

.nl-modal__country-code {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    user-select: none;
}

/* Custom select */
.nl-modal__select { position: relative; width: 100%; }

.nl-modal__select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(49, 65, 88, 0.3);
    border: 1px solid #45556c;
    border-radius: 12px;
    padding: 8px 12px;
    height: 40px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.nl-modal__select-trigger:hover           { border-color: #5a6b7f; }
.nl-modal__select-trigger.is-open         { border-color: #3b82f6; }

.nl-modal__select-trigger span {
    flex: 1;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.3px;
    text-align: left;
}

.nl-modal__select-trigger.has-value span  { color: #fff; }

.nl-modal__select-chevron {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.5);
    fill: none;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nl-modal__select-trigger.is-open .nl-modal__select-chevron { transform: rotate(180deg); }

.nl-modal__select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a2539;
    border: 1px solid #45556c;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nl-modal__select-options.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nl-modal__select-option {
    padding: 12px 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nl-modal__select-option:hover      { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.nl-modal__select-option.is-selected { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

/* Textarea */
.nl-modal__textarea {
    background: rgba(49, 65, 88, 0.3);
    border: 1px solid #45556c;
    border-radius: 12px;
    padding: 8px 12px;
    height: 112px;
    resize: vertical;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.nl-modal__textarea::placeholder { color: rgba(255, 255, 255, 0.5); }

/* Submit button */
.nl-modal__submit {
    background: #3b82f6;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.2px;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    width: 100%;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.nl-modal__submit:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.nl-modal__submit:disabled             { cursor: not-allowed; opacity: 0.6; }

/* Success wrap */
.nl-modal__success-wrap {
    max-width: 695px;
    width: 100%;
    background: #0e1629;
    border: 1px solid #45556c;
    border-radius: 20px;
    padding: 72px 72px 56px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
    max-height: 90vh;
    overflow-y: auto;
}

.nl-modal__success-icon {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 32px;
}

.nl-modal__success-title {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin: 0 0 14px;
}

.nl-modal__success-desc {
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.nl-modal__success-info {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    margin: 0;
}

.nl-modal__success-btn {
    background: #3b82f6;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 999px;
    padding: 11px 32px;
    margin-top: 56px;
    align-self: center;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    width: 100%;
    max-width: 480px;
}

.nl-modal__success-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 768px) {
    .nl-modal__form-wrap,
    .nl-modal__success-wrap {
        padding: 36px 24px 28px;
    }

    .nl-modal__close {
        top: 18px;
        right: 18px;
    }

    .nl-modal__row {
        flex-direction: column;
        gap: 16px;
    }

    .nl-modal__title { font-size: 24px; }

    .nl-modal__success-title,
    .nl-modal__success-desc { font-size: 22px; }

    .nl-modal__success-btn { margin-top: 36px; }
}
