@media screen and (min-width: 768px) {
  .payment-modal .modal-dialog {
    max-width: 620px;
  }
}

.payment-modal .modal-body {
  padding: 3.125rem 1.25rem;
}

#popup-step-1 .modal-body {
  background: linear-gradient(180deg, #2f297f, #1a194c);
  color: #fff;
}

#popup-step-1-premium.payment-modal .modal-dialog {
  max-width: 850px;
}

#popup-step-1-premium .modal-body {
  padding: 30px 50px;
  background: linear-gradient(291.66deg, #6b3cd0 25.14%, #0d0d25 104.99%);
  color: #fff;
  border-radius: 20px;
  text-align: center;
}

#popup-step-1-kol .modal-dialog {
  max-width: 900px;
}

#popup-step-1-kol .modal-content,
#popup-step-1-premium .modal-content {
  border-radius: 20px;
}

#popup-step-1-kol .modal-body {
  padding: 30px 50px;
  background: linear-gradient(291.66deg, #6b3cd0 25.14%, #0d0d25 104.99%);
  color: #fff;
  border-radius: 20px;
}

#popup-step-1-kol .panel-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#popup-step-1-kol .panel-title {
  font-size: 16px;
  font-weight: normal;
}

@media (max-width: 767px) {
  #popup-step-1-kol {
    padding: 0 !important;
  }

  #popup-step-1-kol .modal-body {
    padding: 20px;
    overflow: auto;
    max-height: 100vh;
  }

  #popup-step-1-kol .popup-img {
    height: 200px;
  }

  #popup-step-1-kol .row {
    flex-direction: column-reverse;
    gap: 12px;
  }
}

#popup-step-1-kol .input-icon .form-control {
  border-color: transparent;
  border-radius: 5px;
}

.payment-modal .close-modal {
  position: absolute;
  outline: none;
  top: 12px;
  right: 12px;
  background-color: #fff;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  z-index: 10;
}

.payment-modal .close-modal::before,
.payment-modal .close-modal::after {
  content: "";
  position: absolute;
  background: #000;
  height: 2px;
  width: 16px;
  top: 0;
  left: 0;
}

.payment-modal .close-modal::before {
  transform: rotate(45deg) translate(15px, 5px);
}

.payment-modal .close-modal::after {
  transform: rotate(-45deg) translate(-5px, 15px);
}

.form-step {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.form-step .btn-circle {
  display: block;
  width: 30px;
  height: 30px;
  text-align: center;
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.428571429;
  border-radius: 25px;
  background: #f6f7f8;
  border: 1px solid #ccc;
  color: #555;
  margin: 0 15px;
  position: relative;
}

.form-step .btn-circle.step-active {
  background: linear-gradient(168.26deg, #c57bff 15.09%, #454bcb 141.04%);
  border-color: #c57bff;
  color: #fff;
}

#popup-step-1-premium .form-step .btn-circle.step-active {
  background: #00bae8;
  border-color: #00bae8;
  color: #fff;
}

.form-step .btn-circle:first-child::before {
  content: "";
  width: 32px;
  height: 2px;
  background: #ccc;
  position: absolute;
  left: 100%;
  top: 14px;
}

/* Step 1 */
@media (max-width: 991px) {
  .payment-form {
    margin-bottom: 40px;
  }
}

.payment-form .panel-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
}

.payment-form .promotion strong {
  color: #fff35c;
}

.input-icon {
  position: relative;
}

.elsa-icon {
  display: block;
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: 20px auto;
  background-position: center;
}

.input-icon .elsa-icon {
  position: absolute;
  top: 0;
  left: 0;
}

.input-icon .form-control {
  height: 40px;
  padding-left: 40px;
  line-height: normal;
  border: 2px solid #57b3ff;
  appearance: none;
}

.error-messages {
  border-radius: 4px;
  padding: 15px;
  background: #f2dede;
  color: #a94442;
}

.error-messages p {
  margin-bottom: 5px;
}

.error-messages p:last-child {
  margin-bottom: 0;
}

.icon-user {
  background-image: url("../popup/icon-user.svg");
}

.icon-phone {
  background-image: url("../popup/icon-phone.svg");
}

.icon-email {
  background-image: url("../popup/icon-email.svg");
}

.icon-graduation {
  background-image: url("../popup/icon-graduation.svg");
}

.icon-package {
  background-image: url("../popup/icon-package.png");
}

.icon-arrow {
  background-image: url("../popup/arrow-down.png");
  right: 8px;
  left: unset !important;
}

#popup-step-1-kol .input-icon .elsa-icon {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
}
#popup-step-1-kol .elsa-icon {
  width: 30px;
  height: 30px;
  background-size: contain;
}

#popup-step-1-kol .icon-user {
  background-image: url("../popup/icon-user-black.svg");
}

#popup-step-1-kol .icon-phone {
  background-image: url("../popup/icon-phone-black.svg");
}

#popup-step-1-kol .icon-email {
  background-image: url("../popup/icon-email-black.svg");
}

#popup-step-1-kol .icon-graduation {
  background-image: url("../popup/icon-graduation-black.svg");
}

.payment-form .common-btn {
  display: flex;
  width: 100%;
  height: 42px;
  margin: 20px auto 0;
}

.payment-modal .heading-new {
  background: #915cd4;
  border-radius: 20px;
  max-width: 300px;
  position: relative;
  margin: -30px auto 0;
}

.payment-modal .heading-text {
  color: #fff35c;
  font-size: 20px;
  padding: 12px;
  margin-bottom: 0;
  font-weight: 600;
}

.copy-code {
  display: flex;
  height: 42px;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: inset 0px 4px 4px rgb(0 0 0 / 25%);
  border-radius: 50px;
}

.copy-code .discount-code {
  margin-inline: auto;
  color: #2f2f2f;
  font-size: 20px;
  font-weight: 900;
  line-height: 42px;
  border-radius: inherit;
}

.copy-code .common-btn.btn-default {
  width: 150px;
  height: 100%;
  padding: 10px;
  margin: 0;
  border-radius: inherit;
}

.copy-code .common-btn.btn-default.disable {
  pointer-events: none;
  background: #BEC4D0;
}

.note {
  text-align: center;
  margin-top: 10px;
}

#popup-step-1-kol .promotion-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 62px;
  margin-top: -8px;
  background: url("../popup/discount-box.png") no-repeat center/contain;
  text-align: center;
}

#popup-step-1-kol .promotion-text {
  background: linear-gradient(180deg, #E558E7 1.25%, #6773F8 101.25%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 0;
}

#popup-step-1-kol .promotion-text .discount-code {
  background: linear-gradient(0deg, #FD4AA9 0%, #FF926E 98.75%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

#promotion {
  text-align: center;
}

#promotion strong {
  color: #EFB84D;
}

/* Step 2 */
.elsa-upgrade-container .title {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.elsa-upgrade-container .hint {
  font-size: 12px;
  padding-left: 30px;
}

.elsa-plan {
  margin-bottom: 30px;
}

@media (max-width: 992px) {
  .elsa-plan__item {
    margin-bottom: 15px;
  }
}

.payment-list {
  list-style: none;
  padding-left: 0;
}

.elsa-plan__inner {
  height: 100%;
  background: #bec4d0;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.elsa-plan__inner.active {
  background-color: #5041AA;
  color: #fff;
}

.elsa-plan__title {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.elsa-plan__price .base-price {
  font-size: 0.75rem;
  text-decoration: line-through;
}

.elsa-plan__price .discount-price {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.elsa-upgrade-container .panel {
  padding-left: 20px;
}

.discount-code-area {
  margin-bottom: 30px;
}

.discount-code-input {
  max-width: 400px;
  display: flex;
  background: #f5f5f5;
  border: 1px solid rgba(33, 37, 41, 0.2);
  border-radius: 20px;
  margin-bottom: 5px;
  overflow: hidden;
}

.discount-code-input .common-btn {
  height: 40px;
  font-size: 1.125rem;
  flex: 0 0 130px;
}

.discount-code-input input {
  display: block;
  border: 0;
  background: transparent;
  padding: 5px 10px;
  flex: 1;
  width: calc(100% - 130px);
  outline: none;
  text-align: center;
  font-size: 1.125rem;
  font-weight: bold;
  color: #116cc8;
}

.discount-code-comment {
  font-size: 14px;
  margin-top: 5px;
}

.payment-method {
  margin-bottom: 30px;
}

.payment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  color: inherit;
  background: #fff;
  margin-bottom: 10px;
  border: 1px solid #bec4d0;
  padding: 5px 15px 5px 50px;
  border-radius: 10px;
  position: relative;
}

.payment-card:hover {
  color: inherit;
  text-decoration: none;
}

.payment-card::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #fff;
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -9px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px #24b7f3;
  border: 3px solid #fff;
}

.active.payment-card::before {
  background: #24b7f3;
}

.payment-method__content {
  display: none;
  padding: 15px 0;
}

.payment-method__content .bank-info {
  margin-bottom: 20px;
  font-size: 0.875rem;
  list-style: none;
  padding-left: 0;
}
.bank-tranfer-wrapper {
  padding-top: 15px;
  border-top: 1px solid #e7ecf0;
  background: #fff;
  color: #666;
}
.bank-list .bank-id {
  appearance: none;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: bold;
}
.bank-info ~ p {
  margin-bottom: 10px;
  line-height: 1.333;
}
.payment-method__content .bank-info li {
  line-height: 1.333;
}
.payment-method__content .bank-info li + li {
  margin-top: 15px;
}
.payment-method__content .bank-info .btn-default {
  width: auto;
  height: 38px;
}
.payment-method__content .bank-list .bank-info ~ p {
  margin-bottom: 10px;
  line-height: 1.333;
}

.payment-card .method-title {
  margin-bottom: 0;
  color: #333;
  font-size: 1.125rem;
}

.payment-card .method-title + p {
  margin-bottom: 0;
}

.payment-card .payment-icon img {
  height: 45px;
}

.payment-submit {
  max-width: 300px;
  margin: 20px auto;
}

.payment-submit .common-btn {
  border-radius: 5px;
}

.payment-method__content .bank-id {
  appearance: none;
  border: 0;
  background: transparent;
  outline: none;
  font-weight: bold;
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s;
}

@-webkit-keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 0px;
    opacity: 1;
  }
}

@keyframes animatebottom {
  from {
    bottom: -100px;
    opacity: 0;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

#loader-cover {
  display: none;
  text-align: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(50, 115, 220, 0.3);
  z-index: 10000;
}

.result-message {
  padding: 15px;
  border-radius: 10px;
}
.result-message.success {
  background: #056905;
  color: #fff;
}
.result-message.error {
  background: #e79292;
}

.three-dots-animate {
  position: relative;
  left: -9999px;
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background-color: currentcolor;
  box-shadow: 10002px 0 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  animation: dot-typing 1.5s infinite linear;
  display: inline-block;
  overflow: hidden;
}

@keyframes dot-typing {
  0% {
    box-shadow: 10002px 0 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  }

  16.667% {
    box-shadow: 10002px -5px 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  }

  33.333% {
    box-shadow: 10002px 0 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  }

  50% {
    box-shadow: 10002px 0 0 0 currentcolor, 10008px -5px 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  }

  66.667% {
    box-shadow: 10002px 0 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  }

  83.333% {
    box-shadow: 10002px 0 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px -5px 0 0 currentcolor;
  }

  100% {
    box-shadow: 10002px 0 0 0 currentcolor, 10008px 0 0 0 currentcolor, 10014px 0 0 0 currentcolor;
  }
}
