@keyframes popup{
    from{
        opacity:0;
        transform:translateY(20px) scale(.95);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

body {

    background-image:
    linear-gradient(
        rgba(0,0,0,0.55),
        rgba(0,0,0,0.55)
    ),
    url("../images/booking/booking.jpg");

    background-size: cover;

    background-position: center top;

    min-height: 100vh;

}

.booking {
    
    width: 92%;
    
    max-width: 600px;
    
    margin: 20px auto;
    
    padding: 25px;

}

.booking h2{

    text-align:center;

    font-size:42px;

    color:white;

    margin-bottom:20px;

}

.booking label{

    display:block;

    width:100%;

    color:rgb(255, 255, 255);

    font-weight:600;

    margin-bottom:2px;

}

.booking form {
    width: 100%;
    max-width: 500px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking input,
.booking select{

    height:28px;

    width:100%;

    box-sizing:border-box;

    padding: 0 15px;

    border:none;

    border-radius:10px;

    margin-bottom:10px;

    font-size:16px;

}

.booking button{

    width:100%;

    padding:18px;

    border:none;

    border-radius:10px;

    background:#ffcc00;

    color:black;

    font-weight:bold;

    font-size:18px;

    cursor:pointer;

}

#remainingSeats{

    color:#00ff66;

    font-size:20px;

    font-weight:bold;

    margin-bottom:20px;

}



.tour-options {

    margin-bottom: 25px;

}

.tour-options label{

    display:flex;

    align-items:center;

    gap:15px;

    background:rgba(0,0,0,.35);

    padding:15px;

    border-radius:12px;

    color:#fff;

}

.tour-options input {

    width: 22px;

    height: 22px;

    margin-right: 10px;

}

.tour-info{

    display:flex;

    justify-content:space-between;

    align-items:center;

    width:100%;

}

.tour-detail{

    line-height:1.6;

}

.tour-options label small {

    color: #ffd700;
    display: block;
    text-align: right;
    font-weight:700;
    font-size:16px;
    white-space:nowrap;

}



.confirm-box{

    width:100%;
    max-width:600px;

    max-height:90vh;

    overflow-y:auto;

    background:white;

    border-radius:24px;

    padding:28px;

    box-shadow:0 20px 50px rgba(0,0,0,.25);

    overscroll-behavior:contain;

}

.confirm-box h2{
    text-align:center;
    font-size:36px;
    margin-top:5px;
    margin-bottom:15px;
    color:#222;
}

.confirm-policy{

    margin-top:20px;

    padding:18px;

    background:#fafafa;

    border-radius:16px;

    border:1px solid #ececec;

}

.confirm-policy h3{

    font-size:22px;

    margin-bottom:12px;

}

.policy-list li{

    font-size:15px;

    line-height:1.5;

    margin-bottom:8px;

}

.policy-note{

    margin-top:15px;

    font-size:14px;

    line-height:1.6;

}

.policy-list{
    padding-left:22px;
}





.confirm-modal{
    position:fixed;
    inset:0;
    background:rgba(0, 0, 0, 0.6);
    display:none;
    justify-content:center;
    align-items:center;
    padding:10px;
    z-index:9999;
}

.confirm-buttons{
    display:flex;
    gap:18px;
    margin-top:30px;
}

.confirm-buttons button{
    flex:1;
    height:58px;
    border:none;
    border-radius:14px;
    font-size:20px;
    font-weight:700;
    cursor:pointer;
    transition:.25s;
}

#editBooking{

    background:#ededed;

    color:#444;

}

#editBooking:hover{

    background:#dcdcdc;

}

#confirmBooking{

    background:#f5c400;

    color:#000;

}

#confirmBooking:hover{

    background:#e1b100;

}

.booking-summary{

    margin-top:20px;

    border:1px solid #ececec;

    border-radius:16px;

    overflow:hidden;

    background:#fff;

}

.booking-row{

    display:grid;

    grid-template-columns:90px 1fr;

    align-items:center;

    padding:15px 18px;

    border-bottom:1px solid #f2f2f2;

}

.booking-row:last-child{

    border-bottom:none;

}

.booking-row span{

    color:#777;

    font-size:17px;

    font-weight:500;

}

.booking-row strong{

    color:#222;

    font-size:18px;

    font-weight:700;

    text-align:right;

    max-width:60%;

    word-break:break-word;

}




@media (max-width: 768px) {

    .booking {
        width: 90%;
        padding: 15px;
    }

    .booking h2 {
        font-size: 48px;
        margin-bottom: 35px;
    }

    .booking label {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .booking input,
    .booking select{

    height:22px;

    padding:0 12px;

    margin-bottom:5px;

}

    .tour-options label {

    padding: 8px 12px;

    margin-bottom: 4px;

}

    .tour-options small {
        font-size: 16px;
    }

    .tour-options input[type="radio"] {
        transform: scale(1.5);
        margin-right: 12px;
    }

    .booking button {
        height: 65px;
        font-size: 24px;
    }

}

@media (max-width: 768px) {

    body {

        background-size: cover;
        background-repeat: no-repeat;
        background-position: top center;
        background-attachment: scroll;

    }

}


/* confirm */
.confirm-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.6);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.confirm-box{

        width:95%;

        padding:22px;

        border-radius:20px;

        max-height:90vh;

        overflow-y:auto;

    }

    .confirm-box h2{

        font-size:28px;

        margin-bottom:20px;

    }

    .booking-row{

        padding:12px 14px;

    }

    .booking-row strong{

        flex:1;

        margin-left:20px;

        text-align:right;

        overflow-wrap:anywhere;

        max-width:100%;

        font-size:17px;

    }

    .confirm-policy{

        margin-top:20px;

        padding:18px;

    }

    .confirm-policy h3{

        font-size:24px;

    }

    .confirm-policy li{

        font-size:15px;

        line-height:1.6;

        margin-bottom:10px;

    }

    .policy-note{

        font-size:14px;

        line-height:1.6;

    }

    .confirm-buttons{

        margin-top:22px;

        gap:12px;

    }

    .confirm-buttons button{

        height:52px;

        font-size:18px;

    }






/* cancel */
.cancel-box{

    max-width:500px;
    margin:80px auto;
    padding:40px;
    border-radius:12px;
    background:white;
    box-shadow:0 5px 20px rgba(0,0,0,.1);

}

.cancel-box h1{

    text-align:center;
    margin-bottom:20px;

}

.cancel-box p{

    text-align:center;

}

.cancel-box input{

    width:100%;
    padding:14px;
    margin-top:15px;
    border:1px solid #ddd;
    border-radius:8px;
    box-sizing:border-box;

}

.cancel-box button{

    width:100%;
    margin-top:20px;
    padding:14px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;

}

#result{

    margin-top:20px;
    text-align:center;

}