/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    /* Fundo claro */
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Logo */
.main-header {
    padding: 40px 0 20px;
    text-align: center;
}

.logo {
    max-width: 180px;
    height: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

/* Main Content */
.main-content {
    flex: 1;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container Centralizado do Ícone */
.icon-container {
    position: relative;
    width: 120px;
    /* Largura total do ícone */
    height: 120px;
    /* Altura total do ícone */
    margin: 30px auto;
    /* Margem superior/inferior e centralização horizontal */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* O Círculo Verde Teal */
.success-circle {
    width: 117px;
    height: 117px;
    background-color: rgb(5, 128, 121);
    /* Cor exata da referência (Teal) */
    border-radius: 50%;
    /* Torna o elemento um círculo */
    position: absolute;
    /* Posicionamento absoluto para ficar atrás do SVG */
    z-index: 1;
    /* Garante que fique na camada de trás */
    animation: pulse 3s infinite;
    /* Aplica a animação de pulso */
}

/* O Ícone SVG (Check Branco) */
.check-svg {
    width: 55px;
    /* Tamanho ajustado para caber no círculo */
    height: auto;
    /* Mantém a proporção */
    position: relative;
    /* Posicionamento relativo */
    z-index: 2;
    /* Garante que fique na camada da frente (sobre o círculo) */
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.1));
    /* Sombra sutil para destaque */
}

/* Animação de Pulso Harmonizada com a cor do círculo */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 128, 121, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(5, 128, 121, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(5, 128, 121, 0);
    }
}

/* Headlines */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: #111;
}

.subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #555;
    margin-bottom: 40px;
}

/* Email Box */
.email-box {
    background-color: #e8f5e9;
    /* Verde claro suave */
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.email-box.fallback {
    background-color: #e3f2fd;
    /* Azul claro suave para fallback */
    border-color: #bbdefb;
}

.email-highlight {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1.1rem;
    margin-top: 5px;
    display: block;
}

.email-instruction {
    font-size: 0.95rem;
    color: #444;
    margin-top: 10px;
}

/* Upsell Section (One Time Offer) */
.upsell-section {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.upsell-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e67e22;
    /* Laranja para destaque */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upsell-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 8px;
    max-width: 400px;
}

.upsell-btn {
    display: inline-block;
    background-color: #e67e22;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.upsell-btn:hover {
    background-color: #d35400;
}

/* WhatsApp Flutuante */
.whatsapp-float-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    /* Contexto para elementos internos se houver */
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon-svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Animação do Tooltip: Aparece, aguarda e some */
@keyframes tooltipLifecycle {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    /* Entrada suave */
    85% {
        opacity: 1;
        transform: translateX(0);
    }

    /* Mantém visível */
    100% {
        opacity: 0;
        transform: translateX(10px);
    }

    /* Saída suave */
}

.whatsapp-tooltip {
    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 12px;
    white-space: nowrap;
    opacity: 0;
    /* Começa invisível */
    transform: translateX(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;

    /* Animação: 2s delay + 5s duração total (entrada + espera + saída) */
    animation: tooltipLifecycle 5s ease-out 2s forwards;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    margin-top: -5px;
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

/* Hover: Interrompe a animação e força visibilidade */
.whatsapp-float-container:hover .whatsapp-tooltip {
    animation: none;
    /* Cancela o auto-hide */
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.main-footer {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    border-top: 1px solid #eee;
    background-color: #fff;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .upsell-section {
        padding: 25px;
    }

    .email-box {
        padding: 20px;
    }
}