.newsletterSubscribe {
    width: 100%;
}

.newsletterSubscribe-fields {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.newsletterSubscribe-field {
    width: 100%;
}

.newsletterSubscribe-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.newsletterSubscribe-input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 14px !important;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    color: #333;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletterSubscribe-input::placeholder {
    color: #aaa;
    opacity: 1;
}

.newsletterSubscribe-input:focus {
    border-color: #333;
}

.newsletterSubscribe-input.is-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 1px #b42318;
}

.newsletterSubscribe-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 8px 20px;
    font: inherit;
    font-size: 18px;
    line-height: 1.2;
    color: #111;
    background: transparent;
    border: 1px solid #111;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.newsletterSubscribe-button:hover {
    color: #fff;
    background: #111;
}

.newsletterSubscribe-button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.newsletterSubscribe-message {
    position: relative;
    margin: 0 0 20px;
    padding: 13px 16px 13px 46px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid;
    border-radius: 3px;
}

.newsletterSubscribe-message[hidden] {
    display: none;
}

.newsletterSubscribe-message::before {
    position: absolute;
    top: 50%;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border-radius: 50%;
    transform: translateY(-50%);
}

.newsletterSubscribe-message.is-error {
    color: #842029;
    background: #f8d7da;
    border-color: #f1aeb5;
}

.newsletterSubscribe-message.is-error::before {
    content: '!';
    color: #fff;
    background: #b42318;
}

.newsletterSubscribe-message.is-success {
    color: #0f5132;
    background: #d1e7dd;
    border-color: #a3cfbb;
}

.newsletterSubscribe-message.is-success::before {
    content: '✓';
    color: #fff;
    background: #198754;
}
