.nls-form-wrapper {
    max-width: 480px;
    margin: 2em auto;
    padding: 2em;
    background: #f9f9fb;
    border: 1px solid #e2e2e8;
    border-radius: 10px;
    text-align: center;
    font-family: inherit;
}

.nls-title {
    margin: 0 0 0.4em;
    font-size: 1.4em;
    color: #1a1a2e;
}

.nls-subtitle {
    margin: 0 0 1.4em;
    color: #555;
    font-size: 0.95em;
}

.nls-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.nls-form > * {
    flex: 1 1 100%;
    min-width: 0; /* allow flex items to shrink below content size */
    margin: 0;
}

.nls-field-half {
    flex-basis: calc(50% - 0.4em);
}

@media (max-width: 420px) {
    .nls-field-half {
        flex-basis: 100%;
    }
}

.nls-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75em 1em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
}

.nls-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    text-align: left;
    font-size: 0.9em;
    color: #444;
    cursor: pointer;
}

.nls-checkbox-label input[type="checkbox"] {
    margin-top: 0.2em;
}

.nls-input:focus {
    border-color: #4a4ae0;
}

.nls-submit-btn {
    width: 100%;
    padding: 0.85em 1em;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: #4a4ae0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nls-submit-btn:hover {
    background: #3a3ac0;
}

.nls-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nls-message {
    margin-top: 1em;
    padding: 0.7em 1em;
    border-radius: 6px;
    font-size: 0.9em;
}

.nls-message.nls-success {
    background: #e3f7e6;
    color: #1c6b2f;
    border: 1px solid #b6e6bd;
}

.nls-message.nls-error {
    background: #fdeaea;
    color: #a3222c;
    border: 1px solid #f3bcbc;
}

.nls-captcha-image-row {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.nls-captcha-img {
    display: block;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.nls-captcha-refresh {
    background: #f0f0f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.nls-captcha-refresh:hover {
    background: #e2e2e6;
}

.nls-captcha-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nls-file-label {
    display: block;
    text-align: left;
    font-size: 0.9em;
    color: #444;
    margin-bottom: 0.3em;
}

.nls-file-input {
    display: block;
    width: 100%;
    margin-top: 0.4em;
    padding: 0.5em 0;
}

.nls-file-description {
    margin: 0.3em 0 0;
    font-size: 0.8em;
    color: #888;
    text-align: left;
}

.nls-field-drag-handle {
    user-select: none;
    font-size: 1.1em;
}

.nls-field-row[draggable="true"] {
    cursor: grabbing;
}
