#rental_form .mce-content-body{
    margin-bottom:2rem;
}
#rental_form .contact_form {
    padding-top: 4rem;
}
#contact_choice_type_container{
    font-size:0;
    margin:0 -2rem;
    padding-bottom: 10rem;
}
#contact_choice_type_container .contact_choice_type{
    display:inline-block;
    width:calc(100% / 3);
    padding:1.8rem 2rem;
    box-sizing: border-box;
    vertical-align: top;
}
#contact_choice_type_container .contact_choice_type_content{
    border:1px solid #bababa;
    cursor:pointer;
    height: 0;
    padding-top: 100%;
    position:relative;
    background-repeat:no-repeat;
    background-position: 3.6rem 2rem;
    background-size:50%;    
}
#contact_choice_type_container .contact_choice_type_name{
    font-size:2rem;
    color:black;
    padding:2rem 2rem;
    line-height: 1.8rem;
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    box-sizing:border-box;
}
#contact_choice_type_container .contact_choice_type_name::after{
    content: '\f054';
    color: #DB0717;
    font-family: "Font Awesome 5 Pro";
    display:block;
    font-weight:bold;
    font-size:2rem;
    padding-top:0.8rem;
}
#contact_choice_type_container .contact_choice_type_content:hover,
#contact_choice_type_container .contact_choice_type_content.selected{
    background-color:#f7f7f7;
}

#contact_choice_type_container .contact_choice_type_content:hover .contact_choice_type_name,
#contact_choice_type_container .contact_choice_type_content.selected .contact_choice_type_name{
    color:#DB0717;
}
#contact_forms .contact_form:not(.contact_form--default){
    display:none;
    position:relative;
}

#contact_forms .contact_form[data-form-type="no-button"] {
    display: block;
}

#contact_forms .contact_form::before{
    position: absolute;
    top: 0;
    content: '';
    border-top: 1px solid #f2f2f2;
    width: 200%;
    left: 0;
    margin-left: calc(-100vw / 2 + 86.4rem / 2);
}
#contact_choice_type_container .contact_choice_type_region .contact_choice_type_content{
    background-image:url(../images/form/region.png);
    background-size: 36%;
}
#rental_form .rental-who .wpcf7-list-item {
    display: inline-block;
    width: calc(100% / 4);
    padding: 1.8rem 2rem;
    box-sizing: border-box;
    vertical-align: top;
}
#rental_form .rental-who .wpcf7-list-item label {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-end;
    /* display: inline-block; */
    border:5px solid #d4d4d4;
    border-radius: 5px;
    cursor:pointer;
    width: 100%;
    height: 0;
    padding-top: 100%;
    position:relative;
    background-repeat:no-repeat;
    background-position: 0rem 0rem;
    background-image:url(../images/form/entreprise.png);
    background-size: 100%;
    background-color: #ffffff;
}

#rental_form .rental-who .wpcf7-list-item label[value="Une entreprise"],  #rental_form .rental-who .wpcf7-list-item label[value="A company"]{
    background-image:url(../images/form/entreprise.png);
}

#rental_form .rental-who .wpcf7-list-item label[value="Une association"], #rental_form .rental-who .wpcf7-list-item label[value="An association"] {
    background-image:url(../images/form/association.png);
}

#rental_form .rental-who .wpcf7-list-item label[value="Un particulier"], #rental_form .rental-who .wpcf7-list-item label[value="An individual"] {
    background-image:url(../images/form/particulier.png);
}

#rental_form .rental-who .wpcf7-list-item label[value="Un CSE"] {
    background-image:url(../images/form/cse.png);
}

#rental_form .rental-who .wpcf7-list-item label[value="Une administration"], #rental_form .rental-who .wpcf7-list-item label[value="An administration"] {
    background-image:url(../images/form/administration.png);
}

#rental_form .rental-who .wpcf7-list-item label[value="Un établissement scolaire"], #rental_form .rental-who .wpcf7-list-item label[value="A school"] {
    background-image:url(../images/form/etablissement-scolaire.png);
}

#rental_form .rental-who .wpcf7-list-item label:hover,
#rental_form .rental-who .wpcf7-list-item label.selected {
    /* background-color:#f7f7f7; */
    color:#DB0717;
}

#rental_form .rental-who .wpcf7-list-item label input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

#rental_form .rental-who .wpcf7-list-item label .wpcf7-list-item-label {
    position: absolute;
    margin-bottom: 0.875rem;
    margin-left: 1.17rem;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

#rental_form details {
    cursor: pointer;
}

#rental_form details summary {
    margin-top: 3.5rem;
    margin-bottom: 3.5rem;
}

#rental_form details summary::marker {
    font-size: 0 !important;
}

#rental_form details summary::after {
  content: '\f054';
  font-family: 'Font awesome 5 Pro';
  vertical-align: middle;
  display: inline-block;
  margin-left: 14px;
  transition: none;
  font-size: 1.4rem;
  transform: rotate(90deg);
  transition: transform 0.3s;
}

#rental_form details[open=""] summary {
 color: #DB0717;
}

#rental_form details[open=""] summary::after {
    transform: rotate(270deg);
}

#rental_form .contact-group--trip-type .cf7md-label--static {
    margin-bottom: 2rem;
    margin-top: 2.2rem;
    padding: 0;
    width: auto;
    margin-right: 20px;
    font-size: 1.983rem !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

#rental_form .contact-group--trip-type .wpcf7-form-control {
    display: flex;
    flex-wrap: wrap;
}

#rental_form .contact-group--trip-type .wpcf7-form-control .wpcf7-list-item {
    width: calc(100% / 3 - 15px);
}

#rental_form .contact-sublabel {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 0.4375rem;
    font-weight: 700;
    color: #959595;
}

#rental_form .contact-field-submit button::after {
    content: none !important;
}

#rental_form .cf7md-accept .cf7md-accept--inner .cf7md-accept-label {
    font-size: 1.4rem !important;
}

#rental_form h2.contact-title-text--medium {
    font-size: 1.983rem !important;
}

#rental_form textarea.wpcf7-textarea {
    background-color: #f7f7f7 !important;
}

#rental_form .contact-field-text a {
    text-decoration: underline !important;
}

#rental_form .wpcf7-response-output {
    color: #DB0717;
    font-size: 1.8rem !important;
}

#rental_form .contact-field--spacing {
    padding: 2rem 0;
}

/* Mobile version */
@media screen and (max-width: 767px) {
    #contact_choice_type_container{
        padding-bottom: 1rem;
    }

    #contact_choice_type_container .contact_choice_type {
        width:calc(100%);
    }

    #rental_form .rental-who .wpcf7-list-item {
        width: calc(100%);
    }

    #rental_form .contact-group--trip-type .wpcf7-form-control .wpcf7-list-item {
        width: calc(100%);
    }

    #rental_form .contact-field--spacing {
        padding: initial;
    }
}
