/* ==========================================================================
   footer-newsletter.css
   --------------------------------------------------------------------------
   Additive only. Does not redeclare or override any existing footer class
   (site-footer-one, site-footer-one__top, footer-widget-one__*,
   site-footer__bottom, thm-btn, icon-envelope, etc.). Only styles the new
   .site-footer-one__newsletter block.

   This file assumes the footer already has a dark background applied via
   site-footer-one (typical for this kind of theme). The newsletter strip
   deliberately does NOT set its own background-color, so it automatically
   matches whatever background the existing footer already uses — light or
   dark — with no risk of clashing.

   If your theme exposes CSS custom properties for its palette/fonts, swap
   the --nl-* fallback values below for the real var() references (e.g.
   var(--thm-base)) so this section inherits your exact brand colour with
   no guesswork.
   ========================================================================== */

.site-footer-one__newsletter {
    --nl-accent: var(--thm-base, #0e8a5f);
    --nl-text: rgba(255, 255, 255, 0.75);
    --nl-heading: #ffffff;
    --nl-border: rgba(255, 255, 255, 0.15);
    border-top: 1px solid var(--nl-border);
    padding: 40px 0 10px;
    margin-top: 20px;
}

.site-footer-one__newsletter-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-one__newsletter-text {
    flex: 1 1 380px;
}

/* Reuses the theme's own widget-title class for the heading so font,
   size, weight and color match the Gallery/Latest News/Twitter titles
   exactly — no new heading style is introduced. */
.site-footer-one__newsletter-text .footer-widget-one__title {
    margin-bottom: 8px;
}

.site-footer-one__newsletter-desc {
    color: var(--nl-text);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    max-width: 480px;
}

.site-footer-one__newsletter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px;
    flex: 0 1 460px;
}

.site-footer-one__newsletter-field {
    position: relative;
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--nl-border);
    border-radius: 4px;
    padding: 0 16px;
}

.site-footer-one__newsletter-field .icon-envelope {
    color: var(--nl-accent);
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.site-footer-one__newsletter-field input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    height: 50px;
    font-size: 14px;
}

.site-footer-one__newsletter-field input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.site-footer-one__newsletter-field input[type="email"]:focus {
    outline: none;
}

.site-footer-one__newsletter-field.has-error {
    border-color: #e4544a;
}

.site-footer-one__newsletter-btn {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 28px;
    white-space: nowrap;
}

.site-footer-one__newsletter-btn[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Honeypot — visually and functionally hidden from real visitors while
   staying present (and fillable by bots) in the DOM. Never use
   display:none/visibility:hidden alone here, since some bots skip those. */
.site-footer-one__newsletter-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.site-footer-one__newsletter-message {
    margin: 14px 0 0;
    font-size: 13px;
    min-height: 18px;
}

.site-footer-one__newsletter-message.is-success {
    color: #6fd39a;
}

.site-footer-one__newsletter-message.is-error {
    color: #f19a92;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Responsive — matches the theme's existing Bootstrap breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .site-footer-one__newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer-one__newsletter-form {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .site-footer-one__newsletter-form {
        flex-direction: column;
    }

    .site-footer-one__newsletter-btn {
        width: 100%;
        text-align: center;
    }
}
