*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#eef2f7;
  font-family:"Segoe UI",Arial,sans-serif;
  color:#111;
  padding-bottom:92px;
}
a{color:#0d6efd;text-decoration:none}
.app{
  width:100%;
  max-width:430px;
  margin:auto;
  background:#fff;
  min-height:100vh;
  box-shadow:0 0 25px rgba(0,0,0,.15);
  overflow:hidden;
}
.app-header{
  height:65px;
  padding:0 18px;
  color:#fff;
  background:linear-gradient(135deg,#0062ff,#6610f2);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo{font-size:20px;font-weight:700}
.logo i{margin-right:8px}
.header-icon{font-size:22px}
.hero{
  padding:30px 20px;
  color:#fff;
  text-align:center;
  background:linear-gradient(135deg,#0062ff,#6610f2);
}
.hero h2{margin:0 0 6px;font-weight:700;font-size:1.5rem}
.hero p{margin:0;opacity:.9;font-size:.95rem}
.content{padding:20px}

/* Ticket select */
.ticket-card{padding:5px;border-bottom:1px solid #eee}
.ticket-banner{
  width:100%;
  margin-bottom:5px;
  border-radius:15px;
  overflow:hidden;
  background:#eef3ff;
}
.ticket-banner img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:790/480;
  object-fit:contain;
  object-position:center;
  border-radius:15px;
}
.ticket-title{
  padding:10px 15px 8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.ticket-title-name{display:flex;align-items:center;gap:7px}
.ticket-title-name i{color:#111;font-size:17px}
.price{
  padding:6px 14px;
  color:#fff;
  background:#198754;
  border-radius:30px;
  white-space:nowrap;
}
.ticket-count{
  padding:0 15px 7px;
  color:#6c757d;
  font-size:12px;
  font-weight:600;
}
.ticket-area{
  padding:0 15px 15px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}
.checkbox-budget{display:none}
.checkbox-budget + label{
  display:inline-block;
  margin:4px;
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:12px;
  color:#222;
  background:#f1f3f5;
  box-shadow:0 2px 5px #ddd;
  cursor:pointer;
  user-select:none;
  font-size:15px;
  font-weight:800;
  transition:.18s ease;
}
.checkbox-budget + label:hover{background:#e8ebef;transform:translateY(-1px)}
.checkbox-budget:checked + label{
  color:#fff;
  background:linear-gradient(135deg,#0062ff,#6610f2);
  transform:scale(1.04);
  box-shadow:0 4px 10px rgba(67,52,240,.3);
}
.no-ticket-message{width:100%;padding:10px 4px;color:#6c757d;font-size:14px}
.bottom-confirm,.fixed-action{
  position:fixed;
  bottom:0;
  left:50%;
  z-index:1000;
  width:100%;
  max-width:430px;
  padding:12px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  background:#fff;
  box-shadow:0 -5px 20px rgba(0,0,0,.15);
  transform:translateX(-50%);
}
.bottom-confirm button,.fixed-action button{
  width:100%;
  padding:10px 14px;
  border:0;
  border-radius:50px;
  color:#fff;
  background:#238b5f;
  font-size:17px;
  font-weight:700;
}
.confirm-overlay{
  position:fixed;
  inset:0;
  z-index:2000;
  padding:18px;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.44);
}
.confirm-overlay.show{display:flex}
.confirm-dialog{
  width:100%;
  max-width:356px;
  padding:16px 16px 14px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 8px 30px rgba(0,0,0,.28);
}
.confirm-dialog h3{margin:0 0 14px;font-size:23px;font-weight:500}
.confirm-dialog p{margin:0 0 6px;font-size:15px}
.selected-list{
  max-height:125px;
  padding-right:4px;
  overflow:auto;
  overflow-wrap:anywhere;
  font-weight:800;
  line-height:1.55;
}
.confirm-actions{margin-top:18px;display:flex;justify-content:flex-end;gap:7px}
.confirm-actions button{
  padding:8px 13px;
  border:0;
  border-radius:4px;
  font-size:13px;
  font-weight:800;
}
.btn-confirm-booking{color:#fff;background:#198754}
.btn-cancel-booking{color:#333;background:#eee}
body.modal-open{overflow:hidden}

/* BookTicket form */
.box{
  background:#fff;
  border-radius:20px;
  padding:20px;
  box-shadow:0 5px 20px rgba(0,0,0,.08);
  margin-bottom:15px;
}
.box h5,.box .box-title{
  margin:0 0 10px;
  color:#0d6efd;
  font-size:1.05rem;
  font-weight:700;
}
.ticket{
  display:inline-block;
  background:#0062ff;
  color:#fff;
  padding:8px 14px;
  border-radius:20px;
  margin:5px 5px 5px 0;
  font-size:13px;
  font-weight:600;
}
.amount-box{
  background:#e8f1ff;
  padding:15px;
  border-radius:15px;
  font-size:18px;
  font-weight:700;
  color:#0062ff;
  margin-bottom:15px;
}
.field{margin-bottom:14px}
.field label{
  display:block;
  font-weight:700;
  font-size:13px;
  margin-bottom:6px;
}
.field input,.field select{
  width:100%;
  min-height:46px;
  border:1px solid #ced4da;
  border-radius:10px;
  padding:10px 14px;
  background:#fff;
  font-size:15px;
}
.field input:focus,.field select:focus{
  outline:none;
  border-color:#0062ff;
  box-shadow:0 0 0 3px rgba(0,98,255,.12);
}
.agree-row{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  margin:8px 0 16px;
}
.agree-row input{margin-top:3px}
.btn-book-now{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:50px;
  background:#198754;
  color:#fff;
  font-size:17px;
  font-weight:700;
  cursor:pointer;
}
.nav-links{text-align:center;margin-top:18px;font-size:14px}
.alert-error{
  background:#f8d7da;
  color:#842029;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:14px;
  font-weight:600;
}

/* Payment */
.payment-card{
  background:#f8f9ff;
  padding:15px;
  border-radius:20px;
}
#qrcode,#ticketQrFallback{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
}
#qrcode img,.qr-img{
  max-width:220px;
  width:100%;
  height:auto!important;
  background:#fff;
  padding:12px;
  border-radius:16px;
  border:1px solid #e2e8f0;
}
.upi-buttons{display:grid;gap:9px}
.upi-btn{
  border:0;
  width:100%;
  min-height:40px;
  border-radius:999px;
  color:#fff!important;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  text-decoration:none;
  padding:9px 15px;
}
.gpay{background:#198754}
.phonepe{background:#0d6efd}
.paytm{background:#13c1df}
.other-upi{background:#212529}
.btn-pill{
  width:100%;
  border:0;
  border-radius:999px;
  padding:11px 14px;
  font-weight:700;
  color:#fff;
  cursor:pointer;
}
.btn-pill.primary{background:#0d6efd}
.btn-pill.success{background:#198754}
.form-control-pill{
  width:100%;
  min-height:44px;
  border:1px solid #ced4da;
  border-radius:999px;
  padding:10px 16px;
  margin-bottom:10px;
}
.text-muted{color:#6c757d}
.small{font-size:12px}
hr{border:0;border-top:1px solid #e9ecef;margin:12px 0}
@media(max-width:480px){
  .app{box-shadow:none}
  .content{padding:14px}
  .box{padding:17px}
  .hero{padding:23px 15px}
  .checkbox-budget + label{margin:3px;padding:8px 10px;font-size:14px}
}
