/* ── Newsletter CTA Block ────────────────────────────────────────────────── */

.nyehs-nl-cta {
    position: relative;
    background: linear-gradient(135deg, #00094a 0%, #0017c7 100%);
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    overflow: hidden;
    padding: 72px 48px;
    box-sizing: border-box;
}

.nyehs-nl-cta.alignfull,
.nyehs-nl-cta.alignwide {
    border-radius: 0;
}

/* Gradient overlay when a background image is set */
.nyehs-nl-cta--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 9, 74, 0.92) 0%, rgba(0, 23, 199, 0.82) 100%);
    z-index: 0;
}

.nyehs-nl-cta__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 48px;
}

.nyehs-nl-cta__content {
    flex: 0 0 58%;
    min-width: 0;
}

.nyehs-nl-cta__heading {
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.nyehs-nl-cta__description {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin: 0 0 2rem;
}

/* Single white pill — input floats left, button floats right inside */
.nyehs-nl-cta__field-row {
    display: flex;
    align-items: center;
    max-width: 500px;
    background: #fff;
    border-radius: 999px;
    padding: 2px 2px 2px 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 55, 0.12);
    transition: box-shadow 0.3s ease;
}

.nyehs-nl-cta__field-row:focus-within {
    box-shadow: 0 0 0 3px rgba(13, 65, 255, 0.28), 0 2px 12px rgba(0, 0, 55, 0.12);
}

.nyehs-nl-cta__input {
    flex: 1;
    padding: 13px 0;
    font-size: 0.9375rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #1e293b;
    outline: none;
    min-width: 0;
    caret-color: #0017c7;
    transition: color 0.2s;
}

.nyehs-nl-cta__input::placeholder {
    color: #94a3b8;
    transition: opacity 0.2s ease;
}

.nyehs-nl-cta__input:focus::placeholder {
    opacity: 0.5;
}

.nyehs-nl-cta__input--error::placeholder {
    color: #f87171;
}

.nyehs-nl-cta__button {
    padding: 14px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #0017c7;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease,
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.25s ease;
}

.nyehs-nl-cta__button:hover {
    background: #0d41ff;
    transform: scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 23, 199, 0.40);
}

.nyehs-nl-cta__button:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

.nyehs-nl-cta__button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.nyehs-nl-cta__feedback {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: #fca5a5;
}

.nyehs-nl-cta__success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.nyehs-nl-cta__success[hidden] {
    display: none;
}

.nyehs-nl-cta__success-icon {
    flex-shrink: 0;
    color: #86efac;
}

/* Decorative envelope */
.nyehs-nl-cta__decor {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.nyehs-env-scene {
    perspective: 700px;
    perspective-origin: 50% 50%;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1.4 / 1;
}

.nyehs-env-box {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(180deg);
}

.nyehs-env-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.nyehs-env-face svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nyehs-env-face--front {
    transform: translateZ(7px);
}

.nyehs-env-face--back {
    transform: rotateY(180deg) translateZ(7px);
}

/* Responsive */
@media (max-width: 768px) {
    .nyehs-nl-cta {
        padding: 48px 28px;
    }

    .nyehs-nl-cta__inner {
        flex-direction: column;
        gap: 0;
    }

    .nyehs-nl-cta__content {
        flex: none;
        width: 100%;
    }

    .nyehs-nl-cta__decor {
        display: none;
    }

    .nyehs-nl-cta__field-row {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .nyehs-nl-cta {
        padding: 36px 16px;
    }
}
