/* Simple Popup Styles for Ticket Purchase Form */

#ticket-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#ticket-popup {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
  font-family: "Outfit", sans-serif;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popupFadeIn 0.5s ease forwards;
  position: relative;
}

#ticket-popup-header {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

#ticket-popup-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  font-family: "Outfit", sans-serif;
  letter-spacing: 1px;
  text-align: center;
  text-transform: none;
  flex: 1;
  text-shadow: 0 0 10px rgba(247, 164, 12, 0.8), 0 0 20px rgba(247, 164, 12, 0.8),
    0 0 30px rgba(247, 164, 12, 0.8);
}

#ticket-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#ticket-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#ticket-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}
/* FIX: Dropdown text color */
.form-group select option {
  color: #000;
  background: #fff;
}


.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(233, 79, 8, 0.8);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

#ticket-summary {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  max-height: 300px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
}

#ticket-summary h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 600;
}

#summary-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.form-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

#ticket-popup-cancel,
#ticket-popup-submit {
  padding: 12px 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 120px;
  text-align: center;
  backdrop-filter: blur(10px);
}

#ticket-popup-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#ticket-popup-cancel:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#ticket-popup-submit {
  background: linear-gradient(45deg, #ffaf01, #ffed4e);
  color: #333;
  border-color: #ffaf01;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

#ticket-popup-submit:hover {
  background: linear-gradient(45deg, #ffaf01, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Payment Popup Styles */
#payment-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

#payment-popup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 0;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  font-family: "Outfit", sans-serif;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popupFadeIn 0.5s ease forwards;
  position: relative;
}

#payment-popup-header {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px 35px;
  border-radius: 25px 25px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(15px);
}

#payment-popup-header h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: "Arial Black", sans-serif;
  letter-spacing: 1px;
}

#payment-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#payment-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#payment-content {
  padding: 35px;
}

#payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.payment-method {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-method:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.payment-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.payment-details h3 {
  margin: 0 0 5px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.payment-details p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.payment-details-section {
  text-align: center;
  animation: slideIn 0.5s ease forwards;
}

.payment-details-section h3 {
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.payment-details-section p {
  margin-bottom: 25px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.qr-code-container {
  margin: 30px 0;
  display: flex;
  justify-content: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

.va-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  backdrop-filter: blur(10px);
}

.va-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-family: monospace;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 10px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
}

.va-instruction {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  margin-top: 10px !important;
}

.btn-confirm-payment {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-confirm-payment:hover {
  background: linear-gradient(45deg, #ee5a24, #ff4757);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* Confirmation Popup Styles */
#confirmation-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

#confirmation-popup {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
  padding: 0;
  border-radius: 25px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  font-family: "Outfit", sans-serif;
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: popupFadeIn 0.6s ease forwards;
  position: relative;
}

#confirmation-popup-header {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px 35px;
  border-radius: 25px 25px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(15px);
}

#confirmation-popup-header h2 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: "Arial Black", sans-serif;
  letter-spacing: 1px;
}

#confirmation-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

#confirmation-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

#confirmation-content {
  padding: 35px;
}

.confirmation-details {
  margin-bottom: 30px;
}

.confirmation-details h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.order-info {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.order-info p {
  margin: 8px 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
}

.order-info strong {
  color: #ffeaa7;
}

.ticket-barcode {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
}

.ticket-barcode h4 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ticket-barcode p {
  margin-bottom: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.barcode-container {
  margin: 25px 0;
  display: flex;
  justify-content: center;
}

.ticket-qr {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
}

.barcode-note {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-style: italic;
}

.confirmation-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download-ticket,
.btn-close-confirmation {
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 160px;
  text-align: center;
}

.btn-download-ticket {
  background: linear-gradient(45deg, #a8e6cf, #52c234);
  color: #fff;
  box-shadow: 0 8px 25px rgba(168, 230, 207, 0.4);
}

.btn-download-ticket:hover {
  background: linear-gradient(45deg, #52c234, #379237);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(168, 230, 207, 0.6);
}

.btn-close-confirmation {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-close-confirmation:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quantity Selector Styles */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.quantity-selector label {
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.quantity-input {
  width: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  padding: 5px;
}

.total-price {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.total-price strong {
  color: #ffeaa7;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #ticket-popup,
  #payment-popup,
  #confirmation-popup {
    width: 95%;
    margin: 20px;
  }

  #ticket-popup-header,
  #payment-popup-header,
  #confirmation-popup-header {
    padding: 20px 25px;
  }

  #ticket-popup-header h2,
  #payment-popup-header h2,
  #confirmation-popup-header h2 {
    font-size: 1.8rem;
  }

  #ticket-form,
  #payment-content,
  #confirmation-content {
    padding: 25px;
  }

  .form-buttons,
  .confirmation-actions {
    flex-direction: column;
  }

  #ticket-popup-cancel,
  #ticket-popup-submit,
  .btn-download-ticket,
  .btn-close-confirmation {
    width: 100%;
  }

  #payment-options {
    grid-template-columns: 1fr;
  }

  .payment-method {
    padding: 15px;
  }

  .va-number {
    font-size: 1.4rem;
    padding: 12px;
  }

  .quantity-selector {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .quantity-controls {
    align-self: center;
  }

  .total-price strong {
    font-size: 1rem;
  }
  /* Button Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255,215,0,0.4); }
  50% { box-shadow: 0 0 25px rgba(255,215,0,0.9); }
  100% { box-shadow: 0 0 10px rgba(255,215,0,0.4); }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Apply Animation to Buttons */
#ticket-popup-submit,
.btn-confirm-payment,
.btn-download-ticket {
  animation: pulseGlow 2.8s infinite ease-in-out,
             floatUpDown 3.5s infinite ease-in-out;
}

}
