/* Container principal du GF */
.sojadis-form-container {
    --sojadis-font-family: 'Ubuntu',Helvetica,Arial,Lucida,sans-serif;
    --Bleu: #1F3153;
    --Blanc:#FFF;
    --Noir:#000;
    --Gris-clair:#E2E2E2;
    --Gris-moyen:#B3B3B3;
    --Gris-clair-plus:#FAFAFA;
    --Vert:#C6D515;
    --Vert-clair:#f4f7d0;
    --couleur-bg-summary: var(--Gris-clair-plus);
    --couleur-border-bottom-accordion: var(--Gris-clair);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 2em;
    font-family: var(--sojadis-font-family);
}
.sojadis-form-wrapper {
    width: 65%;
}
/* TITRE GENERALE SELON ETAPE */
.sojadis-main-title h2 {
    font-size: 48px;
    line-height: 67.2px;
    font-family: var(--sojadis-font-family);
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--Bleu);
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-section,
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-section .gsection_title {
    padding-block-end: 0;
    padding-bottom: 0;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-section:not(:first-child) {
    margin-top: 20px;
}
/*.gform-theme--foundation.gf-sojadis_wrapper .gform_fields {
    grid-row-gap: 3em;
}*/
.gform-theme--foundation.gf-sojadis_wrapper .gform_page_footer {
    --gf-form-footer-margin-y-start: 4em;
}
/* Boutons prec/suiv du GF footer + bouton resultat faisabilite */
body .gform-theme.gform-theme--framework.gform_wrapper.gf-sojadis_wrapper .gform_page_footer button.button,
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .resultat_actions button.gform_resultat_next_button {
    background: var(--Gris-clair-plus);
    border-color: var(--Gris-clair-plus);
    border-radius: 30px;
    color: var(--Vert);
    font-family: var(--sojadis-font-family);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    line-height: 18.2px;
    text-transform: initial!important;
}
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .gform_page_footer button.button:hover {
    background-color: var(--Vert);
    border-color: var(--Vert);
    color: var(--Gris-clair-plus);
}
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .gform_page_footer .gform_previous_button.button {
    border-color: var(--Gris-clair-plus);
}
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .gform_page_footer button.button:not(.gform_previous_button),
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .resultat_actions button.gform_resultat_next_button {
    background-image: url(data:image/svg+xml;base64,PHN2ZyBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgaGVpZ2h0PSI1MTIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIyIiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgaWQ9Ikljb24iPjxwYXRoIGQ9Im01LjUzIDE0LjUzIDYtNmMuMjkzLS4yOTMuMjkzLS43NjcgMC0xLjA2bC02LTZjLS4yOTItLjI5My0uNzY4LS4yOTMtMS4wNiAwLS4yOTMuMjkyLS4yOTMuNzY4IDAgMS4wNmw1LjQ2OSA1LjQ3cy01LjQ2OSA1LjQ3LTUuNDY5IDUuNDdjLS4yOTMuMjkyLS4yOTMuNzY4IDAgMS4wNi4yOTIuMjkzLjc2OC4yOTMgMS4wNiAweiIvPjwvZz48L3N2Zz4=);
    background-size: 16px;
    background-position: calc(100% - 10px);
    background-repeat: no-repeat;
    padding-right: 30px;
    border-color: var(--Vert);
    background-color: var(--Vert);
    color: var(--Bleu);
}
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .gform_page_footer button.button:not(.gform_previous_button):hover,
body .gform_wrapper.gform-theme--framework.gf-sojadis_wrapper .resultat_actions button.gform_resultat_next_button:hover {
    background-color: var(--Blanc);
    color: var(--Bleu);
}
/* GF Général */
.gform-theme--framework.gf-sojadis_wrapper {
    --gf-field-img-choice-card-check-ind-bg-color: var(--Vert);
    --gf-ctrl-choice-check-color: var(--Vert);
    --gf-ctrl-accent-color: var(--Vert);
    --gf-ctrl-border-color-focus: var(--Vert);
    --gf-ctrl-outline-color-focus: var(--Vert);
    --gf-ctrl-outline-width-focus: 3px;
}
.gform-theme--framework.gf-sojadis_wrapper .gform-field-label {
    font-size: 16px;
    font-weight: 700;
}
.gform-theme--framework.gf-sojadis_wrapper .gform-field-label.gform-field-label--type-sub {
    font-weight: initial;
}
.gform-theme--framework.gf-sojadis_wrapper input.text:focus, 
.gform-theme--framework.gf-sojadis_wrapper input[type=text]:focus,
.gform-theme--framework.gf-sojadis_wrapper input[type=email]:focus,
.gform-theme--framework.gf-sojadis_wrapper input.title:focus, 
.gform-theme--framework.gf-sojadis_wrapper select:focus,
.gform-theme--framework.gf-sojadis_wrapper textarea:focus {
    border-color: var(--Vert);
    color: #3e3e3e
}
/* Marque & modèle */
.gform-theme--framework.gf-sojadis_wrapper .gf-marque-modele select {
    --gf-ctrl-border-color : var(--Gris-clair);
    --gf-local-padding-y: 6px;
    --gf-ctrl-size: 50px;
    --gf-ctrl-radius: 10px;
}
/* GF Image Choices */
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card .gchoice {
    --gf-local-bg-color: var(--Gris-clair-plus);
    --gf-local-border-color: var(--Gris-clair-plus);
    --gf-field-img-choice-shadow: var(--Gris-clair-plus);
    --gf-ctrl-bg-color-focus: var(--Gris-clair-plus);
    --gf-ctrl-radio-check-size: var(--gf-ctrl-radio-check-size-lg);
    align-self: auto;
    cursor: pointer;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card .gchoice:where(:has(input:checked)) {
    outline-color: var(--Vert);
    outline-offset: 1px;
    outline-style: solid;
    outline-width: 3px;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice .gfield-choice-image-wrapper {
    --gf-field-img-choice-aspect-ratio: initial;
}
/* gestion de colonnes avec la classe gf-cols--X */
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--4 .gfield_radio,
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--4 .gfield_checkbox {
    --gf-field-img-choice-columns: 4;
    --gf-field-img-choice-column-width: 100%;
    --gf-field-img-choice-gap: 2%;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--3 .gfield_radio,
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--3 .gfield_checkbox {
    --gf-field-img-choice-columns: 3;
    --gf-field-img-choice-column-width: 100%;
    --gf-field-img-choice-gap: 2%;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols .gchoice {
    width: calc((var(--gf-field-img-choice-column-width) - (var(--gf-field-img-choice-gap) * (var(--gf-field-img-choice-columns) - 1))) / var(--gf-field-img-choice-columns));
    align-self: auto;
    max-inline-size: unset;
    min-inline-size: unset;
    --gf-ctrl-radius: 10px;
    --gf-local-bg-color: var(--Gris-clair-plus);
    --gf-color-in-ctrl-light-darker: var(--Gris-clair);
}
/* Exception Boite Vitesse */
.gform-theme--framework .gfield--type-image_choice.sojadis-bv .gfield-choice-image-wrapper {
    text-align: center;
}
.gform-theme--framework .gfield--type-image_choice.sojadis-bv .gfield-choice-image {
    height: auto;
    width: 90px;
    margin: 0 auto;
}
/* Exception je suis & type client & Moteur et transmission*/
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-style-square.gf-je-suis .gfield-choice-image-wrapper,
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-style-square.gf-type-client .gfield-choice-image-wrapper,
.gform-theme--framework .gfield--type-image_choice.gfield--image-choice-style-square.gf-type-moteur .gfield-choice-image-wrapper {
    padding: 0 40px;
}
/* Checkbox et radiobox façon bouton */
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_checkbox,
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_radio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_checkbox .gchoice,
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_radio .gchoice {
    background-color: var(--Gris-clair-plus);
    padding: 0;
    border-radius: 10px;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_checkbox .gchoice {
    width: calc((100% - 12px * 2) / 3);
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button.gf-je-souhaite .gfield_checkbox .gchoice {
    width: calc((100% - 12px * 1) / 2);
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button.gf-conduire-equipements .gfield_checkbox .gchoice {
    width: calc((100% - 12px * 3) / 4);
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gform-field-label {
    cursor: pointer;
    margin-left: 0;
    min-width: 175px;
    width: 100%;
    padding: 12px;
}
.gform-theme--framework.gf-sojadis_wrapper  .gfield--type-choice.sojadis-type-button .gfield-choice-input {
    display: none;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_checkbox .gchoice:hover,
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_radio .gchoice:hover {
    background-color: var(--Vert-clair);
}
.gform-theme--framework.gf-sojadis_wrapper  .gfield--type-choice.sojadis-type-button .gchoice:has(.gfield-choice-input:checked) {
    background-color: var(--Vert);
}
/* Radiobox */
.gform-theme--framework.gf-sojadis_wrapper .sojadis-type-button .gfield_radio .gchoice {
    text-align: center;
}
.gform-theme--framework.gf-sojadis_wrapper .sojadis-type-button .gfield_radio .gchoice .gform-field-label {
    color: #C6D515;
}
.gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_radio .gchoice:has(.gfield-choice-input:checked) .gform-field-label {
    color: #1F3153;
}

/* Input text & textarea */
.gform-theme--foundation.gf-sojadis_wrapper .gfield input, 
.gform-theme--foundation.gf-sojadis_wrapper .gfield textarea {
    --gf-ctrl-border-color: var(--Gris-clair);
    --gf-local-radius: 10px;
    --gf-local-shadow: none;
}
.gform-theme--foundation.gf-sojadis_wrapper .gfield input[type="text"], .gform-theme--foundation.gf-sojadis_wrapper .gfield input[type="email"] {
    --gf-local-line-height: 50px;
    --gf-local-height: 50px;
}
.gform-theme--foundation.gf-sojadis_wrapper .gfield input::placeholder,
.gform-theme--foundation.gf-sojadis_wrapper .gfield textarea::placeholder {
    color: var(--Gris-moyen);
}
.gform-theme--foundation.gf-sojadis_wrapper .gfield input:hover, .gform-theme--foundation.gf-sojadis_wrapper .gfield{
    --gf-ctrl-color-focus: var(--Vert);
}
/* input files */
.gform-theme--framework.gf-sojadis_wrapper .gfield:where(.gfield--type-fileupload,.gfield--input-type-fileupload) .ginput_preview .gfield_fileupload_progressbar_progress {
    --gf-ctrl-file-prog-bar-bg-color-loading: var(--Vert);
}
.gform-theme--framework.gf-sojadis_wrapper .gfield:where(.gfield--type-fileupload,.gfield--input-type-fileupload) .gform_drop_area::before {
    color: var(--Vert);
}
.gform-theme.gform-theme--framework.gform_wrapper.gf-sojadis_wrapper .button.gform_button_select_files.gform-theme-button--control {
    --gf-ctrl-btn-bg-color-ctrl: var(--Vert);
    --gf-ctrl-btn-border-color-ctrl: var(--Vert);
    --gf-ctrl-btn-color-ctrl: var(--Bleu);
    --gf-ctrl-btn-color-hover-ctrl: var(--Bleu);
    --gf-ctrl-btn-bg-color-hover-ctrl: #fff;
    --gf-ctrl-btn-border-color-hover-ctrl: var(--Vert);
    --gf-ctrl-btn-radius: 30px;
    --gf-ctrl-btn-color-focus-ctrl: var(--Bleu);
    --gf-ctrl-btn-bg-color-focus-ctrl: #fff;
    --gf-ctrl-btn-border-color-focus-ctrl: var(--Vert);
}
.sojadis-fileupload-info > div:first-child {
    font-weight: 700;
}
.sojadis-fileupload-info > div {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    line-height: 20px;
}
/* Description Info supplémentaire */
.sojadis-gap-vehicule-choix, .sojadis-gap-vehicule-est {
    --gf-field-choice-gap: 12px;
    --gf-description-info-gap: 12px;
}
.sojadis-gap-vehicule-est .gfield_description_warning > div > div:first-child {
    font-weight: 700;
}
.gfield_description_info, .gfield_description_warning {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--gf-description-info-gap);
    color: var(--Bleu);
}
.gfield_description_info > div, .gfield_description_warning > div {
    flex-basis: 175px;
}
.gfield_description_info > div > div:first-child, .gfield_description_warning > div > div:first-child {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}
.gfield_description_info > div > div:first-child:before, .gfield_description_warning > div > div:first-child:before {
    content: "";
    position: absolute;
    background-image: url("https://www.sojadis.com/wp-content/plugins/bm-theme-options/assets/images/info.svg");
    width: 24px;
    height: 24px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}
.gfield_description_warning > div > div:first-child:before {
    background-image: url("https://www.sojadis.com/wp-content/plugins/bm-theme-options/assets/images/warning.svg");
}
/* Page résultat de faisabilité */
/*.sojadis-resultat-faisabilite-suivant .gform_next_button {
    visibility: hidden;
}*/
.gf-sojadis_wrapper .resultat_faisabilite > h2 {
    margin: 30px 0;
}
.gf-sojadis_wrapper .recap-choix {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
}
.gf-sojadis_wrapper .recap-choix > div {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    width: 33%;
}
/* Sidebar pour le récapitulatif de la demande */
.sojadis-summary-wrapper {
    width: 30%;
}
.sojadis-ma-demande-container {
    background-color: var(--couleur-bg-summary);
    border-radius: 10px;
}
@media only screen and (min-width: 640px) {
    .sojadis-summary-wrapper .sojadis-ma-demande-container {
        position: sticky;
        overflow: auto;
        overflow-y: auto;
        top: 150px;
        max-height: 90vh;
    }
}
.sojadis-ma-demande_titre {
    color: var(--Vert);
    font-family: var(--sojadis-font-family);
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 44.8px;
    text-align: center;
    margin-top: 10px;
}
/* ACCORDIONS */
/* Style the buttons that are used to open and close the accordion panel */
.sojadis-accordion {
    position: relative;
    margin-top: 10px;
    background: inherit;
    cursor: pointer;
    padding: 10px 25px;
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 2px solid var(--couleur-border-bottom-accordion);
    outline: none;
    transition: 0.4s;
    color: var(--Bleu);
    font-family: var(--sojadis-font-family);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 33.6px;
}
.sojadis-accordion:after {
    content: '';
    background-image: url(data:image/svg+xml;base64,PHN2ZyBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGwtcnVsZT0iZXZlbm9kZCIgaGVpZ2h0PSI1MTIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS1taXRlcmxpbWl0PSIyIiB2aWV3Qm94PSIwIDAgMTYgMTYiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgaWQ9Ikljb24iPjxwYXRoIGQ9Im01LjUzIDE0LjUzIDYtNmMuMjkzLS4yOTMuMjkzLS43NjcgMC0xLjA2bC02LTZjLS4yOTItLjI5My0uNzY4LS4yOTMtMS4wNiAwLS4yOTMuMjkyLS4yOTMuNzY4IDAgMS4wNmw1LjQ2OSA1LjQ3cy01LjQ2OSA1LjQ3LTUuNDY5IDUuNDdjLS4yOTMuMjkyLS4yOTMuNzY4IDAgMS4wNi4yOTIuMjkzLjc2OC4yOTMgMS4wNiAweiIvPjwvZz48L3N2Zz4=);
    background-size: contain;
    position: absolute;
    top: 50%;
    right: 20px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%) rotate(90deg);
} 
.sojadis-accordion.active:after {
    transform: translateY(-50%) rotate(270deg);
}
.sojadis-accordion:hover {
    color:var(--Vert);
}
/* Style the accordion panel. Note: hidden by default */
.sojadis-panel {            
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}
.sojadis-summary-lines {
    margin-top: 10px;
    padding: 10px 5px;
}
.sojadis_summary_line {
    display: flex;
    column-gap: 15px;
    align-items: center;
    line-height: 1.3em;
}
.sojadis_summary_line:not(:last-child) {
    padding-bottom: 8px;
}
.sojadis_line_part_left {
    flex: 0 0 40px;
}
.sojadis_line_part_right {
    font-weight: 700;
}
#gsline_accessoire_title, #gsline_service_title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: var(--gris-fonce);
    text-transform: uppercase;
    margin: 10px 0;
}
@media all and (max-width: 1200px) {
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--4 .gfield_radio,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--3 .gfield_radio,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--4 .gfield_checkbox,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--3 .gfield_checkbox  {
        --gf-field-img-choice-columns: 3;
        --gf-field-img-choice-column-width: 100%;
        --gf-field-img-choice-gap: 2%;
        row-gap: 20px;
    }
}
@media all and (max-width: 1024px) {
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--4 .gfield_radio,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--3 .gfield_radio,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--4 .gfield_checkbox,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card.gf-cols--3 .gfield_checkbox  {
        --gf-field-img-choice-columns: 2;
        --gf-field-img-choice-column-width: 100%;
        --gf-field-img-choice-gap: 2%;
        row-gap: 20px;
    }
}
/*** Responsive Styles Smartphone Only ***/
@media all and (max-width: 767px) {
    .sojadis-form-container {
        flex-direction: column;
    }
    .sojadis-form-wrapper,.sojadis-summary-wrapper {
        width: 100%;
    }
    .sojadis-summary-wrapper {
        margin-top: 50px;
    }

    .sojadis-gap-vehicule-choix, .sojadis-gap-vehicule-est {
        --gf-field-choice-gap: 12px;
        --gf-description-info-gap: 12px;
    }
    .gf-sojadis_wrapper .recap-choix > div {
        width: 50%;
    }
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_checkbox .gchoice, 
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button .gfield_radio .gchoice,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button.gf-je-souhaite .gfield_checkbox .gchoice,
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-choice.sojadis-type-button.gf-conduire-equipements .gfield_checkbox .gchoice {
        width: calc((100% - var(--gf-field-choice-gap)) / 2);
        grid-template-columns: auto;
    }
    .gfield_description_info > div, .gfield_description_warning > div {
        flex-basis: calc((100% - var(--gf-field-choice-gap)) / 2);
    }
    .gform-theme--framework.gf-sojadis_wrapper .gfield--type-image_choice.gfield--image-choice-appearance-card .gchoice {
        --gf-field-img-choice-size: calc((100% - 12px* 1) / 2);
    }
}