/* ============================================
   BOOKING SYSTEM STYLES
   ============================================ */

.booking-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.booking-modal-overlay.active {
  display: flex;
}

.booking-modal-content {
  background: linear-gradient(135deg, #1a0033, #2d1b69);
  border: 2px solid rgba(255, 105, 180, 0.5);
  border-radius: 24px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
  animation: slideUp 0.3s ease-out;
}

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

.booking-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.booking-modal-close:hover {
  color: #FF1493;
  background: rgba(255, 20, 147, 0.1);
  transform: scale(1.1);
}

.booking-modal-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-modal-header h2 {
  font-size: 32px;
  color: #FFFFFF;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.booking-modal-header p {
  color: #E6E6FA;
  font-size: 16px;
  opacity: 0.9;
}

/* Booking Steps */
.booking-step h3 {
  font-size: 24px;
  color: #FF69B4;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-back-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E6E6FA;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.booking-back-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FF69B4;
}

/* Booking Type Cards */
.booking-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.booking-type-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.booking-type-card:hover {
  background: rgba(255, 105, 180, 0.15);
  border-color: #FF69B4;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 20, 147, 0.3);
}

.booking-type-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.booking-type-card h4 {
  color: #FFFFFF;
  font-size: 18px;
  margin-bottom: 12px;
}

.booking-type-rates {
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.booking-type-rates div {
  margin: 4px 0;
}

.booking-type-notes {
  color: rgba(230, 230, 250, 0.7);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}

/* Form Elements */
.booking-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #E6E6FA;
  margin-bottom: 8px;
}

.booking-form-group {
  margin-bottom: 20px;
}

.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.booking-form-group input,
.booking-form-group select,
.booking-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s;
}

.booking-form-group input:focus,
.booking-form-group select:focus,
.booking-form-group textarea:focus {
  outline: none;
  border-color: #FF69B4;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.booking-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Rate Type Options */
.rate-type-options {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.rate-type-option {
  display: block;
  cursor: pointer;
}

.rate-type-option input[type="radio"] {
  display: none;
}

.rate-option-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s;
}

.rate-type-option:hover .rate-option-content {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 105, 180, 0.5);
}

.rate-type-option input:checked + .rate-option-content {
  background: rgba(255, 105, 180, 0.2);
  border-color: #FF69B4;
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

.rate-option-label {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 16px;
}

.rate-option-price {
  font-weight: 700;
  color: #4ade80;
  font-size: 18px;
}

/* Price Summary */
.booking-price-summary {
  background: rgba(255, 105, 180, 0.1);
  border: 2px solid rgba(255, 105, 180, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.booking-price-summary h4 {
  color: #FF69B4;
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #E6E6FA;
}

.price-row:last-of-type {
  border-bottom: none;
}

.price-row.total {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid rgba(255, 105, 180, 0.4);
  font-size: 18px;
  color: #4ade80;
}

.price-note {
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(230, 230, 250, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Balance Display */
.booking-balance {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: #E6E6FA;
  font-weight: 600;
}

#insufficientBalanceWarning {
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 68, 68, 0.1);
  border-radius: 8px;
  margin-top: 12px;
}

.btn-buy-coins {
  padding: 10px 20px;
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-buy-coins:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 20, 147, 0.4);
}

/* Action Buttons */
.booking-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.booking-actions button {
  flex: 1;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #FF1493, #FF69B4);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 20, 147, 0.5);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #E6E6FA;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Success State */
.booking-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  font-size: 80px;
  color: #4ade80;
  margin-bottom: 24px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.booking-success h3 {
  font-size: 28px;
  color: #FFFFFF;
  margin-bottom: 16px;
  justify-content: center;
}

.booking-success p {
  color: #E6E6FA;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.success-note {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
  font-size: 14px;
}

.success-note i {
  color: #4ade80;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .booking-modal-content {
    padding: 24px;
    max-height: 95vh;
  }

  .booking-modal-header h2 {
    font-size: 24px;
  }

  .booking-types-grid {
    grid-template-columns: 1fr;
  }

  .booking-form-row {
    grid-template-columns: 1fr;
  }

  .booking-actions {
    flex-direction: column;
  }

  .success-icon {
    font-size: 60px;
  }
}

/* Scrollbar Styling */
.booking-modal-content::-webkit-scrollbar {
  width: 8px;
}

.booking-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.booking-modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 105, 180, 0.5);
  border-radius: 4px;
}

.booking-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 105, 180, 0.7);
}
