/* Shared public class booking modal (Find Classes / Weekend / Curated) */

.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #d4f600;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.booking-modal-summary {
  margin-bottom: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.booking-summary-banner {
  height: 120px;
  background: linear-gradient(135deg, rgba(212, 246, 0, 0.2) 0%, rgba(184, 212, 0, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.booking-summary-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.booking-summary-banner.placeholder {
  font-size: 2.5rem;
  color: rgba(212, 246, 0, 0.5);
}
.booking-summary-details { padding: 1rem; }
.booking-summary-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}
.booking-summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
}
.booking-summary-category { color: #d4f600; }
.booking-summary-price { color: #d4f600; font-weight: 600; }
.booking-summary-center {
  font-size: 0.875rem;
  color: #ccc;
  margin-bottom: 0.25rem;
}
.booking-summary-address {
  font-size: 0.8125rem;
  color: #888;
  line-height: 1.4;
}

.booking-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.booking-modal.show { display: flex; }
.booking-modal-content {
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}
.booking-modal-content h3 {
  margin: 0 0 1.5rem 0;
  color: #fff;
  font-size: 1.5rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #aaa;
  font-size: 14px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: #d4f600;
  background: rgba(255, 255, 255, 0.08);
}
.booking-participants-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.booking-secondary-btn {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ddd;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.extra-participant-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.03);
}
.extra-participant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.remove-participant-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #aaa;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}
.booking-modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}
.btn-cancel {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #aaa;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-confirm {
  flex: 1;
  padding: 12px;
  background: #d4f600;
  border: none;
  color: #000;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-confirm:hover { background: #b8d400; }
.send-whatsapp-section { margin-top: 1rem; }
.btn-send-whatsapp {
  width: 100%;
  padding: 12px;
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid #25d366;
  color: #25d366;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-send-whatsapp:hover { background: rgba(37, 211, 102, 0.3); }
.btn-send-whatsapp:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.send-whatsapp-status {
  margin-top: 0.5rem;
  font-size: 13px;
  color: #aaa;
}
.success-modal-content { text-align: center; }
.success-icon {
  color: #d4f600;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.success-title {
  color: #d4f600;
  margin-bottom: 1.5rem;
}
.success-details {
  text-align: left;
  margin-bottom: 1.5rem;
}
.success-details-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
  flex-wrap: wrap;
}
.success-details-item:last-child { border-bottom: none; }
.success-details-label {
  color: #aaa;
  font-size: 14px;
}
.success-details-value {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  word-break: break-word;
}
.success-note {
  background: rgba(212, 246, 0, 0.05);
  border-left: 3px solid #d4f600;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}
.success-note p {
  margin: 0;
  color: #d4f600;
  font-size: 14px;
}
.error-modal-content { text-align: center; }
.error-icon {
  color: #ff4444;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.error-title {
  color: #ff4444;
  margin-bottom: 1rem;
}
.error-message {
  color: #aaa;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.coupon-section label { display: block; margin-bottom: 0.5rem; }
.coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.coupon-chip {
  padding: 6px 12px;
  background: rgba(212, 246, 0, 0.15);
  border: 1px solid rgba(212, 246, 0, 0.4);
  border-radius: 20px;
  color: #d4f600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.coupon-chip:hover { background: rgba(212, 246, 0, 0.25); }
.coupon-manual {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.coupon-manual .coupon-code-input {
  min-width: 0;
  flex: 1 1 140px;
}
.coupon-code-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
}
.coupon-apply-btn {
  padding: 10px 16px;
  background: rgba(212, 246, 0, 0.2);
  border: 1px solid #d4f600;
  color: #d4f600;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.coupon-apply-btn:hover { background: rgba(212, 246, 0, 0.3); }
.coupon-applied-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(212, 246, 0, 0.1);
  border-radius: 8px;
  margin-top: 0.5rem;
  font-size: 14px;
  color: #d4f600;
}
.coupon-remove-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.coupon-remove-btn:hover { color: #fff; }
.coupon-error {
  color: #ff4444;
  font-size: 13px;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .booking-modal-actions { flex-direction: column; }
  .booking-modal-content {
    padding: 1.25rem;
    max-width: 100%;
  }
  .booking-summary-banner { height: 100px; }
  .booking-summary-title { font-size: 1rem; }
}

.book-btn.enrolled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #9ca3af !important;
  cursor: default;
  border-color: transparent !important;
}
