
/* =========================================
   IMPRINT NEWSLETTER - MAIN CONTAINER
========================================= */

.inm-newsletter {
    width: 100%;
    font-family: Poppins, Arial, sans-serif;
}

.inm-newsletter * {
    box-sizing: border-box;
}


/* =========================================
   NEWSLETTER FORM - WHITE CAPSULE
========================================= */

.inm-subscribe-form {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    padding: 5px;
    position: relative;
    overflow: visible;

    background: #fff;
    border: 1px solid #e3eaf0;
    border-radius: 999px;

    box-shadow:
        0 4px 18px rgba(18,54,82,.10),
        0 1px 3px rgba(18,54,82,.05);

    transition: border-color .25s ease, box-shadow .25s ease;
}


/* Soft, subtle focus glow */

.inm-subscribe-form:focus-within {
    border-color: rgba(15,83,132,.28);

    box-shadow:
        0 5px 18px rgba(15,83,132,.10),
        0 0 10px rgba(11,111,211,.06);
}


/* =========================================
   EMAIL INPUT FIELD
========================================= */

.inm-subscribe-form input[type=email] {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 19px;
    margin: 0;

    border: 0 !important;
    border-radius: 999px !important;

    background: transparent !important;
    color: #263746;

    font: 400 14px Poppins, Arial, sans-serif;

    outline: none !important;
    box-shadow: none !important;
}

.inm-subscribe-form input[type=email]::placeholder {
    color: #929ba4;
    opacity: 1;
}


/* =========================================
   SUBSCRIBE BUTTON - NORMAL STATE
========================================= */

.inm-subscribe-form button,
.inm-subscribe-form button:visited {
    flex: 0 0 auto;
    height: 46px;
    min-width: 116px;
    margin: 0;
    padding: 0 25px;

    border: 1px solid #0f5384 !important;
    border-radius: 999px !important;

    background: #ffffff !important;
    color: #0f5384 !important;

    font: 700 13px Poppins, Arial, sans-serif !important;
    letter-spacing: .15px;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 2px 7px rgba(15,83,132,.10) !important;

    transition: none !important;
    transform: none !important;
}


/* =========================================
   SUBSCRIBE BUTTON - HOVER STATE
========================================= */

.inm-subscribe-form button:hover {
    background: #0f5384 !important;
    border-color: #0f5384 !important;
    color: #ffffff !important;

    font-weight: 700 !important;

    box-shadow: 0 3px 12px rgba(15,83,132,.24) !important;

    transform: none !important;
}


/* =========================================
   SUBSCRIBE BUTTON - FOCUS AND CLICK
========================================= */

.inm-subscribe-form button:focus,
.inm-subscribe-form button:focus-visible,
.inm-subscribe-form button:active {
    background: #0f5384 !important;
    border-color: #0f5384 !important;
    color: #ffffff !important;

    font-weight: 700 !important;

    box-shadow: 0 3px 12px rgba(15,83,132,.20) !important;

    outline: none !important;
    transform: none !important;
}


/* Disabled button */

.inm-subscribe-form button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none !important;
}


/* =========================================
   FORM MESSAGE - OUTSIDE WHITE CAPSULE
========================================= */

.inm-form-message {
    display: block;
    position: static;

    width: calc(100% - 30px);
    margin: 8px 15px 0;

    font: 400 12px/1.5 Poppins, Arial, sans-serif;
}


/* Hide message when empty */

.inm-form-message:empty {
    display: none;
}


/* Success message */

.inm-form-message.is-success {
    color: #18733b;
}


/* Error message */

.inm-form-message.is-error {
    color: #b42318;
}


/* =========================================
   ACCESSIBILITY - SCREEN READER LABEL
========================================= */

.inm-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0,0,0,0);

    white-space: nowrap;
    border: 0;
}


/* =========================================
   HONEYPOT - SPAM PROTECTION
========================================= */

.inm-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 480px) {

    .inm-subscribe-form {
        min-height: 52px;
        padding: 4px;
        gap: 3px;
    }

    .inm-subscribe-form input[type=email] {
        height: 42px;
        padding: 0 11px;
        font-size: 12px;
    }

    .inm-subscribe-form button {
        height: 42px;
        min-width: 96px;
        padding: 0 15px;
        font-size: 11px;
    }

}

/* Return button to normal appearance after clicking */
.inm-subscribe-form button:focus,
.inm-subscribe-form button:focus-visible {
    background: #ffffff !important;
    border-color: #0f5384 !important;
    color: #0f5384 !important;
    box-shadow: 0 2px 7px rgba(15, 83, 132, 0.12) !important;
    outline: none !important;
    transform: none !important;
}

/* Keep the blue hover effect */
.inm-subscribe-form button:hover {
    background: #0f5384 !important;
    border-color: #0f5384 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(15, 83, 132, 0.18) !important;
    transform: none !important;
}
