.s-form-modal {
  --padding-x: 5.4167rem;
  --padding-y: 3.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 1rem;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0s linear 0.25s, visibility 0s linear 0.25s;
  pointer-events: none;
}
@media only screen and (max-width: 987px) {
  .s-form-modal {
    padding-top: 3rem;
  }
}
@media only screen and (max-width: 767px) and (orientation: landscape),
  only screen and (max-width: 576px) {
  .s-form-modal {
    --padding-x: calc(var(--container-offset) * 0.5);
    --padding-y: var(--container-offset);
  }
}
.s-form-modal .s__outer {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.s-form-modal .u-container {
  position: relative;
  z-index: 2;
  height: 100%;
}
.s-form-modal .s__inner {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  padding: 3.5rem 22px 2rem 1.5rem;
  width: 100%;
  max-width: 34.25rem;
  height: 100%;
  background: #fff;
  border-radius: 2.5rem 28px 2.5rem 2.5rem;
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition: opacity 0.15s linear 0s,
    transform 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
@media only screen and (max-width: 987px) {
  .s-form-modal .s__inner {
    border-radius: 27px;
  }
}
@media only screen and (max-width: 767px) and (orientation: landscape),
  only screen and (max-width: 576px) {
  .s-form-modal .s__inner {
    padding: 2.75rem 0.5rem 2rem;
  }
}
.s-form-modal .b-form {
  position: relative;
  padding: calc(var(--padding-y) - 3.5rem) calc(var(--padding-x) - 22px)
    calc(var(--padding-y) - 2rem) calc(var(--padding-x) - 1.5rem);
  height: 100%;
  border-radius: 0;
  overflow: auto;
  scrollbar-color: #e0e0e0 rgba(0, 0, 0, 0);
  scrollbar-width: thin;
  transition: scrollbar-color 0.07s linear;
}
@media only screen and (max-width: 767px) and (orientation: landscape),
  only screen and (max-width: 576px) {
  .s-form-modal .b-form {
    margin: 0;
    padding: calc(var(--padding-y) - 2.75rem) calc(var(--padding-x) - 0.5rem) 0;
    width: 100%;
  }
}
.s-form-modal .b-form:hover {
  scrollbar-color: var(--color-black) rgba(0, 0, 0, 0);
}
.s-form-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 54px;
  height: 54px;
  background: var(--color-brand-5);
  border-radius: 50%;
  cursor: pointer;
}
@media only screen and (max-width: 767px) and (orientation: landscape),
  only screen and (max-width: 576px) {
  .s-form-modal__close {
    top: -15px;
    right: -15px;
  }
}
.s-form-modal__close__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 999em;
  transition: translate 0.2s cubic-bezier(0.86, 0, 0.07, 1),
    rotate 0.2s cubic-bezier(0.86, 0, 0.07, 1);
}
.s-form-modal__close__line:first-child {
  rotate: 45deg;
  translate: -50% -50% 0;
}
.s-form-modal__close__line:last-child {
  rotate: -45deg;
  translate: -50% -50% 0;
}
.s-form-modal__close:hover .s-form-modal__close__line,
.s-form-modal__close:focus .s-form-modal__close__line {
  background-color: var(--color-brand-8);
}
.s-form-modal .s__background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(253, 250, 245, 0.8);
  opacity: 0;
  transition: opacity 0.2s linear;
}
.s-form-modal .iti {
  display: none;
}
.s-form-modal.is-opened {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  pointer-events: auto;
}
.s-form-modal.is-opened .s__background {
  opacity: 1;
}
.s-form-modal.is-opened .s__inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.1s linear 0s,
    transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.s-form-modal.is-opened .iti {
  display: block;
}
