.getcourse-scroll-locked {
  overscroll-behavior: none;
}

html.getcourse-scroll-locked {
  overflow: hidden;
}

body.getcourse-scroll-locked {
  position: fixed;
  inset-inline: 0;
  top: var(--getcourse-scroll-lock-top, 0);
  width: 100%;
  overflow: hidden;
}

.getcourse-form-dialog {
  box-sizing: border-box;
  width: min(980px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d5a1ef88;
  border-radius: 24px;
  background: linear-gradient(145deg, #24142f, #130e1c);
  color: #f8edff;
  box-shadow: 0 28px 100px #050309bb;
  scrollbar-gutter: stable;
}

.getcourse-form-dialog::backdrop {
  background: #090511c9;
  backdrop-filter: blur(10px);
}

.getcourse-form-dialog-inner {
  min-width: 0;
  padding: 0 clamp(22px, 4vw, 46px) clamp(22px, 4vw, 42px);
}

.getcourse-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px) 0 18px;
  border-bottom: 1px solid #ffffff20;
  background: #21152e;
  backdrop-filter: blur(16px);
}

.getcourse-dialog-header .mini-label {
  color: #c49bd8;
}

.getcourse-dialog-header h2 {
  margin-top: 8px;
  color: #f8edff;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.getcourse-dialog-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #ffffff45;
  border-radius: 999px;
  background: #ffffff0a;
  color: #f8edff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.getcourse-dialog-close span {
  font-size: 24px;
  line-height: 1;
}

.getcourse-dialog-close:hover {
  border-color: #d5a1ef;
  background: #d5a1ef19;
}

.getcourse-dialog-close:focus-visible,
.getcourse-form-dialog button:focus-visible {
  outline: 3px solid #e0b5f5;
  outline-offset: 3px;
}

.getcourse-form-intro {
  margin: 20px 0 0;
  color: #cfb2dd;
  font-size: 18px;
  line-height: 1.6;
}

.getcourse-form-status,
.getcourse-form-error {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #ffffff26;
  border-radius: 14px;
  background: #ffffff09;
  color: #e5d2f0;
  font-size: 16px;
  line-height: 1.6;
}

.getcourse-form-status[hidden],
.getcourse-form-error[hidden] {
  display: none;
}

.getcourse-form-mount {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
}

.getcourse-form-mount iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
}

.getcourse-form-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-color: #e7b7c977;
  background: #8c3a5324;
}

.getcourse-form-error p {
  flex: 1 1 240px;
  margin: 0;
}

.getcourse-form-error .button {
  flex: 0 0 auto;
  min-width: 0;
}

@media (max-width: 760px) {
  .getcourse-form-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }

  .getcourse-form-dialog-inner {
    padding: 0 16px 18px;
  }

  .getcourse-dialog-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 20px 0 16px;
  }

  .getcourse-dialog-header h2 {
    font-size: 28px;
  }

  .getcourse-dialog-close {
    width: 100%;
    justify-content: space-between;
  }

  .getcourse-form-intro {
    margin-top: 16px;
    font-size: 18px;
  }

  .getcourse-form-mount {
    margin-top: 14px;
  }
}