.newsletter-hero {
    min-height: calc(100svh - 76px);
    padding: clamp(2.25rem, 5vw, 4.5rem) 0;
}

.newsletter-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5.5rem);
}

.newsletter-hero__intro {
    max-width: 580px;
}

.newsletter-hero__intro h1 {
    max-width: 10.5em;
    margin-bottom: 1rem;
    line-height: 1.08;
    text-wrap: balance;
}

.newsletter-hero__intro .hero-text {
    max-width: 42ch;
    margin-bottom: 0;
    line-height: 1.65;
}

.newsletter-hero__signup {
    scroll-margin-top: 5.5rem;
    padding: clamp(1.75rem, 3vw, 2.35rem);
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 64px rgba(13, 72, 68, 0.12);
}

.newsletter-form {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.newsletter-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.newsletter-field {
    display: grid;
    gap: 0.45rem;
    color: var(--stone-700);
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-field small {
    color: var(--stone-500);
    font-size: 0.75rem;
    font-weight: 400;
}

.newsletter-field input {
    width: 100%;
    min-height: 48px;
    padding: 0.65rem 0.15rem;
    border: 0;
    border-bottom: 1px solid var(--stone-700);
    border-radius: 0;
    background: transparent;
    color: var(--stone-900);
    font: inherit;
}

.newsletter-field input:hover {
    border-bottom-color: var(--teal-700);
}

.newsletter-field input:focus {
    border-bottom-color: var(--teal-700);
    outline: 2px solid var(--teal-500);
    outline-offset: 4px;
}

.newsletter-field input[aria-invalid='true'] {
    border-color: #b91c1c;
    background: #fff7f7;
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--stone-700);
    font-size: 0.78rem;
    line-height: 1.45;
    cursor: pointer;
}

.newsletter-consent input {
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin-top: 0.1rem;
    accent-color: var(--teal-700);
}

.newsletter-consent input:focus-visible {
    outline: 2px solid var(--teal-700);
    outline-offset: 3px;
}

.newsletter-consent a {
    color: var(--teal-700);
    text-underline-offset: 3px;
}

.newsletter-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.newsletter-form__actions {
    margin-top: 1.25rem;
}

.newsletter-form__submit.btn-primary {
    width: 100%;
    min-height: 54px;
    white-space: nowrap;
}

.newsletter-form__status {
    min-height: 1.55rem;
    margin-top: 0.65rem;
    color: var(--teal-800);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.55;
    text-align: left;
}

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

.newsletter-form__status.is-error {
    color: #991b1b;
}

.newsletter-form.is-success .newsletter-form__fields,
.newsletter-form.is-success .newsletter-consent,
.newsletter-form.is-success .newsletter-form__actions {
    display: none;
}

.newsletter-form__status.is-success {
    min-height: 0;
    margin: 0;
    padding: clamp(1.5rem, 4vw, 2rem);
    border: 1px solid var(--teal-200);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--teal-50), white);
    box-shadow: var(--shadow-soft);
    color: var(--teal-900);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

.newsletter-form__status.is-success::before {
    content: "\2713";
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-700);
    color: white;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.newsletter-form__status.is-success:focus-visible {
    outline: 3px solid var(--teal-500);
    outline-offset: 4px;
}

.home-newsletter {
    background: var(--warm-50);
}

.home-newsletter__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 28px;
    background: linear-gradient(135deg, white 0%, var(--teal-50) 100%);
    box-shadow: var(--shadow-soft);
}

.home-newsletter__copy h2 {
    max-width: 11em;
    margin: 0.65rem 0 0.8rem;
    color: var(--teal-900);
    text-wrap: balance;
}

.home-newsletter__copy p {
    max-width: 38ch;
    margin: 0;
    color: var(--stone-600);
}

.home-newsletter .newsletter-form--compact {
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 45px rgba(13, 72, 68, 0.09);
}

.newsletter-confirmation {
    min-height: 62vh;
    display: grid;
    align-items: center;
}

.newsletter-confirmation__card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem);
    border: 1px solid var(--teal-200);
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.newsletter-confirmation__card h1 {
    color: var(--teal-900);
}

.newsletter-confirmation__card p {
    max-width: 580px;
    margin: 1rem auto 0;
    color: var(--stone-600);
}

.newsletter-confirmation__card .newsletter-confirmation__next {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--teal-100);
    color: var(--teal-800);
    font-weight: 500;
}

@media (max-width: 820px) {
    .newsletter-hero {
        min-height: auto;
    }

    .newsletter-hero__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .newsletter-hero__intro {
        max-width: 680px;
    }

    .home-newsletter__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-newsletter__copy h2,
    .home-newsletter__copy p {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .ccm-settings-summoner.ccm-show {
        top: 6px !important;
        right: 5.625rem !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 1450 !important;
    }

    .newsletter-hero {
        padding: 1.5rem 0;
    }

    .newsletter-hero__grid {
        gap: 1.25rem;
    }

    .newsletter-hero h1 {
        margin-bottom: 0.65rem;
        font-size: clamp(1.85rem, 8.5vw, 2.35rem);
        line-height: 1.08;
    }

    .newsletter-hero__intro .hero-text {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .newsletter-hero__signup {
        padding: 1.2rem 1rem;
        border-radius: 18px;
    }

    .home-newsletter__inner {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .home-newsletter .newsletter-form--compact {
        padding: 1.2rem 1rem;
        border-radius: 18px;
    }

    .newsletter-form__fields {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .newsletter-field {
        gap: 0.15rem;
        font-size: 0.8rem;
    }

    .newsletter-field input {
        min-height: 44px;
        padding: 0.45rem 0.1rem;
    }

    .newsletter-consent {
        gap: 0.6rem;
        margin-top: 0.8rem;
        font-size: 0.75rem;
        line-height: 1.45;
    }

    .newsletter-consent input {
        width: 20px;
        height: 20px;
    }

    .newsletter-form__actions {
        margin-top: 1rem;
    }

    .newsletter-form__actions .btn {
        width: 100%;
        max-width: none;
        min-height: 48px;
        padding: 0.75rem 1.25rem;
    }

    .newsletter-form__status {
        min-height: 1.25rem;
        margin-top: 0.45rem;
        font-size: 0.78rem;
    }
}
