/* /booking/style.css */
/* Базовое оформление */
body {
  background-color: #f8f9fa;
}
/* Автоматическая ширина подменю справки (client) */
.navbar .dropdown-menu {
    width: auto !important;
    min-width: 0 !important;
    white-space: nowrap !important;
}

/* forgot_password.php */
.page-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* main.php */
.booking-card {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.flatpickr-disabled-day {
  color: #aaa !important;
  pointer-events: none;
}
.step-label {
  font-weight: 500;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-select {
  height: 50px;
  font-size: 16px;
  padding: 10px 12px;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #2196f3;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
}
.step-content { flex: 1; }
.btn-success {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}
.btn-success:hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
}
/* Доступные даты делаем жирными */
.flatpickr-day.available {
  font-weight: bold;
  color: #000 !important;
}
/* Убираем серость у доступных дат из соседнего месяца */
.flatpickr-day.available.prevMonthDay,
.flatpickr-day.available.nextMonthDay {
  opacity: 1 !important;
  color: #000 !important;
}

/* reset_password.php */
body.reset-mode {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  background-color: #f8f9fa;
}
body.reset-mode .page-wrapper,
body.reset-mode .page-inner {
  all: unset;
}

.reset-card {
  max-width: 380px;
  width: 100%;
}

/* ========================= */
/*   Адаптация под мобильные */
/* ========================= */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    padding: 10px;
  }

  .page-container,
  .booking-card,
  .reset-card {
    margin: 20px auto;
    padding: 16px;
    width: 100%;
    max-width: 95%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }

  .step-row {
    flex-direction: column;
    align-items: stretch;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 8px;
  }

  .form-select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  button {
    width: 100%;
    font-size: 16px;
  }

  .btn {
    width: 100%;
    margin-top: 8px;
  }

  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }

  nav.navbar .navbar-brand {
    font-size: 18px;
  }

  nav.navbar .nav-link {
    padding: 8px 12px;
  }
}

/* ========================= */
/*   Мелкие экраны (<480px)  */
/* ========================= */
@media (max-width: 480px) {
  .step-row {
    gap: 6px;
  }

  .step-label {
    font-size: 14px;
  }

  .booking-card {
    margin: 15px auto;
    padding: 14px;
  }

  .page-container {
    margin: 15px auto;
    padding: 14px;
  }

  table {
    font-size: 13px;
  }
}
/* Исправление выравнивания формы напоминаний на странице account.php */
form.d-flex.gap-2.align-items-center {
  flex-wrap: nowrap !important;
}
form.d-flex.gap-2.align-items-center input,
form.d-flex.gap-2.align-items-center select,
form.d-flex.gap-2.align-items-center button {
  width: auto !important;
}

/* На мобильных пусть элементы распределяются с нужными пропорциями */
@media (max-width: 768px) {
  form.d-flex.gap-2.align-items-center {
    flex-wrap: wrap !important;
  }
  form.d-flex.gap-2.align-items-center input,
  form.d-flex.gap-2.align-items-center select {
    flex: 1 1 45%;
  }
  form.d-flex.gap-2.align-items-center button {
    flex: 1 1 100%;
    margin-top: 6px;
  }
}
/* Исправление наложения текста на стрелку в select */
form select.form-select {
  padding-right: 2rem !important; /* больше места справа под стрелку */
  background-position: right 0.75rem center; /* корректное положение стрелки */
  background-repeat: no-repeat;
  background-size: 0.65em auto;
}
@media (max-width: 768px) {
  form select.form-select {
    font-size: 16px;
    background-size: 0.55em auto;
    padding-right: 1.8rem !important;
  }
}
/* /booking/style.css */
/* Центрирование плашки по горизонтали и закрепление вверху */
.top-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 400px;
  padding: 10px;
}
/* === Оформление тестового выпадающего меню (HELP ?) === */

.my-test-dropdown {
    position: relative;
    display: inline-block;
}

#myTestMenu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #bbb !important;
    border-radius: 6px;
    padding: 6px 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);

    width: auto !important;        /* ширина = ширина контента */
    min-width: fit-content !important;
    white-space: nowrap !important; /* на всякий случай не переносим текст */
}

#myTestMenu a {
    display: block;
    padding: 6px 14px;
    color: #333;
    text-decoration: none;
}

#myTestMenu a:hover {
    background: #f1f1f1;
}
.form-check-input[type=checkbox] {
    border-radius: .25em;
    border-color: #212529;
}
