html.registration-open,
body.registration-open {
  overflow: hidden;
  overscroll-behavior: none;
}

button.cta-hotspot,
button.floating-register,
button.skip {
  font: inherit;
}

button.cta-hotspot,
button.floating-register {
  cursor: pointer;
}

button.cta-hotspot {
  border: 0;
  padding: 0;
}

dialog.registration {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  border: 1px solid #e5ddcf;
  border-radius: 32px;
  padding: 58px 24px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, #fff 0%, #fbf8f3 100%);
  color: #172342;
  box-shadow: 0 34px 100px rgba(17, 28, 53, 0.32);
}

dialog.registration:not([open]) {
  display: none;
}

dialog.registration[open] {
  display: block;
  animation: registration-dialog-enter 180ms ease-out both;
}

dialog.registration::before,
dialog.registration::after {
  display: none;
}

dialog.registration::backdrop {
  background: rgba(21, 28, 51, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.registration .registration-close {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  width: 46px;
  height: 46px;
  margin: -46px 0 0 auto;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(23, 35, 66, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #172342;
  box-shadow: 0 8px 26px rgba(34, 39, 63, 0.13);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.registration .registration-close:hover {
  background: #f0ebf3;
}

.registration .registration-close:focus-visible,
.registration .step-action:focus-visible,
.registration .step-back:focus-visible {
  outline: 4px solid #d7c3e5;
  outline-offset: 3px;
}

.registration .form-shell {
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.registration .form-shell::before {
  display: none;
}

.registration-step[hidden] {
  display: none !important;
}

.registration-step {
  animation: registration-step-enter 160ms ease-out both;
}

.registration form > .registration-step {
  display: grid;
  gap: 24px;
}

.registration .form-heading {
  margin: 0 0 20px;
}

.registration .form-logo {
  width: 94px;
  height: 94px;
  margin-bottom: 24px;
}

.registration .form-heading h2,
.registration .step-heading {
  margin: 0;
  color: #172342;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.24;
  letter-spacing: 0.02em;
  text-align: center;
}

.registration .form-heading h2 span {
  background: none;
  color: #78668d;
  -webkit-text-fill-color: currentColor;
}

.registration .step-heading {
  margin: 22px 0 20px;
  font-size: clamp(26px, 4.6vw, 36px);
}

.registration .course-quick-facts {
  margin: 0;
  border: 1px solid #ded3e7;
  border-radius: 18px;
  padding: 15px 18px;
  background: #f4eef8;
  color: #39415a;
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.registration .course-quick-facts #course-fee {
  color: #675875;
  white-space: nowrap;
}

.registration .course-capacity {
  margin: 8px 0 0;
  color: #707285;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.registration .course-summary {
  gap: 12px;
  margin: 0 0 28px;
}

.registration .course-summary p {
  min-height: 72px;
  border-color: #e9e0d5;
  background: #fbf8f4;
  color: #343b50;
}

.registration .course-summary strong {
  color: #675875;
}

.registration .step-action,
.registration .submit-button {
  display: grid;
  width: 100%;
  min-height: 64px;
  cursor: pointer;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  background: #172342;
  color: #fff;
  box-shadow: 0 16px 34px rgba(23, 35, 66, 0.2);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.registration .step-action:hover,
.registration .submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.registration .step-back {
  display: inline-flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  border: 0;
  padding: 8px 4px;
  background: transparent;
  color: #675875;
  font-size: 16px;
  font-weight: 800;
}

.registration .step-back::before {
  content: "←";
  margin-right: 8px;
}

.registration .session-grid {
  margin-bottom: 24px;
}

.registration .session-option label {
  border-color: #ded6cc;
  background: #fbf8f4;
  color: #343b50;
}

.registration .session-option strong {
  color: #172342;
}

.registration .session-option span,
.registration .form-note {
  color: #66697a;
}

.registration .session-option label:hover,
.registration .session-option input:checked + label {
  border-color: #8a7b9b;
  background: #f0eaf5;
}

.registration .selected-session {
  margin: 0 0 24px;
  border: 1px solid #ded3e7;
  border-radius: 20px;
  padding: 16px 18px;
  background: #f4eef8;
  color: #39415a;
  font-size: 17px;
  line-height: 1.6;
}

.registration .selected-session strong {
  color: #675875;
}

.registration .course-address {
  margin: -10px 0 24px;
  color: #66697a;
  font-size: 15px;
  line-height: 1.65;
}

.registration .course-address strong {
  color: #675875;
}

.registration .field input,
.registration .field input:focus,
.registration .field select,
.registration .field select:focus {
  border-color: #d5cddc;
  background: #fff;
  color: #172342;
}

.registration .field-label,
.registration legend {
  color: #172342;
}

.registration .consent {
  color: #515568;
}

.registration .required {
  color: #736386;
}

body.registration-open .floating-register,
body.registration-open .line-chat,
body.registration-open .top {
  pointer-events: none !important;
  opacity: 0 !important;
  transform: translateY(12px) !important;
}

@keyframes registration-dialog-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes registration-step-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 650px) {
  dialog.registration {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 24px;
    padding: 50px 18px 22px;
  }

  .registration .registration-close {
    width: 44px;
    height: 44px;
    margin-top: -42px;
  }

  .registration .form-logo {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
  }

  .registration .form-heading h2,
  .registration .step-heading {
    font-size: 28px;
  }

  .registration .course-quick-facts {
    padding: 13px 12px;
    font-size: 15px;
  }

  .registration .course-summary p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.registration[open],
  .registration-step {
    animation: none;
  }
}
