.ncmaz-newsletter-card {
    border: 1px solid var(--wp--preset--color--shadcn-border, #e5e7eb);
    border-radius: 0;
    background-color: var(--wp--preset--color--base-2, #ffffff);
    padding: 0;
    max-width: 640px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.ncmaz-newsletter-card:focus-within,
.ncmaz-newsletter-card:hover {
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.ncmaz-newsletter-card__header {
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--wp--preset--color--shadcn-border, #e5e7eb);
    padding: var(--wp--preset--spacing--4, 1.25rem);
}

.ncmaz-newsletter-icon {
    width: 20px;
    flex-shrink: 0;
    color: #000;
    display: flex;
}

.ncmaz-newsletter-icon svg {
    width: 24px;
    height: 24px;
}
.ncmaz-newsletter-card__heading,
.ncmaz-newsletter-form,
.ncmaz-newsletter-form__email input,
.ncmaz-newsletter-field label,
.ncmaz-newsletter-field input,
.ncmaz-newsletter-field select {
    font-family: var(--ncmaz-font-body, "titillium-web", sans-serif);
}

.ncmaz-newsletter-card__title {
    font-size: var(--wp--preset--font-size--sm, 1rem);
    font-weight: 600;
    margin: 0;
}

.ncmaz-newsletter-card__body {
    font-size: var(--wp--preset--font-size--sm, 1rem);
    color: var(--wp--preset--color--contrast-2, #475467);
    margin: 4px 0 0;
}

.ncmaz-newsletter-form {
    padding: var(--wp--preset--spacing--4, 1.25rem) var(--wp--preset--spacing--5, 1.5rem);
}

.ncmaz-newsletter-form__email {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(86, 105, 143, 0.35);
    border-radius: 0;
    background: var(--wp--preset--color--base-2, #fff);
    transition: border-color 0.2s ease;
    margin-bottom: var(--wp--preset--spacing--4, 1.25rem);
}

.ncmaz-newsletter-form__email:focus-within {
    border-color: var(--wp--preset--color--primary, #111);
}

.ncmaz-newsletter-form__email input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    padding: 6px 0;
    font-weight: 500;
    line-height: 1.4;
    color: #111;
}

.ncmaz-newsletter-form__email input:focus {
    outline: none;
}

.ncmaz-newsletter-form__email button {
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: none;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ncmaz-newsletter-form__email button:hover {
    transform: translateX(2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ncmaz-newsletter-form__details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    column-gap: 28px;
    row-gap: 24px;
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid transparent;
}

.ncmaz-newsletter-card.is-expanded .ncmaz-newsletter-form__details {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-top: var(--wp--preset--spacing--5, 1.5rem);
    padding-top: var(--wp--preset--spacing--4, 1.25rem);
    border-top-color: var(--wp--preset--color--shadcn-border, #e5e7eb);
}

.ncmaz-newsletter-field {
    width: 91%;
}

.ncmaz-newsletter-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #111827;
}

.ncmaz-newsletter-field input,
.ncmaz-newsletter-field select {
    width: 100%;
    border: 1px solid rgba(86, 105, 143, 0.25);
    border-radius: 0;
    padding: 13px 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    background: #f8fafc;
}

.ncmaz-newsletter-field--submit {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ncmaz-newsletter-submit {
    align-self: flex-end;
    padding: 12px 28px;
    border: none;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ncmaz-newsletter-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.ncmaz-newsletter-field input:focus,
.ncmaz-newsletter-field select:focus {
    outline: none;
    border-color: rgba(15, 23, 42, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.45);
    background: #fff;
}

.ncmaz-newsletter-field input::placeholder {
    color: rgba(71, 84, 103, 0.9);
}

.ncmaz-newsletter-field select {
    color: rgba(71, 84, 103, 0.9);
    background-image: linear-gradient(45deg, transparent 50%, #475467 50%), linear-gradient(135deg, #475467 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    appearance: none;
}

.ncmaz-newsletter-preview-input {
    display: block;
    width: 100%;
    border-radius: 0;
    padding: 13px 16px;
    background: rgba(148, 163, 184, 0.15);
    color: rgba(71, 84, 103, 0.9);
    font-size: 0.95rem;
    line-height: 1.45;
}

.ncmaz-newsletter-preview-input.is-email {
    flex: 1;
}

.ncmaz-newsletter-preview-button {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.ncmaz-newsletter-preview-label {
    font-size: 0.8rem;
    color: rgba(71, 84, 103, 0.9);
    margin-bottom: 4px;
    display: block;
}

.ncmaz-newsletter-editor-hint {
    font-size: 0.8rem;
    color: rgba(71, 84, 103, 0.9);
    margin: 12px var(--wp--preset--spacing--5, 1.5rem) 0;
}

@media (max-width: 640px) {
    .ncmaz-newsletter-form {
        padding: var(--wp--preset--spacing--5, 1.5rem);
    }

    .ncmaz-newsletter-form__email {
        flex-direction: column;
        padding: 12px;
    }

    .ncmaz-newsletter-form__email button {
        width: 100%;
    }

    .ncmaz-newsletter-form__details {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .ncmaz-newsletter-field--submit {
        align-items: stretch;
    }

    .ncmaz-newsletter-submit {
        width: 100%;
        text-align: center;
    }
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

