#wrapper {
    background-color: #f2f2f2;
}
#content-wrapper{
    display: contents;
}
.customFormLoadingModal {
    width: 100%;
    max-width: 500px;
    border: none;
    background: unset;
    .dialog-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    &::backdrop {
        background-color: rgb(0 0 0 / 50%);
    }

    &:focus-visible {
        outline: none;
    }
}

#container-form-salesforce{
    width: 100%;
    margin: auto;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    .border-red-error {
        border: 2px solid #ff848424 !important;
        border-radius: 4px;
        background-color: #ff848424!important;
    }
    @keyframes highlight {
        0%   { background-color: #ff848424; }
        100% { background-color: white; }
    }
    .border-red-error:focus {
        animation: highlight 1s ease-in-out;
    }
    .sticky-error {
        position: sticky;
        top: 0;
        z-index: 9999;
        background-color: #f8d7da;
        color: #842029;
        border: 1px solid #f5c2c7;
        padding: 12px 20px;
        text-align: center;
        font-weight: bold;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    .radio-error {
        border: 2px solid red;
        border-radius: 6px;
        padding: 10px;
    }

    h2{
        color: #CC2028;
        padding: 20px 0 0 20px;
        margin: 0;
    }
    h3{
        color: black;
        padding-top: 20px;
    }
    h5{
        font-size: 1rem;
        font-weight: bold;
        color: #1F2F53;
        width: 100%;
    }
    .pre-praragraphe-form-devis{
        font-size: 14px;
        p{
            font-size: 14px;
            font-weight: bold;
        }
    }
}

.star-form-salesforce{
    color: red;
    font-weight: bold;
}


.form-check-label {
    display: inline-block;
    overflow: hidden;
    position: relative;
}
.form-check-label:hover .img-product {
    transform: scale(1.2);
}

#container-form-salesforce #products{
    display: flex;
    flex-wrap: wrap;

    @media(max-width: 768px) {
        justify-content: space-evenly;
    }
}
#container-form-salesforce #products.border-red-error {
    border: 2px solid #ff848424;
    border-radius: 8px;
    padding: 10px;
    background: #ff848424 !important;
}
#container-form-salesforce .custom-checkbox.border-red-error {
    border: 2px solid #ff848424;
    border-radius: 8px;
    padding: 10px;
    background: #ff848424 !important;
}

#container-form-salesforce .form-group {
    margin-bottom: 50px;
    width: 100%;
}

#container-form-salesforce label {
    font-weight: bold;
    color: #1F2F53;
}
#container-form-salesforce .label-personnalisation{
    border: 2px solid transparent;
    padding: 0;
    margin: 5px 5px 5px 0;
}
#container-form-salesforce .label-personnalisation:hover{
    border: 2px solid rgba(255, 161, 0, 0);
    padding: 0;
    border-radius: 60%;
    box-shadow: rgb(0 0 0 / 30%) 0 0 8px !important;
}
#container-form-salesforce input[type="text"] {
    background: #fff;
    width: unset!important;
    height: 100%;
    border: solid 1px #e3e3e3;
    outline: none;
    padding: 10px;
    border-radius: 0 5px 5px 0!important;
}
#container-form-salesforce .label-personnalisation img{
    width: 110px;
}
#container-form-salesforce .g-recaptcha {
    margin-top: 20px;
}
#container-form-salesforce .div-par-deux{
    gap: 15px;
}
#container-form-salesforce input[type="text"]{
    width: 100%;
}
#container-form-salesforce #surface input[type="text"]{
    width: unset!important;
    margin-right: 5px;
}

#container-form-salesforce .img-product{
    border: 2px solid transparent;
    width: 90px;
    height: 90px;
    user-select: none;
    -webkit-user-drag: none;
}

#container-form-salesforce .label-product{
    width: max-content;
    border: 2px solid transparent;
    padding: unset;
}

#container-form-salesforce .form-product{
    display: flex;
    align-items: center;
    flex-direction: column;

    @media (max-width: 768px) {
        margin-bottom: 8px;
    }
}
#container-form-salesforce input[type="number"] {
    width: 80px;
}

#container-form-salesforce .label-product:hover{
    border-radius: 50%;
}
#container-form-salesforce .border-red{
    border: 2px solid red!important;
    border-radius: 50%;
}
#container-form-salesforce .form-group{
    width: 100%;
}


/* Fleche */
#container-form-salesforce #fleche-container,
#container-form-salesforce #fleche-container-robustesse{
    position: relative;
    width: 100%; /* Ajustez selon la largeur désirée */
    height: 50px; /* Ajustez selon la hauteur désirée */
    background-color: #eee; /* Couleur de fond du conteneur */
    clip-path: polygon(0% 20%, 90% 20%, 90% 0, 100% 50%, 90% 100%, 90% 80%, 0% 80%);
}
#container-form-salesforce #fleche-remplissage,
#container-form-salesforce #fleche-remplissage-robustesse {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5%; /* Commence / remplissage */
    background-color: #1F2F53; /* Couleur de remplissage */
    transition: width 0.1s ease; /* Animation du remplissage */
    clip-path: polygon(0% 20%, 90% 20%, 90% 0, 100% 50%, 90% 100%, 90% 80%, 0% 80%);
}
#container-form-salesforce #indications,
#container-form-salesforce #indications-robustesse{
    display: flex;
    justify-content: space-between;
    margin-top: 20px; /* Espacement au-dessus des indications */
    padding-right: 30px;
}
#container-form-salesforce #indications span,
#container-form-salesforce #indications-robustesse span{
    cursor: pointer;
    transition: color 0.3s ease;
    width: 50px;
    text-wrap: nowrap;
}

/* css radio */
.cr-wrapper *,
.cr-wrapper *::before,
.cr-wrapper *::after {
    box-sizing: content-box !important;
}

.cr-wrapper input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.cr-wrapper span {
    font-size: 16px;
}

.cr-wrapper {
    display: table;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    margin-bottom: 5px;
}

.cr-wrapper input[type="checkbox"] ~ .cr-input {
    position: absolute;
    top: 50%;
    left: 0;
    height: 20px;
    width: 20px;
    background: #94A3B8;
    transition: background 250ms;
    border: 1px solid #F1F5F9;
    border-radius: 3px;
    transform: translate(0, -50%);
}

.cr-wrapper input[type="radio"] ~ .cr-input {
    position: absolute;
    top: 50%;
    left: 0;
    height: 20px;
    width: 20px;
    background: #94A3B8;
    transition: background 250ms;
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    transform: translate(0, -50%);
}

.cr-wrapper input[type="checkbox"] ~ .cr-input::after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    transition: background 250ms;
    background-color: #FFFFFF;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.cr-wrapper input[type="radio"] ~ .cr-input::after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 20px;
    background: #FFFFFF;
    transition: background 250ms;
}

.cr-wrapper input:checked ~ .cr-input::after {
    display: block;
}

.cr-wrapper:hover input[type="checkbox"]:not([disabled]) ~ .cr-input,
.cr-wrapper input[type="checkbox"]:focus ~ .cr-input {
    background: #E2E8F0;
    border-color: #64748B;
}

.cr-wrapper:hover input[type="radio"]:not([disabled]) ~ .cr-input,
.cr-wrapper input[type="radio"]:focus ~ .cr-input {
    background: #E2E8F0;
    border-color: #64748B;
}

.cr-wrapper input[type="checkbox"]:checked ~ .cr-input {
    background: #40A9BF;
    border-color: #2F7D8E;
}

.cr-wrapper input[type="radio"]:checked ~ .cr-input {
    background: #40A9BF;
    border-color: #2F7D8E;
}

.cr-wrapper input[type="checkbox"]:disabled ~ .cr-input,
.cr-wrapper input[type="radio"]:disabled ~ .cr-input {
    opacity: 0.5;
    cursor: not-allowed;
}

.cr-wrapper input[type="checkbox"]:disabled ~ span,
.cr-wrapper input[type="radio"]:disabled ~ span {
    opacity: 0.5;
    cursor: not-allowed;
}

.cr-wrapper input[type="checkbox"]:disabled ~ .cr-input::after {
    background: #FFFFFF;
}

.cr-wrapper input[type="radio"]:disabled ~ .cr-input::after {
    background: #FFFFFF;
}

.cr-wrapper:hover input[type="checkbox"]:not([disabled]):checked ~ .cr-input,
.cr-wrapper input[type="checkbox"]:checked:focus ~ .cr-input {
    background: #2F7D8E;
    border-color: #225D69;
}

.cr-wrapper:hover input[type="radio"]:not([disabled]):checked ~ .cr-input,
.cr-wrapper input[type="radio"]:checked:focus ~ .cr-input {
    background: #2F7D8E;
    border-color: #225D69;
}
#container-form-salesforce #personnalisation{
    display: block;
}
#container-form-salesforce #personnalisation .cr-wrapper{
    padding: 5px 20px 5px 20px;
}




#container-form-salesforce #dateReception{
    width: unset;
}
#container-form-salesforce #form-description p{
    font-size: 12px;
}
#container-form-salesforce #perso-barnums,
#container-form-salesforce #perso-te,
#container-form-salesforce #perso-tg
{
    display: flex;
    flex-wrap: wrap;
}

#container-form-salesforce #coord-client{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0 40px 0;
}

#container-form-salesforce #statut-client label,
#container-form-salesforce #coord-client label
{
    color: #1F2F53;
    background-color: white;
    border: #1F2F53 1px solid;
}

#container-form-salesforce #statut-client label:hover,
#container-form-salesforce #coord-client label:hover{
    color: white;
    background-color: #1F2F53;
}
#container-form-salesforce #statut-client .btn-not-focus,
#container-form-salesforce #coord-client .btn-not-focus{
    background-color: white;
    color: #1F2F53;
}
#container-form-salesforce #statut-client .btn-focus,
#container-form-salesforce #coord-client .btn-focus{
    background-color: #1F2F53;
    color: white;
}

#container-form-salesforce #adresse-pro .radio-container input[type="radio"]:checked + .label-adresse-pro,
#container-form-salesforce #rdv .radio-container input[type="radio"]:checked + .label-rdv{
    background-color: #1F2F53;
    color: white;
}


#container-form-salesforce #adresse-pro .input-group-prepend .input-group-text,
#container-form-salesforce #rdv .input-group-prepend .input-group-text,
#container-form-salesforce #statut-client .input-group-prepend{
    margin-right: 10px;
}

#container-form-salesforce .form-check input[type="checkbox"]{
    display: none
}

#container-form-salesforce .form-group .select-container {
    display: flex;
    margin-top: 20px;
    gap: 15px;

    @media (max-width: 768px) {
        display: block;
        margin-left: 1.5rem;
    }

    .item-container {
        display: flex;
        gap: 8px;
        width: 30%;
        align-items: center;

        @media (max-width: 768px) {
            width: unset;
        }

        label {
            width: 80%;
            margin: 0;
        }
    }
}

#container-form-salesforce #murs-selection {
    width: 40%;

    div.form-product {
        flex: 1;
    }
}

#container-form-salesforce #SelectionMurs {
    &.hide {
        display: none;
    }
}

#container-form-salesforce .form-check .qty-selector-container {

    &.qty_absolute {
        position: absolute;
        top: 100%;

        @media(max-width: 768px) {
            position: relative;
            top: unset;
        }
    }
    display: flex;
    flex-direction: column;
    align-items: center;
    &.hide {
        display: none;
    }

    label {
        margin-top: 8px;
    }

    .form-control {
        margin: 0;
    }

    .input-number-container {
        position: relative;
        width: 100px;
        display: inline-block;
    }

    .qty-input {
        width: 100%;
        padding: 5px 25px;
        text-align: center;
        font-size: 16px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    .qty-btn {
        position: absolute;
        top: 0;
        width: 25px;
        height: 100%;
        border: none;
        background-color: transparent;
        font-size: 18px;
        color: #333;
        cursor: pointer;
        user-select: none;
    }

    .qty-btn.minus {
        left: 0;
        border-right: 1px solid #ccc;
    }

    .qty-btn.plus {
        right: 0;
        border-left: 1px solid #ccc;
    }


}

#container-form-salesforce #SourceDecouverte{
    flex-direction: row;
    flex-wrap: wrap;
}
#container-form-salesforce #SourceDecouverte .form-check,
#container-form-salesforce #domaine-activite .form-check,
#container-form-salesforce #domaine-specific-content .form-check,
#container-form-salesforce #SourceDecouverte .radio-container
{
    margin: 5px 0 5px 0;
}

#container-form-salesforce .form-group input{
    margin: 0 0 0 1.5rem;
}

/*gdpr*/
#container-form-salesforce .label-gdpr{
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    color: #1F2F53;
    font-weight: bold;
    cursor: pointer;
}
#container-form-salesforce .label-gdpr a{
    color: #1F2F53;
}
#container-form-salesforce #psgdpr_consent_checkbox_91{
    width: 40px;
    cursor: pointer;
}

#container-form-salesforce .btn-custom-submit{
    color: #1C2123;
    background-color: #FED417;
    border: #FED417 1px solid;
    margin: 0.5rem;
    font-weight: bold;
    text-transform: unset;
}
#container-form-salesforce .btn-custom-submit:hover{
    color: white;
    background-color: #CC2028;
    border: #CC2028 1px solid;
}
#container-form-salesforce #gdpr_consent_91 input[type="checkbox"]:checked{
    accent-color: #169c16;
}
#container-form-salesforce #gdpr_consent_91{
    margin: 0 1.5rem 0 1.5rem;
}

#container-form-salesforce  #coord-client .input-group{
    padding: 5px 20px 5px 20px;
}

#container-form-salesforce #form-btn{
    display: flex;
    justify-content: space-around;
    padding: 0 0 15px 0;
    width: 100%;
}

#container-form-salesforce .radio-container,
#container-form-salesforce #statut-client{
    display: flex;
    flex-wrap: wrap;
}

#container-form-salesforce div .radio-container{
    margin-right: 10px;
}

#container-form-salesforce #rdv input,
#container-form-salesforce #adresse-pro input,
#container-form-salesforce #statut-client input{
    display: none;
}

#container-form-salesforce .span-inactif{
    color: #1F2F53;
}
#container-form-salesforce .span-actif{
    color: rgb(195, 130, 14);
}
#container-form-salesforce .custom-checkbox{
    display: flex;
    input[type="checkbox"] {
        transform: scale(2);
    }
}
#container-form-salesforce .custom-checkbox #psgdpr_consent_checkbox_91{
    margin-right: 5px;
}

#container-form-salesforce .custom-checkbox{
    display: flex;
    align-items: flex-start;
}
#container-form-salesforce .cgv{
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
    background-color: #173157;
    border: 1px solid #173157;
    padding: 10px;
    font-weight: bold;
    position: relative;
    top: -12px;
    color: white;
    user-select: none;
    margin-left: 10px;
    border-radius: 5px;
    a{
        color: #FED417!important;
    }
}
#container-form-salesforce #barnumType a {
    color: #183157;
    text-decoration: underline;

}
#container-form-salesforce #adresse-pro .checkbox-group.d-flex {
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    #container-form-salesforce {
        max-width: 100%;
    }
    #container-form-salesforce #coord-client input[type="text"]{
        width: 100%;
    }
    #container-form-salesforce #indications,
    #container-form-salesforce #indications-robustesse{
        font-size: 12px;
    }
    #container-form-salesforce #indications span {
        display: block;
        margin-bottom: 10px; /* Ajustez selon le besoin */
    }
    #container-form-salesforce #indications span:nth-child(4n+2) {
        position: relative;
        top: -20px; /* Ajustez la hauteur selon le besoin */
    }
    #container-form-salesforce #perso-barnums,
    #container-form-salesforce #perso-te,
    #container-form-salesforce #perso-tg{
        justify-content: center;
    }
    #container-form-salesforce .form-personnalisation{
        padding-left: 0;
    }
    #container-form-salesforce .label-personnalisation:active{
        border: unset;
        padding: 5px;
        border-radius: 17%;
        box-shadow: none;
    }
    #container-form-salesforce input[type="text"]{
        height: unset;
    }
    #container-form-salesforce {
        padding: 10px;
    }
    #container-form-salesforce input[type="text"]{
        width: 100%!important;
    }
    #wrapper{
        padding-top: 0;
    }
}
@media (max-width: 425px) {
    .header-nav>.container>.row{
        flex-wrap: wrap!important;
    }
    #container-form-salesforce{
        #coord-client{
            .input-group-prepend{
                margin-bottom: 5px;
            }
        }
        #statut-client{
            gap: 5px;
            .label-statut{
                padding-left: 5px;
                font-size: 12px!important;
            }
            .input-group-prepend{
                margin-bottom: 5px;
            }
        }

        #adresse-pro{
            .input-group-prepend{
                margin-bottom: 5px;
            }
            .checkbox-group.d-flex{
                flex-direction: column;
                gap: 5px;
                .label-adresse-pro{
                    font-size: 12px!important;
                }
            }
        }
        #files{
            width: auto;
        }
        .custom-checkbox{
            margin: 0 20px;
        }
        #form-btn{
            flex-direction: column-reverse;
        }
    }
}
@media (max-width: 320px) {
    #container-form-salesforce{
        #adresse-pro{
            .checkbox-group.d-flex{
                .label-adresse-pro{
                    font-size: 10px!important;
                }
            }
        }
    }
}
@media (hover: none) {
    #container-form-salesforce .label-product:hover{
        border: 2px solid transparent;
        border-radius: 50%;
    }
}




/* Flip switch */
.flipswitch {
    position: relative;
    width: 86px;
}
.flipswitch input[type=checkbox] {
    display: none;
}
.flipswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #999999;
    border-radius: 20px;
}
.flipswitch-inner {
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}
.flipswitch-inner:before, .flipswitch-inner:after {
    float: left;
    width: 50%;
    height: 24px;
    padding: 0;
    line-height: 24px;
    font-size: 18px;
    color: white;
    font-family: Trebuchet, Arial, sans-serif;
    font-weight: bold;
    box-sizing: border-box;
}
.flipswitch-inner:before {
    content: "Oui";
    padding-left: 12px;
    background-color: #1F2F48;
    color: #FFFFFF;
}
.flipswitch-inner:after {
    content: "Non";
    padding-right: 12px;
    background-color: #E6E6E6;
    color: #888888;
    text-align: right;
}
.flipswitch-switch {
    width: 31px;
    margin: -3.5px;
    background: #FFFFFF;
    border: 1px solid #999999;
    border-radius: 20px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 59px;
    transition: all 0.3s ease-in 0s;
}
.flipswitch-cb:checked + .flipswitch-label .flipswitch-inner {
    margin-left: 0;
}
.flipswitch-cb:checked + .flipswitch-label .flipswitch-switch {
    right: 0;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}
[data-tooltip]::before,
[data-tooltip]::after {
    text-transform: none;
    font-size: .9em;
    line-height: 1;
    position: absolute;
    display: none;
    opacity: 0;
    filter: drop-shadow(4px 2px 4px rgba(230, 230, 230, 0.86));
}
[data-tooltip]::before {
    content: '';
    border: 6px solid transparent;
    z-index: 101;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    text-align: center;
    min-width: 10em;
    max-width: 40em;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    text-overflow: unset;
    padding: 10px;
    border-radius: 3px;
    background: rgba(230, 230, 230, 0.86);
    color: rgba(0, 0, 0, 0.91);
    z-index: 100;
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    display: block;
}
[data-tooltip='']::before,
[data-tooltip='']::after {
    display: none !important;
}
[data-tooltip]:not([data-flow])::before,
[data-tooltip][data-flow^="top"]::before {
    bottom: 100%;
    border-bottom-width: 0;
    border-top-color: rgba(230, 230, 230, 0.86);;
}
[data-tooltip]:not([data-flow])::after,
[data-tooltip][data-flow^="top"]::after {
    bottom: calc(100% + 5px);
}
[data-tooltip]:not([data-flow])::before,
[data-tooltip]:not([data-flow])::after,
[data-tooltip][data-flow^="top"]::before,
[data-tooltip][data-flow^="top"]::after {
    left: 50%;
    transform: translate(-50%, -.4em);
}
[data-tooltip][data-flow^="bottom"]::before {
    top: 100%;
    border-top-width: 0;
    border-bottom-color: rgba(230, 230, 230, 0.86);
}
[data-tooltip][data-flow^="bottom"]::after {
    top: calc(100% + 5px);
}
[data-tooltip][data-flow^="bottom"]::before,
[data-tooltip][data-flow^="bottom"]::after {
    left: 50%;
    transform: translate(-50%, .4em);
}
[data-tooltip][data-flow^="left"]::before {
    top: 50%;
    border-right-width: 0;
    border-left-color: rgba(230, 230, 230, 0.86);
    left: calc(0em - 5px);
    transform: translate(-.5em, -50%);
}
[data-tooltip][data-flow^="left"]::after {
    top: 50%;
    right: calc(100% + 5px);
    transform: translate(-.4em, -50%);
}
[data-tooltip][data-flow^="right"]::before {
    top: 50%;
    border-left-width: 0;
    border-right-color: rgba(230, 230, 230, 0.86);
    right: calc(0em - 7px);
    transform: translate(.4em, -50%);
}
[data-tooltip][data-flow^="right"]::after {
    top: 50%;
    left: calc(100% + 5px);
    transform: translate(.5em, -50%);
}
@keyframes tooltip-vert {
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
@keyframes tooltip-horz {
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}
[data-tooltip]:not([data-flow]):hover::before,
[data-tooltip]:not([data-flow]):hover::after,
[data-tooltip][data-flow^="top"]:hover::before,
[data-tooltip][data-flow^="top"]:hover::after,
[data-tooltip][data-flow^="bottom"]:hover::before,
[data-tooltip][data-flow^="bottom"]:hover::after {
    animation: tooltip-vert .5s ease-out forwards;
}
[data-tooltip][data-flow^="left"]:hover::before,
[data-tooltip][data-flow^="left"]:hover::after,
[data-tooltip][data-flow^="right"]:hover::before,
[data-tooltip][data-flow^="right"]:hover::after {
    animation: tooltip-horz .5s ease-out forwards;
}