/* ============================================================
   FIRST GLACE AUDIT — Style du formulaire
   Adapté depuis le Formulaire 31 (Fond CLAIR : blanc + rouge + jaune)
   ============================================================ */

#fga_wrapper {
    max-width: 850px !important;
    margin: 0 auto 2rem auto !important;
    background: #FFFFFF !important;
    border: 1px solid rgba(227, 6, 19, 0.15) !important;
    border-radius: 18px !important;
    padding: 2rem !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    color: #1a1a1a !important;
    position: relative !important;
}

/* Barre accent rouge/jaune en haut */
#fga_wrapper::before {
    content: '' !important;
    display: block !important;
    height: 4px !important;
    background: linear-gradient(90deg, #E30613, #FFC629, #E30613) !important;
    border-radius: 18px 18px 0 0 !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
}

/* ── Titre ── */
#fga_wrapper .fga_title {
    color: #E30613 !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
}

#fga_wrapper .fga_description {
    color: #555555 !important;
    font-size: 0.92rem !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

/* ── Sections ── */
#fga_wrapper .fga_section_title {
    color: #1a1a1a !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 0.5rem !important;
}

/* ── Labels ── */
#fga_wrapper .fga_label,
#fga_wrapper label {
    color: #E30613 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
}

#fga_wrapper .fga_required {
    color: #E30613 !important;
}

/* ── Espacement ── */
#fga_wrapper .fga_field {
    margin-bottom: 1.4rem !important;
}

/* ── Champs texte ── */
#fga_wrapper input[type="text"],
#fga_wrapper input[type="email"],
#fga_wrapper input[type="tel"],
#fga_wrapper input[type="number"],
#fga_wrapper input[type="url"],
#fga_wrapper input[type="date"] {
    background: #f9f9f9 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    color: #1a1a1a !important;
    padding: 0.85rem 1.1rem !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

#fga_wrapper input[type="text"]:focus,
#fga_wrapper input[type="email"]:focus,
#fga_wrapper input[type="tel"]:focus,
#fga_wrapper input[type="date"]:focus,
#fga_wrapper input[type="number"]:focus {
    border-color: #E30613 !important;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1) !important;
    background: #fff !important;
}

#fga_wrapper input::placeholder {
    color: #aaaaaa !important;
}

/* ── Select ── */
#fga_wrapper select {
    background: #f9f9f9 !important;
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 10px !important;
    color: #1a1a1a !important;
    height: auto !important;
    min-height: 52px !important;
    padding: 0.75rem 1.1rem !important;
    line-height: 1.5 !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    width: 100% !important;
    outline: none !important;
    cursor: pointer !important;
    -webkit-appearance: auto !important;
    appearance: auto !important;
    overflow: visible !important;
}

#fga_wrapper select:focus {
    border-color: #E30613 !important;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1) !important;
    color: #1a1a1a !important;
    background: #ffffff !important;
}

#fga_wrapper select:hover {
    border-color: #E30613 !important;
    color: #1a1a1a !important;
}

#fga_wrapper select option,
#fga_wrapper select option:checked,
#fga_wrapper select option:hover {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

/* ── Cases à cocher & radio ── */
#fga_wrapper .fga_radio_group,
#fga_wrapper .fga_checkbox_group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

#fga_wrapper .fga_radio_group label,
#fga_wrapper .fga_checkbox_group label {
    display: flex;
    align-items: center;
    color: #1a1a1a !important;
    font-size: 0.9rem !important;
    font-weight: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-bottom: 0 !important;
    cursor: pointer;
}

#fga_wrapper input[type="checkbox"],
#fga_wrapper input[type="radio"] {
    accent-color: #E30613 !important;
    margin-right: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

/* ── Erreurs ── */
#fga_wrapper .fga_field_error input,
#fga_wrapper .fga_field_error select {
    border-color: #E30613 !important;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1) !important;
}

#fga_wrapper .fga_validation_message {
    color: #E30613 !important;
    font-size: 0.8rem !important;
    background: transparent !important;
    border: none !important;
    margin-top: 0.3rem;
}

#fga_wrapper .fga_form_validation_errors {
    background: rgba(227, 6, 19, 0.06) !important;
    border: 1px solid rgba(227, 6, 19, 0.3) !important;
    border-radius: 10px !important;
    color: #E30613 !important;
    padding: 1rem 1.2rem !important;
    margin-bottom: 1.5rem !important;
}

/* ── Message de confirmation ── */
#fga_confirmation_message {
    background: rgba(255, 198, 41, 0.1) !important;
    border: 1px solid rgba(255, 198, 41, 0.5) !important;
    border-radius: 10px !important;
    color: #B8050F !important;
    padding: 1.5rem 2rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    margin-bottom: 2rem;
}

/* ── Bouton Submit ── */
#fga_wrapper input[type="submit"],
#fga_wrapper button[type="submit"] {
    background: #E30613 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 1rem 3rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: 0 6px 25px rgba(227, 6, 19, 0.25) !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

#fga_wrapper input[type="submit"]:hover,
#fga_wrapper button[type="submit"]:hover {
    background: #B8050F !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 35px rgba(227, 6, 19, 0.4) !important;
}

#fga_wrapper .fga_footer {
    text-align: center !important;
    padding-top: 2rem !important;
    background: transparent !important;
    border: none !important;
}

/* ── Sous-formulaires de frigo ── */
.fga_frigo_block {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    border-left: 4px solid #FFC629;
}

.fga_frigo_title {
    font-weight: 700;
    color: #E30613;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Hide / Show classes */
.fga_hidden {
    display: none !important;
}
