/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f6f8;
  color: #333;
  line-height: 1.2;
  padding: 10px;
}

/* Header */
header {
  background-color: #0D4642;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.tagline {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.9;
}

/* Layout */
main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

section {
  flex: 1 1 45%;
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Form */
.booking-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-form label {
  font-weight: bold;
}

.booking-form input,
.booking-form select,
.booking-form button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: #0D4642;
  box-shadow: 0 0 3px rgba(13, 70, 66, 0.5);
}

.booking-form button {
  background-color: #0D4642;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.booking-form button:hover {
  background-color: #0b3a39;
}

/* Add scroll to appointments list */
.appointments-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.appointments-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.appointments-list li {
  padding: 8px 12px;
  background: #e6f0f0;
  border-left: 4px solid #0D4642;
  margin-bottom: 8px;
  border-radius: 4px;
}

.right-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1 45%;
}

/* Telegram section styles */
.telegram-download {
  text-align: center;
  background-color: #e6f0f0;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #0D4642;
  margin-top: 20px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.telegram-download h2 {
  margin-bottom: 10px;
  color: #0D4642;
}

.telegram-download img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(13, 70, 66, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.telegram-download img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .telegram-download {
    margin: 20px 10px 0 10px;
  }
}

/* Add to your CSS */
select.fully-booked {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
  font-weight: bold;
}

.view-all-link {
  font-size: 0.9em;
  color: #007bff;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* styles_Doc.css */
button[type="submit"] {
  position: relative;
  padding: 10px 20px;
  background-color: #0d4642;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button[type="submit"]:disabled {
  background-color: #777;
  cursor: not-allowed;
}

button[type="submit"].loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}