/* newsletter.css - blog digest signup band (apicalerp.com)
 * Self-contained; loaded only where the newsletter form appears. No shared
 * design-system version bump required. Brand: indigo #322D7F, orange #F97216. */

.newsletter-signup {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 24px;
}

.newsletter-inner {
    background: linear-gradient(135deg, #322D7F 0%, #3f3aa0 100%);
    border-radius: 18px;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    box-shadow: 0 18px 40px rgba(50, 45, 127, 0.22);
}

.newsletter-inner h2 {
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.25;
    margin: 0 0 10px;
}

.newsletter-inner h2 .nl-accent { color: #F97216; }

.newsletter-inner p.nl-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0 auto 26px;
    line-height: 1.55;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1 1 260px;
    min-width: 0;
    padding: 14px 18px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    color: #1e1b3a;
    background: #fff;
    outline: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: #F97216;
    box-shadow: 0 0 0 3px rgba(249, 114, 22, 0.25);
}

.newsletter-form button {
    flex: 0 0 auto;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: #F97216;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.newsletter-form button:hover { background: #e0640d; transform: translateY(-1px); }
.newsletter-form button:disabled { opacity: 0.65; cursor: default; transform: none; }

.newsletter-privacy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    margin: 16px auto 0;
    max-width: 480px;
}

.newsletter-privacy a { color: rgba(255, 255, 255, 0.92); text-decoration: underline; }

.nl-msg {
    display: none;
    margin: 16px auto 0;
    max-width: 480px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.nl-msg.error   { display: block; background: #fde8e8; color: #b42318; }
.nl-msg.success { display: block; background: #e7f6ee; color: #1FA363; }

@media (max-width: 560px) {
    .newsletter-inner { padding: 36px 22px; }
    .newsletter-inner h2 { font-size: 1.4rem; }
    .newsletter-form button { flex: 1 1 100%; }
}

/* ---- Footer newsletter strip (injected site-wide by apical-events.js) ----
 * Self-contained card so it reads correctly on any footer background. */
.footer-newsletter {
    max-width: 1200px;
    margin: 0 auto 34px;
    padding: 26px 30px;
    background: linear-gradient(135deg, #322D7F 0%, #3f3aa0 100%);
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-newsletter .fnl-copy { flex: 1 1 300px; min-width: 0; }
.footer-newsletter .fnl-copy h3 {
    color: #fff;
    font-size: 1.18rem;
    margin: 0 0 4px;
    line-height: 1.3;
}
.footer-newsletter .fnl-copy h3 .nl-accent { color: #F97216; }
.footer-newsletter .fnl-copy p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

.footer-newsletter form {
    flex: 1 1 320px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.footer-newsletter input[type="email"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 9px;
    font-size: 0.95rem;
    color: #1e1b3a;
    background: #fff;
    outline: none;
}
.footer-newsletter input[type="email"]:focus {
    border-color: #F97216;
    box-shadow: 0 0 0 3px rgba(249, 114, 22, 0.25);
}
.footer-newsletter button {
    flex: 0 0 auto;
    padding: 12px 24px;
    border: none;
    border-radius: 9px;
    background: #F97216;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.footer-newsletter button:hover { background: #e0640d; transform: translateY(-1px); }
.footer-newsletter button:disabled { opacity: 0.65; cursor: default; transform: none; }

.footer-newsletter .fnl-msg {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.footer-newsletter .fnl-msg.error   { color: #ffd9d4; }
.footer-newsletter .fnl-msg.success { color: #c8f2da; }

.footer-newsletter .fnl-legal {
    flex: 1 1 100%;
    margin: 2px 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}
.footer-newsletter .fnl-legal a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }

/* We show our own reCAPTCHA attribution text, so the floating badge can hide
 * (also avoids overlap with the WhatsApp float). Google allows this when the
 * attribution text is shown near the form. */
.grecaptcha-badge { visibility: hidden !important; }

@media (max-width: 720px) {
    .footer-newsletter { flex-direction: column; align-items: stretch; text-align: left; }
    .footer-newsletter button { flex: 1 1 100%; }
}
