/**
 * Styles pour les formulaires PMS/WPPB
 * Manipulation des champs wppb-form-element-16 et 17
 */

/* Cacher le label "oui" dans les champs checkbox */
#wppb-form-element-16 .wppb-checkboxes > li:not(.wppb-hidden) > label,
#wppb-form-element-17 .wppb-checkboxes > li:not(.wppb-hidden) > label {
    display: none !important;
}

/* S'assurer que le label principal prend 100% de largeur */
.wppb-send-credentials-checkbox > label,
#wppb-form-element-15 > label,
#wppb-form-element-16 > label,
#wppb-form-element-17 > label {
    display: block;
    width: 80% !important;
    margin-top: 0.5rem;
    cursor: pointer;
}

#wppb-form-element-16 > ul,
#wppb-form-element-17 > ul {
   width: auto;
}

#wppb-form-element-16 > ul > li:not(.wppb-hidden), 
#wppb-form-element-17 > ul > li:not(.wppb-hidden) {
   padding: 0 !important;
    
}
/* Style pour le checkbox */
#wppb-form-element-16 input[type="checkbox"],
#wppb-form-element-17 input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}

/* Améliorer l'alignement du label avec le checkbox */
#wppb-form-element-16 .wppb-checkboxes > li,
#wppb-form-element-17 .wppb-checkboxes > li {
    display: flex;
    align-items: flex-start;
}

/* Le label principal doit apparaître comme cliquable */
#wppb-form-element-16 > label:hover,
#wppb-form-element-17 > label:hover {
    opacity: 0.8;
}

/* Espacement entre les éléments */
#wppb-form-element-16,
#wppb-form-element-17 {
    margin-bottom: 20px;
}

/* Style pour l'image du crayon (requis) */
#wppb-form-element-16 > label img,
#wppb-form-element-17 > label img {
    margin-left: 4px;
    vertical-align: middle;
}

/* Styles pour les champs checkbox PMS (CGU et diffusion) */
.pms-checkbox-field {
    margin-bottom: 15px;
    padding: 10px 0;
    list-style: none !important;
}

/* Assurer que les champs sont cohérents avec les autres champs PMS */
.pms-account-section-wrapper + .pms-checkbox-field,
.pms-gdpr-field + .pms-checkbox-field {
    margin-top: 10px;
}

.pms-checkbox-field label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.5;
    font-size: 14px;
}

.pms-checkbox-field input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 16px;
    min-height: 16px;
}

.pms-checkbox-field .required {
    color: #d63638;
    font-weight: 700;
    margin-left: 4px;
}

.pms-checkbox-field label:hover {
    opacity: 0.9;
}

/* Style pour correspondre à celui du champ GDPR */
.pms-field.pms-checkbox-field {
    background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .pms-checkbox-field label {
        font-size: 13px;
    }
}

/* Message d'erreur de validation pour CGU */
.pms-cgu-error {
    background: #fef7f7;
    border-left: 4px solid #d63638;
    padding: 12px;
    margin: 10px 0;
    border-radius: 3px;
    animation: fadeIn 0.3s ease-in;
}

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

/* Forcer l'affichage des champs pour les formulaires créateurs */
.ales-createur-field {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}
