td {
    width: 40px;
    height: 30px;
    vertical-align: top;
}

#passengerTable {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.seat-entry {
    background: #f8f9fa;
    border-radius: 10px;
}

    .seat-entry td {
        border: none;
        padding: 2px;
        border: none;
        background-color: #f4f5f8;
    }


table {
    border-collapse: separate;
    border-spacing: 6px;
    border: 1px solid #efecec;
    border-radius: 12px;
    border-collapse: separate;
    overflow: hidden;
    padding: 10px;
}

.available {
    background-image: url('../images/Seats/seatwhite.png');
    background-repeat: no-repeat;
    /* background-color: white; */
    width: 40px;
    height: 38px;
    /* border: 1px solid green; */
    /* border-radius: 10px; */
    cursor: pointer;
    /*line-height: 35px;*/
    padding: 5px !important;
    font-size: 14px;
    text-align: center;
    /* box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.female {
    /* border-color: deeppink;*/
    /* box-shadow: inset 0 -4px 0px 0px deeppink;*/
    background-image: url('../images/Seats/seatpink.png');
    background-repeat: no-repeat;
}

.male {
    /* border-color: blue;*/
    /* box-shadow: inset 0 -4px 0px 0px blue;*/
    background-image: url('../images/Seats/seatMale.png');
    background-repeat: no-repeat;
}

.reserved {
    /*background: #ccc;*/
    background-image: url('../images/Seats/seatgray.png');
    background-repeat: no-repeat;
    pointer-events: none;
    /*border: 1px solid #ccc;
            border-radius: 10px;*/
    /*line-height: 35px;*/
    padding: 5px !important;
    font-size: 14px;
    text-align: center;
    /*box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.selected {
    /*background-color: #2e72c9;*/
    background-image: url('../images/Seats/seatgeneralblue.png');
    background-repeat: no-repeat;
    width: 40px;
    height: 38px;
    /*border: 1px solid #2e72c9;
            border-radius: 10px;*/
    cursor: pointer;
    /*line-height: 35px;*/
    padding: 5px !important;
    font-size: 14px;
    text-align: center;
    /*box-shadow: inset 0 -4px 0px 0px #2e72c9;*/
}

.sleeper {
    background-image: url('../images/Seats/seatSleeper.png');
    background-repeat: no-repeat;
    height: 83px;
    width: 40px;
    line-height: 70px;
    cursor: pointer;
    /* box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.femalesleeper {
    background-image: url(../images/Seats/seatFemaleSleeper.png);
    background-repeat: no-repeat;
    height: 83px;
    width: 40px;
    line-height: 70px;
    cursor: pointer;
    /* box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.malesleeper {
    background-image: url(../images/Seats/seatMaleSleeper.png);
    background-repeat: no-repeat;
    height: 83px;
    width: 40px;
    line-height: 70px;
    cursor: pointer;
    /* box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.sleeperselected {
    /*background-color: #2e72c9;
            border: 1px solid #2e72c9;*/
    background-image: url('../images/Seats/seatSleeperblue1.png');
    background-repeat: no-repeat;
    cursor: pointer;
    height: 83px;
    width: 40px;
    line-height: 70px;
    text-align: center;
    /*box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.sleeperreserved {
    background-image: url(../images/Seats/seatSleepergray.png);
    /*background-image: url('../images/Seats/seatSleeper.png');*/
    background-repeat: no-repeat;
    height: 83px;
    width: 40px;
    line-height: 70px;
    /* box-shadow: inset 0 -4px 0px 0px rgba(0, 0, 0, 0.35);*/
}

.driver {
    background-image: url('../images/Seats/steering.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    pointer-events: none;
}



.conductor {
    /*border-color: yellowgreen;*/
    background-image: url('../images/Seats/seatConductor.png');
    background-repeat: no-repeat;
    width: 40px;
    height: 38px;
    /*border: 1px solid yellowgreen;*/
    /*border-radius: 10px;*/
    pointer-events: none;
    /*line-height: 35px;*/
    padding: 5px !important;
    font-size: 14px;
    text-align: center;
    /*box-shadow: inset 0 -4px 0px 0px yellowgreen;*/
}

.bus-layout {
    align-self: flex-start;
}

.opt-gender {
    height: 29px !important;
    border-radius: 3px;
    font-size: 12px !important;
}

.opt-cat {
    height: 29px !important;
    border-radius: 3px;
    font-size: 12px !important;
}

.Name {
    height: 29px !important;
    border-radius: 3px;
    font-size: 12px !important;
}

.Age {
    height: 29px !important;
    border-radius: 3px;
    font-size: 12px !important;
}

#tbllegends td,
#tbllegends div {
    cursor: default !important;
    pointer-events: none !important;
}

.legend-table {
    border: none;
    border: none;
    border-spacing: 0px;
    padding: 0px;
    width: 100%;
}

.seat-fare {
    text-align: left;
    display: block;
    font-size: 9px;
    color: #444;
    margin-top: -5px;
    margin-left: 4px;
}

.seat-no {
    margin-right: 9px;
    font-size: 9pt;
}

.bus-layout {
    align-items: stretch;
}

#tbllower,
#tblupper {
    height: 100%;
}

.passenger-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: 1px solid #e8ecf5;
}

/* TOP STRIP */
.pc-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* BADGES */
.seat-badge {
    background: linear-gradient(135deg, #4facfe, #12487b);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.deck-badge {
    background: #eef2ff;
    color: #4f5bd9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pc-grid {
    display: inline-flex;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

.passenger-wrapper {
    width: 100%;
}

.passenger-card {
    width: 100%;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

    .pc-grid .form-group {
        width: 100%;
        margin: 0;
    }


        .pc-grid .form-group label {
            display: block;
            width: 100%;
        }

    .pc-grid .form-control {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }


/* INPUT */
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #7a8599;
    margin-bottom: 4px;
    display: block;
}

.form-control {
    height: 40px;
    border-radius: 10px;
    border: 1px solid #dfe3eb;
    font-size: 14px;
}

    .form-control:focus {
        border-color: #4facfe;
        box-shadow: 0 0 0 3px rgba(79,172,254,0.15);
    }

.deck-block {
    display: flex;
    flex-direction: column;
    align-items: center; /* horizontal center */
    justify-content: center; /* vertical center (optional) */
    text-align: center;
}

    .deck-block table {
        margin: auto;
    }

.legends {
    border: none;
    width: 100%;
}

    .legends img {
        width: 30px;
        height: auto;
    }

    .legends td {
        vertical-align: top;
        padding: 10px;
    }

    .legends tr {
        border-bottom: 1px solid #e6e6e6;
    }

.booking-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border: 1px solid #eef0f5;
}

.bc-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #344054;
}

    .bc-title i {
        color: #5b8def;
        margin-right: 6px;
    }

.bc-field label {
    font-size: 13px;
    font-weight: 600;
    color: #667085;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bc-field .optional {
    font-weight: 400;
    color: #98a2b3;
}

.bc-field .form-control {
    height: 42px;
    border-radius: 10px;
    font-size: 14px;
}

.bc-footer {
    margin-top: 18px;
}

.bc-btn-cancel {
    background: #fee4e2;
    color: #d92d20;
    border-radius: 10px;
    padding: 8px 18px;
}

.bc-btn-proceed {
    background: #12b76a;
    color: #fff;
    border-radius: 10px;
    padding: 8px 18px;
}
