/* booking.css – Styles for the seat booking page */
/* ------------------------------------------------------------ */
:root {
  --primary-hue: 210; /* blue-ish */
  --primary: hsl(var(--primary-hue), 70%, 55%);
  --primary-dark: hsl(var(--primary-hue), 70%, 45%);
  --bg: #f5f7fa;
  --text: #000000;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

.booking-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
}

.booking-container {
  max-width: 960px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
}

.time-slots h2,
.seat-selection h2,
.booking-form-container h2,
.booking-success h2 {
  margin-top: 0;
  color: var(--primary-dark);
}

.time-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.time-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.time-btn:hover {
  background: var(--primary-dark);
}
.time-btn:active {
  transform: scale(0.97);
}

/* Seat grid */
.seat-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.seat-row {
  display: flex;
  gap: 0.5rem;
}
.seat {
  flex: 1 1 0;
  min-width: 50px;
  padding: 0.6rem 0;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.1s;
}
.seat-available {
  background: #e0f2ff;
  color: var(--primary-dark);
}
.seat-selected {
  background: var(--primary);
  color: #fff;
}
.seat-booked {
  background: #c4c4c4;
  color: #777;
  cursor: not-allowed;
}
.seat:hover:not(.seat-booked) {
  background: #b3e0ff;
  transform: translateY(-2px);
}

.seat-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.legend-item div {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.seat-available { background: #e0f2ff; }
.seat-selected { background: var(--primary); }
.seat-booked { background: #c4c4c4; }

/* Form styling */
.booking-form-container {
  margin-top: 1.5rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.form-group input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary {
  background: #ddd;
  color: #333;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-secondary:hover { background: #ccc; }

/* Success message */
.booking-success {
  text-align: center;
  padding: 2rem;
}
.success-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Loading spinner */
.loading-spinner {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 600px) {
  .seat-row { flex-direction: column; }
  .time-buttons { flex-direction: column; }
}

/* End of booking.css */
