/* Newsletter (Acumbamail) form — aligned to the Fliegl site form style (_powermail.scss)
   and the new design direction (wm.fliegl-trailer.de): flat, Bootstrap-based, green eyebrow
   + bold headline, subtle framing. Scoped to .nl-form. Font (Roboto Condensed) is inherited. */
.nl-form {
    --nl-green: #9ec013;
    --nl-green-dark: #86a40f;
    --nl-text: #3b3d3d;
    --nl-border: #ced4da;
    --nl-muted: #6c757d;
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 2rem 2.25rem 2.25rem;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .03);
}

/* Intro — WM direction: green eyebrow + bold condensed headline */
.nl-form__intro {
    margin-bottom: 1.75rem;
}
.nl-form__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nl-muted);
}
.nl-form__eyebrow::before {
    content: "";
    display: inline-block;
    width: .5rem;
    height: .5rem;
    margin-right: .5rem;
    border-radius: 50%;
    background: var(--nl-green);
}
.nl-form__headline {
    margin: 0 0 .4rem;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--nl-text);
}
.nl-form__lead {
    margin: 0;
    color: var(--nl-muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* Fields — mirror the site contact-form conventions */
.nl-form .form-group {
    margin-bottom: 1.5rem;
}
.nl-form .form-label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--nl-text);
}
.nl-form .form-control {
    width: 100%;
    height: 46px;
    padding: .6rem .9rem;
    font-size: 1rem;
    color: var(--nl-text);
    background: #fff;
    border: 1px solid var(--nl-border);
    border-radius: 4px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nl-form .form-control::placeholder { color: #9aa0a6; }
.nl-form .form-control:focus {
    border-color: var(--nl-green);
    box-shadow: 0 0 0 .18rem rgba(158, 192, 19, .22);
    outline: none;
}
.nl-form .form-text {
    color: var(--nl-muted);
    font-size: .85rem;
    margin-top: .35rem;
}
.nl-form .error.form-text,
.nl-form .has-error .form-control { color: #d64545; border-color: #d64545; }

/* Topic selection — squared selectable tags (matches site radius, WM card feel) */
.nl-form .nl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .15rem;
}
.nl-form .nl-chip__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.nl-form .nl-chip {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: .5rem .9rem;
    border: 1px solid var(--nl-border);
    border-radius: 4px;
    font-size: .92rem;
    font-weight: 600;
    color: #525252;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.nl-form .nl-chip:hover { border-color: var(--nl-green); color: var(--nl-green-dark); }
.nl-form .nl-chip__input:checked + .nl-chip {
    background: var(--nl-green);
    border-color: var(--nl-green);
    color: #fff;
}
.nl-form .nl-chip__input:checked + .nl-chip::before {
    content: "✓";
    margin-right: .4rem;
    font-weight: 700;
}
.nl-form .nl-chip__input:focus-visible + .nl-chip {
    box-shadow: 0 0 0 .18rem rgba(158, 192, 19, .22);
}

/* Consent checkbox — hanging indent like the site form */
.nl-form .form-check {
    position: relative;
    padding-left: 1.9rem;
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--nl-text);
}
.nl-form .form-check input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: .2rem;
    width: 18px;
    height: 18px;
    accent-color: var(--nl-green);
}
.nl-form .form-check a { color: var(--nl-green-dark); text-decoration: underline; }

/* Trust microcopy — quiet note */
.nl-form__trust {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 1.1rem 0 1rem;
    color: var(--nl-muted);
    font-size: .85rem;
}
.nl-form__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: var(--nl-green);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    flex: 0 0 auto;
}

/* Submit — site btn-primary look, full width for this narrow form */
.nl-form__actions { margin-top: .25rem; }
.nl-form .btn-toolbar,
.nl-form .btn-group { display: block; width: 100%; }
/* !important to win over the site's "ghost" .btn-primary default (white bg / dark text),
   consistent with how the site's own button rules use !important. */
.nl-form .btn-primary {
    display: block;
    width: 100%;
    min-width: 0;
    padding: .75rem 1.6rem !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #fff !important;
    background-color: var(--nl-green) !important;
    border: 1px solid var(--nl-green) !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .15s ease;
}
.nl-form .btn-primary:hover,
.nl-form .btn-primary:focus {
    color: #fff !important;
    background-color: var(--nl-green-dark) !important;
    border-color: var(--nl-green-dark) !important;
}
.nl-form .btn-primary::after { display: none !important; }

.nl-form .required,
.nl-form .form-label .required { color: var(--nl-green-dark); }

/* Confirmation — WM-style info note (left green accent), not a heavy card */
.nl-confirmation {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 1.5rem 1.75rem;
    background: #f6f8ee;
    border: 1px solid #e1e8c8;
    border-left: 4px solid var(--nl-green, #9ec013);
    border-radius: 6px;
}
.nl-confirmation h3 { margin-top: 0; color: #5f7a0c; font-weight: 700; }
.nl-confirmation p { margin-bottom: 0; color: #3b3d3d; }

@media (max-width: 575.98px) {
    .nl-form { padding: 1.4rem 1.1rem 1.6rem; }
    .nl-form__headline { font-size: 1.4rem; }
}
