/* ==============================================
   BLOG NEWSLETTER — improx-group/assets/css/blog/newsletter.css
   ============================================== */

.blog-newsletter {
    padding: var(--section-padding-sm);
    background: linear-gradient(135deg, #EEF4FF 0%, #E8F1FF 100%);
}

.newsletter-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-6);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-4); /* Responsive padding for mobile */
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
    width: 100%;
    box-sizing: border-box;
}

.newsletter-text h2 {
    font-size: var(--font-size-2xl);
    color: var(--color-navy);
    margin-bottom: var(--space-2);
}

.newsletter-text p {
    color: var(--color-muted);
    font-size: var(--font-size-base);
}

.newsletter-form-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 420px; /* Removed fixed min-width to prevent overflow */
}

.newsletter-form-wrap form {
    display: flex;
    flex-direction: column; /* Stack input and button on small mobile */
    gap: var(--space-2);
    width: 100%;
}

.newsletter-form-wrap input[type="email"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

.newsletter-form-wrap input[type="email"]:focus {
    border-color: var(--color-primary);
}

.newsletter-form-wrap button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-base);
}

.newsletter-form-wrap button[type="submit"]:hover {
    background: var(--color-primary-dark);
}

.newsletter-form-wrap .form-note {
    font-size: var(--font-size-xs);
    color: var(--color-muted);
}

/* Screen widths larger than small mobile (480px+) */
@media (min-width: 480px) {
    .newsletter-form-wrap form {
        flex-direction: row; /* Put input and button side-by-side */
    }

    .newsletter-form-wrap input[type="email"] {
        flex: 1;
    }

    .newsletter-form-wrap button[type="submit"] {
        width: auto;
    }
}

/* Tablet & Desktop Adjustments (992px+) */
@media (min-width: 992px) {
    .newsletter-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: var(--space-10);
        padding: var(--space-10) var(--space-12);
    }
}