.newsletter-form-section {
    padding-top: var(--size--60, 3.75rem);
    padding-bottom: var(--size--60, 3.75rem);

    /* Title, text and form one after another, centered (6 cols via .col-md-6) */
    .newsletter-form-stack {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--size--20, 1.25rem);
        text-align: left;
    }

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

    .newsletter-form-description p {
        margin-bottom: 0.7em;
        &:last-child {
            margin-bottom: 0;
        }
    }

    /* ── CF7 form (same look as the contact form) ── */
    /* Fields take 5 of the 6 columns, the arrow button the last one (right side) */
    form {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 1fr);
        column-gap: var(--size--20, 1.25rem);
        row-gap: .625rem;
        width: 100%;

        > * {
            grid-column: 1;
        }

        > .submit-btn {
            grid-column: 2;
            grid-row: 1 / span 2;
            justify-self: end;
            align-self: center;
            width: 100%;
            justify-content: flex-end;
        }

        > .wpcf7-response-output {
            grid-column: 1 / -1;
        }

        p {
            margin: 0;
        }

        .form-item {
            background-color: var(--color-10);
            border-radius: 3px;
            /* Fixed 52px tall; vertical centering instead of vertical padding,
               so the field + its error message both fit without growing it */
            box-sizing: border-box;
            height: 52px;
            max-height: 52px;
            padding: 0 1.125rem;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: .625rem;
            font-size: .75rem;
            color: var(--color-dark);
            position: relative;

            &:before {
                content: "";
                height: 1.5rem;
                width: 1px;
                flex-shrink: 0;
                background: var(--color-dark);
            }
        }

        input[type="email"],
        input[type="text"] {
            width: 100%;
            background: transparent;
            border: none;
            &:focus {
                outline: none;
            }
        }

        ::-webkit-input-placeholder {
            color: var(--color-dark);
        }

        .wpcf7-form-control-wrap {
            width: 100%;
        }

        /* Submit: round arrow button (.scroll-btn), arrow pointing right */
        .submit-btn {
            display: flex;
            align-items: center;
            gap: .625rem;
        }

        .newsletter-submit-btn {
            flex-shrink: 0;
            width: 100%;
            max-width: 110px;
            height: auto;
            aspect-ratio: 1;

            .scroll-btn_arrow {
                width: 52%;
                height: 61%;
            }

            .wpcf7-spinner {
                position: absolute;
                top: 50%;
                left: 50%;
                margin: 0;
                transform: translate(-50%, -50%);
                z-index: 4;
            }

            /* Rotating the arrow wrapper -90deg turns the down arrow (and its
               downward hover slide from initScrollButtons) into a rightward one. */
            .scroll-btn_rotate {
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                transform: rotate(-90deg);
                z-index: 2;
                pointer-events: none;
            }

            /* The real CF7 submit, invisible, covering the whole circle */
            input[type="submit"] {
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
                border: none;
                border-radius: 100vw;
                background: transparent;
                color: transparent;
                font-size: 0;
                opacity: 0;
                cursor: pointer;
                z-index: 3;
                -webkit-appearance: none;
                appearance: none;
            }

            &:has(input[type="submit"]:focus-visible) {
                outline: 2px solid var(--color-dark);
                outline-offset: 3px;
            }
        }

    }

    .wpcf7-not-valid-tip {
        font-size: .75rem;
        line-height: 1.2;
        margin-top: .125rem;
    }

    .wpcf7-response-output {
        margin: .625rem 0 0;
        font-size: .875rem;
    }
}

@media screen and (max-width: 991px) {
    .newsletter-form-section {
        padding-top: var(--size--52, 3.25rem);
        padding-bottom: var(--size--52, 3.25rem);
    }
}

/* Small screens: the arrow button drops to its own row under the fields, aligned right */
@media screen and (max-width: 767px) {
    .newsletter-form-section form {
        grid-template-columns: minmax(0, 1fr);

        > .submit-btn {
            grid-column: 1;
            grid-row: auto;
            justify-self: end;
            width: 4.5rem;
        }
    }
}
