.elp-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column wrap;
            flex-flow: column wrap;
    margin-bottom: -4%;
}

/* Set a vertical margin between form sections */
.elp-form > * {
    padding-bottom: 4%;
}

/* Hide the heading */
.gform_heading {
    display: none;
}

/*****************/
/* SELECT2 STYLE */
/*****************/

.select2-container{
    position:relative;
    display:inline-block;
    width: 100%;
    margin:0;    
}

.select2.select2-container{
    padding: 0 20px;
    vertical-align:middle;
    border: 2px solid #e7ebef;
    -webkit-transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    transition: border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out, -webkit-box-shadow 0.5s;
}

.select2-container .select2-selection--single{
    display:block;
    height:51px;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    background:#fff;
    font-size:1rem;
    line-height:51px;
    color:#363636;
    vertical-align:baseline;
    cursor:pointer;
    transition:background .3s cubic-bezier(.55,0,.1,1),border .3s cubic-bezier(.55,0,.1,1),color .3s cubic-bezier(.55,0,.1,1)
}
.select2-container .select2-selection--single .select2-selection__rendered{
    display:block;
    padding:0;
    padding-right:1rem;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.select2-container .select2-selection--single .select2-selection__clear{
    position:relative;
    float:right;
    cursor:pointer;
    font-weight:700
}
.select2-container .select2-selection--single .select2-selection__arrow{
    position:absolute;
    top:1px;
    right:1px;
    width:20px;
    height:55px
}
.select2-container .select2-selection--single .select2-selection__arrow b{
    position:absolute;
    top:50%;
    left:50%;
    width:0;
    height:0;
    margin-top:-3px;
    margin-left:-4px;
    border-color:#363636 transparent transparent;
    border-style:solid;
    border-width:6px 4px 0
}
.select2-container .select2-selection--multiple{
    display:block;
    min-height:36px;
    line-height:35.28px;
    border:1px solid #e0e5ec;
    background:#fff;
    font-size:1rem;
    line-height:36px;
    color:#363636;
    vertical-align:baseline;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    cursor:pointer;
    transition: background .3s cubic-bezier(.55,0,.1,1),
                border .3s cubic-bezier(.55,0,.1,1),
                color .3s cubic-bezier(.55,0,.1,1);
}
.select2-container .select2-selection--multiple .select2-selection__rendered{
    display:block;
    width:100%;
    overflow:hidden;
    padding:0 .5em;
    padding-right:2em;
    padding-left:1px;
    text-overflow:ellipsis;
    white-space:nowrap
}
.select2-container .select2-selection--multiple .select2-selection__rendered li{
    display:inline-block;
    list-style:none
}
.select2-container .select2-selection--multiple .select2-selection__placeholder{
    float:left
}
.select2-container .select2-selection--multiple .select2-selection__clear{
    float:right;
    cursor:pointer;
    font-weight:700
}
.select2-container .select2-selection--multiple .select2-selection__choice{
    float:left;
    margin:3.6px;
    padding:0 .5em;
    box-shadow:0 0 0 1px #999;
    background:#cdba80;
    line-height:28.8px;
    cursor:pointer;
    transition: background .3s cubic-bezier(.55,0,.1,1),
                box-shadow .3s cubic-bezier(.55,0,.1,1);
}
.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove{
    transition:color .3s cubic-bezier(.55,0,.1,1)
}
.select2-container .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove:hover{
    color:#dd191d
}
.select2-container .select2-selection--multiple .select2-selection__choice:hover{
    background:#af1f25;
    box-shadow:0 0 0 1px #666
}
.select2-container .select2-search--inline{
    background:none;
    float:left
}
.select2-container .select2-search--inline .select2-search__field{
    background:none;
    padding:0;
    border:none;
    font-size:1em
}
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{
    -webkit-appearance:none
}
.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{
    padding:0 .5em;
    padding-left:1rem
}
.select2-container[dir=rtl] .select2-selection--single .select2-selection__clear{
    float:left
}
.select2-container[dir=rtl] .select2-selection--single .select2-selection__arrow{
    left:1px;
    right:auto
}
.select2-container[dir=rtl] .select2-selection--multiple .select2-search--inline,
.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice,
.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{
    float:right;
}
.select2-container.select2-container--disabled .select2-selection--single{
    outline:0;
    color:gray;
    cursor:default
}
.select2-container.select2-container--disabled .select2-selection--single .select2-selection__clear{
    display:none
}
.select2-container.select2-container--disabled .select2-selection--multiple{
    outline:0;
    color:gray;
    cursor:default
}
.select2-container.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove{
    display:none
}

.select2-container.select2-container--focus .select2-selection--multiple,
.select2-container.select2-container--focus .select2-selection--single,
.select2-container.select2-container--open .select2-selection--multiple,
.select2-container.select2-container--open .select2-selection--single {   
    background-color: transparent;
     outline: 0;
}

.select2.select2-container.select2-container--focus,
.select2.select2-container.select2-container--open {
    height: 55px;
    border-color: var(--red, #AF1F25);
    -webkit-box-shadow: 0 0 5px rgba(175,31,37,.35);
    box-shadow: 0 0 5px rgba(175,31,37,.35);
    outline: 0;
}

.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color:transparent transparent #363636;
    border-width:0 4px 6px
}
.select2-container.select2-container--above .select2-selection--multiple,
.select2-container.select2-container--above .select2-selection--single {
    transition: background .3s cubic-bezier(.55,0,.1,1),
                border-bottom .3s cubic-bezier(.55,0,.1,1),
                border-left .3s cubic-bezier(.55,0,.1,1),
                border-right .3s cubic-bezier(.55,0,.1,1),
                color .3s cubic-bezier(.55,0,.1,1);
}
.select2-container.select2-container--below .select2-selection--multiple,
.select2-container.select2-container--below .select2-selection--single {
    transition: background .3s cubic-bezier(.55,0,.1,1),
                border-top .3s cubic-bezier(.55,0,.1,1),
                border-left .3s cubic-bezier(.55,0,.1,1),
                border-right .3s cubic-bezier(.55,0,.1,1),
                color .3s cubic-bezier(.55,0,.1,1);
}
.select2-container.select2-container--open.select2-container--above .select2-selection--multiple,
.select2-container.select2-container--open.select2-container--above .select2-selection--single {
    border-top-left-radius:0;
    border-top-right-radius:0;
    border-top-color:transparent
}
.select2-container.select2-container--open.select2-container--below .select2-selection--multiple,
.select2-container.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius:0;
    border-bottom-right-radius:0;
    border-bottom-color:transparent
}
.select2-container .select2-results>.select2-results__options{
    max-height:200px;
    overflow-y:auto
}
.select2-dropdown{
    position:absolute;
    left:-100000px;
    z-index:8;
    display:block;
    width:100%;
    border:1px solid #aaa;
    background:#fff
}
.select2-result{
    display:block
}
.select2-results__options{
    list-style:none;
    margin:0;
    padding:0
}
.select2-results__option{
    padding:0 .5em;
    line-height:36px;
    -webkit-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;
    transition: background .3s cubic-bezier(.55,0,.1,1),
                border .3s cubic-bezier(.55,0,.1,1),
                color .3s cubic-bezier(.55,0,.1,1)
}
.select2-results__option[aria-selected=true],
.select2-results__option[data-selected=true] {
    cursor: pointer;
    background: var(--gold, #CDBA80);
    text-align: left;
    color: #ffffff;
}

.select2-results__option.select2-results__option--highlighted {
    cursor:pointer;
    background:#af1f25;
    text-align:left;
    color: #ffffff;
}
.select2-container--open .select2-dropdown{
    left:0
}
.select2-container--open .select2-dropdown--above{
    border-bottom:none
}
.select2-container--open .select2-dropdown--below{
    border-top:none
}
.select2-search--dropdown{
    display:block;
    padding:0 .5em;
    padding-top:.5em;
    padding-bottom:.5em
}
.select2-search--dropdown .select2-search__field{
    width:100%;
    padding:0 .5em
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{
    -webkit-appearance:none
}
.select2-search--dropdown.select2-search--hide{
    display:none
}
.select2-close-mask{
    position:fixed;
    top:0;
    left:0;
    z-index:6;
    display:block;
    width:auto;
    min-width:100%;
    height:auto;
    min-height:100%;
    margin:0;
    padding:0;
    border:0;
    opacity:0;
    background-color:#fff;
    filter:alpha(opacity=0)
}
.select2-hidden-accessible{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    margin:-1px!important;
    padding:0!important;
    border:0!important;
    clip:rect(0 0 0 0)!important
}

.hidden_sub_label {
    visibility: hidden;
}


/****************/
/* CUSTOM STYLE */
/****************/

#elp-form .gform_wrapper {
    position: relative;
    padding: 3rem 1rem;
    background-color: var(--white, #ffffff);
    -webkit-box-shadow: 10px 10px 40px rgba(10,10,10,.35);
            box-shadow: 10px 10px 40px rgba(10,10,10,.35);    
}

#elp-form .gform_wrapper .ginput_container > * {
    width: 100%;
}

/*
#elp-form .gform_body {
    margin-bottom: 1.5rem;
}
*/

@media all and (min-width: 640px) {
    #elp-form .gform_wrapper {        
        padding: 2rem;
    }    
    
    #elp-form .gform_wrapper .gform_fields {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-flow: row wrap;
                flex-flow: row wrap;    
        margin: 0;
        margin-left: -4%;
        margin-bottom: -4%;
        -webkit-box-align: end;
            -ms-flex-align: end;
                align-items: end;
    }

    #elp-form .gform_fields li  {
        width: 50%;
        padding: 0;
        padding-left: 4%;
        padding-bottom: 4%;
    }

    #elp-form.generic .form__mail {
        width: 100%;
    }

    #elp-form .gform_wrapper .gform_fields .form__message {
        width: 100%;
    }
}

/* Vertical space between fields */
#elp-form .gform_wrapper .gfield {
    padding-bottom: 1.5rem;
}

/* Adds a bit of vertical space if the field shows an error message */
#elp-form .gform_wrapper .gfield.gfield_error {
    /*padding-bottom: 2rem;*/
}

#elp-form .gform_wrapper label.gfield_label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 10px
}

#elp-form .gform_wrapper label.gfield_label.error {
    color: red;
    font-size: .9rem;
    font-weight: 400;
    margin: 7px 0 0 0;
}

#elp-form .gform_wrapper .ginput_container input,
#elp-form .gform_wrapper .ginput_container select {
    position: relative;
    margin-bottom: 0;    
}

#elp-form .gform_wrapper .ginput_container input,
#elp-form .gform_wrapper .ginput_container select {
    height: 55px;
    border: 2px solid #e7ebef;
    background-color: transparent;
    padding: 0 20px;
    border-radius: 2px
}

#elp-form .gform_wrapper .ginput_container input:focus,
#elp-form .gform_wrapper .ginput_container textarea:focus {
    background-color: transparent;
    border-color: var(--red, #AF1F25);
    -webkit-box-shadow: 0 0 5px rgba(175,31,37,.35);
    box-shadow: 0 0 5px rgba(175,31,37,.35);
}

#elp-form .gform_wrapper .ginput_container input::-webkit-input-placeholder,
#elp-form .gform_wrapper .ginput_container input:-moz-placeholder,
#elp-form .gform_wrapper .ginput_container input::-moz-placeholder,
#elp-form .gform_wrapper .ginput_container input:-ms-input-placeholder {
    color: #51668a;
}

#elp-form .gform_wrapper .ginput_container textarea {
    height: 160px;
    padding-top: 10px;
}

#elp-form .gform_wrapper .gform_button {    
    width: 100%;
    /*height: 100%;*/
    margin: 0;
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
    background-color: var(--red, #AF1F25);
    font-size: 1.2rem;
    font-weight: 600;    
}

#elp-form .gform_wrapper .gform_button:hover,
#elp-form .gform_wrapper .gform_button:focus {
    background-color: var(--gold, #CDBA80);
}

#elp-form .gform_wrapper .gform_button:active {
    background-color: #A68D41;
}

#elp-form .gform_wrapper .gform_footer {
    position: relative;
}

#elp-form .select2-container {
    width: 100% !important;    
}

/*
.gform_footer::before {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;    
    background-color: var(--gold);    
    transition: all .4s ease;
}

.gform_footer:hover::before {
    width: 100%;
}

.gform_footer:hover .gform_button {
    color: var(--red, #AF1F25);
}
*/

.validation_message,
.validation_error {
    font-size: 1rem;
    font-weight: 600;
    color: var(--red, #AF1F25);
}

.gfield_error .validation_message,
.gfield_error .validation_error {
    position: absolute;
}

.gfield_required {
    color: var(--red, #AF1F25)
}

.charleft  {
    color: var(--black,#111111);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

/* Disabled field style for select fields */
.disabled .ginput_container {
    position: relative;
}

.disabled .ginput_container::after {    
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;    
    background: rgba( 0,0,0, .2 );
    top: 0;
}

/* Visually disable centre selection if field is preselected */

/*
:not(.milano-sports-project) .centre-preselected .form__centre .ginput_container {
    position: relative;
}

:not(.milano-sports-project) .centre-preselected .form__centre .ginput_container::after {    
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;    
    background: rgba( 0,0,0, .1 );
    top: 0;
}
*/
.milano-sports-project .gform_footer {
    margin-top: 16px;
}