/* Styles pour les formulaires côté frontend */

.simple-forms-wrapper {
    max-width: 600px;
    margin: 20px auto;
}

.simple-forms-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.simple-forms-field-wrapper {
    margin-bottom: 20px;
}

.simple-forms-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.simple-forms-required {
    color: #d63638;
    margin-left: 3px;
}

.simple-forms-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.simple-forms-field:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.simple-forms-field:invalid {
    border-color: #d63638;
}

.simple-forms-field-wrapper textarea.simple-forms-field {
    resize: vertical;
    min-height: 100px;
}

.simple-forms-radio-group,
.simple-forms-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-forms-radio-label,
.simple-forms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.simple-forms-radio-label input[type="radio"],
.simple-forms-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* Champ nom avec format nom/prénom */
.simple-forms-name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.simple-forms-name-first,
.simple-forms-name-last {
    width: 100%;
}

/* Champ RGPD */
.simple-forms-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.simple-forms-gdpr-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.simple-forms-gdpr-label span {
    flex: 1;
}

.simple-forms-gdpr-label a {
    color: #2271b1;
    text-decoration: underline;
}

.simple-forms-gdpr-label a:hover {
    color: #135e96;
}

/* hCaptcha */
.simple-forms-hcaptcha-wrapper {
    margin: 20px 0;
}

.simple-forms-hcaptcha-wrapper .h-captcha {
    margin-bottom: 5px;
}

/* Responsive pour le champ nom */
@media (max-width: 600px) {
    .simple-forms-name-fields {
        grid-template-columns: 1fr;
    }
}

.simple-forms-error {
    display: block;
    color: #d63638;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

.simple-forms-submit-wrapper {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.simple-forms-submit {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.simple-forms-submit:hover {
    background: #135e96;
}

.simple-forms-submit:disabled {
    background: #ccd0d4;
    cursor: not-allowed;
}

.simple-forms-message {
    font-size: 14px;
    font-weight: 600;
}

.simple-forms-message.success {
    color: #00a32a;
}

.simple-forms-message.error {
    color: #d63638;
}

/* Responsive */
@media (max-width: 600px) {
    .simple-forms-form {
        padding: 20px;
    }
    
    .simple-forms-submit-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .simple-forms-submit {
        width: 100%;
    }
}
