/* ═══════════════════════════════════════════════
   BOOKING MODAL — vottovaara.info
   ═══════════════════════════════════════════════ */

/* Оверлей */
.bm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.bm-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Окно */
.bm-window {
  background: #0f1116;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(32px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,76,0.3) transparent;
}
.bm-overlay.open .bm-window {
  transform: translateY(0) scale(1);
}

/* Шапка */
.bm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 36px 0;
}
.bm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300;
  color: #e8e4dc;
  line-height: 1.1;
}
.bm-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  color: rgba(184,176,160,0.8);
  margin-top: 6px;
  padding: 0 36px 20px;
}
.bm-close {
  background: none;
  border: none;
  color: rgba(184,176,160,0.5);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  margin-left: 16px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.bm-close:hover { color: #c9a84c; }

/* Тело */
.bm-body {
  padding: 4px 36px 36px;
}

/* Поля */
.bm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.bm-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}
.bm-group.half { margin-bottom: 0; }
.bm-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184,176,160,0.6);
}
.bm-label .req { color: #c9a84c; margin-left: 2px; }
.bm-input, .bm-select, .bm-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8e4dc;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 1px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.bm-input::placeholder, .bm-textarea::placeholder { color: rgba(184,176,160,0.35); }
.bm-input:focus, .bm-select:focus, .bm-textarea:focus {
  border-color: rgba(201,168,76,0.6);
  background: rgba(255,255,255,0.06);
}
.bm-input.err, .bm-select.err { border-color: #e74c3c; }
.bm-field-err {
  font-size: 11px;
  color: #e74c3c;
  font-family: 'Raleway', sans-serif;
  display: none;
}
.bm-field-err.on { display: block; }
.bm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23c9a84c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.bm-select option { background: #1a1a1a; color: #e8e4dc; }
.bm-textarea { resize: vertical; min-height: 80px; }

/* Канал связи */
.bm-channel-label {
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184,176,160,0.6);
  display: block;
  margin-bottom: 10px;
}
.bm-channel-label .req { color: #c9a84c; margin-left: 2px; }
.bm-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 6px;
}
.bm-ch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  color: rgba(184,176,160,0.6);
  position: relative;
  user-select: none;
}
.bm-ch:hover { border-color: rgba(201,168,76,0.4); color: #e8e4dc; }
.bm-ch.on {
  border-color: #c9a84c;
  background: rgba(201,168,76,0.1);
  color: #c9a84c;
}
.bm-ch svg { width: 26px; height: 26px; }
.bm-ch input[type="radio"] { position:absolute; opacity:0; width:0; height:0; }
.bm-ch-err {
  font-size: 11px;
  color: #e74c3c;
  font-family: 'Raleway', sans-serif;
  display: none;
  margin-bottom: 14px;
}
.bm-ch-err.on { display: block; }

/* Кнопка */
.bm-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #c9a84c 0%, #b8972a 100%);
  color: #0a0a0a;
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  border-radius: 1px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 6px;
}
.bm-submit:hover { opacity: 0.9; }
.bm-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* Успех */
.bm-success {
  text-align: center;
  padding: 48px 24px;
}
.bm-success-icon { font-size: 52px; color: #c9a84c; margin-bottom: 16px; }
.bm-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: #c9a84c;
  margin-bottom: 12px;
}
.bm-success-text {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: rgba(184,176,160,0.8);
  line-height: 1.7;
}
.bm-success-text a { color: #c9a84c; }

/* Мобильные */
@media (max-width: 540px) {
  .bm-header { padding: 24px 20px 0; }
  .bm-subtitle { padding: 6px 20px 16px; }
  .bm-body { padding: 4px 20px 28px; }
  .bm-row { grid-template-columns: 1fr; gap: 0; }
  .bm-row .bm-group.half { margin-bottom: 16px; }
  .bm-channels { grid-template-columns: repeat(2, 1fr); }
}

/* ── Чекбокс согласия ── */
.bm-agree {
  margin: 12px 0 4px;
}
.bm-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.bm-agree-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.bm-agree-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-top: 1px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
}
.bm-agree-label input:checked + .bm-agree-check {
  background: rgba(201,168,76,0.2);
  border-color: #c9a84c;
}
.bm-agree-label input:checked + .bm-agree-check::after {
  content: '✓';
  font-size: 12px;
  color: #c9a84c;
  line-height: 1;
}
.bm-agree-text {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: rgba(184,176,160,0.6);
  line-height: 1.5;
}
.bm-agree-text a {
  color: rgba(201,168,76,0.7);
  text-decoration: underline;
}
.bm-agree-text a:hover { color: #c9a84c; }

/* ── Уведомление под кнопкой ── */
.bm-notice {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: rgba(184,176,160,0.45);
  text-align: center;
  line-height: 1.6;
  margin-top: 14px;
}
