/* ==========================================================================
   Request modal — quizle form overlay
   Loaded globally via enqueue.php (triggered from any page)
   ========================================================================== */

.vip26-request-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

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

.vip26-request-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease, visibility 0s linear 0s;
}

.vip26-request-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(2px);
}

.vip26-request-modal__dialog {
  position: relative;
  margin: min(5vh, 32px) auto;
  width: min(1088px, calc(100% - 24px));
  height: min(760px, calc(100vh - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0f1826;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.vip26-request-modal.is-open .vip26-request-modal__dialog {
  transform: translateY(0);
}

.vip26-request-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.88);
  color: #f3f7ff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  z-index: 20;
}

.vip26-request-modal__close:hover {
  border-color: rgba(245, 166, 29, 0.6);
  background: rgba(245, 166, 29, 0.12);
  color: #f5a61d;
}

.vip26-request-modal__content {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
}

.vip26-request-modal__content > *:first-child {
  margin-top: 0;
}

.vip26-request-modal__content iframe {
  width: 100%;
  min-height: min(78vh, 820px);
  border: 0;
}

.vip26-request-modal__content .quizle {
  margin: 0 auto;
  --quizle-shadow-color: transparent;
  --quizle-height: min(680px, calc(100vh - 96px));
  height: 100%;
}

.vip26-request-modal__content .quizle-container {
  padding: 0;
  height: 100%;
}

.vip26-request-modal__content .quizle.has-background,
.vip26-request-modal__content .quizle--view-slides .quizle-footer {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.vip26-request-modal__content .quizle-footer {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .vip26-request-modal__content .quizle-footer {
    gap: 16px;
    justify-content: flex-end;
  }

  .vip26-request-modal__content .quizle-footer > * {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
  }

  .vip26-request-modal__content .quizle-progress-container {
    flex: 1 1 auto;
    width: 100%;
    max-width: 460px;
    margin-right: auto;
  }
}

.vip26-request-modal__content .quizle-contacts__agreement,
.vip26-request-modal__content .quizle-contacts__agreement span,
.vip26-request-modal__content .quizle-contacts__agreement label {
  font-size: 15px;
  line-height: 1.5;
}

.vip26-request-modal__content .quizle-contacts__agreement a {
  font-size: inherit;
}

.vip26-request-modal__content .quizle-button {
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
}

.vip26-request-modal__content .quizle-contacts__submit {
  pointer-events: auto;
  cursor: pointer;
}

.vip26-request-modal__fallback {
  margin: 10px;
  color: #d5e0f5;
}

@media (max-width: 860px) {
  .vip26-request-modal__dialog {
    margin-top: 14px;
    width: calc(100% - 14px);
    max-height: calc(100vh - 16px);
  }

  .vip26-request-modal__content iframe {
    min-height: 72vh;
  }
}
