* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Hero */
.hero {
  width: 100%;
  height: 100vh;
  background: url('https://tickets.lk/gw30/gw30.png') no-repeat center center;
  background-size: contain;
  background-color: #000;
  position: relative;
}

.register-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffcc00;
  color: #002060;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.register-btn:hover {
  background: #ffdb4d;
}

/* Panel */
.panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #002060;
  padding: 30px 20px;
  overflow-y: auto;
  transition: right 0.35s ease;
  z-index: 999;
}

@media (min-width: 900px) {
  .panel {
    width: 380px;
    right: -380px;
    padding: 30px;
    background: rgba(0, 32, 96, 0.92);
    box-shadow: -4px 0 10px rgba(0,0,0,0.4);
  }
}

.panel.open {
  right: 0;
}

.close-btn {
  background: #ccc;
  color: #000;
  padding: 10px;
  border-radius: 6px;
  border: none;
  width: 100%;
  margin-bottom: 20px;
  font-size: 16px;
  cursor: pointer;
}

h1 {
  text-align: center;
  color: #ffcc00;
  margin-top: 0;
}

/* Events */
.event-block {
  background: rgba(255,255,255,0.12);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  border-left: 4px solid #ffcc00;
}

.event-block h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
  color: #ffcc00;
}

label {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
}

select {
  width: 100%;
  padding: 9px;
  margin-top: 5px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
}

#submitBtn {
  width: 100%;
  padding: 14px;
  background: #ffcc00;
  color: #002060;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
}

#submitBtn:disabled {
  background: #777;
  cursor: not-allowed;
}

/* Popups */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  color: #000;
  padding: 22px;
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
}

.popup-content button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.checkout-btn { background: #28a745; color: white; }
.complete-btn { background: #004aad; color: white; }
.close-popup-btn { background: #ccc; }

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.cart-table th, .cart-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.cart-table th.amount,
.cart-table td.amount {
  text-align: right;
}

.cart-summary {
  margin-top: 10px;
  font-size: 15px;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cart-summary span.amount {
  text-align: right;
  min-width: 110px;
}

/* Inputs */
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #aaa;
  font-size: 15px;
}

.error {
  color: #c00;
  font-size: 13px;
  margin-top: 4px;
}

.invalid {
  border-color: #c00 !important;
}

.phone-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.phone-row select {
  width: 45%;
}

.phone-row input {
  width: 55%;
}

/* Ticket */
#ticketDetails {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 10px;
}
#ticketDetails strong {
  color: #002060;
}
.ticket-logo {
  display: block;
  max-width: 140px;
  margin: 0 auto 10px;
}
.ticket-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

/* Print layout */
#printTicket {
  display: none;
  background: #fff;
  color: #000;
  padding: 20px;
  font-family: "Segoe UI", Arial, sans-serif;
}
#printTicket h2 {
  text-align: center;
  margin-top: 0;
  color: #002060;
}
#printTicket .ticket-logo {
  margin-bottom: 10px;
}
#printTicket .ticket-section {
  margin-bottom: 10px;
  font-size: 14px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printTicket, #printTicket * {
    visibility: visible;
  }
  #printTicket {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
