/**
 * Newsletter Section
 */

.newsletter-section {
    background: linear-gradient(135deg, var(--color-royal-900) 0%, var(--color-royal-800) 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.newsletter-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .newsletter-section__inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-4xl);
    }
}

/* Content */
.newsletter-section__content {
    flex: 1;
}

.newsletter-section__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-accent-warm);
    margin-bottom: var(--space-sm);
}

.newsletter-section__title {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .newsletter-section__title {
        font-size: 2.25rem;
    }
}

.newsletter-section__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    max-width: 480px;
}

/* Form */
.newsletter-section__form {
    flex: 1;
    width: 100%;
    max-width: 500px;
}

.newsletter-section__field {
    display: flex;
    gap: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-section__field:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.newsletter-section__input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
    color: #fff;
    font-family: var(--font-body);
    min-width: 0;
}

.newsletter-section__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.newsletter-section__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: var(--color-royal-900);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    flex-shrink: 0;
}

.newsletter-section__btn:hover {
    background: rgba(255, 255, 255, 0.88);
}

.newsletter-section__btn svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.newsletter-section__btn:hover svg {
    transform: translateX(3px);
}

.newsletter-section__consent {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.5;
}

/* Utility : screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
