/**
 * Newsletter Section Component Styles
 *
 * @package EHF
 * @since 1.8.0
 */

.newsletter-section {
    background-color: #2D2D2D;
    padding: var(--ehf-spacing-4xl) 0;
}

.newsletter-section__container {
    max-width: var(--ehf-container-xl);
    margin: 0 auto;
    padding: 0 var(--ehf-spacing-lg);
}

.newsletter-section__content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-section__title {
    font-family: var(--ehf-font-family-headings);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--ehf-font-weight-semibold);
    line-height: var(--ehf-line-height-tight);
    color: #FFFFFF;
    margin: 0 0 var(--ehf-spacing-md);
}

.newsletter-section__subtitle {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-lg);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 var(--ehf-spacing-2xl);
}

.newsletter-section__form {
    margin: 0 0 var(--ehf-spacing-md);
}

.newsletter-section__input-group {
    display: flex;
    gap: 0;
    border-radius: var(--ehf-border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-section__input {
    flex: 1;
    padding: var(--ehf-spacing-md) var(--ehf-spacing-xl);
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-base);
    color: var(--ehf-text-color);
    background-color: #FFFFFF;
    border: none;
    outline: none;
    min-width: 0;
}

.newsletter-section__input::placeholder {
    color: var(--ehf-gray-400);
}

.newsletter-section__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--ehf-spacing-xs);
    padding: var(--ehf-spacing-md) var(--ehf-spacing-xl);
    background-color: var(--ehf-primary-color);
    color: var(--ehf-text-on-primary);
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-base);
    font-weight: var(--ehf-font-weight-medium);
    border: none;
    cursor: pointer;
    transition: all var(--ehf-transition-normal);
    white-space: nowrap;
}

.newsletter-section__btn:hover {
    background-color: var(--ehf-primary-hover);
}

.newsletter-section__privacy {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-section {
        padding: var(--ehf-spacing-3xl) 0;
    }

    .newsletter-section__container {
        padding: 0 var(--ehf-spacing-md);
    }

    .newsletter-section__subtitle {
        font-size: var(--ehf-font-size-base);
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: var(--ehf-spacing-2xl) 0;
    }

    .newsletter-section__container {
        padding: 0 var(--ehf-spacing-sm);
    }

    .newsletter-section__input-group {
        flex-direction: column;
        border-radius: var(--ehf-border-radius-md);
    }

    .newsletter-section__input {
        border-radius: var(--ehf-border-radius-md) var(--ehf-border-radius-md) 0 0;
        text-align: center;
    }

    .newsletter-section__btn {
        justify-content: center;
        border-radius: 0 0 var(--ehf-border-radius-md) var(--ehf-border-radius-md);
        padding: var(--ehf-spacing-md);
    }
}
