.ebook-section {
    min-height: 100vh;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ebook-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ebook-content {
    color: white;
}

.ebook-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.ebook-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.ebook-benefits {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.ebook-benefits h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.ebook-benefits ul {
    list-style: none;
    padding: 0;
}

.ebook-benefits li {
    padding: 12px 0 12px 30px;
    position: relative;
    font-size: 1.1rem;
}

.ebook-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ade80;
    font-weight: bold;
    font-size: 1.3rem;
}

.ebook-form-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ebook-form-card h2 {
    color: #1f2937;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-intro {
    color: #6b7280;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-group {
    margin: 25px 0;
}

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

.form-checkbox {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.privacy-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #9ca3af;
    text-align: center;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.invalid-feedback.show {
    display: block;
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.form-notification {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.form-notification.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-notification.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.hp-field-wrap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Dark mode */
[data-theme="dark"] .ebook-form-card {
    background: #1f2937;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .ebook-form-card h2 {
    color: #f9fafb;
}

[data-theme="dark"] .form-intro {
    color: #9ca3af;
}

[data-theme="dark"] .form-group label {
    color: #e5e7eb;
}

[data-theme="dark"] .form-control {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-theme="dark"] .form-control:focus {
    background: #374151;
    border-color: #667eea;
}

[data-theme="dark"] .checkbox-text {
    color: #d1d5db;
}

[data-theme="dark"] .privacy-note {
    color: #6b7280;
}

[data-theme="dark"] .form-notification.success {
    background-color: #064e3b;
    color: #6ee7b7;
    border-color: #059669;
}

[data-theme="dark"] .form-notification.error {
    background-color: #7f1d1d;
    color: #fca5a5;
    border-color: #dc2626;
}

@media (max-width: 968px) {
    .ebook-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ebook-title {
        font-size: 2.2rem;
    }

    .ebook-subtitle {
        font-size: 1.1rem;
    }

    .ebook-section {
        padding: 80px 20px 40px;
    }

    .ebook-form-card {
        padding: 30px 20px;
    }
}
