/**
 * Estilos Públicos (Frontend)
 * 
 * @package NeresWhatsAppForms
 * @author Anderson Barbosa <https://abdesignerpro.com.br/>
 * @since 3.0.0
 */

/* Formulário de Newsletter */
.newsletter-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 2px 40px rgba(0, 30, 75, 0.08);
    display: flex;
    align-items: center;
    gap: 40px;
    border: 1px solid rgba(198, 220, 255, 0.3);
}

.newsletter-text {
    flex-shrink: 0;
}

.newsletter-text h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #001e4b;
    line-height: 1.3;
}

.newsletter-text p {
    margin: 0;
    font-size: 15px;
    color: #7a7a7a;
    font-weight: 400;
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 12px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px !important;
    border: 1.5px solid #c6dcff !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    background: #FFFFFF !important;
    color: #001e4b !important;
    min-width: 0 !important;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #0047b1;
    box-shadow: 0 0 0 3px rgba(0, 71, 177, 0.08);
}

.newsletter-form input::placeholder {
    color: #7a7a7a;
    opacity: 0.7;
}

.newsletter-btn {
    flex-shrink: 0 !important;
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #0047b1 0%, #001e4b 100%);
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    align-items: center !important;
    gap: 8px;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 71, 177, 0.3);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-message {
    margin-top: 20px;
    padding: 16px 24px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message.success {
    background: #e8f4fd;
    color: #0047b1;
    border: 1.5px solid #c6dcff;
}

.newsletter-message.error {
    background: #fff0f0;
    color: #c41e3a;
    border: 1.5px solid #ffcdd2;
}

/* Responsivo */
@media (max-width: 968px) {
    .newsletter-content {
        flex-direction: column;
        gap: 30px;
        padding: 35px 30px;
        text-align: center;
    }

    
    .newsletter-form input,
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .newsletter-btn {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .newsletter-wrapper {
        padding: 40px 15px;
    }
    
    .newsletter-content {
        padding: 30px 20px;
    }
    
    .newsletter-text h3 {
        font-size: 20px;
    }
    
    .newsletter-text p {
        font-size: 14px;
    }
}

@media (max-width: 530px) {
    .newsletter-form {
        width: 100%;
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100% !important;
    }
}

/* ============================================
   FORMULÁRIO SIDEBAR - NEWSLETTER COMPACTO
   ============================================ */

.nlc-sidebar-wrapper {
    width: 100% !important;
    margin: 0 0 25px 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
}

.nlc-sidebar-wrapper * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nlc-sidebar-container {
    background: linear-gradient(135deg, #001e4b 0%, #0047b1 100%) !important;
    border-radius: 12px !important;
    padding: 25px 20px !important;
    box-shadow: 0 4px 20px rgba(0, 30, 75, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.nlc-sidebar-header {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
}

.nlc-sidebar-icon {
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    flex-shrink: 0 !important;
}

.nlc-sidebar-icon i {
    font-size: 30px !important;
    color: #25D366 !important;
}

.nlc-sidebar-text-group {
    flex: 1 !important;
    text-align: left !important;
}

.nlc-sidebar-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
}

.nlc-sidebar-description {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.nlc-sidebar-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.nlc-sidebar-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}

.nlc-sidebar-input-group {
    width: 100% !important;
}

.nlc-sidebar-input {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.nlc-sidebar-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.nlc-sidebar-input:focus {
    outline: none !important;
    border-color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.nlc-sidebar-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    background: #FFFFFF !important;
    color: #001e4b !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 8px !important;
    font-family: inherit !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.nlc-sidebar-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.nlc-sidebar-btn:active {
    transform: translateY(0) !important;
}

.nlc-sidebar-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.nlc-sidebar-btn-icon {
    font-size: 18px !important;
}

.nlc-sidebar-btn-loading {
    font-size: 16px !important;
}

.nlc-sidebar-message {
    margin-top: 15px !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

.nlc-sidebar-message.success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.nlc-sidebar-message.error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Responsivo - Sidebar */
@media (max-width: 768px) {
    .nlc-sidebar-container {
        padding: 20px 16px !important;
    }
    
    .nlc-sidebar-row {
        grid-template-columns: 1fr !important;
    }
    
    .nlc-sidebar-icon {
        width: 50px !important;
        height: 50px !important;
    }
    
    .nlc-sidebar-icon i {
        font-size: 24px !important;
    }
    
    .nlc-sidebar-title {
        font-size: 20px !important;
    }
    
    .nlc-sidebar-description {
        font-size: 13px !important;
    }
    
    .nlc-sidebar-input {
        font-size: 14px !important;
        padding: 12px 14px !important;
    }
    
    .nlc-sidebar-btn {
        font-size: 14px !important;
        padding: 12px 18px !important;
    }
}
