.demo-is-open {
  overflow: hidden;
}
.demo-modal {
  padding: 0;
  border: 1px solid #dfe4f0;
  border-radius: 24px;
  width: min(980px, calc(100% - 40px));
  max-width: 980px;
  max-height: calc(100dvh - 40px);
  margin: auto;
  color: #14213d;
  background: #fff;
  box-shadow: 0 32px 120px #07142c55;
  overflow: auto;
}
.demo-modal::backdrop {
  background: #081429a8;
  backdrop-filter: blur(9px);
}
.demo-modal *,
.demo-modal *::before,
.demo-modal *::after {
  box-sizing: border-box;
}
.demo-modal [hidden] {
  display: none !important;
}
.demo-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid #dbe1ec;
  background: #fff;
  border-radius: 12px;
  color: #263550;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.demo-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}
.demo-story {
  padding: 44px 34px;
  color: #fff;
  background:
    radial-gradient(ellipse at 5% 95%, #c766a64d, transparent 65%),
    radial-gradient(ellipse at 100% 0%, #3159d26b, transparent 70%), #101d39;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.demo-kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.7;
}
.demo-story .demo-kicker {
  color: #b8c8ed;
  margin-top: 38px;
}
.demo-story h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.demo-story h2 span {
  color: #b9c5ff;
}
.demo-story p {
  color: #c4cee2;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.demo-story ol {
  list-style: none;
  padding: 28px 0;
  margin: 0;
  display: grid;
  gap: 22px;
}
.demo-story li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #dce4f6;
}
.demo-story li b {
  color: #95afff;
  font-size: 12px;
  padding-top: 2px;
}
.demo-story > small {
  margin-top: auto;
  padding-top: 30px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #a3b2d0;
}
.demo-form-panel {
  padding: 44px 36px 26px;
  min-width: 0;
}
.demo-form-panel .demo-kicker {
  color: #4760a0;
  padding-right: 20px;
}
.demo-form-panel h2 {
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 10px 0 12px;
}
#demo-description,
.demo-success p {
  font-size: 14px;
  line-height: 1.7;
  color: #61708a;
  margin: 0 0 24px;
}
.demo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.demo-fields label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.demo-fields label > span {
  display: contents;
  color: #526cba;
}
.demo-fields label {
  display: block;
  font-size: 14px;
}
.demo-fields label small {
  font-weight: 400;
  color: #73809a;
  font-size: 14px;
}
.demo-fields input,
.demo-fields select,
.demo-fields textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #dce2ed;
  background: #fbfcff;
  border-radius: 9px;
  padding: 11px 12px;
  color: #17243f;
  font: inherit;
  font-size: 14px;
  outline-offset: 3px;
  min-height: 48px;
}
.demo-fields input::placeholder,
.demo-fields textarea::placeholder {
  color: #7b879d;
}
.demo-fields textarea {
  resize: vertical;
  min-height: 82px;
}
.demo-full {
  grid-column: 1 / -1;
}
.demo-modal :focus-visible {
  outline: 2px solid #5279e8;
  outline-offset: 3px;
}
.demo-consent {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #61708a;
  font-size: 14px;
  line-height: 1.65;
  margin: 18px 0;
  cursor: pointer;
}
.demo-consent input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: #345bd6;
}
.demo-modal .demo-submit {
  width: 100%;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(110deg, #244ac7, #6256ca 72%, #a754b0);
  border: 0;
  min-height: 48px;
  cursor: pointer;
}
.demo-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.demo-reassurance {
  font-size: 14px;
  text-align: center;
  color: #71809a;
  margin: 12px 0 0;
}
.demo-direct {
  font-size: 14px;
  line-height: 1.8;
  color: #71809a;
  border-top: 1px solid #e9edf5;
  padding-top: 18px;
  margin: 22px 0 0;
  overflow-wrap: anywhere;
}
.demo-direct a {
  color: #3858ac;
}
.demo-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.demo-error {
  background: #fff2f5;
  color: #9e2c4b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.demo-success {
  padding: 80px 0;
}
.demo-success-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #355bd0;
  background: #edf1ff;
  font-size: 24px;
  margin-bottom: 24px;
}
@media (max-width: 700px) {
  .demo-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }
  .demo-layout {
    grid-template-columns: 1fr;
  }
  .demo-story {
    padding: 26px 24px;
  }
  .demo-story > img {
    width: 32px;
    height: 32px;
  }
  .demo-story .demo-kicker {
    margin-top: 18px;
    font-size: 12px;
  }
  .demo-story h2 {
    font-size: 28px;
    margin: 12px 0;
  }
  .demo-story h2 br {
    display: none;
  }
  .demo-story h2 br::after {
    content: " ";
  }
  .demo-story h2 span {
    display: block;
  }
  .demo-story ol,
  .demo-story > small {
    display: none;
  }
  .demo-close {
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .demo-form-panel {
    padding: 26px 24px 22px;
  }
  .demo-form-panel h2 {
    font-size: 30px;
  }
  .demo-fields input,
  .demo-fields select,
  .demo-fields textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .demo-success {
    padding: 30px 0;
  }
}
@media (max-width: 400px) {
  .demo-fields {
    grid-template-columns: 1fr;
  }
  .demo-form-panel,
  .demo-story {
    padding-left: 20px;
    padding-right: 20px;
  }
}
