/* =========================================================
   VEIC 2027 — NEWSLETTER SUBSCRIBE BAR
   File: assets/css/newsletter.css
   ========================================================= */

.veic-newsletter-bar{
    width: 100%;
    background: var(--veic-primary);
    padding: 22px 20px;
    box-sizing: border-box;
}

.veic-newsletter-inner{
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.veic-newsletter-text{
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--veic-white);
    font-family: 'Poppins', sans-serif;
    flex: 1 1 320px;
    min-width: 0;
}

.veic-newsletter-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--veic-accent);
    font-size: 18px;
}

.veic-newsletter-title{
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 3px;
}

.veic-newsletter-sub{
    font-weight: 400;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.veic-newsletter-form{
    display: flex;
    gap: 10px;
    flex: 1 1 380px;
    max-width: 460px;
}

.veic-newsletter-form input[type="email"]{
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 13.5px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.veic-newsletter-btn{
    flex: 0 0 auto;
    background: var(--veic-accent);
    color: var(--veic-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
    white-space: nowrap;
}

.veic-newsletter-btn:hover{
    background: var(--veic-white);
    transform: translateY(-2px);
}

.veic-newsletter-btn:disabled{
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.veic-newsletter-msg{
    flex-basis: 100%;
    font-size: 12.5px;
    font-family: 'Poppins', sans-serif;
    margin-top: 6px;
    display: none;
}

.veic-newsletter-msg.is-visible{ display: block; }
.veic-newsletter-msg.is-success{ color: var(--veic-accent); }
.veic-newsletter-msg.is-error{ color: #FFB4B4; }

/* Honeypot field — hidden from real users, visible to bots that fill every field */
.veic-newsletter-hp{
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet: keep row layout but let it wrap more comfortably */
@media (max-width: 991px){
    .veic-newsletter-bar{ padding: 20px 18px; }
    .veic-newsletter-inner{ gap: 16px; }
    .veic-newsletter-text{ flex: 1 1 260px; }
    .veic-newsletter-form{ flex: 1 1 300px; }
}

/* Mobile: stack everything vertically. Flex-basis values from the
   desktop row layout are reset to auto here — flex-basis follows
   whichever axis is "main", and switching to flex-direction:column
   would otherwise turn those width basis values into HEIGHT values,
   stretching the input/button into tall bars. */
@media (max-width: 600px){
    .veic-newsletter-inner{
        flex-direction: column;
        align-items: stretch;
    }
    .veic-newsletter-text{
        flex: 0 0 auto;
    }
    .veic-newsletter-form{
        flex: 0 0 auto;
        max-width: 100%;
        flex-direction: column;
    }
    .veic-newsletter-form input[type="email"]{
        width: 100%;
    }
    .veic-newsletter-btn{
        width: 100%;
    }
}

@media (max-width: 380px){
    .veic-newsletter-title{ font-size: 14px; }
    .veic-newsletter-sub{ font-size: 12px; }
}
