/* ── Variables meloLiVE ─────────────────────────────────────── */
.mf-wrapper {
    --mf-red:     #E8000D;
    --mf-red-dk:  #b0000a;
    --mf-black:   #1a1a1a;
    --mf-cream:   #f5f0e8;
    --mf-gray:    #6b6b6b;
    --mf-border:  #d8d0c4;
    --mf-radius:  8px;

    max-width: 540px;
    margin: 2rem auto;
    font-family: inherit;
    color: var(--mf-black);
}

/* ── Déjà inscrit ────────────────────────────────────────────── */
.mf-deja-inscrit {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--mf-cream);
    border: 2px solid var(--mf-red);
    border-radius: var(--mf-radius);
}
.mf-deja-inscrit-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: .75rem;
}
.mf-deja-inscrit strong {
    font-size: 1.3rem;
    color: var(--mf-red);
    display: block;
    margin-bottom: .6rem;
}
.mf-deja-inscrit p {
    color: var(--mf-gray);
    margin: 0;
    line-height: 1.6;
}

/* ── Urgence ────────────────────────────────────────────────── */
.mf-urgence {
    background: #fff3cd;
    border: 1.5px solid #f0a500;
    border-radius: var(--mf-radius);
    padding: .7rem 1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #7a5000;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* ── Complet ────────────────────────────────────────────────── */
.mf-complet {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--mf-cream);
    border: 2px solid var(--mf-red);
    border-radius: var(--mf-radius);
}
.mf-complet-icon { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.mf-complet strong { font-size: 1.2rem; color: var(--mf-red); display: block; margin-bottom: .5rem; }
.mf-complet p { color: var(--mf-gray); margin: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.mf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .mf-row { grid-template-columns: 1fr; }
}

.mf-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.1rem;
}

/* ── Labels ─────────────────────────────────────────────────── */
.mf-field label,
.mf-diner-question {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .35rem;
    color: var(--mf-black);
}
.mf-field label span[aria-hidden] { color: var(--mf-red); }
.mf-optional { font-weight: 400; font-size: .8rem; color: var(--mf-gray); }

/* ── Inputs ─────────────────────────────────────────────────── */
.mf-field input[type="text"],
.mf-field input[type="email"],
.mf-field textarea {
    padding: .6rem .85rem;
    border: 1.5px solid var(--mf-border);
    border-radius: var(--mf-radius);
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--mf-black);
    transition: border-color .18s, box-shadow .18s;
}
.mf-field input:focus,
.mf-field textarea:focus {
    outline: none;
    border-color: var(--mf-red);
    box-shadow: 0 0 0 3px rgba(232,0,13,.12);
}
.mf-field input.mf-invalid,
.mf-field textarea.mf-invalid {
    border-color: var(--mf-red);
    background: #fff5f5;
}

/* ── Erreurs ─────────────────────────────────────────────────── */
.mf-error {
    font-size: .78rem;
    color: var(--mf-red);
    margin-top: .25rem;
    min-height: .9rem;
    font-weight: 500;
}

/* ── Dîner (radio) ───────────────────────────────────────────── */
.mf-field-diner {
    background: var(--mf-cream);
    border: 1.5px solid var(--mf-border);
    border-radius: var(--mf-radius);
    padding: .85rem 1rem;
    margin-bottom: 1.2rem;
}
.mf-diner-question {
    margin: 0 0 .6rem;
    font-size: .9rem;
}
.mf-diner-options {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}
.mf-radio-label {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 400;
    font-size: .9rem;
    cursor: pointer;
    padding: .45rem .6rem;
    border-radius: 6px;
    transition: background .15s;
}
.mf-radio-label:hover { background: rgba(232,0,13,.06); }
.mf-radio-label input[type="radio"] {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--mf-red);
    flex-shrink: 0;
}

/* ── Bouton ──────────────────────────────────────────────────── */
#mf-submit {
    display: block;
    width: 100%;
    padding: .8rem 1.5rem;
    background: var(--mf-red);
    color: #fff;
    border: none;
    border-radius: var(--mf-radius);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .18s, transform .1s;
    margin-top: .3rem;
    text-transform: uppercase;
}
#mf-submit:hover   { background: var(--mf-red-dk); transform: translateY(-1px); }
#mf-submit:active  { transform: translateY(0); }
#mf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Mentions ────────────────────────────────────────────────── */
.mf-mentions {
    font-size: .75rem;
    color: var(--mf-gray);
    text-align: center;
    margin: .6rem 0 0;
}

/* ── Feedback erreur ─────────────────────────────────────────── */
#mf-feedback {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: var(--mf-radius);
    font-size: .95rem;
    font-weight: 500;
    display: none;
    text-align: center;
}
#mf-feedback:not(:empty) { display: block; }
#mf-feedback.mf-failure {
    background: #fff5f5;
    color: #8b0000;
    border: 1.5px solid #f5b8b8;
}

/* ── reCAPTCHA badge caché ───────────────────────────────────── */
.grecaptcha-badge { visibility: hidden; }
