/* Math & Matter Booking Page Styles */

/* Fix Book Now button to match other pages */
.booking-page .nav-link.btn.btn-primary {
  background-color: var(--navy-blue) !important;
  color: var(--warm-white) !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.booking-page .nav-link.btn.btn-primary:hover {
  background-color: #003d7a !important;
}

/* Footer Contact Info Alignment */
.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info li i {
  font-size: 1.125rem;
  color: var(--soft-teal);
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Booking Hero Section */
.booking-hero {
  padding: 180px 0 100px;
}

/* Booking Form Section */
.booking-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-lg);
}

.booking-form .form-group {
  margin-bottom: var(--spacing-md);
}

.booking-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--dark-blue);
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-size: 1rem;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 2px rgba(0, 160, 176, 0.2);
}

.booking-form .btn-block {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-option {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--light-gray);
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.radio-option:hover {
  border-color: var(--turquoise);
  background-color: #f0f9fa;
}

.radio-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.radio-option input[type="radio"]:checked + label {
  font-weight: 600;
  color: var(--turquoise);
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--turquoise);
  background-color: rgba(0, 160, 176, 0.1);
}

.radio-option label {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

/* Time Slots */
.time-slots-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.time-slot {
  padding: 10px 15px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover {
  background-color: #e0e0e0;
}

.time-slot.selected {
  background-color: var(--turquoise);
  color: var(--white);
}

/* Price Display */
.price-container {
  background-color: var(--light-gray);
  padding: var(--spacing-sm);
  border-radius: var(--border-radius);
}

.price-display {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark-blue);
}

/* Message Container */
#message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 300px;
}

.message {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.message {
  opacity: 1;
}

#message-container {
  pointer-events: none; /* container won't block clicks */
}

.message {
  pointer-events: auto; /* message itself can still be clickable if needed */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .booking-container {
    padding: var(--spacing-md);
  }
  
  .radio-group {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .radio-option {
    margin-right: 0;
  }
}