/*
 * Modern newsletter signup styling for /newsletter/ (post ID 3712).
 *
 * Pulls visual vocabulary from the Nurse.org LP (lp/match/index.html):
 * white card with soft shadow, stacked column layout, soft-bg input with
 * focus ring, full-width gradient CTA. Recolored to MMI brand green.
 *
 * Scoped to body.page-id-3712 so it can't affect anything else.
 */

.page-id-3712 .block-email-subscription {
    width: 100%;
    max-width: 480px;
    margin: 16px auto;
    padding: 32px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(14, 26, 58, 0.10);
    box-sizing: border-box;
}

.page-id-3712 .block-email-subscription__input-view {
    width: 100%;
    max-width: none;
}

.page-id-3712 .block-email-subscription h4 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #0e1a3a;
    margin: 0 0 8px;
    padding: 0;
}

.page-id-3712 .block-email-subscription__input-view > p {
    font-size: 14px;
    line-height: 1.5;
    color: #5b6a8a;
    margin: 0 0 20px;
    padding: 0;
}

.page-id-3712 .block-email-subscription__input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 0;
    width: 100%;
    max-width: none;
}

.page-id-3712 .block-email-subscription__input {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #0e1a3a;
    background: #f6f8fc;
    border: 1.5px solid #d8e0ee;
    border-radius: 12px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.page-id-3712 .block-email-subscription__input::placeholder {
    color: #97a4bd;
    font-size: 15px;
    font-weight: 400;
}

.page-id-3712 .block-email-subscription__input:focus {
    border-color: #69af38;
    box-shadow: 0 0 0 3px rgba(105, 175, 56, 0.18);
    outline: none;
}

.page-id-3712 .block-email-subscription__input.block-email-subscription__input--invalid {
    border-color: #b02a37;
    box-shadow: 0 0 0 3px rgba(176, 42, 55, 0.14);
}

/* Plugin default is `margin: 0 0 -19px` to underlap the row-flex input bar.
   We use column flex here, so the negative margin hides the message under
   the next stacked element. */
.page-id-3712 .block-email-subscription__error-view--active {
    margin: 0 0 8px;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #b02a37;
    text-align: left;
    align-self: stretch;
}

.page-id-3712 .block-email-subscription__input-group button {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: none;
    color: #ffffff;
    background: linear-gradient(135deg, #69af38 0%, #4a8b25 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(105, 175, 56, 0.30);
    cursor: pointer;
    flex-shrink: 0;
    transition: box-shadow 0.15s, filter 0.15s, transform 0.05s;
}

.page-id-3712 .block-email-subscription__input-group button:hover,
.page-id-3712 .block-email-subscription__input-group button:focus-visible {
    box-shadow: 0 6px 18px rgba(105, 175, 56, 0.40);
    filter: brightness(1.05);
    outline: none;
}

.page-id-3712 .block-email-subscription__input-group button:active {
    transform: scale(0.99);
}
