/* fields
/* ------------------------ */

@media (max-width: 768px) {
    .contact-form {
        max-width: 100%;
        padding-bottom: 50px;
    }
    .contact-form section {
        max-width: 100%;
    }
    .contact-form .btn {
        margin-bottom: 80px !important;
    }
}

.contact-form .inputWi input,
.contact-form .inputWi select,
.contact-form .form-group select,
.contact-form .inputWi textarea {
    font-weight: 300;
}

.contact-form .mb6 {
    margin-bottom: 6px;
}

.contact-form .form-group {
    position: relative;
}

.contact-form .form-control {
    font-weight: 350;
    font-size: 16px;
    color: #1f1f1f;
    border-radius: 2px;
}

.contact-form .form-control:focus {
    outline: none;
    box-shadow: none;
    color: #1f1f1f;
}

.contact-form select.form-control {
    color: rgba(31, 31, 31, .6);
}

.contact-form a {
    color: #fff;
    text-decoration: none;
    transition: color .2s ease-in-out;
    font-weight: 350;
}
.contact-form a:hover {
    text-decoration: underline !important;
}
.contact-form .help-block {
    font-size: 12px;
    bottom: 0;
    right: 5px;
    color: #c00;
}

.contact-form select {
    text-transform: initial;
}

.contact-form .checkbox label {
    font-size: 12px;
    font-weight: 350;
    color: #fff;
}

@media (max-width: 768px) {
    .contact-form .checkbox label {
        padding-left: 20px;
    }
}

.contact-form .checkbox label::before {
    background: rgba(255, 255, 255, .1);
}

.contact-form .checkbox label::after {
    color: #fff;
    font-size: 24px;
}

@media (min-width: 768px) {
    .contact-form .checkbox label::after {
        font-size: 14px;
    }
}

.contact-form select {
    height: 48px;
}

.contact-form .radio {
    padding-left: 0;
}

.contact-form .radio label::before {
    border: 1px solid #e3e3e3;
    background: rgba(255, 255, 255, .1);
}
.contact-form .radio label::after,
.af-content .radio label::after {
    background-color: #fff !important;
}

.contact-form .archive-checks>div:not(:first-child) {
    margin-left: 10px;
}

.contact-form .archive-checks label {
    font-size: 16px;
}

.contact-form .btn {
    display: block;
    margin: 0 auto;
    width: auto;
    height: 48px;
    margin-bottom: 20px;
    padding: 10px 30px;
    line-height: 20px;
}

.contact-form .btn .fa {
    font-size: 14px;
    line-height: 20px;
    margin-left: 4px;
}

.contact-form .btn:disabled {
    cursor: default;
}


/* wiInput override
/* ------------------------ */

.contact-form .inputWi input,
.contact-form .inputWi select {
    height: 48px;
    text-transform: initial;
}

.contact-form .inputWi span {
    top: 16px;
}

.contact-form .inputWi span.active {
    top: 6px;
}


/* weekday selector
/* ------------------------ */

.linetab-selector {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.linetab-selector>li {
    padding: 0 0 6px;
    margin: 0 2px;
    cursor: pointer;
    color: rgba(255, 255, 255, .5);
    text-align: center;
    font-size: 16px;
    line-height: 20px;
    border-bottom: 4px solid rgba(255, 255, 255, .5);
    transition: all .2s ease-in-out;
    flex-grow: 1;
}

.linetab-selector>li input {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
}

.linetab-selector>li label {
    font-weight: inherit;
}

.linetab-selector>li:hover,
.linetab-selector>li.active {
    color: #fff;
    border-color: #fff;
}

.linetab-selector.weekday>li {
    width: calc(16.667% - 4px);
}

.linetab-selector.timeslot>li {
    width: calc(50% - 4px);
}


/* preferiti
/* ------------------------ */

.af-vehicle-list {
    margin: 30px 0;
}

.af-vehicle-item {
    display: flex;
    align-items: center;
    padding: 0 0 10px;
}

.af-vehicle-item .image {
    width: 96px;
    min-height: 72px;
    margin: 0 5px;
    flex-shrink: 0;
    background: #e4e5e9;
}

.af-vehicle-item .vehicle-info {
    font-size: 14px;
}

.af-vehicle-item .checkbox {
    cursor: pointer;
}

.af-permuta {
    margin-top: 20px;
    border-bottom: 1px solid #fff;
}

.af-permuta-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.af-permuta-title:hover {
    /* color: var(--c2accent); */
}

.af-permuta-title.active .fa {
    transform: rotate(180deg);
}

.af-permuta-body {
    display: none;
    padding-top: 15px;
}


/* custom switch
/* ------------------------ */

.custom-switch .custom-control-label::before {
    background: transparent;
    border: 1px solid #fff;
    width: 50px;
    height: 26px;
    border-radius: 13px;
}

.custom-switch .custom-control-label::after {
    font-size: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    content: 'NO';
    /*background:rgba(255,255,255,.8);*/
    background: #bbbfc8;
}

.custom-control-input:checked~.custom-control-label::before {
    background: transparent;
    border: 1px solid #fff;
}

.custom-switch .custom-control-input:checked~.custom-control-label::after {
    /*background:var(--c2accent);*/
    background: #1f1f1f;
    transform: translateX(25px);
    content: 'SI';
}


/* modal form
/* ------------------------ */

.modal-form-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1010;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(100, 159, 204, .95);
    color: #fff;
    display: none;
}

.modal-form-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.modal-form-close .fa {
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: color .2s ease-in-out;
}

.modal-form-close .fa:hover {
    color: var(--c2accent);
}

.modal-form-wrap .inner {
    max-width: 730px;
    margin: 0 auto;
}

.modal-form-wrap .container {
    margin: 60px auto;
}

.modal-form-head {
    text-align: center;
}

.modal-form-head .modal-form-title {
    font-size: 28px;
    font-weight: normal;
    line-height: 1.1;
}

.modal-form-head p {
    font-size: 16px;
}

.modal-form-body {
    margin: 60px 0;
}

.modal-form-footer {
    margin: 15px 0 6px;
    text-align: center;
}

.modal-form-footer .btn {
    margin: 0 auto;
    max-width: 350px;
}