/* ===== МОДАЛЬНОЕ ОКНО ЗАЯВКИ (УНИВЕРСАЛЬНОЕ) ===== */
.booking-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.booking-modal.active { display: flex; }

.booking-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(62, 39, 35, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.booking-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 30px 80px rgba(62, 39, 35, 0.25);
  animation: modalSlideIn 0.3s ease;
  pointer-events: auto;
  z-index: 10;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.booking-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chocolate);
  transition: all 0.2s;
  z-index: 10;
}
.booking-modal-close:hover {
  background: var(--terracotta);
  color: var(--white);
  transform: rotate(90deg);
}

.booking-modal-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}
.booking-modal-header h2 {
  font-size: 32px;
  color: var(--chocolate);
  margin-bottom: 8px;
  position: relative;
  padding-left: 18px;
}
.booking-modal-header h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 28px;
  background: var(--terracotta);
  border-radius: 2px;
}
.booking-modal-subtitle {
  font-size: 14px;
  color: var(--gray);
  padding-left: 22px;
  margin: 0;
}

.booking-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--chocolate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px; height: 18px;
  color: var(--gray);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.custom-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: var(--chocolate);
  background: var(--white);
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

select.custom-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B7E74' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.custom-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 115, 79, 0.12);
}

.input-with-icon:focus-within .input-icon {
  color: var(--terracotta);
}

.custom-input::placeholder {
  color: var(--gray);
  opacity: 0.7;
}

/* ===== ПОЛЗУНОК ГОСТЕЙ ===== */
.guest-slider-container {
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s ease;
}
.guest-slider-container:hover {
  border-color: var(--terracotta-light);
}
.guest-slider-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.guest-slider-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  flex-shrink: 0;
}
.guest-slider-icon svg {
  width: 22px;
  height: 22px;
}
.guest-slider-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
#guests-count-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--terracotta);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
#guests-word-display {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
}

.guest-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--gray-light);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.guest-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--terracotta);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184, 115, 79, 0.3);
  transition: all 0.2s ease;
  margin-top: -8px;
}
.guest-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--terracotta);
  border: 3px solid var(--white);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(184, 115, 79, 0.3);
}
.guest-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(184, 115, 79, 0.4);
}
.guest-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--gray);
  font-weight: 500;
}

/* ===== СПОСОБЫ СВЯЗИ ===== */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.contact-method {
  cursor: pointer;
  position: relative;
}
.contact-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contact-method-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1.5px solid var(--gray-light);
  border-radius: 12px;
  transition: all 0.2s ease;
  background: var(--white);
}
.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--gray);
  transition: color 0.2s ease;
}
.contact-method-content span {
  font-size: 12px;
  font-weight: 500;
  color: var(--chocolate);
  text-align: center;
}
.contact-method input[type="radio"]:checked + .contact-method-content {
  border-color: var(--terracotta);
  background: rgba(184, 115, 79, 0.05);
}
.contact-method input[type="radio"]:checked + .contact-method-content .contact-icon {
  color: var(--terracotta);
}
.contact-method-content:hover {
  border-color: var(--terracotta-light);
  transform: translateY(-2px);
}

/* ===== ЧЕКБОКСЫ СОГЛАШЕНИЙ ===== */
.agreement-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.agreement-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}
.agreement-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1.5px solid var(--gray-light);
  border-radius: 6px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
  position: relative;
}
.checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
  margin-bottom: 2px;
}
.agreement-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.agreement-checkbox input[type="checkbox"]:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}
.agreement-checkbox input[type="checkbox"]:focus + .checkmark {
  box-shadow: 0 0 0 3px rgba(184, 115, 79, 0.15);
}
.agreement-text {
  font-size: 13px;
  color: var(--chocolate-light);
  line-height: 1.5;
  user-select: none;
}
.agreement-text a {
  color: var(--terracotta);
  text-decoration: underline;
  transition: color 0.2s;
}
.agreement-text a:hover {
  color: var(--terracotta-dark);
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.booking-modal-submit {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}
.booking-modal-submit:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 115, 79, 0.35);
}
.booking-modal-submit svg {
  transition: transform 0.3s;
}
.booking-modal-submit:hover svg {
  transform: translateX(4px);
}
.booking-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  .booking-modal-content {
    padding: 28px 22px;
    max-height: 95vh;
  }
  .booking-modal-header h2 { font-size: 24px; }
  .modal-form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-methods { grid-template-columns: repeat(2, 1fr); }
  #guests-count-display { font-size: 28px; }
}