*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: inherit;
            box-sizing: inherit;
}

.content.content_booking {
	margin-top: 150px;
}

/* navigation */
.nav-book {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.nav-book ul {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style-type: none;
}

.nav-book ul li {
    font-weight: 400;
    color: white;
}

.nav-book ul li.active {
    font-weight: 700;
}

.errorText {
    color: #da2e2e;
    font-weight: bold;
}

.booking_agrement {
    color: #010BFB;
}

.nav-step-1, .nav-step-2, .nav-step-3, .nav-step-4 {
    display: block;
    background-image: url('imgBus/1.2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 140px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 40px;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.nav-step-2 {
    background-image: url('imgBus/2.2.png');
    width: 170px;
    margin-left: -34px;
}

.nav-step-3 {
    background-image: url('imgBus/4.2.png');
    width: 210px;
    margin-left: -34px;
}
.nav-step-1.active {
    background-image: url('imgBus/1.1.png');
}
.nav-step-2.active {
    background-image: url('imgBus/2.1.png');
}

.nav-step-4 {
    background-image: url('imgBus/4.2.png');
    width: 210px;
    margin-left: -34px;
}

.nav-step-3.active, .nav-step-4.active {
    background-image: url('imgBus/4.1.png');
}

/* End navigation */

/* first step */

.step-1__content {
    position: relative;
}

.step-1__header {
    font-weight: bold;
    font-size: 56px;
    text-align: center;
}

.step-1__pre-header, .step-2__pre-header {
    font-size: 24px;
    text-align: center;
    font-weight: 400;
    padding: 20px 0 70px 0;
}

#userList div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 0 0 20px 0;
}

#userList div article {
    background: url(imgBus/ticket.svg);
    background-size: 100% 100%;
    padding: 30px 130px 30px 130px;
}

#userList  {
    font-size: 14px;
}

#userList .errorForm {
    color: #da2e2e;
    display: block;
    font-size: 16px;
    display: none;
}

#userList label {
    white-space: nowrap;
    color: #fff;
    font-weight: 400;
}

#userList input[type="text"], #userList input[type="date"] {
    border: 0;
    outline: 0;
    background: transparent;
    border-bottom: 1px solid black;
    border-bottom-color: #fff;
    margin: 0 10px 0 10px;
    width: 100%;
    color: #fff;
}

#userList input[type="text"]::-webkit-input-placeholder, #userList input[type="date"]::-webkit-input-placeholder {
    color: #fff;
    opacity: 0.7;
}

#userList input[type="text"]:-ms-input-placeholder, #userList input[type="date"]:-ms-input-placeholder {
    color: #fff;
    opacity: 0.7;
}

#userList input[type="text"]::-ms-input-placeholder, #userList input[type="date"]::-ms-input-placeholder {
    color: #fff;
    opacity: 0.7;
}

#userList input[type="text"]::placeholder, #userList input[type="date"]::placeholder {
    color: #fff;
    opacity: 0.7;
}


#userList input[type="text"]:-ms-input-placeholder, #userList input[type="date"]:-ms-input-placeholder {
    color: #fff;
    opacity: 0.7;
}


#userList input[type="text"]::-ms-input-placeholder, #userList input[type="date"]::-ms-input-placeholder {
    color: #fff;
    opacity: 0.7;
}

.greenBtn, .grayBtn {
    font-size: 14px;
    background: #38976D;
    border: none;
    padding: 10px 30px 10px 30px;
    border-radius: 35px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.completedBtn {
    font-size: 18px;
}

.grayBtn {
    background: #c0c0c0;
}

.removeUserButton {
    font-size: 14px;
    background: #ff8888;
    border: none;
    padding: 5px 15px 5px 5px;
    border-radius: 35px;
    color: #fff;
    cursor: pointer;
    margin: 10px 0 5px 0;
}

.greenBtn:disabled,
.greenBtn[disabled] {
    background: #C4C4C4;
    cursor: not-allowed;
}

.user-item__form-col-1, .user-item__form-col-2, .user-item__form-col-3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 15px 0 15px 0;
}

.user-item__form-col-2 figure, .user-item__form-col-3 figure {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.book-bottom-container-1 {
    margin: 70px 0 30px 0;
    text-align: center;
}

.book-bottom-container-2 {
    font-size: 14px;
    margin: 0 0 20px 0;
    margin-left: 20%;
    height: 100%;
}

.book-bottom-container-3 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 14px;
    margin: 0 0 30px 0;
    margin-left: 20%;
    height: 100%;
}

.book-bottom-container-3 div:first-child {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 3%;
            flex: 0 0 3%;
}

.book-bottom-container-4 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    margin-right: 20%;
    padding-bottom: 25px;
}

/* End first step */

/* second step */

.step-2__seats-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.step-2__seats-list td{
    cursor: pointer;
    pointer-events: all;
}

.step-2__seats-list .busTable__booking td {
    background-size: 100%;
    height: 70px;
    width: 70px;
    text-align: center;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
}

.step-2__seats-list .busTable__booking td[avaliable="2"] {
    background-image: url(./imgBus/seatRed.png);
}

.step-2__seats-list .busTable__booking td[avaliable="1"] {
    background-image: url(./imgBus/seatGreen.png);
}

.step-2__seats-list .busTable__booking td[avaliable="3"] {
    background-image: url(./imgBus/seatGray.png);
    pointer-events: none;
    cursor: none;
}

.step-2__seats-list .busTable__booking td[avaliable="0"] {
    pointer-events: none;
    cursor: none;
}

.step-2, .step-3, .step-4 {
    display: none;
    font-size: 14px;
}

.step-2 .seat-types {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: 35px 0 15px 0;
}

.step-2 .seat-types .col-types{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin: 0px 20px 0px 20px;
}

.step-2 .seat-types img {
    height: 70px;
    width: 70px;
}

.table__head, .table__head__confirm {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 15px 0 15px 0;
    border-bottom: 1px solid #7e7e7e;
    text-align: center;
    color: #898989;
    font-size: 18px;
    font-weight: 400;
}

.table__head div, .table__head__confirm div {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.table__body, .table__body__confirm {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
    font-size: 16px;
}

.table__body__row, .table__body__row__confirm {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #a5a5a5;
    margin: 10px 0 10px 0;
    font-weight: 400;
}
.table__body__row{
    font-weight: 400;
}
.table__body__row.active {
    font-weight: bold;
    margin: 10px 0px 10px 0px;
    border-radius: 10px;
    color: #fff;
    background: #38976D;
}

.table__body__row:hover {
    cursor: pointer;
    margin: 10px 0px 10px 0px;
    border-radius: 10px;
    background: rgba(124, 204, 168, 0.678);
}

.table__body__row.active, .table__body__row.active:hover {
    cursor: pointer;
    font-weight: bold;
    margin: 10px 0px 10px 0px;
    border-radius: 10px;
    color: #fff;
    background: #38976D;
}

.table__body__row div, .table__body__row__confirm div {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    pointer-events: none;
}

.button-wraper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    margin: 15px 0 15px 0;
}

.step-2__seats-list .seat[data-book-status='true']{
    background: #38976D;
}

.step-2__seats-list .seat[data-book-status='false']{
    background: #ff8888;
}

.step-2__seats-list .seat[data-book-status='booked'] {
    background: #7e7e7e;
    pointer-events: none;
}

.table__body__row__price {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
}

.table__body__row__price div:not(:last-child) {
    padding: 25px 10px;
}
.table__body__row__price div:last-child {
    width: 100%;
    text-align: left;
    font-weight: 400;
}
/* End second step */

/* hotels */

.booking-hotel-room_bed[type="1"][avaliability="0"] {
    background-image: '/pics/service/redBed1.png';
}
.booking-hotel-room_bed[type="1"][avaliability="1"] {
    background-image: '/pics/service/blackBed1.png';
}
.booking-hotel-room_bed[type="2"][avaliability="0"] {
    background-image: '/pics/service/redBed2.png';
}
.booking-hotel-room_bed[type="2"][avaliability="1"] {
    background-image: '/pics/service/blackBed2.png';
}
/* end of hotels */

@media (max-width: 768px) {
    .content.content_booking {
        margin-top: 75px;
    }
    .step-1__header {
        font-size: 24px;
        margin-top: 20px;
    }
    #userList div article {
        background: url(imgBus/ticket_mobile.svg);
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center;
        padding: 25px;
    }
    .step-1__pre-header, .step-2__pre-header {
        padding: 20px 0 0 0;
    }
    .nav-book ul li {
        font-size: 12px;
    }
    .nav-step-1, .nav-step-2, .nav-step-3, .nav-step-4 {
        background-size: 100%;
        padding: 20px;
        width: 70px;
    }
    .nav-step-2 {
        width: 88px;
        margin-left: -24px;
    }
    .nav-step-3 {
        width: 120px;
        margin-left: -24px;
    }
    .removeUserButton {
        position: absolute;
        margin-top: 20px;
    }
    .book-bottom-container-1 {
        margin: 40px 0 30px 0;
    }
    .book-bottom-container-2, .book-bottom-container-3 {
        margin-left: 10px;
    }
    .book-bottom-container-4 {
        margin-right: 10px;
    }
    #userList .errorForm {
        position: absolute;
    }
    .step-2 .seat-types .col-types {
        font-size: 12px;
        margin: 0;
    }
    .step-2 .seat-types img {
        height: 40px;
        width: 40px;
    }
    .grayBtn, .greenBtn {
        font-size: 12px;
        padding: 10px 15px 10px 15px;
    }
    .completedBtn {
        font-size: 14px;
    }
    .table__head__confirm {
        display: none;
    }
    .table__body__row__confirm {
        -webkit-box-pack: start;
            -ms-flex-pack: start;
                justify-content: flex-start;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-align: start;
            -ms-flex-align: start;
                align-items: flex-start;
    }
    .table__body__row__confirm div {
        margin-left: 30%;
        position: relative;
        width: 70%;
        text-align: left;
    }
    .table__body__row__confirm div:before{
        display: block;
        content: "ПІБ";
        position: absolute;
        top: 0;
        margin-left: -41%;
        color: rgba(41, 41, 40, .5);
    }
    .table__body__row__confirm div:nth-child(2):before {
        content: "Телефон";
    }
    .table__body__row__confirm div:nth-child(3):before {
        content: "Транспорт"
    }
    .table__body__row__confirm div:nth-child(4):before {
        content: "До оплати";
    }
    .book-bottom-container-3 div:nth-child(2) p {
        margin-left: 5px;
    }
}