/**
 * Styles frontend pour Smart Forms
 */

/* Container du formulaire */
.sfa-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sfa-form-inner {
    width: 100%;
}

/* Formulaire Lead Capture - Centré */
.sfa-lead-capture {
    text-align: center;
}

.sfa-lead-capture .sfa-form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #2c3338;
}

.sfa-lead-capture .sfa-form-field {
    margin-bottom: 20px;
}

.sfa-lead-capture .sfa-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
}

.sfa-lead-capture .sfa-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.sfa-lead-capture .sfa-submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfa-lead-capture .sfa-submit-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.sfa-lead-capture .sfa-submit-btn:active {
    transform: translateY(0);
}

/* Formulaire de Contact */
.sfa-contact-form .sfa-form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #2c3338;
}

.sfa-contact-form .sfa-form-field {
    margin-bottom: 20px;
}

.sfa-contact-form .sfa-input,
.sfa-contact-form .sfa-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sfa-contact-form .sfa-input:focus,
.sfa-contact-form .sfa-textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.sfa-contact-form .sfa-textarea {
    resize: vertical;
    min-height: 120px;
}

.sfa-contact-form .sfa-submit-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #2271b1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sfa-contact-form .sfa-submit-btn:hover {
    background: #135e96;
}

/* Messages */
.sfa-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.sfa-form-message.success {
    background: #edfaef;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.sfa-form-message.error {
    background: #fcf0f1;
    color: #d63638;
    border: 1px solid #d63638;
}

/* Loading state */
.sfa-form.loading .sfa-submit-btn {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.sfa-form.loading .sfa-submit-btn::after {
    content: "...";
    margin-left: 5px;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Responsive */
@media (max-width: 768px) {
    .sfa-form-container {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .sfa-lead-capture .sfa-form-title,
    .sfa-contact-form .sfa-form-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .sfa-form-container {
        padding: 20px 15px;
    }
    
    .sfa-lead-capture .sfa-input,
    .sfa-contact-form .sfa-input {
        font-size: 14px;
    }
}



