/* Shared Book a Demo modal */
.modal {
  z-index: 10050;
}

.modal-backdrop {
  z-index: 10040;
}

.demo-modal .modal-dialog {
  max-width: 1300px;
}

@media (min-width: 575px) {
  .demo-modal .modal-dialog {
    width: calc(100% - 2rem);
  }
}

.demo-modal .modal-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px;
  overflow: hidden;
  border: none;
  border-radius: 24px;
  background: #fff;
}

@media (min-width: 1440px) {
  .demo-modal .modal-content {
    height: 690px;
    max-height: 100vh;
  }
}

.demo-modal .modal-body {
  padding: 0;
}

.demo-modal .modal-row {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 600px;
}

.modal-visual-pane {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border-radius: 18px;
  background-repeat: no-repeat;
}

.modal-form-pane {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
}

.demo-modal .modal-row > .modal-visual-pane,
.demo-modal .modal-row > .modal-form-pane {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 18px 0 0 18px;
}

.modal-form-pane .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 100px;
  background-color: #f8f8f8;
  opacity: 1;
}

.modal-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 21px 16px 0;
  background-image: url("../images/book-a-demo-preview.png");
  background-repeat: no-repeat;
  object-fit: cover;
  text-align: center;
}

.modal-visual-img {
  max-width: 100%;
  height: auto;
}

.modal-visual-title {
  max-width: 80%;
  margin: 35px auto 0;
  color: #1a181b;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.modal-visual-desc {
  max-width: 95%;
  margin: 16px auto;
  color: #505050;
  font-size: 13px;
}

.modal-pills {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  width: 100%;
  margin: 10px auto 12px;
  padding: 10px 8px;
  overflow-x: auto;
  border-radius: 100px;
  background: #fff;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

.modal-pill {
  flex: 0 0 auto;
  max-width: none;
  padding: 6px;
  border-right: 1px solid #eee;
  color: #1a181b;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .modal-pill {
    padding: 6px 16px;
  }

  .modal-visual-content {
    padding: 21px 27px 0;
  }
}

.modal-pill:last-child {
  border-right: none;
}

.modal-visual-footer {
  color: #888;
  font-size: 13px;
  font-style: italic;
}

.modal-form-pane h3 {
  margin-bottom: 12px;
  padding: 0 40px;
  color: #1a181b;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.modal-form-pane p {
  margin-bottom: 32px;
  color: #505050;
  font-size: 14px;
  text-align: center;
}

.demo-modal label {
  display: block;
  margin-bottom: 8px;
  color: #1a181b;
  font-size: 14px;
  font-weight: 400;
}

.demo-modal label .text-danger {
  color: #f94e9b !important;
}

.demo-modal .form-control {
  padding: 14px 24px;
  border: 1px solid #e7e7e7;
  border-radius: 100px;
  background: rgba(237, 237, 237, 0.26);
  font-size: 15px;
  transition: background 0.2s ease;
}

@media (min-width: 991px) {
  .demo-modal-email-field {
    margin-top: 20px;
  }
}

.demo-modal .form-control:not(:placeholder-shown),
.demo-modal .form-control:focus,
.demo-modal .form-control:active {
  background: #fff !important;
}

.demo-modal .form-control:-webkit-autofill,
.demo-modal .form-control:-webkit-autofill:hover,
.demo-modal .form-control:-webkit-autofill:focus {
  border-color: #e7e7e7;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #1a181b !important;
}

.demo-modal .form-control:focus {
  border-color: var(--mareana-primary, #4361ee);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.demo-modal .btn-submit {
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(225deg, #4361ee 0%, #8ea0f5 100%);
  background-blend-mode: multiply;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.demo-modal .btn-submit:hover {
  background: linear-gradient(225deg, #5a6ed9 0%, #5a6ed9 100%);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.25);
  transform: translateY(-2px);
}

.form-legal {
  margin-top: 24px;
  color: #888;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.form-legal a {
  color: var(--mareana-primary, #4361ee);
  text-decoration: underline;
}

.modal-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .modal-form-wrapper {
    padding: 99px 63px;
  }

  #demo-booking-form {
    width: min(100%, 600px);
  }
}

@media (max-width: 991px) {
  .modal-row {
    flex-direction: column;
  }

  .modal-visual-pane {
    display: none;
  }

  .modal-form-pane {
    flex: 1 1 auto;
    padding: 40px 24px;
  }

  .modal-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 12px;
  }

  .modal-pill {
    width: auto;
    border-right: 1px solid #eee;
    border-bottom: none;
    text-align: center;
  }

  .modal-pill:last-child {
    border-right: none;
  }
}

.parsley-errors-list li {
  font-size: 12px;
  color: #ff0000;
  margin-top: 4px;
}

#demo-booking-form .parsley-errors-list li {
  color: #dc3545;
}

.batch-demo-modal #demo-booking-form .form-control.parsley-error,
.batch-demo-modal #demo-booking-form .form-control.parsley-error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.batch-demo-modal #demo-booking-form .parsley-errors-list li {
  color: #dc3545;
}


.video-cancel {
  top: 0;
  right: 0;
}

.batch-video-modal-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.batch-video-modal-player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
}

.batch-video-modal .modal-body {
  padding: 0;
}

/* .batch-video-modal .modal-row {
  display: flex;
  flex-wrap: wrap;
  min-height: 550px;
} */

.video-modal {
  padding: 0 !important;
}


.batch-video-modal .modal-content {
  border: none;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px;
}

.batch-video-modal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px;
}

.batch-video-modal-pane {
  align-items: stretch;
}

.batch-video-modal .btn-close {
  z-index: 10;
}

@media (max-width: 991px) {
  .batch-video-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem auto;
  }

  .batch-video-modal .modal-content {
    border-radius: 24px;
    padding: 4px;
  }

  .batch-video-modal .modal-row {
    flex-direction: column;
    min-height: 0;
  }

  .batch-video-modal .modal-visual-pane {
    display: none;
  }

  .batch-video-modal .modal-form-pane {
    flex: 1 1 auto;
    padding: 48px 12px 48px;
  }

  .batch-video-modal .batch-video-modal-frame {
    margin-top: 0;
    border-radius: 18px;
  }


   .batch-video-modal .btn-close {
    position: absolute;
    top: 6px;
    right: 16px;
    /* width: 5px !important;
    height: 8px !important; */
    background-color: unset;
  }

    .btn-close {
    width: 14px !important;
    height: 14px !important;
  }
}

@media (max-width: 767.98px) {
  .batch-video-modal .modal-content {
    border-radius: 20px;
  }
   .batch-video-modal .batch-video-modal-frame {
    border: none !important;
  }

  .batch-video-modal .modal-form-pane {
    padding: 30px 10px 30px;
  }
}
