/* Booking System Styles */

/* General Styles */
.tour-booking-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
}

.booking-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
  color: #2c3e50;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Package Info */
.package-info {
  background: #e8f4fd;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.package-info h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
}

.package-info .price {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
  margin: 0;
}

/* Add-ons List */
.addons-list {
  margin-top: 15px;
}

.addon-item {
  background: white;
  padding: 15px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  transition: all 0.3s;
}

.addon-item:hover {
  border-color: #3498db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.addon-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.addon-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.addon-item strong {
  font-size: 16px;
  color: #2c3e50;
}

.addon-description {
  margin: 10px 0 5px 25px;
  color: #666;
  font-size: 13px;
}

.addon-quantity {
  margin: 10px 0 0 25px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
}

.addon-quantity label {
  display: inline-block;
  margin-right: 10px;
  font-weight: normal;
}

.addon-quantity input {
  width: 80px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

/* Payment Methods */
.payment-methods {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.payment-methods label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-methods label:hover {
  background: #f5f5f5;
  border-color: #3498db;
}

.payment-methods input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

/* Booking Summary */
#booking_summary {
  background: #2c3e50;
  color: white;
  padding: 15px;
  border-radius: 4px;
}

#booking_summary p {
  margin: 0;
  font-size: 16px;
}

#total_amount {
  font-size: 24px;
  font-weight: bold;
  color: #27ae60;
}

/* Form Submit */
.form-submit {
  text-align: center;
  margin-top: 30px;
}

.btn-book-now {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-book-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-book-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Availability Feedback */
#date_feedback {
  margin-top: 5px;
  font-size: 14px;
}

#date_feedback .available {
  color: #27ae60;
}

#date_feedback .not-available {
  color: #e74c3c;
}

#date_feedback .checking {
  color: #f39c12;
}

/* Booking Response */
#booking_response {
  margin-top: 15px;
}

#booking_response .success {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
}

#booking_response .error {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

/* Confirmation Page */
.booking-confirmation-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.confirmation-alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid;
}

.confirmation-alert.success {
  background: #d4edda;
  border-color: #27ae60;
}

.confirmation-alert.error {
  background: #f8d7da;
  border-color: #e74c3c;
}

.confirmation-header {
  text-align: center;
  margin-bottom: 40px;
}

.confirmation-header h1 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.confirmation-subtitle {
  color: #666;
  font-size: 16px;
}

.confirmation-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

.card-header {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  color: #2c3e50;
}

.card-body {
  padding: 20px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.detail-item {
  padding: 10px;
  background: #f8f9fa;
  border-radius: 4px;
}

.detail-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.payment-details {
  margin-bottom: 20px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.payment-row.total {
  font-weight: bold;
  font-size: 18px;
  border-bottom: none;
  padding-top: 15px;
  color: #e74c3c;
}

/* Status Badges */
.booking-status,
.payment-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}
.status-confirmed {
  background: #d4edda;
  color: #155724;
}
.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}
.status-completed {
  background: #d1ecf1;
  color: #0c5460;
}
.status-paid {
  background: #d4edda;
  color: #155724;
}
.status-partial {
  background: #fff3cd;
  color: #856404;
}
.status-refunded {
  background: #e2e3e5;
  color: #383d41;
}

/* Responsive */
@media (max-width: 768px) {
  .payment-methods {
    flex-direction: column;
    gap: 10px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
