/* ==========================================================================
   GF Rules Engine – Destifoot — Frontend Validation Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Erreur par champ (inline, temps réel)
   -------------------------------------------------------------------------- */

.gfre-field-has-error .gfield_label {
    color: #b32d2e;
}

.gfre-input-error,
.gfre-input-error:focus {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232 !important;
    outline: none;
}

.gfre-field-error-msg {
    display: block;
    margin-top: 6px;
    padding: 6px 10px 6px 30px;
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: 3px;
    color: #b32d2e;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
    animation: gfre-fadein .18s ease;
}

.gfre-field-error-msg::before {
    content: '⚠';
    position: absolute;
    left: 8px;
    top: 6px;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Récapitulatif des erreurs (haut de formulaire)
   -------------------------------------------------------------------------- */

.gfre-error-summary {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-left: 4px solid #dc3232;
    border-radius: 3px;
    padding: 14px 18px;
    margin: 0 0 20px;
    color: #b32d2e;
    font-size: 14px;
    animation: gfre-fadein .18s ease;
}

.gfre-error-summary p {
    margin: 0 0 8px;
}

.gfre-error-summary ul {
    margin: 0;
    padding-left: 20px;
}

.gfre-error-summary li {
    margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Transition d'entrée
   -------------------------------------------------------------------------- */

@keyframes gfre-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Rétro-compat (classe ancienne, conservée)
   -------------------------------------------------------------------------- */

.gfre-error-notice {
    background: #fff3f3;
    border: 1px solid #dc3232;
    border-left: 4px solid #dc3232;
    border-radius: 3px;
    padding: 12px 16px;
    margin: 10px 0;
    color: #b32d2e;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gfre-error-notice::before {
    content: '⚠';
    flex-shrink: 0;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   Choix désactivé (disable_choice)
   -------------------------------------------------------------------------- */

.gfre-choice-disabled { opacity: 0.4; pointer-events: none; }
.gfre-choice-disabled label { color: #999; text-decoration: line-through; }
