* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff;
    padding: 40px 20px;
}

/* Newsletter Section Styles */
.newsletter-section {
    max-width: 1200px;
    margin: 3rem auto;
    background: linear-gradient(135deg, #1a3a6e 0%, #2a4a7e 100%);
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-top: 5px solid #c41e3a;
    border-bottom: 5px solid #c41e3a;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(196, 30, 58, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.newsletter-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: #c41e3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.newsletter-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.newsletter-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    border: none;
    padding: 0;
    font-weight: 600;
}

.newsletter-content>p {
    color: #e0f0ff;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 280px;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background-color: white;
}

.newsletter-input:focus {
    border-color: #c41e3a;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-button {
    padding: 1rem 2.5rem;
    background-color: #c41e3a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    white-space: nowrap;
}

.newsletter-button:hover {
    background-color: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.newsletter-button:active {
    transform: translateY(0);
}

.newsletter-button:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    background-color: #4caf50;
    color: white;
    padding: 0;
    border-radius: 8px;
    margin: 0 auto;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    padding: 1rem;
    margin-top: 1rem;
}

.newsletter-privacy {
    margin-top: 1.5rem;
    color: #b0d0f0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.newsletter-privacy a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.newsletter-privacy a:hover {
    color: #c41e3a;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 3px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .newsletter-section {
        padding: 2rem 1.5rem;
        margin: 2rem auto;
    }

    .newsletter-content h2 {
        font-size: 1.5rem;
    }

    .newsletter-content>p {
        font-size: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        min-width: 100%;
    }

    .newsletter-button {
        width: 100%;
    }

    .newsletter-icon {
        width: 60px;
        height: 60px;
    }

    .newsletter-icon svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 1.5rem 1rem;
    }

    .newsletter-content h2 {
        font-size: 1.3rem;
    }

    .newsletter-content>p {
        font-size: 0.95rem;
    }

    .newsletter-input,
    .newsletter-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}