.wsform-node {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wsform__warning {
  margin: 30px;
}
.wsform__title {
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  color: #000000;
}
.wsform__subtitile {
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  color: #7D858C;
}
.wsform__subtitile--v2{
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}
.wsform__close {
  position: absolute;
  top: 25px;
  right: 30px;
  background-color: transparent;
  border: none;
  background-image: url(../img/icon_search_close.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100%;
  width: 13px;
  height: 13px;
}
.wsform__close:hover {
  filter: brightness(0);
}
.wsform__popup {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 30%);
  z-index: 999;
  animation: display-hide 0.4s cubic-bezier(.8,0,.2,1) forwards;
}
.wsform__popup--visible {
  display: flex;
  animation: display-show 0.4s cubic-bezier(.8,0,.2,1) forwards;
}
.wsform__popup ~ .wsform__popup{
  z-index: 1000;
}
.wsform__header {
  margin-bottom: 10px;
  border-bottom: 1px solid #E2E7E9;
  padding-bottom: 10px;
}
.wsform__footer {
  border-top: 1px solid #E2E7E9;
  margin-top: 30px;
  padding-right: 28px;
  padding-top: 15px;
  min-height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.wsform__content--mini .wsform__footer {
  margin-top: 10px;
}

.wsform__content {
  position: relative;
  border-radius: 10px;
  width: 100%;
  max-width: 945px;
  margin: auto;
  padding: 20px 30px;
  background-color: #fff;
  animation: fadeDown 0.4s cubic-bezier(.8,0,.2,1) forwards;
}
.wsform__content--mini{
  max-width: 435px;
  padding: 20px;
}
.wsform__popup--visible .wsform__content{
  animation: fadeUp 0.4s cubic-bezier(.8,0,.2,1) forwards;
}

.wsform__coupon {
  display: flex;
  align-items: center;
  column-gap: 4px;
  margin-right: auto;
  opacity: 0;
  transition: all 0.4s cubic-bezier(.8,0,.2,1);
}
.wsform-results--visible .wsform__coupon{
  opacity: 1;
}
.wsform__coupon-button {
  border: none;
  background-color: #E5EAEC;
  border-radius: 0 5px 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(.8,0,.2,1);
}
.wsform__coupon-button::after{
  content: "";
  width: 40px;
  height: 40px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.4s cubic-bezier(.8,0,.2,1);
}
.wsform__coupon-button--arrow::after{
  background-image: url(../img/wsform/black-arrow-icon.svg);
}

.wsform__coupon-button--cross::after{
  background-image: url(../img/wsform/black-cross-icon.svg);
}
.wsform__coupon-button:hover{
  background-color: #B12435;
  color: #fff;
}
.wsform__coupon-button:hover::after{
  filter: invert(1);
}

.wsform-element__input.wsform-element__input--coupon {
  padding: 8px;
  max-width: 200px;
  height: 40px;
  border: 1px solid #E5EAEC;
  border-radius: 5px 0px 0px 5px;
  text-transform: uppercase;
}

.wsform.wsform--busy input,
.wsform.wsform--busy button {
  pointer-events: none;
}

.wsform__coupon-text {
  font-weight: 600;
  font-size: 12px;
  /*color: #B12435;*/
  color: darkolivegreen;
  padding-top: 10px;
  margin-bottom: 0;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.8,0,.2,1);
}
.wsform__coupon-text.wsform__coupon-text--visible {
  opacity: 1;
}

.wsform__coupon-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 85px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60px;
  background-image: url(../img/wsform/black-loading-icon.svg);
}

@keyframes fadeUp {
  from {
    transform: translateY(200%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes fadeDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(200%);
  }
}
@keyframes display-show {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes display-hide {
  from {
    display: flex;
    opacity: 1;
  }
  to {
    display: none;
    opacity: 0;
  }
}
.wsform-elements{
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 385px;
  scrollbar-color: #B12435 #E2E7E9;
  scrollbar-width: thin;
  scroll-snap-type: y mandatory;
  scrollbar-gutter: stable;
}

.wsform-results{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  column-gap: 10px;
  position: relative;
}
.wsform-results__desc{
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.32px;
  text-align: right;
  color: #7D858C;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.wsform-results__cost{

  grid-column: 1 / 2;
  grid-row: 2 / 3;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.wsform-cost-value{
  font-family: 'Montserrat';
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.32px;
  text-align: right;
  color: #000000;
}

.wsform-results--visible .wsform-results__desc,
.wsform-results--visible .wsform-results__cost,
.wsform-results--visible .wsform-results__cost::after{
  opacity: 1;
}

.wsform-element {
  position: relative;
  display: flex;
  height: 90px;
  background-color: #fbfbfb;
  border-radius: 5px;
  padding-right: 20px;
  margin-top: 40px;
  scroll-snap-align: start;
  scroll-margin: 30px;
}

.wsform-element--active{
  box-shadow: 0px 10px 40px -15px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.wsform-element__image-wrapper{
  position: relative;
  overflow: clip;
  max-width: 120px;
}
.wsform-element__image-wrapper::before {
  content: "";
  display: inline-block;
  background-image: url(../img/wsform/select-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 48px;
  height: 48px;
  background-color: #fff;
  box-shadow: 0px 10px 20px -5px rgba(0, 0, 0, 0.25);
  border-radius: 50%;

  position: absolute;
  top: 50%;
  left: calc(36px);
  transform: translateY(-250%);
  transition: transform 0.4s ease-out;
}
.wsform-element--active .wsform-element__image-wrapper::before {
  transform: translateY(-50%);
}
.wsform-element__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 120px;
  border-radius: 5px 0 0 5px;
}
.wsform-element__wrapper {
  padding: 15px;

  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 5px 20px;
}
.wsform-element__date {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  color: #000000;
  grid-column: 1 / 8;
  display: flex;
  align-items: center;
}
.wsform-element__count {
  grid-column: 8 / 12;

  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: #B12435;

  display: flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid #B12435;
  border-radius: 5px;
  transition: background-color 0.4s ease-out, color 0.4s ease-out;
}
.wsform-element--active .wsform-element__count {
  background-color: #B12435;
  color: #fff;
}
.wsform-element__time {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  color: #7D858C;

  grid-column: 1 / 4;

  display: flex;
  align-items: center;
}
.wsform-element__time::before{
  content: "";
  display: inline-block;
  background-image: url(../img/wsform/time-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
}
.wsform-element--active .wsform-element__time {
  color: #000;
}
.wsform-element--active .wsform-element__time::before{
  filter: brightness(0);
}

.wsform-element__cost {
  font-weight: 500;
  color: #7D858C;
  grid-column: 4 / 12;

  display: flex;
  align-items: center;
}
.wsform-element--active .wsform-element__cost {
  color: #000;
}
.wsform-element--active .wsform-element__cost::before{
  filter: brightness(0);
}

.wsform-element__button {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7.5px 30px 8.5px;
  width: 140px;
  height: 40px;
  border: 1px solid #F2F2F2;
  border-radius: 5px;

  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(.8,0,.2,1);
}
.wsform-element__button:hover {
  background-color: #B12435;
  color: #fff;
}
.wsform-element--active .wsform-element__button {
  display: none;
}
.wsform-element__selector {
  display: none;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid #E5EAEC;
  border-radius: 5px;
  min-width: 140px;
}
.wsform-element--active .wsform-element__selector{
  display: flex;
}
.wsform-element__actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  position: relative;
}

.wsform-element__input::-webkit-inner-spin-button,
.wsform-element__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.red-mark {
  color: red;
  font-size: 18px;
  line-height: 1;
  display: inline-block;
  margin-left: 3px;
}

.wsform-element__input{
  appearance: none;
  -moz-appearance: textfield;
  text-align: center;
  width: 100%;
  display: block;
  height: inherit;
  border: none;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  color: #000000;
}
.wsform-element__button-minus,
.wsform-element__button-plus {
  width: 30px;
  height: 38px;
  background-color: #fff;
  border: none;
  flex-shrink: 0;
  cursor: pointer;
}
.wsform-element__button-minus {
  background-image: url(../img/wsform/minus-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.wsform-element__button-plus {
  background-image: url(../img/wsform/plus-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
}
.wsform-element__button-minus:active,
.wsform-element__button-plus:active {
  background-color: #E2E7E9;
}
.wsform-element__button-plus--disabled {
  opacity: 0.3;
}
.wsform-element__warning-text {
  visibility: hidden;
  opacity: 1;
  position: absolute;
  transform: translateY(5%);
  width: 133px;
  height: 42px;
  background: #FFFFFF;
  box-shadow: 0px 15px 15px -10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: #B12435;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}
.wsform-element__warning-text::after {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background-color: #fff;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%) rotate(45deg);
}

.wsform-element__warning-text--visible{
  visibility: visible;
  opacity: 1;
  transform: translateY(-110%);
}

.wsform-auth__course-name {
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 10px;
  margin-top: 20px;
}
.wsform-auth__fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.wsform-auth__field {
  display: flex;
  flex-direction: column;
}
.wsform-auth__label {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  letter-spacing: -0.22px;
  color: #000000;
  transition: color 0.2s ease-out;
}
.wsform-auth__label:hover{
  cursor: pointer;
  color: #B12435;
}
.wsform-auth__field {
  display: flex;
  flex-direction: column;
}
.wsform-auth__field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.wsform-auth__input {
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #E2E7E9;
  border-radius: 5px;
  transition: border-color 0.2s ease-out;
}
.wsform-auth__input:hover {
  cursor: pointer;
  border: 1px solid #B1B9C4;
}
.wsform-auth__label--checkbox {
  font-weight: 700;
  font-size: 16px;
  color: #000000;
  text-align: left;
}
.wsform-auth__checkbox{
  width: 25px;
  height: 25px;
  accent-color: #B12535;
}

.wsform-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 240px;
  min-width: 140px;
  height: 40px;
  padding: 8px 30px;
  background: #B12535;
  border-radius: 5px;
  border: none;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: #FFFFFF;
  cursor: pointer;
  transition: opacity 0.4s ease-out, background-color 0.4s ease-out;
}
.wsform-button--start{
  margin: 20px auto;
}
.wsform-button--send{
  max-width: 140px;
  margin: auto;
}
.wsform-button--results{
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  min-width: 160px;
  max-width: fit-content;
  margin-left: 30px;
}
.wsform-button:hover {
  background-color: #B2686A;
}
.wsform-button[disabled] {
  background-color: #7D858C;
  color: #D0CFCE;
  pointer-events: none;
}
.wsform-auth__course-dates {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.wsform-auth__course-time,
.wsform-auth__course-date{
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  display: flex;
  align-items: center;
}
.wsform-auth__course-time::before{
  content: "";
  display: inline-block;
  background-image: url(../img/wsform/time-icon-red.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
}
.wsform-auth__course-date::before{
  content: "";
  display: inline-block;
  background-image: url(../img/wsform/calendar-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  width: 24px;
  height: 24px;
  margin-right: 5px;
}
.wsform__error {
  font-size: 16px;
  text-align: center;
  padding: 30px;
}

.wsform__coupon + .wsform__coupon-text{
  display: none;
}

@media (max-width: 970px){
  .wsform__content{
    padding: 20px;
  }
  .wsform__header {
    display: flex;
    flex-direction: column;
  }
  .wsform__title {
    order: 1;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #7D858C;
  }
  .wsform__subtitile {
    order: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    padding-right: 30px;
    color: #000000;
  }
  .wsform-element__wrapper{
    display: block;
    padding: 0;
  }
  .wsform-element__image-wrapper {
    display: none;
  }
  .wsform-element__count {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    color: #000000;
    border: none;
  }
  .wsform-element__actions {
    margin-top: auto;
  }
  .wsform-element__time, .wsform-element__cost{
    font-size: 14px;
  }
  .wsform-element__time::before, .wsform-element__cost::before{
    display: none;
  }
  .wsform-element__date{
    font-size: 12px;
    line-height: 28px;
    font-weight: 800;
  }
  .wsform-element::before {
    content: "";
    display: block;
    height: 1px;
    width: calc(100% - 20px);
    position: absolute;
    bottom: -10px;
    background-color: #D7D7E3;
  }
  .wsform-element:last-child::before {
    display: none;
  }
  .wsform-element--active .wsform-element__count {
    background-color: initial;
    color: #000000;
  }
  .wsform-elements.wsform-elements--is-process-selected .wsform-element:not(.wsform-element--active) {
    opacity: 0.3;
  }
  .wsform-element__button {
    background-color: #B12535;
    color: #fff;
  }
  .wsform-results {
    column-gap: 20px;
    justify-content: center;
  }
  .wsform-results--visible{
    flex-wrap: wrap;
  }
  .wsform-results--with-coupon .wsform-results__total {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .wsform__coupon-loader{
    height: 100%;
  }
  .wsform-element__input.wsform-element__input--coupon {
    max-width: 100%;
  }
  .wsform__coupon-text.wsform__coupon-text--visible {
    text-align: center;
  }
  .wsform__coupon + .wsform__coupon-text{
    display: block;
    margin-bottom: 10px;
    padding-top: 0;
  }
  .wsform__coupon-text{
    display: none;
  }
  .wsform__coupon {
    width: 100%;
    margin: 0 0 10px;
    justify-content: center;
  }
  .wsform__footer {
    padding-right: 0;
  }
  .wsform-element{
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
  }
  .wsform-element--active {
    box-shadow: 0px 10px 30px -15px rgba(0, 0, 0, 0.25);
  }
  .wsform-button--results {
    margin-left: 0;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.4s cubic-bezier(.8,0,.2,1);
  }
  .wsform-results--visible button.wsform-button.wsform-button--results {
    transform: translateX(0);
    position: static;
    max-width: fit-content;
    font-size: 14px;
  }
  .wsform-element.wsform-element--active::before{
    opacity: 0.3;
  }
}
@media (max-width: 360px) {
  .wsform-button--results {
    min-width: fit-content;
    font-size: 12px;
  }
  .wsform-results--visible button.wsform-button.wsform-button--results {
    max-width: fit-content;
    padding: 10px;
    height: auto;
  }
  .wsform-element__button {
    font-size: 12px;
    height: 30px;
    width: 100px;
    padding: 6px 20px;
  }
  .wsform-element__input{
    font-size: 12px;
  }
  .wsform-element__selector{
    min-width: auto;
  }
  .wsform-element__time, .wsform-element__cost {
    font-size: 12px;
  }
  .wsform-element__warning-text {
    right: 0;
    font-size: 12px;
  }
  .wsform-element__button-minus, .wsform-element__button-plus {
    width: 30px;
    height: 28px;
  }
  .wsform-results__desc{
    font-size: 12px;
    line-height: 1;
  }
}

.wsform-results__total {
  text-align: right;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.4s cubic-bezier(.8,0,.2,1), transform 0.4s cubic-bezier(.8,0,.2,1) 1s;
}
.wsform-results--visible .wsform-results__total {
  transform: translateX(0);
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(.8,0,.2,1), transform 0.4s cubic-bezier(.8,0,.2,1);
}
.wsform-results__total--total .wsform-cost-value{
  font-weight: 700;
}
