/* ======== Book now button (trigger) ======== */
.btn-book-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, #ff4b8b, #ff6e63);
  box-shadow: 0 10px 30px rgba(255, 75, 139, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-book-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 75, 139, 0.5);
}

/* ======== Prevent body scroll when modal open (used with JS) ======== */
body.modal-open {
  overflow: hidden;
}

/* ======== Modal overlay ======== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

/* Visible state (JS adds .is-open) */
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ======== Modal panel (zoom) ======== */
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 32px 26px;
  box-shadow: 0 18px 60px rgba(15, 21, 48, 0.35);
  transform: scale(0.85);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-dialog {
  transform: scale(1);
}

/* ======== Header ======== */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 75, 139, 0.12);
  color: #ff4b8b;
  font-size: 20px;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #22223b;
}

.modal-subtitle {
  font-size: 13px;
  color: #6c6f82;
  margin-top: 4px;
  max-width: 520px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #b0b4c5;
  line-height: 1;
}

.modal-close:hover {
  color: #ff4b8b;
}

/* ======== Body & form layout ======== */
.modal-body {
  font-size: 14px;
  color: #3b3f52;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 20px;
  margin-top: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #363853;
}

.form-group label span {
  color: #ff4b8b;
}

/* Inputs, selects, textarea */
.form-control,
.form-select,
.form-textarea {
  border-radius: 10px;
  border: 1px solid #f1e9ff;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #ff4b8b;
  box-shadow: 0 0 0 3px rgba(255, 75, 139, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* ======== Captcha placeholder ======== */
.captcha-box {
  margin-top: 20px;
  border-radius: 10px;
  border: 1px solid #e4e7f2;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #555;
  background: #f9fafc;
}

.captcha-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #cfd3e4;
  background: #fff;
}

.captcha-logo {
  margin-left: auto;
  font-size: 11px;
  color: #9ca1bc;
}

/* ======== Footer buttons ======== */
.modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  border: none;
}

.btn-secondary {
  background: #f3f4fb;
  color: #4a4d69;
}

.btn-secondary:hover {
  background: #e5e7fb;
}

.btn-primary {
  background: linear-gradient(90deg, #ff4b8b, #ff6e63);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 75, 139, 0.45);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

/* ======== Responsive tweaks ======== */
@media (max-width: 640px) {
  .modal-dialog {
    padding: 24px 18px 20px;
  }

  .modal-header {
    align-items: flex-start;
  }

  .modal-title {
    font-size: 18px;
  }
}
