@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
   font-family: 'Playfair Display';
}
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:url("https://utes62.ru/assets/img/booking-back.png");
  background-size:cover;
  margin:0;
  background-repeat:no-repeat;
}

/* ========== КАРТОЧКА БРОНИРОВАНИЯ ========== */
.booking-card {
  width: 100%;
  max-width: 550px;
  background-color: #EBEAE3;
  border-radius: 20px;
  padding: clamp(1.5rem, 6vw, 2.8rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    margin: clamp(1.5rem, 6vw, 2.8rem);
}

.logo-div {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.8rem, 3vw, 1.5rem);
}

.logo {
  max-width: min(80%, 200px);
  height: auto;
}

h2 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  margin-bottom: clamp(1rem, 4vw, 2rem);
}

/* ========== ФОРМА ========== */
.booking-form {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 500;
}

input {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 15px;
  padding: clamp(0.7rem, 2vw, 0.9rem) clamp(0.8rem, 2vw, 1rem);
  font: inherit;
  outline: none;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #3f3f3f;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

.book-btn {
  border: 0;
  border-radius: 16px;
  padding: clamp(0.8rem, 2vw, 1rem);
  background: #A89888;
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  cursor: pointer;
  transition: background 0.2s;
}

.book-btn:hover {
  background: #8c7a68;
}

.book-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== СООБЩЕНИЯ ========== */
.form-message {
  display: none;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: clamp(0.85rem, 2vw, 1rem);
  line-height: 1.4;
}

.form-message.success {
  display: block;
  background: #e8f7ea;
  color: #000000;
}

.form-message.error {
  display: block;
  background: #fdecec;
  color: #9b1c1c;
}

/* ========== ПОЛЕ ВЫБОРА СТОЛИКА (readonly) ========== */
input#selectedTableText {
  cursor: pointer;
  background-color: #fff;
}

input#selectedTableText:read-only {
  background-color: #fff;
}

.has-value {
  color: #111 !important;
  font-weight: 600;
}

/* ========== МОДАЛЬНОЕ ОКНО СХЕМЫ ЗАЛА ========== */
.hall-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
}

.hall-modal.is-open {
  display: block;
}

.hall-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hall-modal__content {
  position: relative;
  width: min(1200px, 95%);
  max-width: 95%;
  height: 90vh;
  margin: 5vh auto 0;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 280px;
  border-radius: 18px;
  overflow: hidden;
}

.hall-modal__map {
  position: relative;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hall-modal__map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* зоны столиков – проценты заданы инлайн, здесь только стилизация */
.table-zone {
  position: absolute;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.table-zone::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid transparent;
  border-radius: 50%;
  transition: 0.2s;
  pointer-events: none;
}

.table-zone:hover::after {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.table-zone.is-selected::after {
  border-color: #ffffff;
  box-shadow: 0 0 0 5px rgba(46, 204, 113, 0.4);
}

.hall-modal__sidebar {
  padding: clamp(1rem, 3vw, 1.8rem);
  background: #fff;
  overflow-y: auto;
}

.hall-modal__sidebar h3 {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  margin: 0 0 0.8rem 0;
}

.hall-modal__hint {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: #666;
  margin-bottom: 1.2rem;
}

.hall-modal__selected {
  padding: 0.8rem;
  background: #f3f3f3;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.hall-modal__selected strong {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: #000000;
  margin-top: 0.5rem;
}

.btn-primary {
  width: 100%;
  border: 0;
  padding: 0.9rem;
  border-radius: 14px;
  background: #A89888;
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover:not(:disabled) {
  background: #8c7a68;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hall-modal__close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.hall-modal__close:hover {
  background: #f0f0f0;
}
.pers_date {display: inline-flex;align-items: center;gap: 0.8rem;font-size: clamp(0.8rem, 1vw, 0.9rem);flex-wrap: nowrap !important;}.pers_date input {width: 18px;height: 18px;margin: 0;flex: 0 !important;}
/* ========== АДАПТИВ (только критическая перестройка) ========== */
@media (max-width: 900px) {
  .hall-modal__content {
    grid-template-columns: 1fr;
    height: 95vh;
    overflow-y: auto;
  }

  .hall-modal__sidebar {
    border-top: 1px solid #ddd;
  }

  .hall-modal__close {
    background: rgba(255, 255, 255, 0.9);
  }
}

@media (max-width: 560px) {
  .booking-card {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}