/**
 * CTA Box Component - Lead Magnet Email Capture
 * Reusable call-to-action box for article insertion
 */

.cta-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    padding: 35px 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.cta-box h3 {
    color: #1a202c;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.cta-box p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.cta-box form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.cta-box input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.cta-box input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cta-box button[type="submit"] {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    font-family: 'Nunito', sans-serif;
}

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

.cta-box button[type="submit"]:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cta-box {
        padding: 28px 20px;
        margin: 30px 0;
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    .cta-box form {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-box button[type="submit"] {
        width: 100%;
        padding: 16px;
    }
}

/* Success message styling */
.cta-box .success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
}

.cta-box .success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
