/* Styles principaux du formulaire */
.marketing-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: white;
}

.marketing-form-container h2 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
}

.marketing-form-container p {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

/* Groupes de formulaire */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    background: white;
}

/* Bouton de soumission */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(255,107,107,0.3);
}

.btn-submit:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

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

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Messages de formulaire */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s;
}

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

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Message de confidentialité */
.privacy-note {
    text-align: center;
    margin-top: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    line-height: 1.4;
}

/* Responsive design */
@media (max-width: 600px) {
    .marketing-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    .marketing-form-container h2 {
        font-size: 20px;
    }
    
    .btn-submit {
        font-size: 16px;
        padding: 12px;
    }
}

/* Animation de chargement */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus styles for accessibility */
.form-group input:focus,
.form-group textarea:focus,
.btn-submit:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Hover effect for form elements */
.form-group input:hover,
.form-group textarea:hover {
    background: rgba(255,255,255,1);
}

/* Success message animation */
.success-message {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 237, 218, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 237, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 237, 218, 0); }
}

/* Error message animation */
.error-message {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}
