/* Заголовки */
h2, h3 {
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #34495e;
  text-align: center;
}

/* Общие стили календарей */
#calendar, #calendar2, #calendar3 {
  max-width: 480px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 15px 20px 25px;
  margin-bottom: 30px;
  user-select: none;
  height: 450px;
}

/* Убираем дни недели */
.fc-col-header {
  display: none !important;
}

/* Ячейка дня */
.fc-daygrid-day {
  padding: 8px 0 4px !important;
  border: none !important;
  cursor: default;
  transition: background-color 0.2s ease;
  border-radius: 6px;
}

/* Подсветка при наведении */
.fc-daygrid-day:hover:not(.fc-day-disabled):not(.fc-day-other) {
  background-color: #ecf0f1;
}

/* Число дня */
.fc-daygrid-day-top {
  text-align: center !important;
  font-weight: 600;
  color: #34495e;
  font-size: 16px;
  user-select: none;
}

/* События */
.fc-event {
  border: none !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  padding: 4px 8px !important;
  font-weight: 600 !important;
  color: #fff !important;
  cursor: default !important;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Заголовок месяца */
.fc-toolbar-title {
  font-weight: 700;
  font-size: 1.6rem;
  color: #34495e;
  user-select: none;
}

/* Кнопки навигации календаря */
.fc-toolbar-chunk button {
  background: #27ae60;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: background-color 0.3s ease;
  user-select: none;
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
}
.fc-toolbar-chunk button:hover:not(:disabled) {
  background-color: #1e8449;
  box-shadow: 0 6px 12px rgba(30, 132, 73, 0.6);
}
.fc-toolbar-chunk button:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
  box-shadow: none;
}

/* Кнопки FullCalendar */
.fc .fc-button {
  font-size: 0.65em;
}

/* Форма заявки */
form {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 25px 30px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  font-size: 16px;
  color: #2c3e50;
  user-select: none;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  cursor: pointer;
}

form select,
form input[type="number"],
form input[type="text"],
form input[type="email"],
form input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1.8px solid #bdc3c7;
  border-radius: 8px;
  font-size: 16px;
  color: #2c3e50;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  user-select: text;
}

form select:focus,
form input[type="number"]:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="date"]:focus {
  border-color: #27ae60;
  box-shadow: 0 0 8px rgba(39, 174, 96, 0.4);
  outline: none;
}

form button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  box-shadow: 0 6px 14px rgba(39, 174, 96, 0.5);
}
form button:hover:not(:disabled) {
  background-color: #1e8449;
  box-shadow: 0 8px 20px rgba(30, 132, 73, 0.7);
}

/* Ошибки и успех */
.errors, .success {
  max-width: 480px;
  margin: 0 auto 25px;
  padding: 15px 20px;
  border-radius: 12px;
  font-size: 14px;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.errors {
  background-color: #fceae9;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  font-weight: 600;
  list-style-type: disc;
  padding-left: 35px;
}
.errors ul {
  margin: 0;
  padding-left: 20px;
}
.success {
  background-color: #dff0d8;
  color: #27ae60;
  font-weight: 700;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 520px) {
  #calendar, #calendar2, #calendar3, form, .errors, .success {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  form {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  form button {
    font-size: 16px;
    padding: 12px;
  }
}

/* Занятые дни */
.fc-day-unavailable {
  
  color: white !important;
  cursor: not-allowed !important;
}

/* Выбранные даты */
.fc-day-selected {
  background-color: #27ae60 !important;
  color: white !important;
}

/* Диапазон между заездом и выездом */
.fc-day-range {
  background-color: #2ecc71aa !important;
}

/* Половина дня: верх — заезд, низ — выезд */
.fc-day-start-half,
.fc-day-end-half {
  position: relative;
}
.fc-day-start-half::before,
.fc-day-end-half::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  background-color: #27ae60;
  opacity: 0.5;
  z-index: 1;
  border-radius: 6px;
}
.fc-day-start-half::before {
  top: 0;
  border-bottom: 1px solid #fff;
}
.fc-day-end-half::after {
  bottom: 0;
  border-top: 1px solid #fff;
}
