/**
 * STYLES FOR: Newsletter Page (template-newsletter.css) - Image-Free Version
 */

/* ==========================================================================
   1. Design System (Copied from Homepage for Consistency)
   ========================================================================== */
:root {
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --color-primary: #E53935;
    --color-primary-dark: #C62828;
    --color-secondary: #1E88E5;
    --color-text-dark: #2c3e50;
    --color-text-light: #5a6a7a;
    --color-bg-light: #FFFFFF;
    --color-bg-alt: #F9FAFB;
    --color-border: #EAECEF;
    --section-padding: 6rem 0;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-headings); font-weight: 700; line-height: 1.2; margin: 0; color: var(--color-text-dark); }
h1 span, h2 span { color: var(--color-primary); }
p { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.7; color: var(--color-text-light); }
.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 1.25rem; }
.section-subtitle { text-align: center; margin-bottom: 3.5rem; max-width: 700px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }
.button { display: inline-block; padding: 14px 32px; font-size: 1rem; text-decoration: none; border-radius: 8px; transition: all 0.3s ease; font-weight: 600; cursor: pointer; text-align: center; border: 2px solid transparent; }
.primary-button { background-color: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.primary-button:hover { background-color: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.full-width-background { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* ==========================================================================
   2. Newsletter Page Specific Styles
   ========================================================================== */

/* --- Hero Section --- */
.newsletter-hero-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-alt);
    text-align: center;
}
.newsletter-hero-title {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
}
.newsletter-hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}
.newsletter-hero-form .newsletter-form {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    gap: 10px;
    align-items: center; /* ADD THIS LINE: This is the fix for the alignment */
}
.newsletter-hero-form .newsletter-input {
    flex-grow: 1;
    padding: 16px 22px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 1.1rem;
    font-family: var(--font-body);
}
.newsletter-hero-form .newsletter-submit {
    white-space: nowrap;
    font-size: 1.1rem;
    padding: 16px 32px;
}

/* --- Benefits Section --- */
.newsletter-benefits-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.benefit-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.benefit-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}
.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   3. Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    :root { --section-padding: 4rem 0; }
    .section-title { font-size: 2.2rem; }
    .newsletter-hero-title { font-size: 2.8rem; }
    .newsletter-hero-form .newsletter-form {
        flex-direction: column;
        align-items: stretch; /* On mobile, let them stretch to full width */
    }
    .newsletter-hero-form .newsletter-input,
    .newsletter-hero-form .newsletter-submit {
        width: 100%;
    }
}