/* AEM Labs Limited - CSS Module: Newsletter */
/* ========================================= */

.newsletter-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85)), url('/static/img/stock-images/0001.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 30px;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(105, 7, 197, 0.15), rgba(167, 28, 28, 0.15));
    pointer-events: none;
}

.newsletter-container {
    max-width: min(90%, var(--max-container-width));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.newsletter-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.newsletter-input-wrapper {
    display: flex;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(105, 7, 197, 0.3);
    transform: translateY(-2px);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.newsletter-btn i {
    transition: transform 0.3s ease;
}

.newsletter-btn:hover i {
    transform: translateX(4px);
}

.newsletter-privacy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

.newsletter-form a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 1440px) {
    .newsletter-section {
        padding: 50px 0;
    }

    .newsletter-description {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-title {
        font-size: 26px;
    }

    .newsletter-description {
        margin-bottom: 30px;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
    }

    .newsletter-input {
        padding: 14px 16px;
        text-align: center;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
    }

    .newsletter-btn {
        border-radius: 16px;
        padding: 14px 24px;
        justify-content: center;
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 40px 0;
        background-attachment: scroll;
    }

    .newsletter-title {
        font-size: 18px;
    }

    .newsletter-description {
        font-size: 12px;
        width: 90%;
        margin: 0 auto 20px;
    }

    .newsletter-input-wrapper {
        width: 80%;
        gap: 12px;
    }

    .newsletter-input {
        font-size: 13px;
        width: 100%;
        margin: 0 auto;
    }

    .newsletter-btn {
        font-size: 13px;
        padding: 12px 20px;
    }

    .newsletter-privacy {
        font-size: 10px;
    }
}