/* Hide subject field */
.vtp-bm-subject-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Booking Modal */
.vtp-bm-btn {
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Modal */
.vtp-bm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vtp-bm-modal--open {
  opacity: 1;
}

.vtp-bm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

.vtp-bm-modal__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vtp-bm-modal__body {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Close button */
.vtp-bm-close {
  position: fixed !important;
  top: 16px !important;
  right: 40px !important;
  z-index: 1000001 !important;
  width: 45px !important;
  height: 45px !important;
  min-width: unset !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.vtp-bm-close svg {
  width: 25px !important;
  height: 25px !important;
  color: #fff !important;
  stroke: #fff !important;
  flex-shrink: 0;
}

.vtp-bm-close:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* Form base styles */
.vtp-bm-modal__body input:not([type="submit"]),
.vtp-bm-modal__body textarea,
.vtp-bm-modal__body select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.vtp-bm-modal__body input:not([type="submit"]):focus,
.vtp-bm-modal__body textarea:focus,
.vtp-bm-modal__body select:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.vtp-bm-modal__body input[type="submit"],
.vtp-bm-modal__body .wpcf7-submit {
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
  width: 100%;
  position: relative;
}

.vtp-bm-modal__body input[type="submit"]:hover,
.vtp-bm-modal__body .wpcf7-submit:hover {
  opacity: 0.85;
}

/* CF7 spinner inside submit button */
.vtp-bm-modal__body .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

/* Response message */
.vtp-bm-modal__body .wpcf7-response-output {
  border: none;
  background: none;
  margin: 8px 0 0;
  padding: 0;
  text-align: center;
}

.vtp-bm-modal__body .wpcf7-not-valid-tip {
  color: #ff6b6b;
  font-size: 12px;
}

@media (max-width: 767px) {
  .vtp-bm-modal__inner {
    padding: 10px;
  }

  .vtp-bm-close {
    top: 10px !important;
    right: 10px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .vtp-bm-close svg {
    width: 20px !important;
    height: 20px !important;
  }
}
