@charset "UTF-8";

body.is-demo-modal-open {
  overflow: hidden;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24rem;
  background: rgba(0, 16, 86, 0.55);
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560rem;
  max-height: calc(100vh - 48rem);
  overflow-y: auto;
  padding: 48rem 40rem 36rem;
  border-radius: 24rem;
  background: var(--color-white);
  box-shadow: 0 24rem 60rem rgba(0, 22, 122, 0.22);
}

.demo-modal__close {
  position: absolute;
  top: 12rem;
  right: 12rem;
  width: 36rem;
  height: 36rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-navy);
  font-size: 16rem;
  line-height: 1;
  cursor: pointer;
}

.demo-modal__close:hover {
  background: var(--color-orange-soft);
}

.demo-modal__close:focus-visible {
  outline: 2rem solid var(--color-orange);
  outline-offset: 2rem;
}

.demo-modal__close:disabled {
  opacity: 0.4;
  cursor: default;
}

.demo-modal__title {
  margin: 0 24rem 16rem 0;
  color: var(--color-navy);
  font-size: 24rem;
  font-weight: 800;
  line-height: 1.4;
}

.demo-modal__lead {
  margin: 0 0 24rem;
  color: var(--color-text);
  font-size: 15rem;
  font-weight: 500;
  line-height: 1.8;
}

.demo-modal__field {
  margin: 0 0 20rem;
  padding: 16rem 20rem;
  border-radius: 12rem;
  background: var(--color-orange-soft);
}

.demo-modal__field dt {
  margin: 0 0 6rem;
  color: var(--color-navy);
  font-size: 12rem;
  font-weight: 700;
}

.demo-modal__field dt:not(:first-child) {
  margin-top: 12rem;
}

.demo-modal__field dd {
  margin: 0;
  color: var(--color-navy);
  font-size: 16rem;
  font-weight: 800;
  word-break: break-all;
}

.demo-modal__privacy {
  margin: 0 0 24rem;
  color: var(--color-muted);
  font-size: 12rem;
  line-height: 1.7;
}

.demo-modal__privacy a {
  color: var(--color-navy);
  text-decoration: underline;
}

.demo-modal__fail {
  margin: 0 0 20rem;
  padding: 12rem 16rem;
  border-radius: 10rem;
  background: #fff1f1;
  color: #c62828;
  font-size: 14rem;
  font-weight: 700;
  line-height: 1.7;
}

.demo-modal__fail[hidden],
[data-demo-step][hidden] {
  display: none;
}

.demo-modal__actions {
  display: flex;
  gap: 12rem;
  justify-content: center;
}

.demo-modal__actions .btn {
  min-width: 160rem;
}

.demo-modal__actions .btn:disabled {
  opacity: 0.6;
  pointer-events: none;
  transform: none;
}

.demo-modal__note {
  margin: 0;
  color: var(--color-navy);
  font-size: 14rem;
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .demo-modal {
    padding: 16rem;
    align-items: flex-start;
  }

  .demo-modal__dialog {
    margin-top: 32rem;
    max-height: calc(100vh - 64rem);
    padding: 44rem 20rem 28rem;
    border-radius: 16rem;
  }

  .demo-modal__title {
    font-size: 20rem;
  }

  .demo-modal__lead {
    margin-bottom: 20rem;
    font-size: 14rem;
  }

  .demo-modal__actions {
    flex-direction: column;
  }

  .demo-modal__actions .btn {
    width: 100%;
    min-width: 0;
  }
}
