.newsletter-section,
.newsletter-section * {
    box-sizing: border-box;
}

.newsletter-section {
    width: 100%;
    padding: 40px clamp(24px, 5vw, 54px) 54px clamp(24px, 6.7vw, 72px);
    background: #e8eff1;
}

.newsletter-section__inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.newsletter-section__copy {
    z-index: 1;
    display: flex;
    flex: 0 0 56.4%;
    min-height: 178px;
    flex-direction: column;
    justify-content: center;
    padding: 33px clamp(32px, 5.25vw, 58px);
    border-radius: 31px;
    background: #fbfbfc;
}

.newsletter-section__copy h2 {
    margin: 0 0 6px;
    color: #263e7d;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    text-transform: uppercase;
}

.newsletter-section__copy p {
    max-width: 470px;
    margin: 0;
    color: #009ddd;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(1rem, 2.1vw, 1.3rem);
    font-weight: 600;
    line-height: 1.18;
}

.newsletter-section__form-card {
    z-index: 2;
    flex: 0 0 48.8%;
    min-height: 228px;
    margin-left: -5.2%;
    padding: 56px clamp(25px, 3.2vw, 40px) 56px;
    border-radius: 31px;
    background: linear-gradient(115deg, #08a4db 0%, #3157a5 100%);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 0;
}

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

.newsletter-form__input {
    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 7px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: 0;
    background: #fff;
    color: #263e7d;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 0.63rem;
    font-weight: 500;
    line-height: 1.2;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.newsletter-form__input::placeholder {
    color: #607399;
    opacity: 1;
}

.newsletter-form__input:focus {
    border-color: #173b80;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.newsletter-form__input[aria-invalid="true"] {
    border-color: #a51d35;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.newsletter-form__submit {
    display: block !important;
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 9px 20px !important;
    border: 1px solid #fff !important;
    border-radius: 999px !important;
    appearance: none;
    background: linear-gradient(90deg, #009ddd 0%, #2e4d9b 100%) !important;
    box-shadow: 0 4px 12px rgba(30, 61, 125, 0.22);
    color: #ffffff !important;
    cursor: pointer !important;
    font-family: "Rubik", Arial, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    margin-top: 10px !important;
}

.newsletter-form__submit[hidden] {
    display: none;
}

.newsletter-form__submit:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px #263e7d, 0 0 0 5px #fff;
}

.newsletter-form__submit:hover:not(:disabled) {
    background: linear-gradient(90deg, #2e4d9b 0%, #009ddd 100%) !important;
    box-shadow: 0 6px 16px rgba(30, 61, 125, 0.3);
    transform: translateY(-1px);
}

.newsletter-form__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.newsletter-form__status {
    min-height: 0;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: #263e7d;
    color: #fff;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.newsletter-form__status:empty {
    display: none;
    padding: 0;
}

@media (max-width: 767px) {
    .newsletter-section {
        padding: 28px 20px 36px;
    }

    .newsletter-section__inner {
        flex-direction: column;
    }

    .newsletter-section__copy,
    .newsletter-section__form-card {
        width: 100%;
        flex-basis: auto;
    }

    .newsletter-section__copy {
        min-height: 0;
        padding: 34px 28px 46px;
        border-radius: 28px 28px 0 0;
        text-align: center;
    }

    .newsletter-section__copy h2 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .newsletter-section__copy p {
        margin: 0 auto;
        font-size: 1rem;
    }

    .newsletter-section__form-card {
        min-height: 0;
        margin: -20px 0 0;
        padding: 38px 25px 30px;
        border-radius: 28px;
    }

    .newsletter-form__input {
        min-height: 42px;
        padding: 11px 18px;
        font-size: 0.78rem;
    }

    .newsletter-form__submit {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-form__input,
    .newsletter-form__submit {
        transition: none;
    }

    .newsletter-form__submit:hover:not(:disabled) {
        transform: none;
    }
}
