/* Masque le champs message dans les formulaires du HERO */
.hs-form-hero .hs-message.hs-fieldtype-textarea.field.hs-form-field{
	display:none;	
}
/* change l'ordre du texte légal */
fieldset.form-columns-1:has(.legal-consent-container) {
    order: 1;
    /* display: flex; */
    margin-top: 10px;
}
.legal-consent-container{
	font-size:11px;
}


/* ============================================================
   FORMULAIRE HUBSPOT : THÈME FOND BLANC (MIGRATION ELEMENTOR)
   ============================================================ */

.hs-form-csefinance form.hs-form {
	display: flex;
    flex-direction: column;
}

/* 1. STYLE GÉNÉRAL DES CHAMPS (INPUT & SELECT) */
.hs-form-csefinance .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
    background-color: #ffffff;
    border-color: #CFDEED;
    border-width: 1px 1px 1px 1px;
    border-radius: 5px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    color: #333;
    width: 100% !important;
    min-height: 47px;
    line-height: 42px !important; /* Aligne le texte verticalement */
}

/* 2. SPÉCIFICITÉS DES MENUS DÉROULANTS (SELECT) */
.hs-form-csefinance .hs-form select.hs-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 35px !important;
    cursor: pointer;
    /* Ajout d'une flèche personnalisée pour remplacer la flèche native */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231b2340' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
}

/* 3. STRUCTURE ET ESPACEMENTS */
.hs-form-csefinance .hs-form .hs-form-field {
    padding: 0 !important;
    margin-bottom: 20px !important; /* Espacement vertical entre les lignes */
}

.hs-form-csefinance .hs-form fieldset {
    max-width: 100% !important;
    margin-bottom: 0px !important;
    border: none !important;
    padding: 0 !important;
}

/* Gestion des colonnes (Desktop uniquement) */
@media (min-width: 768px) {
    .hs-form-csefinance .hs-form fieldset:not(:has(> .hs-dependent-field)) {
        display: flex !important;
        gap: 20px !important; /* Crée l'espace PARFAIT entre les colonnes */
    }

    .hs-form-csefinance .hs-form fieldset .hs-form-field {
        flex: 1 !important;
        margin-bottom: 0 !important; /* Évite les doubles marges sur les lignes multi-colonnes */
    }

    /* On s'assure que le conteneur du champ ne force pas de marges résiduelles */
    .hs-form-csefinance .hs-form .form-columns-2 .hs-form-field,
    .hs-form-csefinance .hs-form .form-columns-3 .hs-form-field {
        width: 100% !important;
        float: none !important;
    }
}

/* 4. LABELS */
.hs-form-csefinance .hs-form label:not(.hs-error-msg) {
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.47px;
    font-size: 12px;
    color: #202020;
    margin-bottom: 0px !important;
    margin-top: 0px !important;
    display: inline-block;
    width: 100%;
}

/* 5. FOCUS & ÉTATS */
.hs-form-csefinance .hs-form .hs-input:focus {
    outline: none !important;
    border-color: var(--e-global-color-primary) !important;
}

/* 6. BOUTON DE SOUMISSION (CTA) */
.hs-form-csefinance .hs-form .hs-submit {
    text-align: center !important;
    margin-top: -24px !important;
}

.hs-form-csefinance .hs-form .hs-button {
    background-color: var(--e-global-color-primary) !important;
    color: #ffffff !important;
    border: 1px #FFFFFF solid !important;
    border-radius: 12px;
    padding: 12px 30px 12px 30px;
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: 0.47px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.hs-form-csefinance .hs-form .hs-button:hover {
    color: var(--e-global-color-accent) !important;
    background: #FFFFFF !important;
    border: 1px var(--e-global-color-accent) solid !important;
}

/* 7. RESPONSIVE MOBILE */
@media (max-width: 767px) {
    .hs-form-csefinance .hs-form .hs-form-field {
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    /* Sur mobile, HubSpot empile déjà les champs, on s'assure du plein écran */
    .hs-form-csefinance .hs-form fieldset {
        display: block !important;
    }
}

/* 8. TEXTE D'AIDE ET ERREURS */
.hs-form-csefinance .hs-form .hs-field-desc {
    font-size: 13px !important;
    font-style: italic !important;
    margin-bottom: 5px;
}

.hs-form-csefinance .hs-form .hs-error-msg {
    color: #f2545b !important;
    font-size: 12px !important;
    margin-top: 4px;
}

/* GAP */

.hs-form-csefinance .hs-form fieldset {
        margin-bottom: 7px !important;
}