/* E-book Download Page Styles */

/* Hero Section */
.ebook-download-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 12rem 0 5rem;
}

.ebook-download-hero .section-header {
    margin-bottom: 4rem;
}

.ebook-download-hero .section-title,
.ebook-download-hero .section-subtitle {
    color: var(--bg-white);
}

.ebook-download-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Content Section */
.ebook-download-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
}

.ebook-download-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 1rem;
    position: relative;
}

.ebook-download-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--bg-white);
    margin-top: 1rem;
    border-radius: 2px;
}

.ebook-download-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--bg-white);
    opacity: 0.95;
}

/* E-book Preview */
.ebook-preview {
    position: relative;
    margin: 2rem auto;
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ebook-cover {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    display: block;
}

.ebook-preview:hover .ebook-cover {
    transform: rotateY(-15deg) translateZ(20px);
}

/* Highlights Section */
.ebook-highlights {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
}

.highlights-title {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.highlight-item i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

/* Form Styles */
.form-container {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-container h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Mensagem de erro */
.error-alert {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #d32f2f;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-alert i {
    font-size: 1.25rem;
    color: #f44336;
}

.error-alert p {
    margin: 0;
    font-size: 0.95rem;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

/* Floating Label Form Groups */
.form-group {
    position: relative;
}

.floating-label {
    position: relative;
}

.floating-label input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-white);
    height: 56px;
}

.floating-label label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    padding: 0 0.25rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-label input:focus,
.floating-label input:not(:placeholder-shown) {
    border-color: var(--primary-color);
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--bg-white);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.floating-label input:focus ~ .input-icon {
    color: var(--primary-color);
}

/* Error Messages */
.error-message {
    position: absolute;
    left: 0;
    bottom: -1.25rem;
    font-size: 0.85rem;
    color: #dc3545;
    display: none;
}

/* Download Button */
.btn-download {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-download:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-download i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

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

/* Privacy Notice */
.form-privacy {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-privacy i {
    color: var(--primary-color);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-container h2 {
        font-size: 1.75rem;
    }

    .form-subtitle {
        font-size: 1rem;
    }

    .floating-label input {
        font-size: 0.95rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .ebook-download-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .ebook-download-content {
        margin: 0 auto;
    }

    .ebook-download-title::after {
        margin: 1rem auto 0;
    }

    .highlight-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .ebook-download-hero {
        padding: 5rem 0;
    }

    .ebook-download-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .ebook-download-hero {
        padding-top: 9rem;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info {
    max-width: 300px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.footer h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact a {
    color: var(--bg-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--bg-white);
    font-size: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Logo adjustments for ebook page */
.header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.header .logo-img {
    max-width: 180px;
    height: auto;
}
