/* Booking modals (#form_strizhka, #form_footer_study) — two-column mockup */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap");

.booking-modal {
  --bm-gold: #b89b67;
  --bm-gold-dark: #9a8254;
  --bm-cream: #fdf8f3;
  --bm-text: #2c2a27;
  --bm-muted: #6b6560;
  --bm-border: #e4ddd4;
  --bm-radius: 24px;
}

/* Center in viewport (Bootstrap 4 .modal is display:block when shown) */
.booking-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.booking-modal .modal-dialog {
  max-width: 980px;
  margin: 1.25rem auto;
  width: calc(100% - 1.5rem);
}

.booking-modal .modal-content.booking-modal__content {
  display: flex;
  flex-direction: row;
  border: 0;
  border-radius: var(--bm-radius);
  overflow: hidden;
  background: var(--bm-cream);
  box-shadow: 0 24px 64px rgba(44, 42, 39, 0.18);
  padding: 0;
  min-height: 560px;
}

/* —— Left photo panel —— */
.booking-modal .booking-modal__visual {
  position: relative;
  flex: 0 0 44%;
  max-width: 44%;
  min-height: 100%;
  background: #c4b39a center / cover no-repeat;
  background-image: url("/static/img/booking/dog-towel.jpg");
}

#form_footer_study .booking-modal__visual {
  background-image: url("/static/img/booking/study-class.jpg");
}

.booking-modal .booking-modal__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(40, 32, 24, 0.12) 0%,
    rgba(40, 32, 24, 0.05) 40%,
    rgba(40, 32, 24, 0.18) 100%
  );
  pointer-events: none;
}

/* —— Right form panel —— */
.booking-modal .booking-modal__form {
  position: relative;
  flex: 1 1 56%;
  padding: 36px 40px 28px;
  background: var(--bm-cream);
  display: flex;
  flex-direction: column;
}

.booking-modal .booking-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #8a847c;
  font-size: 28px;
  line-height: 1;
  opacity: 0.7;
  cursor: pointer;
  padding: 0;
}

.booking-modal .booking-modal__close:hover {
  opacity: 1;
  color: var(--bm-text);
}

.booking-modal .booking-modal__paws {
  position: absolute;
  top: 12px;
  right: 48px;
  width: 120px;
  height: 100px;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
}

.booking-modal .booking-modal__paws img {
  position: absolute;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.booking-modal .booking-modal__paws img:nth-child(1) {
  top: 0;
  right: 8px;
  transform: rotate(18deg);
}

.booking-modal .booking-modal__paws img:nth-child(2) {
  top: 42px;
  right: 52px;
  width: 44px;
  height: 44px;
  transform: rotate(-22deg);
  opacity: 0.75;
}

.booking-modal .booking-modal__eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bm-gold);
  font-weight: 700;
}

.booking-modal .booking-modal__title {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--bm-text);
  line-height: 1.2;
}

.booking-modal .booking-modal__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bm-muted);
  max-width: 36em;
}

.booking-modal .booking-modal__fields {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-modal .booking-modal__field {
  position: relative;
}

.booking-modal .booking-modal__field--full {
  grid-column: 1 / -1;
}

.booking-modal .booking-modal__field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.65;
}

.booking-modal .booking-modal__field--full .booking-modal__field-icon {
  top: 18px;
  transform: none;
}

.booking-modal .booking-modal__field .form-control,
.booking-modal .booking-modal__field input,
.booking-modal .booking-modal__field textarea {
  width: 100%;
  border: 1px solid var(--bm-border);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px 12px 42px;
  font-size: 14px;
  color: var(--bm-text);
  box-shadow: none;
  height: auto;
  min-height: 48px;
  resize: vertical;
}

.booking-modal .booking-modal__field textarea {
  min-height: 88px;
  padding-top: 14px;
}

.booking-modal .booking-modal__field .form-control:focus,
.booking-modal .booking-modal__field input:focus,
.booking-modal .booking-modal__field textarea:focus {
  border-color: var(--bm-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 155, 103, 0.18);
}

.booking-modal .booking-modal__field .form-control.alert-danger {
  border-color: #c45c5c;
}

.booking-modal .booking-modal__consent {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--bm-muted);
}

.booking-modal .booking-modal__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  border: 2px solid var(--bm-gold);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.booking-modal .booking-modal__consent input[type="checkbox"]:checked {
  background: var(--bm-gold);
  border-color: var(--bm-gold);
}

.booking-modal .booking-modal__consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.booking-modal .booking-modal__consent a {
  color: var(--bm-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.booking-modal .booking-modal__consent a:hover {
  color: var(--bm-gold-dark);
}

.booking-modal .booking-modal__submit {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--bm-gold);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: none;
  line-height: 1.2;
}

.booking-modal .booking-modal__submit:hover:not(:disabled) {
  background: var(--bm-gold-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.booking-modal .booking-modal__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-modal .booking-modal__trust {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bm-border);
  list-style: none;
}

.booking-modal .booking-modal__trust li {
  text-align: center;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--bm-text);
  font-weight: 500;
}

.booking-modal .booking-modal__trust li + li {
  border-left: 1px solid var(--bm-border);
}

.booking-modal .booking-modal__trust img {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.booking-modal .si_form_thanks {
  position: relative;
  z-index: 1;
  padding: 48px 16px;
  font-size: 18px;
  color: var(--bm-text);
  font-family: "Playfair Display", Georgia, serif;
}

.booking-modal .si_form_thanks.hidden,
.booking-modal .si_form_body.hidden {
  display: none !important;
}

/* —— Mobile: photo above form —— */
@media (max-width: 767.98px) {
  .booking-modal .modal-dialog {
    margin: 0.75rem auto;
    width: calc(100% - 1rem);
  }

  .booking-modal .modal-content.booking-modal__content {
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
  }

  .booking-modal .booking-modal__visual {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 220px;
    height: 240px;
  }

  .booking-modal .booking-modal__form {
    padding: 24px 20px 20px;
  }

  .booking-modal .booking-modal__fields {
    grid-template-columns: 1fr;
  }

  .booking-modal .booking-modal__trust {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-modal .booking-modal__trust li + li {
    border-left: 0;
    border-top: 1px solid var(--bm-border);
    padding-top: 14px;
  }

  .booking-modal .booking-modal__paws {
    width: 80px;
    height: 70px;
    right: 40px;
  }

  .booking-modal .booking-modal__paws img {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .booking-modal .booking-modal__form {
    padding: 28px 24px 22px;
  }

  .booking-modal .booking-modal__visual {
    flex-basis: 40%;
    max-width: 40%;
  }
}
