/* reset.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis de cores */
/* Variáveis de cores - VERSÃO COLORIDA */
:root {
    --primary: #667eea;           /* Azul moderno */
    --primary-hover: #5a6fd8;     /* Azul mais escuro */
    --accent: #764ba2;            /* Roxo para gradiente */
    --dark: #2d3748;              /* Cinza escuro moderno */
    --dark-light: #4a5568;        /* Cinza médio */
    --light: #ffffff;             /* Branco */
    --gray: #f7fafc;              /* Cinza muito claro */
    --gray-dark: #e2e8f0;         /* Cinza claro para bordas */
    --text: #2d3748;              /* Texto escuro */
    --text-light: #718096;        /* Texto cinza */
}

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

/* Container responsivo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
/* Header com gradiente */
header {
    background: linear-gradient(135deg, darkblue, var(--accent));
    color: var(--light);
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    background: linear-gradient(135deg, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: inline-block;
}
/* Preview do ebook com borda gradiente */
#preview-ebook {
    background: var(--gray);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
    display: none;
    border-left: 4px solid;
    border-image: linear-gradient(135deg, var(--primary), var(--accent)) 1;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Main content */
main {
    padding: 3rem 0;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

/* Títulos de seção */
h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
}

/* Seleção de ebook */
.selecao-ebook {
    text-align: center;
}

.selecao-ebook p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Select customizado */
.selecao-dinamica {
    max-width: 500px;
    margin: 0 auto 2rem;
}

select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-dark);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* Preview do ebook */
#preview-ebook {
    background: var(--gray);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
    display: none;
}

#preview-ebook.active {
    display: block;
}

#capa-preview {
    width: 150px;
    height: auto;
    border-radius: 8px;
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#info-ebook {
    overflow: hidden;
}

#titulo-preview {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

#descricao-preview {
    color: var(--text-light);
    margin-bottom: 1rem;
}

#beneficios-preview {
    margin-left: 1.5rem;
    color: var(--text-light);
}

#beneficios-preview li {
    margin-bottom: 0.5rem;
}

/* Formulário */
.formulario-captura {
    max-width: 600px;
    margin: 0 auto;
}

#texto-motivacional {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Campos do formulário */
.campo-form {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-dark);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

/* Checkbox de consentimento */
/* Opção 1 - Details/Summary Nativo */
.consentimento details {
    background: var(--gray);
    border-radius: 8px;
    padding: 1rem;
}

.consentimento summary {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    list-style: none;
    font-weight: normal;
    margin-bottom: 0;
    position: relative;
    padding-right: 30px; /* Espaço para a seta */
}

/* Seta customizada */
.consentimento summary::after {
    content: "▶";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--primary);
}

/* Seta gira quando expandido */
.consentimento details[open] summary::after {
    transform: translateY(-50%) rotate(90deg);
}



.consentimento summary .summary-label {
    margin-left: 10px;
    flex: 1;
}

.consentimento input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    margin-top: 2px;
}

.termos-detalhados {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-dark);
}

.termos-detalhados ul {
    margin-left: 1rem;
}

.termos-detalhados li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.termos-detalhados strong {
    color: var(--dark);
}

/* Opção 2 - Com JavaScript */
.consentimento-header {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.consentimento-label {
    flex: 1;
    margin-left: 10px;
    margin-bottom: 0;
}

.btn-toggle-termos {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 0.8rem;
    margin-left: 10px;
    padding: 5px;
}

.btn-toggle-termos:hover {
    color: var(--primary-hover);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

/* Estilos comuns para ambas */
.consentimento {
    margin: 2rem 0;
    background: var(--gray);
    border-radius: 8px;
}

.consentimento a {
    color: var(--primary);
    text-decoration: none;
}

.consentimento a:hover {
    text-decoration: underline;
}

/* Botão principal */
button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--light);
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, var(--primary-hover), #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Seção de credibilidade */
.credibilidade {
    text-align: center;
    background: var(--gray);
    padding: 2rem;
    border-radius: 10px;
}

.depoimento {
    margin-bottom: 2rem;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding: 0 1rem;
}

cite {
    color: var(--dark);
    font-weight: 600;
}

.estatisticas {
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 3rem 0 2rem;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

/* Novas regras para as duas colunas */
footer .contato,
footer .links-uteis {
    flex: 1;
    min-width: 250px;
}

/* Estilização adicional para melhor aparência */
footer .contato {
    padding-right: 2rem;
}

footer .links-uteis {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer .links-uteis a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .links-uteis a:hover {
    color: #ccc;
}

.contato h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.contato p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.links-uteis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.links-uteis a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.links-uteis a:hover {
    opacity: 1;
    color: var(--primary);
}

/* HR estilizado */
hr {
    border: none;
    height: 2px;
    background: var(--gray-dark);
    margin: 3rem 0;
    opacity: 0.5;
}

/* Responsividade - Tablet */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    #preview-ebook {
        padding: 1.5rem;
    }
    
    #capa-preview {
        float: none;
        margin: 0 auto 1rem;
        display: block;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .links-uteis {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Responsividade - Mobile */
@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 2rem 0;
    }
    
    section {
        margin-bottom: 2rem;
    }
    
    .selecao-dinamica {
        margin-bottom: 1.5rem;
    }
    
    #preview-ebook {
        padding: 1rem;
    }
    
    .formulario-captura {
        padding: 0 10px;
    }
    
    button[type="submit"] {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .credibilidade {
        padding: 1.5rem;
    }
    
    blockquote {
        font-size: 1.1rem;
    }
}

/* Utilitários */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-3 { margin-bottom: 3rem; }

/* Estados de foco para acessibilidade */
button:focus,
select:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}