/* ================= Modal Overlay ================= */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    z-index:9999;
    font-family:'Onest';
}

/* ================= Modal Card (White Ticket) ================= */
.modal-content{
    margin:4% auto;
    width:95%;
    max-width:640px;
    padding:35px 40px;
    border-radius:10px;
    background:#ffffff;
    color:#222;
    position:relative;
    animation: fadeUp .35s ease;
}

/* ================= Close Button ================= */
.close-modal{
    position:absolute;
    right:18px;
    top:12px;
    font-size:24px;
    cursor:pointer;
    color:#555;
}

/* ================= Header / Logo ================= */
.modal-header{
    display:flex;
    flex-direction:column;   /* force top → bottom */
    align-items:center;      /* center horizontally */
    justify-content:center;
    text-align:center;
    margin-bottom:22px;
}

.modal-header img{
    height:60px;
    margin-top:-12px;
    margin-bottom:12px;
}

.modal-header h2{
    margin:0;
    font-size:22px;
    font-weight:600;
    color:#222;
}

/* ================= Form Inputs ================= */
.form-group{
    margin-bottom:16px;
}

.form-group label{
    font-size:14px;
    font-weight:600;
    margin-bottom:6px;
    display:block;
    color:#333;
}

.form-group input{
    width:100%;
    padding:10px 12px;
    border-radius:6px;
    border:1px solid #dcdcdc;
    background:#f7f9fb;
    color:#222;
    font-size:14px;
}

.form-group input:focus{
    outline:none;
    border-color:#734bdf;
}

/* ================= Ticket Cards Gradient Upgrade ================= */

/* ===== Ticket Card Base ===== */
.ticket-option{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 22px;
    margin-top:16px;
    border-radius:14px;
    border:0.5px solid #e5e5e5;
    background:#fff;
    transition:all .25s ease;
}

/* Smooth hover */
/*.ticket-option:hover{
    box-shadow:0 8px 22px rgba(0,0,0,0.06);
}
*/
/* ===== Active Card (Premium Gradient) ===== */
/* ===== Active Card (Soft Gradient, Thin Border) ===== */
.ticket-option.active{
    border:1px solid #7a5cff;   /* thinner + softer */
    background:linear-gradient(120deg,#f3ecff 0%, #eadfff 50%, #e2d4ff 100%);
}


/* Left content */
.ticket-option h4{
    margin:0;
    font-size:18px;
    font-weight:700;
    color:#1d1d1f;
}

.ticket-option p{
    margin:6px 0 0;
    font-size:14px;
    color:#666;
}

/* ===== Qty Area ===== */
.ticket-option > div{
    display:flex;
    align-items:center;
    gap:12px;
}

/* Qty buttons */
.ticket-option > div button{
    width:34px;
    height:34px;
    border-radius:8px;
    border:1px solid #ddd;
    background:#fff;
    font-size:18px;
    font-weight:700;
    color:#444;
    box-shadow:0 3px 8px rgba(0,0,0,0.08);
    cursor:pointer;
    transition:.2s;
}

/* Button hover */
.ticket-option > div button:hover{
    background:#6c40ff;
    color:#fff;
    /*border-color:#6c40ff;*/
}

/* Count */
.ticket-option > div span{
    min-width:26px;
    text-align:center;
    font-weight:700;
    font-size:16px;
}

/* ===== Mobile alignment ===== */
@media (max-width:640px){
    .ticket-option{
        flex-direction:row;
        justify-content:space-between;
        align-items:center;
    }
}


/* ================= Select Button ================= */
/*.select-btn{
    padding:6px 14px;
    border-radius:6px;
    border:1px solid #bbb;
    background:#f1f1f1;
    cursor:pointer;
    font-size:13px;
}

.select-btn.active{
    background:#e0e0e0;
    border-color:#888;
}
*/
/* ================= Quantity Box ================= */
.qty-box{
    display:flex;
    align-items:center;
    gap:8px;
}

.qty-box button{
    width:28px;
    height:28px;
    border-radius:4px;
    border:1px solid #ccc;
    background:#f1f1f1;
    cursor:pointer;
}

.qty-box span{
    width:28px;
    text-align:center;
    font-weight:600;
    color:#222;
}

/* ================= Total Section ================= */
.total-box{
    text-align:center;
    margin-top:22px;
}

.total-box h3{
    font-size:14px;
    color:#666;
    margin:0;
}

.total-box h2{
    font-size:34px;
    margin:6px 0 0;
    font-weight:700;
    color:#222;
}

/* ================= Pay Button ================= */
button[onclick="payNow()"]{
    width:100%;
    margin-top:20px;
    padding:12px;
    border-radius:6px;
    border:none;
    background:#734bdf;
    color:#fff;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
}

button[onclick="payNow()"]:hover{
    background: linear-gradient(135deg, #5f36d6, #9b6bff);
    box-shadow: 0 8px 18px rgba(115, 75, 223, 0.35);
    transition: all 0.25s ease;
}

/* ================= Animation ================= */
@keyframes fadeUp{
    from{ transform:translateY(20px); opacity:0; }
    to{ transform:translateY(0); opacity:1; }
}

/* ================= Event time and place ================= */
.form-event-meta{
    display:flex;
    justify-content:center;
    gap:16px;
    margin-top:10px;
    flex-wrap:wrap;
}

.form-event-item{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    color:#444;
    background:#f3f5f7;
    padding:6px 14px;
    border-radius:20px;
}

.form-event-item i{
    color:#734bdf;
    font-size:14px;
}

