/* ---------------------- HOMEPAGE BOOKING POPUP ---------------------- */

.book-modal {
  box-sizing: border-box;
  width: min(480px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  color: #2c3e50;
  font-family: Arial, sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: auto;
}

.book-modal[open] {
  animation: bm-pop-in 0.25s ease;
}

.book-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.book-modal [hidden] {
  display: none !important;
}

body.book-modal-open {
  overflow: hidden;
}

.book-modal-inner {
  position: relative;
  padding: 28px 24px 24px;
}

.book-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: none;
  color: #666666;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.book-modal-close:hover {
  background: #f0f0f0;
  color: #e76f51;
}

.book-modal-title {
  margin: 0 0 6px;
  padding-right: 32px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.book-modal-sub {
  margin: 0 0 20px;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bm-group {
  margin-bottom: 14px;
}

.book-modal-form label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
}

.bm-required {
  color: #e74c3c;
}

.book-modal-form input,
.book-modal-form select,
.book-modal-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  background: #ffffff;
  color: #2c3e50;
  font-family: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.book-modal-form input:focus,
.book-modal-form select:focus,
.book-modal-form textarea:focus {
  outline: none;
  border-color: #e76f51;
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.15);
}

.book-modal-price {
  margin: 6px 0 0;
  color: #059669;
  font-size: 0.9rem;
  font-weight: 600;
}

.book-modal-captcha {
  display: flex;
  justify-content: center;
  margin: 4px 0 14px;
}

.book-modal-submit,
.book-modal-done {
  display: block;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: #c2410c;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.book-modal-submit:hover,
.book-modal-done:hover {
  background: #9a3412;
}

.book-modal-note {
  margin: 12px 0 0;
  text-align: center;
  color: #667085;
  font-size: 0.85rem;
}

.book-modal-note a {
  color: #c2410c;
}

.book-modal-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.book-modal-msg {
  margin: 10px 0 0;
  text-align: center;
  color: #c0392b;
  font-size: 0.9rem;
  font-weight: 600;
}

.book-modal-msg:empty {
  display: none;
}

.book-modal-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 11px;
  border: 2px solid #25d366;
  border-radius: 8px;
  color: #128c4b;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.book-modal-wa:hover {
  background: #25d366;
  color: #ffffff;
}

.book-modal-success {
  text-align: center;
}

.book-modal-success .book-modal-title {
  padding-right: 0;
}

.book-modal-success-icon {
  width: 64px;
  height: 64px;
  margin: 8px auto 16px;
  border-radius: 50%;
  background: #2ecc71;
  color: #ffffff;
  font-size: 30px;
  line-height: 64px;
}

.book-modal-success .book-modal-done {
  margin-top: 12px;
}

@media (max-width: 480px) {
  .book-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }

  .book-modal-inner {
    padding: 22px 16px 18px;
  }

  .book-modal-title {
    font-size: 1.3rem;
  }

  .bm-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@keyframes bm-pop-in {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
