/* Newsletter Section Styles */
.newsletter-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    background: #f8f9fa;
    /* Light fallback background */
    overflow: hidden;
}

.newsletter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* Icon */
.newsletter-icon {
    margin-bottom: 1.5rem;
}

.newsletter-icon i {
    font-size: 3.5rem;
    color: #4361ee;
    /* Primary blue */
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Title */
.newsletter-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.newsletter-title span {
    color: #4361ee;
    /* Primary blue */
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Description */
.newsletter-description {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Form Styles */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.input-icon {
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.input-icon i {
    color: #4361ee;
    font-size: 1.25rem;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 1.25rem 1.25rem;
    font-size: 1.125rem;
    color: #212529;
    background: transparent;
    outline: none;
}

.input-group input::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

.input-group button {
    background: #4361ee;
    color: white;
    border: none;
    padding: 0 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.input-group button:hover {
    background: #3a56d4;
    transform: translateY(-1px);
}

.input-group button:active {
    transform: translateY(0);
}

.input-group button i {
    font-size: 1.25rem;
}

/* Privacy Note */
.privacy-note {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.privacy-note i {
    color: #38b000;
    /* Success green */
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .newsletter-card {
        padding: 2rem 1.5rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }

    .newsletter-description {
        font-size: 1rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .input-icon {
        padding: 1rem 1.25rem;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        justify-content: center;
    }

    .input-group input {
        padding: 1.25rem 1.25rem;
        text-align: center;
    }

    .input-group button {
        padding: 1.25rem;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Color Variables for Easy Customization */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --text-dark: #212529;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --success-color: #38b000;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}