/*
 * mod_dh_axg_rapidmail - horizontal newsletter signup form
 */

.rms-subscribe {
    max-width: 100%;
}

.rms-subscribe .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rms-subscribe__message {
    padding: 0.75em 1em;
    border-radius: 0.25rem;
    margin-bottom: 0.75em;
    font-size: 0.95em;
}

.rms-subscribe__message--success {
    background-color: #e6f4ea;
    color: #1e4620;
    border: 1px solid #b7dfc0;
}

.rms-subscribe__message--error {
    background-color: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
}

.rms-subscribe__form {
    width: 100%;
}

.rms-subscribe__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.rms-subscribe__field {
    flex: 1 1 220px;
    min-width: 0;
}

.rms-subscribe__input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6em 0.8em;
    font-size: 1em;
    line-height: 1.4;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
}

.rms-subscribe__submit {
    flex: 0 0 auto;
}

.rms-subscribe__button {
    width: 100%;
    white-space: nowrap;
    padding: 0.6em 1.4em;
    font-size: 1em;
    line-height: 1.4;
    border: 0;
    border-radius: 0.25rem;
    cursor: pointer;
    background-color: #1c6b3c;
    color: #fff;
}

.rms-subscribe__button:hover,
.rms-subscribe__button:focus {
    background-color: #164f2c;
}

.rms-subscribe__button[disabled] {
    opacity: 0.6;
    cursor: default;
}

.rms-subscribe__consent {
    margin-top: 0.6em;
    font-size: 0.85em;
    line-height: 1.4;
}

.rms-subscribe__consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    cursor: pointer;
}

.rms-subscribe__consent input[type="checkbox"] {
    margin-top: 0.2em;
    flex: 0 0 auto;
}

.rms-subscribe__notice {
    margin: 0.6em 0 0;
    font-size: 0.85em;
    line-height: 1.4;
    color: inherit;
    opacity: 0.85;
}

/* Honeypot field: invisible to sighted users, still present in the DOM/tab order-free for bots */
.rms-subscribe__hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* Stack the row on narrow screens so the button never gets squeezed */
@media (max-width: 420px) {
    .rms-subscribe__row {
        flex-direction: column;
    }

    .rms-subscribe__button {
        width: 100%;
    }
}
