/* Event Booking Page Styles */
.event-booking-page {
    min-height: 100vh;
    padding: 20px 0;
}

.event-booking-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Booking Header */
.booking-header {
    display: flex;
    gap: 30px;
    margin-bottom: 54px;
    align-items: flex-start;
}

/* Month Display */
.month-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
    border: 1px solid #000;
}

.month-display .month-label {
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #FF0000;
}

.month-display .month-number {
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    color: var(--primary-color);
}

.event-booking-page .event-detail-meta-box .meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;

}

.event-poster img {
    width: 100%;
    height: auto;
}

.event-info {
    flex: 1;
}

/* Process Steps */
.booking-process {
    margin-bottom: 40px;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 60px;
    position: relative;
}

/* .process-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #333;
    z-index: 1;
} */
.layout-ticket {
    background: #D9D9D9;
    border-radius: 8px;
    padding: 30px 0 0 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: #666;
    border-radius: 50%;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.process-step .step-label {
    font-size: 20px;
    font-weight: 700;
    color: #828282;
    text-transform: uppercase;
    padding: 0 5px;
    cursor: pointer;
}

.process-step.active .step-number {
    background: #ff6b35;
    color: #fff;
}

.process-step.active .step-label {
    color: #000;
    border-bottom: 1px solid #000;
}

.event-title {
    font-size: 36px;
    line-height: 48px;
    font-weight: 600;
    margin: -10px 0 16px 0;
    text-transform: uppercase;
}

.event-meta .event-date,
.event-meta .event-location {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc;
}

.event-location i {
    margin-right: 8px;
}

/* Showtime Selection */
.showtime-selection {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.showtime-tabs {
    display: inline-flex;
    gap: 50px;
    background: #fff;
    padding: 7px 23px;
    border-radius: 8px;
}

.showtime-tab {
    background: #f8f9fa;
    color: #333;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.showtime-tab:hover {
    background: #E0E0E0;
}

.showtime-tab.active {
    background: #E0E0E0;
}

.showtime-tab .showtime-date {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.showtime-tab .showtime-time {
    font-size: 12px;
    opacity: 0.8;
}


/* Ticket Types Legend */
.ticket-types-legend {
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 0 40px 20px;
}

.ticket-types-legend h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
}

.ticket-types-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.ticket-type-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    border-radius: 8px;
    min-width: 290px;
    justify-content: left;
}

.ticket-color {
    width: 23px;
    height: 23px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ticket-name {

    font-size: 20px;
    line-height: 57px;
}
.ticket-color-hang-vip{
    background-color: #CE1D26;
}
.ticket-color-hang-a{
    background-color: #3E5A92;
}
.ticket-color-hang-b{
    background-color: #256331;
}
.ticket-color-in-cart{
    background-color: #E5D73E;
    border: 4px solid #E4DD91;
}
.ticket-color-reserved{
    background-color: #858585;
    border: 4px solid #B1B1B1;
}
.ticket-name-hang-vip,
.ticket-price-hang-vip{
    color: #CE1D26;
}
.ticket-type-hang-a,
.ticket-price-hang-a{
    color: #3E5A92;
}
.ticket-type-hang-b,
.ticket-price-hang-b{
    color: #256331;
}
.ticket-price {
    font-size: 20px;
    line-height: 57px;
}

.booking-status-legend {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}


.status-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.status-color.available {
    background: #28a745;
}

.status-color.reserved {
    background: #6c757d;
}

/* Seat Layout */
.seat-layout-container {
    background: #D9D9D9;
    padding: 0 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    flex-direction: column;
    /* Căn giữa nội dung nếu nhỏ hơn viewport */
    display: flex;
    justify-content: center;
    /* align-items: center; */
}

.stage {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    background: #737373;
    padding: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.stage-label {
    color: #fff;
    padding: 12px 40px;
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    display: inline-block;
}


/* Main Seat Map */
.seat-map {
    margin-bottom: 0;
    display: inline-block;
    min-width: max-content;
    padding: 0 140px;
}

/* Floor Sections */
.floor-section {
    margin-bottom: 0px;
    border-radius: 8px;
    padding: 20px;
}

.floor-title {
    text-align: center;
    background: #fff;
    color: #000;
    padding: 10px;
    font-size: 20px;
    margin-bottom: 20px;
}

/* Floor T1 - Khán phòng chính */
.floor-t1 {
    background: #D9D9D9;
}

.floor-t1 .seat-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    justify-content: flex-end;
    /* Căn lề phải */
}

.floor-t1 .row-indent {
    /* Hàng M, N và các hàng có ít ghế hơn thụt vào */
    margin-right: 34px;
    /* Khoảng bằng 1 ghế + gap */
}

/* Căn chỉnh cho các hàng có số ghế khác nhau */
.floor-t1 .seat-row[data-seat-count="20"] {
    margin-right: 0px;
    /* 2 ghế */
}

.floor-t1 .seat-row[data-seat-count="21"] {
    margin-right: 34px;
    /* 1 ghế */
}

.floor-t1 .seat-row[data-seat-count="23"] {
    margin-right: 34px;
}

/* Floor T2 - Khán phòng đặc biệt */
.floor-t2 {
    background: #D9D9D9;
    
}

/* Hàng G đặc biệt - dọc 2 bên */
.row-g-special {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    min-height: 200px;
}

.g-left,
.g-right {
    display: flex;
    align-items: flex-start;
}

.g-left {
    flex-direction: column;
}

.g-right {
    flex-direction: column-reverse;
}

.g-seats-vertical {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.g-seats-vertical .seat {
    width: 32px;
    height: 32px;
}

/* Hàng có khoảng trống ở giữa */
.row-split {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.seat-block-left,
.seat-block-right {
    display: flex;
    gap: 2px;
}

.center-gap {
    width: 60px;
    /* Khoảng trống ở giữa */
    min-height: 32px;
}

.seat-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.row-label {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: #000;
    font-size: 20px;
}

.seat-row.row-split .row-label-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.seat-row.row-split[data-row="T2-A"] .row-label-inner .seat-block-left {
    margin-left: 102px;
}

.seat-row.row-split[data-row="T2-A"] .row-label-inner .seat-block-right {
    margin-right: 136px;
}

.seat-row.row-split[data-row="T2-B"] .row-label-inner .seat-block-right {
    margin-right: 34px;
}

.seat-row.row-split[data-row="T2-C"] .row-label-inner .seat-block-right {
    margin-right: 34px;
}

.seat-row.row-split[data-row="T2-D"] .row-label-inner .seat-block-right {
    margin-right: 34px;
}

.seat-row.row-split[data-row="T2-C"] .row-label-inner .seat-block-left {
    margin-left: 34px;
}

/* Hàng E độc lập - không chia */
.row-e-single {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.row-e-single .row-seats {
    display: flex;
    gap: 2px;
    justify-content: left;
    margin-left: 32px;
}

.seat-row.row-split[data-row="T2-D"] .row-label-inner .seat-block-left {
    margin-left: 34px;
}

.row-seats {
    display: flex;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.seat {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.seat.available:hover {

}
.seat.seat-type-1.available:hover {
    background-color: #CE1D26 !important;
}
.seat.seat-type-2.available:hover {
    background-color: #3E5A92 !important;
}
.seat.seat-type-3.available:hover {
    background-color: #256331 !important;
}
.seat.available:hover .seat-number{
    color: #fff;
}
.seat.selected {
    border-color: #E5D73E !important;
    background-color: #E5D73E !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

.seat.sold {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.seat.reserved {
    background: #ffc107 !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.seat-number {
    color: #454545;
    font-size: 11px;
}

/* VIP Areas */
.vip-area {
    margin-top: 30px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
}

.vip-area h4 {
    color: #ffd700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vip-seats-grid .vip-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.vip-row-label {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: #ffd700;
}

.vip-row-seats {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.vip-seat {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

/* Booking Summary */
.booking-summary {}

.booking-summary h4 {
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}


.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}







.btn-continue:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-continue:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* No showtime/seats messages */
.no-showtime,
.select-showtime-first {
    text-align: center;
    padding: 60px 20px;
    color: #000;
    font-size: 18px;
}

/* Legend */
.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-seat {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: inline-block;
}

.legend-available {
    background: #e8f5e8;
}

.legend-vip {
    background: #ffeaa7;
}

.legend-premium {
    background: #fab1a0;
}

.legend-selected {
    background: #0984e3;
}

.legend-occupied {
    background: #636e72;
}

/* Booking Summary */
.booking-summary {
    background: #A1A1A1;
    border-radius: 0;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.selected-seats {
    margin: 10px;
}

.selected-seats h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#selected-seats-list {
    color: #fff;
    font-size: 14px;
    min-height: 40px;
    font-weight: 300;
}

#selected-seats-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#selected-seats-list li {
    padding: 8px 0;
    border-bottom: 1px solid #fff;
}

#selected-seats-list li:last-child {
    border-bottom: none;
}

.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.total-amount {
    display: flex;
    align-items: center;
    gap: 12px;
}

.total-amount span:first-child {
    font-size: 20px;
    color: #fff;
    font-weight: 300;
}

#total-price {
    font-size: 23px;
    font-weight: 700;
    color: #fff;
}

.btn-continue {
    background: #6ACD9F;
    color: #fff;
    padding: 32px 24px;
    border: none;
    font-size: 22px;
    font-weight: 300;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-continue:hover:not(:disabled) {
    background: #6ACD9F;
}

.btn-continue:disabled {
    background: #6ACD9F;
    cursor: not-allowed;
    opacity: 0.6;
}

.checkout-review {
    padding: 0 24px 24px;
}

.checkout-review .title-review-cart {
    margin-top: 20px;
    font-size: 30px;
    font-weight: 600;
    line-height: 57px;
    margin-left: 30px;
}

.cart-table-review thead th {
    font-size: 18px;
    line-height: 30px;
    font-weight: 300;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
    padding-bottom: 40px;
}

.cart-table-review tbody td {
    font-size: 18px;
    line-height: 30px;
    font-weight: 300;
    padding-bottom: 40px;
}

.btn-next-info {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    padding: 11px 16px;
    border: 1px solid #000;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    cursor: pointer;
}

.checkout-form-vertical {
    padding: 24px 24px 40px 24px;
}

.order-summary .cart-table-review thead th {
    padding-bottom: 20px;
}

.order-summary .cart-table-review tbody tr td {
    border-bottom: 1px dashed #000;
    padding-bottom: 0;
}

.order-summary .cart-table-review tbody tr:not(:first-child) td {
    padding-top: 20px;
}

#payment-info-form input[type="text"],
#payment-info-form input[type="email"],
#payment-info-form input[type="tel"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--primary-color);
    padding: 5px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0);
    outline: none;
}

#payment-info-form label {
    display: block;
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}

#payment-info-form .field-helper {
    font-size: 14px;
    line-height: 24px;
    color: #454545;
    font-weight: 300;
    padding-top: 5px;
    margin: 0;
}

#payment-info-form .radio-select span {
    font-size: 18px;
    line-height: 23px;
    font-weight: 400;
    color: var(--primary-color);
    display: contents;
}

#payment-info-form .radio-select label {
    margin-bottom: 40px;
}

#payment-info-form .radio-select div {
    display: inline-flex;
    gap: 22px;
    margin-bottom: 10px;
    width: 100%;
}

#payment-info-form input[type="radio"] {
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    min-width: 20px;
}

#payment-info-form .radio-select span input {
    padding: 0;
}

.order-summary .cart-total {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #828282;
}

.order-summary .cart-total span {
    font-weight: 400;
}

.checkout-form-right input[type="radio"] {
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0 10px 0 0;
}

.btn-submit-order {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    padding: 11px 16px;
    border: 1px solid #000;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    cursor: pointer;
}

.checkout-review .cart-total {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #828282;
    padding-top: 20px;
}

.checkout-review .cart-total span {
    font-weight: 400;
}

.btn-qr-paid {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    padding: 11px 16px;
    border: 1px solid #000;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 140px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .event-poster {
        margin: 0 auto;
    }

    .process-steps {
        gap: 10px;
    }

    .process-step .step-label {
        font-size: 20px;
    }

    .ticket-types-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-status-legend {
        margin-left: 0;
        margin-top: 15px;
    }

    .seat-layout-container {
        padding: 15px;
    }



    .total-section {
        text-align: center;
    }

    .showtime-tabs {
        justify-content: center;
    }

    .showtime-tab {
        min-width: 120px;
        padding: 12px 16px;
    }



}

@media (max-width: 480px) {
    .event-title {
        font-size: 22px;
    }


    .row-label {
        width: 25px;
        font-size: 14px;
    }
}



/* .seat:hover {
    background: #d4edda;
    border-color: #28a745;
    transform: scale(1.1);
    z-index: 10;
    position: relative;
} */


/* Responsive Design */
@media (max-width: 768px) {
    .seat-layout-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .floor-section {
        padding: 15px;
    }


    .side-sections {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .left-side,
    .right-side {
        flex-direction: row;
        width: auto;
        max-width: 300px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #total-price {
        font-size: 18px;
    }

    .btn-continue {
        font-size: 18px;
        padding: 28px 18px;
    }

    .cart-table-review thead th {
        font-size: 16px;
        padding-bottom: 20px;
        padding-left: 0 !important;
    }

    .cart-table-review tbody td {
        font-size: 16px;
        padding-bottom: 20px;
        padding-left: 0 !important;
    }
    .order-bottom{
        flex-wrap: wrap;
    }
    .order-summary{
        width: 100%;
    }
    .checkout-form-right{
        width: 100%;
    }
    .payment-form{
        gap: 20px;
    }
    .showtime-tabs{
        gap: 10px;
    }
}

    @media (max-width: 480px) {
        .showtime-tab{
            padding: 12px;
            min-width: unset;
        }
        .showtime-tab .showtime-date{
            font-size: 12px;
        }

        .row-label {
            font-size: 14px;
            width: 25px;
        }

        .floor-title {
            font-size: 16px;
            padding: 8px;
        }

        .stage {
            font-size: 14px;
            padding: 12px;
        }
        .booking-summary{
            flex-direction: column;
        }
        .total-amount{
            padding-left: 10px;
        }
        .btn-continue{
            font-size: 14px;
            padding: 20px 10px;
        }
        .total-amount span:first-child{
            font-size: 16px;
        }
        #total-price{
            font-size: 16px;
        }
        .ticket-name,
        .ticket-price{
            font-size: 18px;
            line-height: 27px;
        }
    }