/*

Stylisation des formulaires GRAVITY FORM

*/

label,
select,
textarea,
input {
    font-family: var(--font-primary);
}
select,
textarea,
input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=search]) {
    min-height: 50px;
    padding: 14px 15px 14px 67px;
    line-height: 1;
    box-shadow: -5px 11px 34px rgba(0,0,0,.16);
    border-radius: 25px;
    border: 0;
    outline: 0;
    width: 100%;
    font-size: 1.4rem;
    color: var(--gray-700);
}
select::placeholder,
textarea::placeholder,
input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=search])::placeholder {
    color: var(--gray-700);
}
.gfield {
    padding: 0;
    margin: 0 0 15px 0;
    position: relative;
}
.gfield--type-text .gfield_label, .gfield--type-email .gfield_label, .gfield--type-phone .gfield_label, .gfield--type-select .gfield_label, .gfield--type-textarea .gfield_label{
    width: 50px;
    height: 50px;
    color: transparent;
    background-color: var(--grey);
    display: flex;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    z-index: 8;
}
.gfield_label::after {
    font-size: 2.5rem;
    color: var(--white);
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

    .gfield--type-text .gfield_label::after {
        content: '\e919';
    }
    .gfield--type-email .gfield_label::after {
        content: '\e910';
        font-size: 2.2rem;
    }
    .gfield--type-phone .gfield_label::after {
        content: '\e918';
    }
    .gfield--type-select .gfield_label::after {
        content: '\e90b';
        font-size: 2.2rem;
    }
    .gfield--type-textarea .gfield_label::after {
        content: '\e90c';
    }

    .gfield--type-consent .gfield_label, .gfield--type-fileupload .gfield_label, .gfield--type-checkbox .gfield_label, .gfield--type-radio .gfield_label , .gfield--type-captcha .gfield_label{
        display: none;
    }
    .gfield--type-fileupload input[type=file] {
        padding-left: 25px!important;
        margin-bottom: 1rem;
    }
    .gfield--type-textarea, .gfield--type-fileupload {
        position: relative;
    }
    .gfield--type-textarea::before, .gfield--type-fileupload:nth-last-child(2)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 1px;
        width: 100%;
        height: calc(100% + 93px);/* Hauteur du textarea + hauteur du constement */
        z-index: -1;
        background-color: var(--grey);
        display: block!important;
        border-radius: 35px 35px 25px 25px;
    }
    .gfield--type-fileupload:nth-last-child(2) .ginput_container_fileupload input[type="file"] {
        background-color: var(--white);
    }
    .gfield--type-fileupload:nth-last-child(2) .gfield_description {
        color: var(--white);
        padding: 0 15px;
        display: block;
    }
    .ginput_container_consent {
        padding: 0 20px 14px 20px;
    }
    .ginput_container_consent label, .gchoice label {
        display: block;
        line-height: 150%;
        position: relative;
        padding-left: 3rem;
        min-height: 22px;
    }
    .flex-wrapper {
        display: flex;
    }
        .flex-wrapper .gfield:first-child input {
            border-radius: 25px 0 0 25px!important;
            width: calc(100% + 25px)!important;
        }
    .gchoice label {
        margin-bottom: 15px;
    }
    .ginput_container_consent label {
        color: var(--white);
        font-size: .8rem;
    }
    .ginput_container_consent input, .gfield_checkbox input, .gfield_radio input {
        display: none;
    }
    .ginput_container_consent label::before, .gfield_checkbox label::before, .gfield_radio label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 22px;
        height: 22px;
        border: 2px solid var(--color-primary);
        background-color: var(--white);
    }
    .gfield_checkbox label::after {
        content: '\e90b';
        color: var(--color-primary);
        font-family: 'icomoon' !important;
        speak: never;
        font-style: normal;
        font-weight: normal;
        font-variant: normal;
        text-transform: none;
        line-height: 1;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        left: 4px;
        top: 7px;
        font-size: .9rem;
        position: absolute;
        opacity: 0;
    }
    .gfield_checkbox input:checked + label::after {
        opacity: 1;
    }
    .ginput_container_consent label::before, .gfield_radio label::before {
        border-radius: 50%;
    }
        .ginput_container_consent input:checked + label::after, .gfield_radio input:checked + label::after {
            content: '';
            position: absolute;
            left: 5px;
            top: 5px;
            width: 12px;
            height: 12px;
            background-color: var(--color-primary);
            border-radius: 50%;
        }
        .ginput_container_consent input:checked + label::before {
            border-color: var(--white);
        }
.gform_button {
    border: none;
    cursor: pointer;
}

.gfield::before{
    display: none;
}

.gform_footer , .gfield--type-submit {
    display: flex;
    justify-content: center;
}
body .gform_footer input:not([type=radio]):not([type=checkbox]):not([type=hidden]).gform_button , .gfield--type-submit input:not([type=radio]):not([type=checkbox]):not([type=hidden]){
    padding: 0!important;
    background-color: var(--gray-700);
    color: var(--white)!important;
    font-size: 1.8rem;
    max-width: 153px;
    cursor: pointer;
    font-weight: 600;
}
.gfield--type-submit {
    margin-top: -11px;
}
@media screen and (max-width:370px) {
    .gfield--type-submit {
        margin-top: -24px;
    }
}
.gform_confirmation_message  {
    position: relative;
    bottom: 4rem;
    font-size: 2.7rem;
    line-height: 131%;
    font-weight: 600;
}
.gform_heading .gform_description , .gform_submission_error {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    margin-bottom: 27px;
}
.gform_submission_error {
    color: var(--red);
}
.validation_message {
    position: absolute;
    top: 50%;
    left: 67px;
    line-height: 1;
    color: var(--red);
    transform: translateY(-50%);
    pointer-events: none;
}
.gfield--type-textarea .validation_message {
    transform: none;
    top: 21px;
}
textarea[aria-invalid="true"]::placeholder, input:not([type=radio]):not([type=checkbox]):not([type=hidden]):not([type=search])[aria-invalid="true"]::placeholder {
    color: transparent;
}
.bloc_contact-form {
    padding: 115px 15px 140px 15px;
}

/* enlever l'icône flèche par défaut d'un select */
select, .nice-select {
    -moz-appearance: none;
    -webkit-appearance: none;
        appearance: none;
	background-image: url('/wp-content/themes/mediapilote/img/charte/arrow.svg');
	background-position: center right 22px;
	background-size: auto 11px;
    background-repeat: no-repeat;
    width: 100%!important;
    min-height: 50px;
    border-radius: 25px!important;
}
select.gfield_select , .nice-select.gfield_select {
    background-image: initial;
    color: var(--gray-700);
}
select.gfield_select option:checked {
    background-color: var(--gray-400);
}
select::-ms-expand {
	display: none;
}

.gform_fields {
    display: flex;
    flex-direction: column;
}
.gfield--type-html:nth-last-of-type(2) {
    font-size: .8rem;
    line-height: 150%;
    order: 555;
}

/* Alert */
.alert
{
	background: green;
	color:#FFF;
	padding:10px;

	width:100%;
	text-align: center;
}

.alert.alert-error
{
	background: rgb(194, 24, 12);
}
