/* Reset e estilos gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    padding: 20px 0;
    text-align: center;
}

.logo img {
    max-height: 200px;
}

/* Conteúdo principal */
main {
    margin: 40px 0;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.text-content {
    flex: 1;
    min-width: 300px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #0056b3;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: #555;
}

.benefits {
    list-style: none;
    margin: 30px 0;
}

.benefits li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.benefits i {
    color: #28a745;
    margin-right: 10px;
}

.cta-text {
    font-size: 1.2rem;
    margin: 30px 0;
    font-weight: 500;
}

.ebook-preview {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.ebook-preview img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.ebook-preview img:hover {
    transform: scale(1.03);
}

/* Formulário */
.form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #0056b3;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 10px;
    width: auto;
}

.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.download-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s, opacity 0.3s;
    position: relative;
}

.download-btn:hover {
    background-color: #003d7a;
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-btn.loading {
    padding-left: 45px;
}

.download-btn.loading::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal h2 {
    color: #0056b3;
    margin-bottom: 20px;
}

.modal p {
    margin-bottom: 30px;
}

.modal .download-btn {
    display: inline-block;
    width: auto;
    padding: 12px 30px;
}

/* Responsividade */
@media (max-width: 768px) {
    .content {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}
