/* 
 * newsletter.css
 * Styles for newsletter signup section
 */

/* Newsletter Section with enhanced form styling */
.newsletter-section {
    padding: 60px 0;
    background-color: #f1f8ff;
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-box h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-bottom: 20px;
    color: #003366;
}

.newsletter-box p {
    margin-bottom: 25px;
    color: #666;
}

.newsletter-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-top: 20px;
    margin-bottom: 30px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.newsletter-form input {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 250px;
    flex: 1 1 250px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    min-width: 0; /* Prevents flexbox issues in some browsers */
}

.newsletter-form button {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    height: 50px;
    margin-left: -1px;
}

@media (min-width: 576px) {
    .newsletter-form input {
        border-radius: 5px 0 0 5px;
        margin-bottom: 0;
    }
    
    .newsletter-form button {
        border-radius: 0 5px 5px 0;
    }
}

.newsletter-form button:hover {
    background-color: #e65c00;
}

.newsletter-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.newsletter-cta p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.newsletter-button {
    display: inline-block;
    background-color: #003366;
    color: white;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
    -webkit-transition: background-color 0.3s, -webkit-transform 0.2s;
    transition: background-color 0.3s, -webkit-transform 0.2s;
    transition: background-color 0.3s, transform 0.2s;
    transition: background-color 0.3s, transform 0.2s, -webkit-transform 0.2s;
    font-size: 1rem;
}

.newsletter-button:hover {
    background-color: #00264d;
    color: white;
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .newsletter-box {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .newsletter-form {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 5px;
        margin: 0 0 10px 0;
    }
}

@media (max-width: 375px) {
    .newsletter-box {
        padding: 20px 15px;
    }
}

/* For print */
@media print {
    .newsletter-section {
        display: none !important;
    }
}