.centered {
  display: flex;
  justify-content: center;
}

/* Popup Styles */
.reservation-popup,
.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.popup-content {
  position: relative;
  background: white;
  border-radius: var(--radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  z-index: 10000;
}

.reservation-popup .popup-content {
  width: 100%;
  max-width: 800px;
}

.error-popup .popup-content {
  max-width: 400px;
  padding: 2rem;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-foreground);
  cursor: pointer;
  z-index: 10001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.popup-body {
  padding: 0;
}

/* Error Popup Specific Styles */
.error-content {
  text-align: center;
}

.error-body {
  padding: 1rem 0;
}

.error-icon {
  font-size: 3rem;
  color: var(--destructive);
  margin-bottom: 1rem;
}

.error-body h3 {
  color: var(--destructive);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.error-body p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Popup Version of Success Design */
.reservation-success.popup-version {
  margin: 0;
  padding: 0;
  background: transparent;
  min-height: auto;
}

.popup-version .container-ticket {
  margin: 0;
  padding: 0;
  max-width: none;
}

.popup-version .success-header {
  padding: 2rem 2rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-bottom: 0;
}

.popup-version .ticket-container {
  margin: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: none;
  animation: none;
}

.popup-version .action-buttons {
  display: flex;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-gray);
  justify-content: center;
  border-radius: 0 0 var(--radius) var(--radius);
}

.popup-version .action-buttons .btn {
  flex: 1;
  max-width: 150px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.popup-version .action-buttons .btn-primary {
  background: var(--primary);
  color: white;
}

.popup-version .action-buttons .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.popup-version .action-buttons .btn-secondary {
  background: #6b7280;
  color: white;
}

.popup-version .action-buttons .btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .popup-content {
    max-width: 95vw;
    max-height: 95vh;
    margin: 1rem;
  }
  
  .popup-version .success-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .popup-version .action-buttons {
    padding: 1.5rem 1rem;
    flex-direction: column;
  }
  
  .popup-version .action-buttons .btn {
    max-width: none;
  }
  
  .error-popup .popup-content {
    max-width: 95vw;
    padding: 1.5rem;
  }
}
/* Query Hero Section */
.query-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-foreground) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.query-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-geist);
}

.query-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  font-family: var(--font-manrope);
}

/* Query Section */
.query-section {
  padding: 4rem 0;
  background: var(--background);
}

.query-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.query-header {
  text-align: center;
  margin-bottom: 2rem;
}

.query-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-family: var(--font-geist);
}

.query-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
  font-family: var(--font-manrope);
}

/* Query Form */
.query-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-geist);
}

.form-label svg {
  color: var(--primary);
}

.input-wrapper {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.input-wrapper input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-family: var(--font-manrope);
  color: var(--foreground);
}

.input-wrapper input::placeholder {
  color: var(--muted-foreground);
}

.input-wrapper input:focus {
  outline: none;
}

/* Query Info */
.query-info {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.query-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  font-family: var(--font-geist);
}

.query-info p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-family: var(--font-manrope);
}

.info-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Result Section */
.result-section {
  padding: 4rem 0;
  background: var(--secondary);
}

.result-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 3rem;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-header h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
  font-family: var(--font-geist);
}

/* Reservation Details */
.reservation-details {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--foreground);
  font-family: var(--font-geist);
}

.detail-value {
  color: var(--muted-foreground);
  font-family: var(--font-manrope);
}

.detail-value.status {
  font-weight: 600;
  color: var(--success);
}

.detail-value.status.pending {
  color: var(--warning);
}

.detail-value.status.cancelled {
  color: var(--destructive);
}

/* Result Actions */
.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Success Color */
:root {
  --success: #10b981;
  --warning: #f59e0b;
  --destructive: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .query-hero h1 {
    font-size: 2rem;
  }

  .query-card {
    margin: 0 1rem;
    padding: 2rem;
  }

  .result-card {
    margin: 0 1rem;
    padding: 2rem;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .info-actions,
  .result-actions {
    flex-direction: column;
  }

  .info-actions .btn,
  .result-actions .btn {
    width: 100%;
  }
}
