.ebook-container {
    background: var(--bs-primary);
    position: relative;
}

.ebook-section {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
}

.content-left {
    flex: 0 0 50%;
    color: white;
    max-width: 530px;
    z-index: 2;
}

.content-left h1 {
    font-size: 36px;
    color: white;
}

.content-right {
    flex: 1;
    position: relative;
}

.content-right.image-absolute {
    right: -55px;
    top: 0;
    bottom: -54px;
    width: 62rem;
}

.ebook-image {
    height: auto;
    max-width: -webkit-fill-available;
}

.highlight {
    color: #00F5D4;
    font-size: 3.5em;
    margin: 20px 0;
}

img.logo {
    margin-bottom: 35px;
}

.btn-primary {
    background: #00F5D4;
    color: var(--bs-primary);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    background: #00F5D4;
    transform: translateY(-2px);
}

/* Segunda seção */
.phone-mockup {
    position: relative;
    left: -50px; /* Ajuste conforme necessário */
    flex: 1;
}

.phone-mockup img {
    max-width: 39.5rem;
    width: 100%;
    height: auto;
}

.content-right.text {
    margin-left: 4rem;
}

.content-right h2 {
    color: #00F5D4;
}

.content-right p {
    color: white;
}

.aprendizado {
    padding: 80px 0;
    background-color: white;
}

.aprendizado h2 {
    text-align: center;
    color: var(--bs-primary);
    font-size: 2.8rem;
    margin-bottom: 60px;
    font-weight: 500;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    border: 1px solid #dbdbdb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.card .icon {
    margin-bottom: 20px;
}

.card .icon svg {
    width: 40px;
    height: 40px;
    color: #8A2BE2;
}

.card h3 {
    color: var(--bs-primary);
    font-size: 1.4rem;
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.card p {
    color: #666;
    font-size: 1rem;
    line-height: normal;
    margin: 0;
}

.ebook-form {
    padding: 60px 0;
}

.form-wrapper {
    display: flex;
    margin: 0 auto;
    background: var(--bs-primary);
    border-radius: 20px;
    overflow: hidden;
}

.testimonial-side {
    flex: 1;
    padding: 40px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('/assets/images/ebook/chef-bg.webp?v=2');
    background-size: cover;
    background-position: center;
    color: white;
}

.testimonial-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.testimonial-text {
    font-size: 1.2em;
    line-height: 1.4;
    margin-bottom: 20px;
}

.author-name {
    font-weight: bold;
    margin: 0;
}

.author-business {
    margin: 0;
    opacity: 0.8;
}

.testimonial-dots {
    margin-top: 20px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin-right: 8px;
    display: none;
}

.dot.active {
    background: white;
}

.form-side {
    flex: 1;
    padding: 60px 90px;
    background: var(--bs-primary);
    max-width: 50%;
}

.form-side h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

.form-group label {
    display: block;
    color: white;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 12px;
    border-radius: 100px;
    border: none;
    background: white;
    font-size: 1rem;
}

.btn-download {
    padding: 16px 30px;
    border: none;
    border-radius: 20px;
    background: #00F5A0;
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.form-security {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: white;
    opacity: 0.8;
    font-size: 0.85rem;
}

.form-security p {
    margin: 0;
}

.final-cta {
    padding: 80px 0;
    text-align: center;
    background: #fff;
}

.final-cta h2 {
    color: #46116B;
    font-size: 2.5em;
    margin-bottom: 30px;
    line-height: 1.2;
}

.final-cta p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-download-final {
    display: inline-block;
    background: #00F5D4;
    color: var(--bs-primary);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-download-final:hover {
    background: #00e0c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Responsividade */
@media (max-width: 768px) {
    .ebook-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .ebook-section:nth-child(2) {
        flex-direction: column-reverse;
    }

    .ebook-image {
        max-width: 100%;
    }

    .content-left {
        flex: 0 0 100%;
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    .content-right.image-absolute {
        position: static;
        width: 100%;
        margin-top: 30px;
        right: 0;
    }

    .phone-mockup {
        max-width: 100%;
        left: 0;
        margin: 30px 0;
    }

    .content-right.text {
        margin-left: 0;
        text-align: -webkit-center;

    }

    .cards-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .card {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-wrapper {
        flex-direction: column;
        margin: 0 15px;
    }

    .form-side {
        max-width: 100%;
        padding: 30px 20px;
    }

    .btn-download {
        width: 100%;
    }

    .testimonial-side {
        padding: 135px 20px 30px;
    }
    .testimonial-text {
        font-size: 1em;
    }

}

@media (max-width: 480px) {
    .highlight {
        font-size: 2em;
    }

    .content-left h1 {
        font-size: 22px;
    }

    .btn-primary {
        width: 100%;
        max-width: 280px;
        margin: 20px auto;
    }

    .content-right h2 {
        font-size: 24px;
        line-height: 1.3;
    }

    .aprendizado h2 {
        font-size: 24px;
        padding: 0 20px;
    }
}
