/* TFB Contacten Core - compacte publieke nieuwsbrief-/contactformulieren */
.tfb-newsletter-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
}

.tfb-newsletter-form .tfb-contacts-name-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.tfb-newsletter-form .tfb-contacts-field {
    margin: 0 0 14px;
}

.tfb-newsletter-form .tfb-contacts-field label {
    display: block;
    width: 100%;
    line-height: 1.35;
}

.tfb-newsletter-form .tfb-contacts-field input[type="email"],
.tfb-newsletter-form .tfb-contacts-field input[type="text"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
    padding: 8px 10px;
    font: inherit;
}

.tfb-newsletter-form .tfb-contacts-captcha {
    margin: 2px 0 12px;
}

.tfb-newsletter-form .tfb-contacts-captcha-title {
    margin: 0 0 6px;
}

.tfb-newsletter-form .tfb-contacts-captcha-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
}

.tfb-newsletter-form .tfb-contacts-captcha img {
    display: block;
    width: 140px;
    height: 40px;
    max-width: 65%;
}

.tfb-newsletter-form input[name="captcha_answer"] {
    box-sizing: border-box;
    width: 88px;
    min-height: 40px;
    padding: 7px 9px;
    font: inherit;
}

.tfb-newsletter-form .tfb-contacts-submit {
    margin: 12px 0 8px;
}

.tfb-newsletter-form .tfb-contacts-submit button {
    min-height: 42px;
    padding: 9px 20px;
    cursor: pointer;
    font: inherit;
}

.tfb-newsletter-form [data-tfb-contacts-message] {
    margin: 8px 0 0;
}

@media (max-width: 520px) {
    .tfb-newsletter-form {
        max-width: none;
    }

    .tfb-newsletter-form .tfb-contacts-name-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tfb-newsletter-form .tfb-contacts-captcha-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .tfb-newsletter-form .tfb-contacts-captcha img {
        max-width: 100%;
    }
}
