body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #34353e;
    line-height: 1.5em;
    max-width: 1920px;
    margin: auto;
}

body, .descricao p, .video-description {
    font-family: "Arial", "Helvetica", sans-serif;
}

header {
    color: #fff;
    text-align: left;
    padding: 20px 0;
}

header img {
    width: 200px;
    margin-left: 50px;
    vertical-align: left;
}

/* Seção do título e imagem do eBook */
.container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px;
    background-color: #8d5fff;
    color: #fff;
    height: 400px;
    margin-bottom: 10px; /* Reduz espaço abaixo */
}

.title-section {
    flex: 43%;
    padding: 5vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-section {
    flex: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-section img {
    width: 300px;
    height: auto;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.5em;
}

h2 {
    font-size: 2em;
    margin-bottom: 0px;
    font-weight: 400;
    line-height: 1.5em;
}

/* Texto principal */
.container2 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 20px 20px; /* Reduzi o padding */
    margin-top: -10px; /* Reduzi o espaço superior */
}

/* Seção dos vídeos lado a lado */
.container-videos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 5px; /* Reduzi o padding */
    gap: 20px;
    margin-top: -10px; /* Reduzi o espaço entre container2 e vídeos */
}

.video-section {
    flex: 1;
    max-width: 45%;
    text-align: center;
}

/* Ajustando tamanho e responsividade dos vídeos */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Texto abaixo do vídeo */
.video-description {
    font-size: 1.2em;
    color: #34353e;
    text-align: center;
    margin: 5px auto 10px; /* Reduzi a margem */
}

/* Lista e formulário lado a lado */
.container-lista-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px; /* Ajustei o padding */
    gap: 40px;
    margin-top: -10px; /* Reduzi espaço antes desta seção */
}

.lista {
    flex: 50%;
    padding-right: 40px;
}

.formulario {
    flex: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Formulário */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
    background-color: #34353e;
    padding: 40px 50px;
    border-radius: 6px;
}

form h3 {
    text-align: left;
    margin-bottom: 20px;
    color: #fff;
}
/* Garante que os labels fiquem visíveis */
label {
    display: block; /* Faz com que cada label ocupe uma linha */
    margin-bottom: 5px; /* Adiciona um pequeno espaçamento abaixo */
    font-size: 1em;
    color: #fff; /* Se o fundo for escuro, mantenha branco */
}

input[type="text"], input[type="email"], input[type="tel"] {
    padding: 10px;
    font-size: 1em;
    width: calc(100% - 40px);
    background: #00000038;
    border: 2px solid #8e5fff;
    padding: 15px;
    color: #fff;
    border-radius: 6px;
}

/* Botão de envio */
input[type="submit"] {
    padding: 15px;
    font-size: 1.2em;
    width: 100%;
    background-color: #8e5fff;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 20px; /* Ajustei para menor espaçamento */
}

input[type="submit"]:hover {
    background-color: #9577dd;
    color: #ffffff;
}

/* Rodapé */
footer {
    border-top: 3px solid #8e5fff;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #8e5fff;
    text-decoration: none;
}


/* Responsividade */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
        margin-bottom: 10px; /* Reduzido */
    }

    .title-section,
    .image-section {
        flex: 100%;
    }

    .container2,
    .container-videos,
    .container-lista-form {
        flex-direction: column;
        align-items: center;
    }

    .descricao,
    .formulario {
        flex: 100%;
        
    }

    .video-section {
        max-width: 100%;
    }

    form {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header img {
        margin-left: 10px;
    }

    h1 {
        font-size: 2.5em;
        line-height: 1.3em;
    }

    h2 {
        font-size: 1.5em;
    }

    .container2 {
        padding: 10px;
        margin-bottom: 10px; /* Ajustado */
    }

    form {
        padding: 30px;
        margin-top: -30px;
    }

    .container-videos,
    .container-lista-form {
        padding: 15px;
    }
}