/* ── Base ───────────────────────────────────────────────── */

.nl-survey {
    max-width: 680px;
    font-family: "PT Sans", sans-serif;
    font-size: 1rem;
    color: #0f0f0f;
}

.nl-survey--centered {
    margin: 0 auto;
}

/* ── Title / Description ────────────────────────────────── */

.nl-survey__title {
    color: #82BA26;
    font-size: 1.75rem;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.nl-survey__description {
    color: #575757;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

/* ── Option cards (checkbox) ────────────────────────────── */

.nl-survey__options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.nl-survey__option {
    display: flex;
    flex-direction: column;
}

.nl-survey__label--checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid #d2d2d2;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    font-size: 1rem;
    color: #0f0f0f;
    line-height: 1.5;
    user-select: none;
    font-weight: 700;
    text-transform: uppercase;
}

.nl-survey__label--checkbox:hover {
    border-color: #82BA26;
    background-color: rgba(130, 186, 38, 0.08);
    color: #82BA26;
}

.nl-survey__label--checkbox:has(.nl-survey__checkbox:checked) {
    border-color: #82BA26;
    background-color: #82BA26;
    color: #fff;
}

.nl-survey__checkbox {
    width: 1.1rem;
    height: 1.1rem;
    min-width: 1.1rem;
    accent-color: #82BA26;
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Label / Textarea ───────────────────────────────────── */

.nl-survey__label {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #0f0f0f;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.nl-survey__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #d2d2d2;
    font-family: "PT Sans", sans-serif;
    font-size: 1rem;
    color: #0f0f0f;
    resize: vertical;
    transition: border-color 0.15s;
    box-sizing: border-box;
    line-height: 1.5;
    min-height: 120px;
    background: #fff;
    border-radius: 0;
}

.nl-survey__textarea:focus {
    outline: none;
    border-color: #82BA26;
}

.nl-survey__textarea::placeholder {
    color: #adadad;
}

/* ── Email identification field ────────────────────────── */

.nl-survey__email {
    margin-bottom: 1.5rem;
}

.nl-survey__input {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #d2d2d2;
    font-family: "PT Sans", sans-serif;
    font-size: 1rem;
    color: #0f0f0f;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
    border-radius: 0;
}

.nl-survey__input:focus {
    outline: none;
    border-color: #82BA26;
}

.nl-survey__input::placeholder {
    color: #adadad;
}

/* ── Honeypot ──────────────────────────────────────────── */

.nl-survey__honeypot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ── Submit button ─────────────────────────────────────── */

.nl-survey__submit {
    display: inline-block;
    background-color: #3c95e9;
    color: #fff;
    padding: 0.875rem 2.25rem;
    font-family: "PT Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
}

.nl-survey__submit:hover,
.nl-survey__submit:focus {
    background-color: #00a2ff;
    color: #fff;
    outline: none;
}

/* ── Flash messages ────────────────────────────────────── */

.nl-survey .typo3-messages,
.nl-survey .typo3-message {
    margin-bottom: 1.25rem;
}

.nl-survey .alert {
    padding: 0.875rem 1.25rem;
    border-left: 4px solid #d2d2d2;
    background: #f5f5f5;
    font-size: 0.9375rem;
    color: #0f0f0f;
    border-radius: 0;
    margin-bottom: 1rem;
}

.nl-survey .alert-danger,
.nl-survey .alert-error {
    border-left-color: #c0392b;
    background: #fdf3f2;
    color: #c0392b;
}

.nl-survey .alert-success {
    border-left-color: #82BA26;
    background: #f4f9eb;
    color: #4a7010;
}

.nl-survey .alert-info {
    border-left-color: #3c95e9;
    background: #edf5fd;
    color: #1a5fa3;
}

/* ── Thank you ─────────────────────────────────────────── */

.nl-survey--thankyou {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 0;
    gap: 1rem;
}

.nl-survey__check {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #82BA26;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nl-survey__check svg {
    display: block;
}

.nl-survey--thankyou .nl-survey__title {
    margin: 0;
}

.nl-survey--thankyou .nl-survey__description {
    margin: 0;
    font-size: 1.125rem;
}
