/* =========================================================
   Variáveis CSS
   Use estas variáveis para manter a consistência e facilitar a manutenção.
   ========================================================= */
:root {
    /* Cores Primárias */
    --primary-blue: #007bff;
    --dark-blue: #0056b3;
    --accent-orange: #f97316;
    --dark-orange: #ea580c;

    /* Cores de Texto e Fundo */
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #475569;
    --background-light: #f8fafc;
    --background-super-light: #f7fafd; /* Para o chat */
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cfd8dc; /* Para bordas de input do chat */
    --gray-400: #e0e0e0; /* Para bordas do chat */
    --gray-500: #888; /* Para ack do chat */
    --light-blue-chat: #e3f2fd;
    --whatsapp-green: #25d366; /* Exemplo, se for usar em algum lugar */

    /* Fontes */
    --font-jost: 'Jost', sans-serif;
    --font-manrope: 'Manrope', sans-serif;

    /* Espaçamentos e Sombras */
    --padding-small: 8px;
    --padding-medium: 12px;
    --padding-large: 16px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 60px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 15px rgba(var(--accent-orange), 0.3);
    --shadow-lg: 0 6px 20px rgba(var(--accent-orange), 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   Reset e Estilos Base
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-jost);
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Remover margin-top para o chat mobile, se for o caso de algum conflito */
    margin-top: 0 !important; 
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xxl);
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    border-radius: 2px;
}

/* Botões CTA (Call to Action) */
.cta-button {
    background: linear-gradient(45deg, var(--accent-orange), var(--dark-orange));
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.button-icon {
    transition: transform 0.3s ease;
}

.cta-button:hover .button-icon,
.hero-cta-button:hover .button-icon {
    transform: translateX(3px);
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero_background_v2.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49%, var(--background-light) 50%);
    z-index: 2;
}

/* Navegação */
.navbar {
    position: relative;
    z-index: 10;
    padding: 20px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Conteúdo Hero */
.hero-content {
    position: relative;
    z-index: 10;
    padding: var(--spacing-xxl) 0 120px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(45deg, var(--white), var(--gray-100));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.hero-cta-button {
    background: linear-gradient(45deg, var(--accent-orange), var(--dark-orange));
    color: var(--white);
    padding: var(--padding-large) var(--spacing-xl);
    border-radius: 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
}

/* Mockup do Chat */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.chat-interface {
    background: #e5f3f0;
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    min-height: 400px;
    position: relative;
}

.chat-header { /* Este é o header do mockup, não confundir com o header do widget real */
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #1f2937;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
}

.chat-message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.user-message {
    background: var(--white);
    color: #1f2937;
    margin-right: auto;
    border-bottom-left-radius: 6px;
}

.agent-message {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: 15px;
}

.chat-option {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--padding-medium);
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.chat-option:hover {
    background: #5b21b6;
}

.chat-transfer {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
    font-style: italic;
}

.agent-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.agent-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    flex-shrink: 0;
}

.agent-text {
    flex: 1;
}

/* =========================================================
   Seção de Empresas
   ========================================================= */
.companies-section {
    padding: 80px 0;
    background: var(--background-light);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.company-logo {
    max-height: 60px;
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.company-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* =========================================================
   Seção de Recursos (Features)
   ========================================================= */
.features-section {
    padding: 100px 0;
    background: var(--white);
}

.feature-item {
    margin-bottom: 100px;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-content.reverse {
    direction: rtl; /* Inverte a ordem visual */
}

.feature-content.reverse > * {
    direction: ltr; /* Garante que o conteúdo dentro não seja afetado */
}

.feature-category {
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.feature-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.feature-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.feature-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-badge {
    background: var(--gray-100);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.feature-image {
    text-align: center;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-100);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* =========================================================
   Seção Outros Recursos
   ========================================================= */
.other-resources-section {
    padding: 100px 0;
    background: var(--background-light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.resource-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* =========================================================
   Seção CTA Final
   ========================================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Usando uma imagem SVG em base64 para o padrão de fundo */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>') no-repeat;
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button.large {
    font-size: 1.2rem;
    padding: 18px 36px;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white); /* Garante que o texto de contato seja branco */
}

.contact-info p {
    margin: 0;
    font-size: 16px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--white);
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* =========================================================
   Footer
   ========================================================= */
.footer-section {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Estilos do Widget de Chat (originalmente em webchat-widget-1...)
   Consolidado aqui para organização e possível sobreposição.
   ========================================================= */

#channel-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

#channel-chat-widget.hide {
    opacity: 0;
    pointer-events: none;
}

#channel-chat-button {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

#channel-chat-button:hover {
    transform: scale(1.1);
}

#channel-chat-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    padding: 10px;
}

#channel-chat-container {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 500px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    flex-direction: column;
    transition: all 0.3s;
    z-index: 9998;
}

#channel-chat-container.show {
    display: flex;
}

#channel-chat-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#channel-chat-header h3 {
    margin: 0;
    font-size: 16px;
}

#channel-chat-close,
#channel-chat-clear {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
}

#channel-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--background-super-light);
}

#channel-chat-input-area {
    display: flex;
    padding: 12px;
    background: var(--background-super-light);
    border-top: 1px solid var(--gray-400);
    align-items: center;
}

#channel-chat-attach,
#channel-chat-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--primary-blue);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
}

#channel-chat-attach:hover,
#channel-chat-send:hover {
    background-color: rgba(var(--primary-blue), 0.1);
}

#channel-chat-input {
    flex: 1;
    padding: var(--padding-small);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    margin-right: var(--spacing-sm);
}

.mdi {
    font-size: 24px;
    line-height: 1;
}

.channel-message {
    max-width: 75%;
    margin-bottom: var(--spacing-sm);
    padding: var(--padding-small) var(--padding-medium);
    border-radius: 16px;
    word-break: break-word;
    font-size: 14px;
}

.channel-sent {
    background: var(--light-blue-chat);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.channel-received {
    background: var(--white);
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--light-blue-chat);
    box-shadow: 0 1px 2px rgba(var(--primary-blue),0.06);
}

.channel-ack {
    font-size: 10px;
    color: var(--gray-500);
    margin-left: var(--spacing-sm);
}

.channel-media {
    max-width: 200px;
    margin: 4px 0;
}

.channel-media img,
.channel-media video {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
}

.channel-media audio {
    width: 100%;
}

.channel-media-document {
    display: flex;
    align-items: center;
    padding: var(--padding-small);
    background: #f5f5f5; /* Pode ser uma variável também */
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.channel-media-document i {
    margin-right: var(--spacing-sm);
    font-size: 24px;
}

.channel-media-caption {
    margin-top: 4px;
    font-size: 13px;
    color: #666; /* Pode ser uma variável também */
    padding: 4px 8px;
    background: #f5f5f5; /* Pode ser uma variável também */
    border-radius: 4px;
}

/* =========================================================
   Animações
   ========================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.resource-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Atrasos individuais para animação em cascata */
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.resource-card:nth-child(2) { animation-delay: 0.05s; }
.resource-card:nth-child(3) { animation-delay: 0.1s; }
.resource-card:nth-child(4) { animation-delay: 0.15s; }
.resource-card:nth-child(5) { animation-delay: 0.2s; }
.resource-card:nth-child(6) { animation-delay: 0.25s; }
.resource-card:nth-child(7) { animation-delay: 0.3s; }
.resource-card:nth-child(8) { animation-delay: 0.35s; }
.resource-card:nth-child(9) { animation-delay: 0.4s; }


/* =========================================================
   Design Responsivo (Media Queries)
   Organizado do maior para o menor para facilitar a sobreposição.
   ========================================================= */

/* Para telas até 1024px (Tablets em modo paisagem, laptops menores) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-content.reverse {
        direction: ltr; /* Desfaz a inversão em telas menores para melhor fluxo */
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }
}

/* Para telas até 768px (Tablets em modo retrato, smartphones maiores) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas para empresas */
    }
    
    .chat-mockup {
        transform: scale(0.9);
    }

    /* Correções para o widget de chat em telas menores que 768px */
    #channel-chat-container {
        max-height: 100dvh !important;
        height: 100dvh !important;
        overflow-y: auto;
    }

    #channel-chat-header {
        position: sticky !important;
        top: 0;
        z-index: 9999;
        background-color: var(--primary-blue);
        color: var(--white);
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
    }

    /* A classe 'open' deve ser controlada pelo JS, mas garantimos que o CSS suporte */
    .chatbox.open { /* Se o JS do chat usa essa classe */
        bottom: 0 !important;
        top: auto !important;
        transform: translateY(0) !important;
        height: 100dvh !important;
    }

    /* Ajuste para input do chat, se necessário para evitar sobreposição */
    /* #channel-chat-input-area {
        padding-bottom: 80px;
    } */

    #channel-chat-widget {
        bottom: 20px !important;
        right: 20px !important;
        z-index: 9999 !important;
    }
}

/* Para telas até 480px (Smartphones) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 40px 0 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .feature-title {
        font-size: 1.6rem;
    }
    
    .cta-title {
        font-size: 1.4rem;
    }
    
    .chat-interface {
        width: 250px;
    }
    
    .companies-grid {
        grid-template-columns: 1fr; /* 1 coluna para empresas em telas muito pequenas */
    }

    /* Regras específicas para o widget de chat em mobile total */
    #channel-chat-container {
        width: 100%;
        height: 100vh; /* Use 100vh em vez de 100dvh se houver problemas de compatibilidade */
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    #channel-chat-widget {
        width: 86px; /* Tamanho do botão flutuante */
        height: 86px;
        right: 20px;
        bottom: 20px;
    }
    #channel-chat-button {
        width: 86px;
        height: 86px;
    }

    /* Ocultar o botão flutuante se o chat container estiver aberto */
    #channel-chat-widget.hide {
        display: none; /* Garante que o botão flutuante suma completamente */
    }
}

/* Pequeno ajuste para a barra do chat do Kasperky, se ela reaparecer (ideal é remover) */
/* @media (max-width: 480px) {
  #channel-chat-header,
  .webchat__header,
  .chat-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }

  #channel-chat-messages,
  .webchat__chat {
    margin-top: 64px;
  }
} */
/* Efeito de Zoom para Imagens nos Cards de Recurso */
.features-grid .feature-card img {
    transition: transform 0.3s ease-in-out; /* Adiciona uma transição suave */
}

.features-grid .feature-card img:hover {
    transform: scale(1.05); /* Aplica um zoom de 5% ao passar o mouse */
}
/* Estilos do Modal - VERSÃO BÁSICA E SEGURA */
.modal {
    display: none; /* ESCONDIDO POR PADRÃO - NÃO INTERCEPTA CLIQUES */
    position: fixed;
    inset: 0; /* Cobre toda a viewport */
    z-index: 10000; /* Alto z-index */
    background-color: rgba(0,0,0,0.7); /* Fundo escuro transparente */
    overflow-y: auto; /* Permite rolagem */
    align-items: center; /* Centraliza conteúdo */
    justify-content: center;
}

.modal.show {
    display: flex; /* MOSTRA O MODAL */
    opacity: 1; /* Para transição de opacidade, se desejado */
    transition: opacity 0.3s ease-in-out; /* Transição de fade */
}

.modal-content {
    background-color: #fefefe;
    margin: 20px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 90%;
    box-sizing: border-box;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.close-button {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
    background-color: transparent;
    border-radius: 50%;
    padding: 5px;
    line-height: 1;
    text-align: center;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    background-color: rgba(0,0,0,0.05);
}

/* Media Queries para Responsividade do Modal */
@media (max-width: 768px) {
    .modal {
        background-color: rgba(0,0,0,0.7); /* Fundo escuro em mobile */
        align-items: center; /* Centraliza */
        justify-content: center;
        padding: 0;
        margin: 0;
        height: 100vh;
        height: 100dvh;
        width: 100vw;
    }
    .modal-content {
        margin: 20px; /* Mantém margem para o card */
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.4);
        width: 90vw;
        max-width: 600px;
        height: auto; /* Altura automática */
        max-height: 90vh;
        max-height: 90dvh;
        padding: 20px;
        background-color: #fff; /* Fundo branco no conteúdo */
    }
    .close-button {
        position: absolute; /* Volta a ser absoluto dentro do modal-content */
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        background-color: transparent; /* Certifica que o botão X é transparente */
        box-shadow: none;
        color: #aaa; /* Volta à cor padrão */
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 15px;
        margin: 10px;
    }
    .close-button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
}

/* Regras para o body quando o modal estiver aberto (para evitar rolagem de fundo) */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* Ocultar outros elementos quando o modal está aberto */
#channel-chat-widget.modal-open-hide,
.whatsapp-float.modal-open-hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important; /* MUITO IMPORTANTE: Desabilita cliques quando oculto */
}

/* REGRA PARA OCULTAR O CHAT WIDGET E O BOTÃO FLUTUANTE QUANDO O MODAL DE CADASTRO ESTÁ ABERTO */
#channel-chat-widget.modal-open-hide,
.whatsapp-float.modal-open-hide {
    display: none !important; /* Esconde completamente */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important; /* IMPEDE QUAISQUER CLIQUES NESSES ELEMENTOS */
}
/* Regras para o body quando o modal estiver aberto (para evitar rolagem de fundo) */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* REGRA CRÍTICA PARA OCULTAR O CHAT WIDGET E O BOTÃO FLUTUANTE QUANDO O MODAL DE CADASTRO ESTÁ ABERTO */
/* Assegura que nada esteja sobrepondo o modal transparentemente */
#channel-chat-widget.modal-open-hide,
.whatsapp-float.modal-open-hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important; /* IMPEDE QUAISQUER CLIQUES NESSES ELEMENTOS */
}

/* Media Queries para Responsividade do Modal - AGORA FORÇANDO FULLSCREEN MAIS AGRESSIVAMENTE */
@media (max-width: 768px) { /* Tablets e smartphones */
    .modal {
        background-color: #fff; /* Fundo branco em mobile full-screen */
        align-items: flex-start; /* Alinha conteúdo ao topo em mobile */
        padding-top: 0;
        overflow-y: auto; /* Garante rolagem do modal inteiro se necessário */
    }
    .modal-content {
        margin: 0; /* Remove margem */
        border-radius: 0; /* Remove bordas arredondadas */
        box-shadow: none; /* Remove sombra */
        width: 100vw; /* Ocupa toda a largura da viewport */
        max-width: 100vw;
        height: 100vh; /* Ocupa toda a altura da viewport */
        height: 100dvh; /* Usa altura dinâmica */
        max-height: 100vh; /* Limita altura */
        max-height: 100dvh; /* Usa altura dinâmica */
        padding: 20px; /* Padding interno menor */
        transform: translateY(0); /* Sem slide de entrada em mobile */
        transition: none; /* Sem transição de transform em mobile */
    }
    .modal.show .modal-content {
        transform: translateY(0); /* Garante posição padrão */
    }

    .close-button {
        position: fixed; /* Fixa o botão de fechar no topo direito da tela */
        top: 15px;
        right: 15px;
        z-index: 10001; /* Garante que fique acima de tudo */
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        color: #333; /* Cor mais escura para o X */
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) { /* Smartphones pequenos */
    .modal-content {
        padding: 15px;
    }
    .close-button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
}

/* Regras para o body quando o modal estiver aberto (para evitar rolagem de fundo) */
body.modal-open {
    overflow: hidden !important; /* Força que a página de fundo não role */
    position: fixed !important; /* Fixa o body para evitar 'shift' no layout */
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

/* REGRA CRÍTICA PARA OCULTAR O CHAT WIDGET QUANDO O MODAL DE CADASTRO ESTÁ ABERTO */
/* ASSUMINDO QUE SEU WIDGET DE CHAT TEM UM ID OU CLASSE QUE PODEMOS ESCONDER */
/* Exemplo: #channel-chat-widget é o ID do seu webchat */
#channel-chat-widget.modal-open-hide {
    display: none !important; /* Esconde o chat widget completamente */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* OCULTAR O BOTÃO FLUTUANTE DO WHATSAPP QUANDO O MODAL DE CADASTRO ESTÁ ABERTO */
/* Você tem um a.whatsapp-float no seu cadastro.html, talvez no index.html também */
.whatsapp-float.modal-open-hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Regras para o body quando o modal estiver aberto (para evitar rolagem de fundo) */
body.modal-open {
    overflow: hidden; /* Evita que a página de fundo role */
    position: fixed; /* Fixa o body para evitar 'shift' no layout */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Media Queries para Responsividade do Modal - Priorizando Fullscreen em Mobile */
@media (max-width: 768px) { /* Tablets e smartphones */
    .modal {
        background-color: #fff; /* Fundo branco em mobile full-screen */
        height: 100vh; /* Ocupa toda a altura da viewport */
        height: 100dvh; /* Preferência por altura dinâmica */
        align-items: flex-start; /* Alinha conteúdo ao topo em mobile */
        padding-top: 0; /* Remove padding superior */
    }
    .modal-content {
        margin: 0; /* Remove margem */
        border-radius: 0; /* Remove bordas arredondadas */
        box-shadow: none; /* Remove sombra */
        width: 100vw; /* Ocupa toda a largura da viewport */
        max-width: 100vw;
        height: 100vh; /* Ocupa toda a altura da viewport */
        height: 100dvh; /* Preferência por altura dinâmica */
        max-height: 100vh; /* Ocupa toda a altura da viewport */
        max-height: 100dvh; /* Preferência por altura dinâmica */
        padding: 20px; /* Padding interno menor */
        transform: translateY(0); /* Sem efeito de slide, aparece direto */
        transition: none; /* Sem transição de transform */
    }
    .modal.show .modal-content {
        transform: translateY(0); /* Garante que não haja offset */
    }

    .close-button {
        position: fixed; /* Fixa o botão de fechar no topo direito da tela */
        top: 15px;
        right: 15px;
        z-index: 10001; /* Garante que fique acima de tudo */
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        color: #333; /* Cor mais escura para o X */
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 480px) { /* Smartphones pequenos */
    .modal-content {
        padding: 15px;
    }
    .close-button {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 22px;
    }
}

/* Regras para o body quando o modal estiver aberto (para evitar rolagem de fundo) */
body.modal-open {
    overflow: hidden; /* Evita que a página de fundo role */
    position: fixed; /* Fixa o body para evitar 'shift' no layout */
    width: 100%;
    height: 100%;
}
}

/* Estilos do Formulário dentro do Modal (reusando e adaptando de script.js) */
.cadastro-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaçamento entre os grupos de formulário */
}

.cadastro-form h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 10px;
    text-align: center;
}

.cadastro-form p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 20px;
    text-align: center;
}

.cadastro-form .form-group {
    margin-bottom: 0; /* Resetar margem padrão se houver */
}

.cadastro-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.cadastro-form input[type="text"],
.cadastro-form input[type="email"],
.cadastro-form input[type="password"],
.cadastro-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd8dc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Essencial para largura correta */
}

.cadastro-form .password-container {
    position: relative;
    display: flex; /* Para alinhar o input e o botão */
    align-items: center;
}

.cadastro-form .password-container input {
    flex-grow: 1; /* Input ocupa o espaço restante */
    padding-right: 40px; /* Espaço para o botão do olho */
}

.cadastro-form .password-container button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    padding: 0;
    line-height: 1; /* Garante alinhamento vertical do olho */
}

.cadastro-form .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.cadastro-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.cadastro-form .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: #64748b;
    display: inline; /* Para que o label fique ao lado do checkbox */
}

.cadastro-form .checkbox-group a {
    color: #2196F3;
    text-decoration: none;
}

.cadastro-form button[type="submit"] {
    background: linear-gradient(45deg, #f97316, #ea580c);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    width: 100%; /* Botão de submit ocupa 100% */
    margin-top: 20px;
}

.cadastro-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Responsividade para o modal */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    .cadastro-form h2 {
        font-size: 1.5rem;
    }
    .cadastro-form p {
        font-size: 0.9rem;
    }
}
/* =========================================================
   Estilos do Formulário do Modal (Copiados e adaptados do styles.css do cadastro.html)
   ========================================================= */

.modal-content h2 { /* Título dentro do modal */
    text-align: center;
    margin-bottom: 1rem;
    color: #075E54; /* Cor secundária, se desejar mudar para a cor principal do seu index.html */
    font-size: 1.8rem; /* Tamanho ajustado para o modal */
}

.modal-content p { /* Parágrafo de descrição no modal */
    text-align: center;
    margin-bottom: 2rem;
    color: #757575; /* Cor cinza escuro */
    font-size: 1rem; /* Tamanho ajustado para o modal */
}

.modern-form { /* Classe do seu formulário */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Espaçamento entre os grupos de formulário */
}

.modern-form .form-group {
    margin-bottom: 0; /* Ajuste para espaçamento consistente com gap */
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333333; /* Cor do texto padrão */
}

.modern-form input[type="text"],
.modern-form input[type="email"],
.modern-form input[type="password"],
.modern-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0; /* Cor de borda clara */
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease; /* Transição para foco */
    box-sizing: border-box; /* Essencial para largura correta */
}

.modern-form input:focus,
.modern-form select:focus {
    outline: none;
    border-color: #01b610; /* Cor primária */
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2); /* Sombra ao focar */
}

.password-input { /* Container para o campo de senha e botão de toggle */
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    flex-grow: 1;
    padding-right: 40px; /* Espaço para o botão do olho */
}

.password-input .toggle-password { /* Estilo do botão de toggle de senha */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #757575; /* Cor do ícone */
    font-size: 1.2rem; /* Tamanho do ícone */
    padding: 0;
    line-height: 1;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem; /* Margem acima do checkbox */
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0; /* Ajuste para o gap */
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: #757575;
    display: inline;
}

.checkbox-group a {
    color: #01b610; /* Cor primária */
    text-decoration: none;
}

.submit-button { /* Estilo do botão de submit do formulário */
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #f97316, #ea580c); /* Cor laranja do seu index.html */
    color: white;
    border: none;
    border-radius: 25px; /* Mais arredondado como os outros botões do index.html */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    margin-top: 20px; /* Margem acima do botão */
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
    /* background: linear-gradient(45deg, #ea580c, #f97316); se quiser mudar a cor no hover */
}

.submit-button span, .submit-button i {
    color: white; /* Garante que o texto e ícone no botão fiquem brancos */
}