/* Style global */

/* Conteneur principal du formulaire */
.neoform_container {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    max-width: 700px;
}

/* En-tête du formulaire */
.neoform_container h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 0; /* Réduction de la marge inférieure */
    color: var(--wp--preset--color--accent);
    line-height: 1; /* Ajout de line-height */
}

.neoform_container p {
    color: var(--wp--preset--color--accent);
    font-size: 14px;
    margin-bottom: 0; /* Réduction de la marge inférieure */
}

/* Style pour le label et les champs du formulaire */
.neoform_form label {
    display: block;
    margin-top: 10px; /* Réduction de la marge supérieure */
    margin-bottom: 0; /* Réduction de la marge inférieure */
    font-weight: 600;
    color: var(--wp--preset--color--accent);
    font-size: 14px;
}

.neoform_form input,
.neoform_form textarea,
.neoform_form select {
    width: 100%;
    padding: 7px;
    border: 1px solid #748dad;
    border-radius: 0px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 0;
    background-color: #fafafa;
}

/* Style pour le textarea */
.neoform_form textarea {
    resize: none;
    height: 100px;
}

.neoform_form select {
    appearance: auto;
    min-height: 42px;
}

.neoform_required_legend {
    margin: 8px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--accent);
}

.neoform_required_legend span {
    color: #cc2f2f;
}

.neoform_form h3 {
    margin: 24px 0 14px;
    color: var(--wp--preset--color--accent);
    line-height: 1.2;
}

/* Placeholder */
.neoform_form input::placeholder,
.neoform_form textarea::placeholder {
    color: #cccccc;
}

/* Bouton de soumission */
.neoform_form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: var(--wp--preset--color--accent);
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px; /* Réduction de la marge supérieure */
}

.neoform_form input[type="submit"]:hover {
    background-color: var(--wp--preset--color--accent-2);
}

/* Message de succès ou d'erreur */
.neoform_alert {
    margin-top: 0; /* Réduction de la marge supérieure */
    padding: 6px;
    border-radius: 0px;
    font-size: 14px;
    display: none;
}

.neoform_success {
    background-color: #d4edda;
    color: #155724;
}

.neoform_error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .neoform_container {
        padding: 0;
    }

    .neoform_form input[type="submit"] {
        font-size: 14px;
        padding: 4px;
    }

    .neoform_phone_row {
        flex-direction: column;
        gap: 8px;
    }

    .neoform_phone_row select {
        width: 100%;
        flex: 1 1 auto;
    }

    .file-item {
        flex-direction: column;
        align-items: stretch;
    }

    .delete-button {
        width: 100%;
        margin: 8px 0 0;
    }
}

form.neoform_form br {
    display: none;
}

/* Style pour la barre de défilement */
.gr_neoform_form_bar {
    height: 800px;
    overflow-y: scroll;
    scrollbar-width: thin;
}

/*----propriété scrollbar-width compatibilité globale----*/
.gr_neoform_form_bar::-webkit-scrollbar {
    width: 8px;
}

.gr_neoform_form_bar::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 0px;
}

.gr_neoform_form_bar::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/*----imput fichier image--*/
input[type=file] {
    color: var(--wp--preset--color--accent);
    padding: 8px;
    background-color: #fff;
    border: 1px solid #222245;
}

input[type=file]:focus {
    outline: 2px dashed #222245;
    outline-offset: 2px;
}

input[type=file]::file-selector-button {
    margin-right: 8px;
    border: none;
    background: var(--wp--preset--color--accent);
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
}

input[type=file]::file-selector-button:hover {
    background-color: var(--wp--preset--color--accent-2);
}

/* Style pour la zone de dépôt */
.drop-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 28px 30px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.drop-container.drag-active {
    background-color: #f0f8ff;
}

.drop-title {
    font-size: 1.2em;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--wp--preset--color--accent);
}

.drop-container input[type="file"] {
    display: none;
}
/* Style pour la liste des fichiers */
#file-list {
    margin-top: 10px;
}

#file-list .neoform_error {
    margin-bottom: 8px;
    padding: 8px 10px;
}
.drop-or {
    font-size: 14px !important;
    color: var(--wp--preset--color--accent-7) !important;
    line-height: 1.4;
}

.neoform_civilite_fieldset {
    margin: 18px 0 10px;
    padding: 16px 18px 14px;
    border: 1px solid #b7b7b7;
}

.neoform_civilite_fieldset legend {
    padding: 0 8px;
    color: var(--wp--preset--color--accent);
    font-size: 14px;
    font-weight: 600;
}

.neoform_civilite_fieldset label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0;
    font-weight: 600;
}

.neoform_civilite_fieldset input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
}

.neoform_phone_row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.neoform_phone_row select {
    width: 90px;
    flex: 0 0 90px;
}

.neoform_phone_row input {
    flex: 1 1 auto;
}

.neoform_checkbox_label {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px !important;
    line-height: 1.45;
}

.neoform_checkbox_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0;
    padding: 0;
    flex: 0 0 18px;
}

/*--------fermeture----*/

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.delete-button {
    background-color: var(--wp--preset--color--accent)!important;
    color: white;
    border: none;
    padding: 7px 14px;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 110px;
    border-radius: 5px;
    text-align: center;
    white-space: nowrap;
}

.delete-button:hover {
    background-color: var(--wp--preset--color--accent-2)!important;
}


.neoform_form input[type="submit"] {
    width: 100%;
    padding: 11px 20px 9px 20px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background-color: #51a2b1;
    cursor: pointer;
    transition: background-color .35s ease-in-out;
    margin-top: 10px;
}

/* Hover plus foncé */
.neoform_form input[type="submit"]:hover {
    background-color: #3f8d9a; /* version plus foncée */
}

#file-list .delete-button {
    background-color: #51a2b1 !important;
    color: #fff;
    border: none;
    padding: 11px 20px 9px 20px;
    border-radius: 0;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
    transition: background-color .35s ease-in-out;
}

/* Hover plus foncé */
#file-list .delete-button:hover {
    background-color: #3f8d9a !important;
}