/* ==========================================================================
   Newsletter signup form (DE / EN / AR) — logical properties for LTR + RTL
   ========================================================================== */

#newsletter .nl-form {
    margin-top: 2rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 1.25rem;
    box-shadow: 0 24px 48px -32px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
    #newsletter .nl-form {
        padding: 1.5rem;
    }
}

#newsletter .nl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#newsletter .nl-input {
    flex: 1 1 15rem;
    min-width: 0;
    height: 3rem;
    padding-inline: 1.1rem;
    font: inherit;
    font-size: 1rem;
    color: #111111;
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    border-radius: 0.85rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#newsletter .nl-input::placeholder {
    color: #a4a4a4;
}

#newsletter .nl-input:hover {
    border-color: rgba(0, 0, 0, 0.28);
}

#newsletter .nl-input:focus {
    outline: none;
    border-color: #ffcd00;
    box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.32);
}

#newsletter .nl-input[aria-invalid="true"] {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14);
}

#newsletter .nl-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    padding-inline: 1.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #111111;
    background: #ffcd00;
    border: 0;
    border-radius: 0.85rem;
    cursor: pointer;
    transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

#newsletter .nl-button:hover {
    background: #e6b800;
}

#newsletter .nl-button:active {
    transform: translateY(1px);
}

#newsletter .nl-button:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 2px;
}

#newsletter .nl-button:disabled {
    opacity: 0.65;
    cursor: progress;
}

#newsletter .nl-hint {
    margin-top: 0.7rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #636363;
}

#newsletter .nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.9rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #636363;
}

#newsletter .nl-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    accent-color: #111111;
    cursor: pointer;
}

#newsletter .nl-consent label {
    cursor: pointer;
}

#newsletter .nl-consent a {
    color: #111111;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #ffcd00;
    text-underline-offset: 3px;
}

#newsletter .nl-consent.has-error input[type="checkbox"] {
    outline: 2px solid #d92d20;
    outline-offset: 2px;
}

#newsletter .nl-status {
    display: none;
    margin-top: 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

#newsletter .nl-status.is-visible {
    display: block;
}

#newsletter .nl-status[data-state="success"] {
    color: #0f7b3e;
}

#newsletter .nl-status[data-state="error"] {
    color: #b42318;
}

#newsletter .nl-status[data-state="info"] {
    color: #636363;
}

/* Honeypot — hidden from users, visible to naive bots.
   Uses clipping (not negative offsets) so it never creates page overflow,
   which would break horizontal layout in RTL documents. */
#newsletter .nl-hp {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 479px) {
    #newsletter .nl-input,
    #newsletter .nl-button {
        flex: 1 1 100%;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #newsletter .nl-input,
    #newsletter .nl-button {
        transition: none;
    }
}
