/* ============================================================
   STRUCTURE COMMUNE - FORMULAIRES HUBSPOT
   ============================================================ */

/* 1. CHAMPS DE SAISIE (INPUT & SELECT) */
.hs-form-gifteo-fr .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]),
.hs-form-fond-rouge .hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
    background-color: #ffffff;
    border: 1px solid #C9C9C9;
    border-radius: 5px;
    padding: 0 15px !important;
    height: 42px !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    color: #333;
    width: 100% !important;
    line-height: 42px !important;
}

/* 2. MENUS DÉROULANTS */
.hs-form-gifteo-fr .hs-form select.hs-input,
.hs-form-fond-rouge .hs-form select.hs-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    padding-right: 35px !important;
    cursor: pointer;
    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, GRILLE ET ESPACEMENTS */
.hs-form-gifteo-fr .hs-form .hs-form-field,
.hs-form-fond-rouge .hs-form .hs-form-field {
    padding: 0 !important;
    margin-bottom: 20px !important;
}


/* Alignement bouton envoyer */
.hs-form-gifteo-fr .hs-form .hs-submit,
.hs-form-fond-rouge .hs-form .hs-submit {
    text-align: center;
}

.hs-form-gifteo-fr .hs-form fieldset,
.hs-form-fond-rouge .hs-form fieldset {
    max-width: 100% !important;
    margin-bottom: 0px !important;
    border: none !important;
    padding: 0 !important;
}

/* 4. LABELS & MESSAGES D'ERREUR */
.hs-form-gifteo-fr .hs-form label:not(.hs-error-msg),
.hs-form-fond-rouge .hs-form label:not(.hs-error-msg) {
    font-size: 14px !important;
    margin-top:10px;
    font-weight: 300 !important;
    margin-bottom: 5px !important;
    display: inline-block;
    width: 100%;
}

.hs-form-gifteo-fr .hs-form .hs-field-desc,
.hs-form-fond-rouge .hs-form .hs-field-desc {
    font-size: 13px !important;
    font-style: italic !important;
    margin-bottom: 5px;
}

.hs-form-gifteo-fr .hs-form .hs-error-msg,
.hs-form-fond-rouge .hs-form .hs-error-msg {
    color: #f2545b !important;
    font-size: 12px !important;
    margin-top: 4px;
}

/* 5. BOUTON (STRUCTURE COMMUNE) */
.hs-form-gifteo-fr .hs-form .hs-submit,
.hs-form-fond-rouge .hs-form .hs-submit {
    margin-top: 24px !important;
}

.hs-form-gifteo-fr .hs-form .hs-button,
.hs-form-fond-rouge .hs-form .hs-button {
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 6. RESPONSIVE (DESKTOP & MOBILE) */
@media (min-width: 768px) {
    .hs-form-gifteo-fr .hs-form fieldset, .hs-form-fond-rouge .hs-form fieldset {
        display: flex !important;
        gap: 20px !important;
    }
    .hs-form-gifteo-fr .hs-form fieldset .hs-form-field, .hs-form-fond-rouge .hs-form fieldset .hs-form-field {
        flex: 1 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767px) {
    .hs-form-gifteo-fr .hs-form .hs-button,
    .hs-form-fond-rouge .hs-form .hs-button {
        width: 100% !important;
    }
}

/* Couleur du Label */
.hs-form-gifteo-fr .hs-form label:not(.hs-error-msg) {
    color: #1b2340;
}

/* Bouton Primaire (Elementor) */
.hs-form-gifteo-fr .hs-form .hs-button {
    background-color: var(--e-global-color-primary);
    font-size: 12px;
    text-transform: uppercase;
    fill: var(--e-global-color-bbb8e90);
    color: var(--e-global-color-bbb8e90);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-primary);
    border-radius: 6px 6px 6px 6px;
}

.hs-form-gifteo-fr .hs-form .hs-button:hover {
    background-color: transparent;
    color: var(--e-global-color-primary);
    border-color:var(--e-global-color-primary);
}

/* Labels en blanc pour contraste sur fond rouge */
.hs-form-fond-rouge .hs-form label:not(.hs-error-msg) {
    color: #ffffff;
}


.hs-form-fond-rouge .hs-form .hs-button {
    background-color: var(--e-global-color-text);
    font-size: 12px;
    text-transform: uppercase;
    fill: var(--e-global-color-bbb8e90);
    color: var(--e-global-color-bbb8e90);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    background-color: var(--e-global-color-text);
    border-radius: 6px 6px 6px 6px;
}

.hs-form-fond-rouge .hs-form .hs-button:hover {
    background-color: #ffffff;
    color: #1D1D1B;
    border-color: #ffffff;
}