html,
body {
  margin: 0;
  padding: 0;
  background: #1a1410;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.booking-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 96px 24px 72px;
  position: relative;
  box-sizing: border-box;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(255, 219, 173, 0.16), transparent 60%),
    radial-gradient(800px 420px at 90% 20%, rgba(255, 230, 196, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(14, 10, 8, 0.65) 0%, rgba(14, 10, 8, 0.88) 100%),
    url('/assets/images/booking-bg.jpg') center/cover no-repeat;
}

.booking-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.booking-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 6px);
  opacity: 0.4;
  pointer-events: none;
}

.booking-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.booking-inner {
  background: rgba(245, 228, 211, 0.98);
  border-radius: 26px;
  padding: 2.4rem 2.6rem;
  box-shadow: 0 24px 70px rgba(10, 7, 5, 0.45);
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

/* Заголовок */
.booking-title {
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  font-family: var(--font-title, inherit);
  color: #2b221b;
  letter-spacing: 0.02em;
}

.booking-lead {
  text-align: center;
  margin: 0 auto 1.4rem;
  max-width: 560px;
  color: #4b3f36;
  line-height: 1.6;
  font-size: 1.02rem;
}

/* Кнопка телеги */
.btn-telegram {
  display: block;
  width: 100%;
  margin-bottom: 1.4rem;
  padding: 10px 0px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0aa0df, #0077b5);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(10, 122, 175, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-telegram:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(10, 122, 175, 0.35);
}

.switch-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.6rem;
}

/* сам переключатель */
.switch {
  position: relative;
  width: 240px;
  height: 58px;
  background: #e3ccb1;
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.18);
}

.switch input { display: none; }

.switch-left,
.switch-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2;
  transition: color 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.switch-left { left: 0; color: #fff; }
.switch-right { right: 0; color: #6b5a4a; }

.switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 8px);
  height: calc(100% - 8px);
  background: linear-gradient(135deg, #b1845d, #8b623f);
  border-radius: 26px;
  transition: left 0.28s ease, background 0.28s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.switch input:checked ~ .switch-thumb {
  left: calc(50% + 4px);
  background: linear-gradient(135deg, #986945, #6f4c33);
}

.switch input:checked ~ .switch-left { color: #6b5a4a; }
.switch input:checked ~ .switch-right { color: #fff; }

.legend {
  position: absolute;
  z-index: 3;
  bottom: 100%;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transform: translateY(-8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.legend-left { left: 10px; }
.legend-right { right: 10px; text-align: right; }

.switch .legend-left { opacity: 1; }

.switch input:checked ~ .legend-left { opacity: 0; }
.switch input:checked ~ .legend-right {
  opacity: 1;
  transform: translateY(-8px);
}

/* Фото героя */
.booking-hero {
  width: 100%;
  min-height: 260px;
  border-radius: 18px;
  background: #1f1915 center/cover no-repeat;
  margin-bottom: 1.8rem;
  transition: background-image 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(17, 12, 8, 0.3);
}

.booking-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

/* Поля формы */
.field {
  margin-bottom: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 1rem;
}

.field-grid .field {
  min-width: 0;
}

.field input[type="number"] {
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #3f342b;
}
.field input,
.field textarea,
.field select,
.booking-promo [data-booking-promo-input] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(128, 98, 71, 0.25);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff7ef;
  transition: all 0.2s;
  box-shadow: inset 0 1px 3px rgba(77, 54, 34, 0.08);
}
.field input#phone {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  font-weight: 400;
  background: linear-gradient(135deg, #fff9f3, #f1e3d3);
  border-color: rgba(128, 98, 71, 0.35);
  box-shadow: inset 0 1px 3px rgba(77, 54, 34, 0.12), 0 10px 22px rgba(166, 124, 82, 0.16);
}

.field input#phone::placeholder {
  color: #9a8775;
  letter-spacing: 0.08em;
}

.field input#phone:focus {
  border-color: #b98a5c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(185, 138, 92, 0.25), 0 10px 22px rgba(166, 124, 82, 0.2);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.booking-promo [data-booking-promo-input]:focus {
  border-color: #a67c52;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.2);
}

.field textarea {
  min-height: 70px;
  resize: vertical;
}

/* Дата/время */
.date-row .date-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.date-row .btn,
.booking-promo__check {
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b1845d, #8b623f);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(139, 98, 63, 0.25);
  white-space: nowrap;
}

.date-display {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #f2e8dc;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #4b3f36;
}

/* Кнопка отправки */
.btn-primary {
  width: 100%;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, #a67c52, #8b623f);
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 124, 82, 0.35);
}

.btn-primary:disabled,
.btn:disabled {
  background: #c9b9a6;
  cursor: not-allowed;
  box-shadow: none;
}

/* === Слайдер-капча === */
.slider-captcha {
  margin-top: 12px;
  user-select: none;
}

.sc-track {
  position: relative;
  height: 48px;
  border-radius: 12px;
  background: #f1e6d5;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.sc-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(135deg, #a67c52, #8b623f);
  transition: width 0.06s linear;
  z-index: 1;
}

.sc-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6b6b6b;
  pointer-events: none;
  z-index: 2;
}

.sc-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #ffffff80;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: grab;
  transition: box-shadow 0.2s ease, left 0.06s linear;
  z-index: 3;
  touch-action: none;
  -webkit-user-drag: none;
}

.sc-handle:active { cursor: grabbing; }
.slider-captcha.solved .sc-text { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

/* === Модалка выбора даты === */
.picker-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.picker-modal.active { display: flex !important; opacity: 1; }

.picker-panel {
  background: #fff;
  border-radius: 18px;
  padding: 24px 26px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.picker-modal.active .picker-panel { transform: translateY(0); }

.picker-panel label {
  display: block;
  font-weight: 700;
  color: #43362c;
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.picker-panel input[type="date"],
.picker-panel select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(128, 98, 71, 0.2);
  border-radius: 14px;
  background: #fbf6f0;
  font-size: 1rem;
  outline: none;
  transition: all 0.2s;
  margin-top: 6px;
  margin-bottom: 16px;
}

.booking-promo {
  display: grid;
  gap: 8px;
  margin-top: -2px;
}

.booking-promo > label {
  font-weight: 600;
  color: #3f342b;
}

.booking-promo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.booking-promo__check {
  white-space: nowrap;
}

.booking-promo__status {
  min-height: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.booking-promo.is-valid [data-booking-promo-input] {
  border-color: #248c51;
  box-shadow: 0 0 0 3px rgba(36, 140, 81, 0.14);
}

.booking-promo.is-valid .booking-promo__status {
  color: #1f7c45;
}

.booking-promo.is-invalid [data-booking-promo-input] {
  border-color: #b22f2f;
  box-shadow: 0 0 0 3px rgba(178, 47, 47, 0.12);
}

.booking-promo.is-invalid .booking-promo__status {
  color: #a22626;
}
.picker-panel input[type="date"]:focus,
.picker-panel select:focus {
  border-color: #a67c52;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(166, 124, 82, 0.15);
}

.picker-buttons {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 6px;
}

.picker-buttons .btn {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  background: #f0e7da;
  color: #5a5a5a;
  transition: transform 0.1s ease, box-shadow 0.2s;
  margin-top: 0;
}

.picker-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.picker-buttons .btn-primary {
  background: linear-gradient(135deg, #a67c52, #8b623f);
  color: #fff;
}

/* Прочее */
.privacy-note {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #3f342b;
}

.privacy-note .privacy-policy {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .booking-page {
    padding: 80px 18px 60px;
  }

  .booking-inner {
    padding: 2rem 1.8rem;
  }
}

@media (max-width: 768px) {
  .booking-page {
    padding: 80px 16px 56px;
  }

  .booking-inner {
    width: 100%;
    margin: 0 auto;
    padding: 1.8rem 1.1rem;
  }

  .booking-hero {
    min-height: 200px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .date-row .date-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .date-display {
    min-width: 0;
  }

  .booking-promo__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .booking-promo__check {
    width: auto;
  }
}
