/* --- Variáveis e Reset Básico --- */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --font-text: 'Roboto', sans-serif;
    --font-button: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-text);
    line-height: 1.6;
    overflow: hidden;
}

/* --- Video Background --- */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
}
.video-background-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Botão Glow (Efeito e Aparência Base) --- */
.glow-on-hover {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 0;
    font-family: var(--font-button);
    text-align: center;
}
.glow-on-hover::before {
    content: '';
    background: linear-gradient(45deg, #e9a5a5, #b8c1c0, #65c0e0, #aea2db, #81c1d9, #e9a5a5);
    position: absolute;
    width: 80%;
    left: 10%;
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    animation: glowing 14s linear infinite;
    opacity: 0.90; /* Mantido o opacity original do brilho */
}

/* MODIFICAÇÃO 1: Fundo do botão com opacidade e blur */
.glow-on-hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* Alterado de var(--color-white) para rgba para incluir opacidade */
    background: rgba(255, 255, 255, 0.75);
    /* Adicionado backdrop-filter para o efeito de blur no conteúdo atrás */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Para compatibilidade com Safari */
    left: 0;
    top: 0;
    z-index: -1;
    border-radius: inherit;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* --- LAYOUT MOBILE (Estilos Base) --- */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* Largura do botão */
    max-width: 450px; /* Max-width do botão */
    height: 44px;
    border-radius: 22px;
    color: var(--color-black);
    font-size: 15px;
    font-weight: 500;
    z-index: 1000;
}
.whatsapp-button::before {
    height: 25px;
    top: calc(100% - 20px);
    border-radius: 15px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 800;
}

/* MODIFICAÇÃO 2: Fundo do modal com opacidade e blur */
.modal-content {
    position: fixed;
    bottom: 74px; /* 20px (botão do fim) + 44px (altura botão) + 10px (espaço) */
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* AJUSTADO: Mesma largura do botão */
    max-width: 450px; /* AJUSTADO: Mesma max-width do botão */
    /* Alterado de var(--color-white) para rgba para incluir opacidade */
    background-color: rgba(255, 255, 255, 0.75);
    /* Adicionado backdrop-filter para o efeito de blur no conteúdo atrás */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Para compatibilidade com Safari */
    border-radius: 22px;
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: calc(100vh - 94px); /* 74px (abaixo) + 20px (respiro no topo da tela) */
    overflow-y: auto;
    z-index: 900;
}

.modal-logo {
    display: block;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.modal-description {
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-black);
    font-weight: 400;
}


/* --- LAYOUT DESKTOP --- */
@media (min-width: 768px) {
    .whatsapp-button {
        width: 300px;
        max-width: none;
        height: 48px;
        border-radius: 24px;
        left: auto;
        transform: none;
        right: 30px;
        bottom: 30px;
        font-size: 16px;
    }
    .whatsapp-button::before {
        height: 30px;
        top: calc(100% - 20px);
        border-radius: 20px;
    }

    .modal-overlay {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
        /* background-color: rgba(0,0,0,0.5); */ /* Mantido comentado conforme original */
    }

    /*
       As modificações de background-color e backdrop-filter feitas em .modal-content
       acima já se aplicam aqui, pois não são sobrescritas especificamente
       para o layout desktop.
    */
    .modal-content {
        position: static;
        transform: none;
        bottom: auto;
        left: auto;
        width: 90%;
        max-width: 600px;
        padding: 40px;
        max-height: 90vh;
        z-index: auto;
    }

    .modal-logo {
        max-width: 180px;
        margin-bottom: 25px;
    }

    .modal-description {
        font-size: 16px;
    }
}