p {
  line-height: 21px;
  margin: 0 0 1rem;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html {
  background: #EEEEEE;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  background: #EEEEEE;
}

body,
html,
.steps-wrap {
  height: 100%;
  overflow-x: hidden;
}

/* Header */
.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  background-color: #6D4991;
  padding: 15px;
}
.header .logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 24px;
  color: #fff;
}
.header img {
  max-height: 35px;
  max-width: 152px;
}

/* Steps */
.steps-wrap {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.step {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  display: none;
  padding: 10px 10px 0;
}
.step .girl-photo {
  text-align: center;
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
}
.step .step-content-wrap {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: 100%;
  background-color: #EEEEEE;
  padding-top: 10px;
  padding-bottom: 20px;
}
.step .step-content-wrap .geo-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 10px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.step .step-content-wrap .geo-inner {
  border-radius: 27px;
  background-color: rgba(109, 73, 145, 0.7);
  padding: 12px 13px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.step .step-content-wrap .geo-inner .geo-flag {
  font-size: 22px;
  border-radius: 50px;
  border: 2px solid #fff;
  overflow: hidden;
}
.step .step-content-wrap .geo-inner .geo-flag .flag-icon {
  margin: 0;
  top: auto;
}
.step .step-content-wrap .geo-inner .geo-text {
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  color: #fff;
}
.step .step-content-wrap .geo-inner .geo-text.detected {
  margin-left: 7px;
}
.step .step-content-wrap .content-inner {
  text-align: center;
  margin-bottom: 16px;
}
.step .step-content-wrap .content-inner .check-item-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.step .step-content-wrap .content-inner .check-item-wrap .check-item {
  position: relative;
}
.step .step-content-wrap .content-inner .check-item-wrap .check-item label {
  font-size: 14px;
  color: #A5A5A5;
  border: 1px solid #A5A5A5;
  border-radius: 21px;
  background-color: transparent;
  padding: 14px 20px;
  min-width: 98px;
  display: inline-block;
  margin-left: 5px;
  cursor: pointer;
}
.step .step-content-wrap .content-inner .check-item-wrap .check-item input {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  opacity: 0;
}
.step .step-content-wrap .content-inner .check-item-wrap .check-item input:checked + label {
  background-color: #6D4991;
  border-color: #6D4991;
  color: #fff;
}
.step .step-content-wrap .content-inner .check-item-wrap .check-item:first-child label {
  margin-left: 0;
}
.step .step-content-wrap .content-inner .step-title {
  font-size: 18px;
  line-height: 21px;
  margin: 0 0 10px;
}
.step .step-content-wrap .content-inner .check-row {
  margin-bottom: 15px;
}
.step .step-content-wrap .content-inner .check-row:first-child .step-title {
  margin-bottom: 5px;
}
.step .step-content-wrap .content-inner .line {
  display: block;
  width: 92%;
  height: 1px;
  background-color: #C4C4C4;
  margin: 3px auto 15px;
}
.step .step-content-wrap .content-inner .field-wrap {
  position: relative;
  max-width: 85%;
  width: 100%;
  margin: 0 auto;
}
.step .step-content-wrap .content-inner .field-wrap .field {
  position: relative;
}
.step .step-content-wrap .content-inner .field-wrap .field input {
  font-size: 14px;
  line-height: 1;
  border: 1px solid #A5A5A5;
  border-radius: 22px;
  padding: 14px 25px;
  background-color: #FAFAFA;
  width: 100%;
}
.step .step-content-wrap .content-inner .field-wrap .field input::-webkit-input-placeholder {
  color: #A5A5A5;
  opacity: 1;
}
.step .step-content-wrap .content-inner .field-wrap .field input:-ms-input-placeholder {
  color: #A5A5A5;
  opacity: 1;
}
.step .step-content-wrap .content-inner .field-wrap .field input::-ms-input-placeholder {
  color: #A5A5A5;
  opacity: 1;
}
.step .step-content-wrap .content-inner .field-wrap .field input::placeholder {
  color: #A5A5A5;
  opacity: 1;
}
.step .step-content-wrap .content-inner .field-wrap .field input:-ms-input-placeholder {
  color: #A5A5A5;
}
.step .step-content-wrap .content-inner .field-wrap .field input::-ms-input-placeholder {
  color: #A5A5A5;
}
.step .step-content-wrap .content-inner .field-wrap .field input:focus, .step .step-content-wrap .content-inner .field-wrap .field input:active {
  outline: none;
}
.step .step-content-wrap .content-inner .field-wrap .field .field-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.step .step-content-wrap .content-inner .field-wrap .field .field-icon.age-icon {
  width: 15px;
  height: 15px;
  background-image: url("../images/age_icon.png");
}
.step .step-content-wrap .content-inner .field-wrap .field .field-icon.password-icon {
  width: 10px;
  height: 15px;
  background-image: url("../images/lock_icon.png");
}
.step .step-content-wrap .content-inner .field-wrap .field .field-icon.email-icon {
  width: 16px;
  height: 11px;
  background-image: url("../images/mail_icon.png");
}
.step .step-content-wrap .content-inner .field-wrap .error-wrap {
  font-size: 12px;
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  position: absolute;
  max-width: 300px;
  bottom: calc(100% + 10px);
  left: 20px;
  border-radius: 5px;
  -webkit-transform: translateY(-20px);
          transform: translateY(-20px);
  opacity: 0;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  pointer-events: none;
}
.step .step-content-wrap .content-inner .field-wrap .error-wrap.active-error {
  opacity: 1;
  -webkit-transform: translateX(0);
          transform: translateX(0);
  pointer-events: all;
}
.step .step-content-wrap .content-inner .field-wrap .error-wrap::before {
  content: '';
  position: absolute;
  display: block;
  top: 100%;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #f5c6cb;
}
.step .step-content-wrap .content-inner .field-wrap .error-wrap .close-error {
  width: 15px;
  height: 15px;
  line-height: 15px;
  position: absolute;
  text-align: center;
  top: 2px;
  right: 2px;
}
.step .step-content-wrap .content-inner .field-wrap .error-wrap .close-error::before {
  content: 'x';
  line-height: 0;
  font-size: 14px;
  font-style: normal;
  display: inline-block;
}
.step .step-content-wrap .content-inner .field-wrap .error-wrap .close-error:hover {
  cursor: pointer;
}
.step.final-step {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.step.final-step .step-content-wrap {
  position: relative;
}
.step.final-step .msg-title {
  font-size: 1.2rem;
  margin: 0 auto 15px;
}
.step.final-step #success-mail {
  color: #6D4991;
}

/* Buttons */
.btns-wrap,
.btn-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.btn {
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  background: #4CB74A;
  width: 70%;
  height: 50px;
  border: none;
  border-radius: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  margin-bottom: 15px;
  cursor: pointer;
}
.btn.disabled {
  position: relative;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
}
.btn.disabled:before {
  content: '';
  display: block;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
  position: absolute;
  top: 15px;
  right: 11px;
  left: auto;
}
.btn.btn-2 {
  background-color: #4689AF;
}
.btn:last-child {
  margin-bottom: 0;
}

/* Preload */
.preload,
.preload-img:after,
.preload-img:before {
  content: '';
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.preload-img.preload-img1,
.girl-photo.girl-1 {
  background-image: url("../images/1.jpg");
}

.preload-img.preload-img2,
.girl-photo.girl-2 {
  background-image: url("../images/2.jpg");
}

.preload-img.preload-img3,
.girl-photo.girl-3 {
  background-image: url("../images/3.jpg");
}

.preload-img.preload-img4,
.girl-photo.girl-4 {
  background-image: url("../images/4.jpg");
}

.preload-img.preload-img5,
.girl-photo.girl-5 {
  background-image: url("../images/5.jpg");
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
/* RTL */
.lang-he {
  direction: rtl;
}
.lang-he .header {
  direction: ltr;
}
.lang-he .step .step-content-wrap .content-inner .check-item-wrap .check-item label {
  margin-left: 5px;
}
.lang-he .step .step-content-wrap .content-inner .check-item-wrap .check-item:first-child label {
  margin-left: 5px;
}
.lang-he .step .step-content-wrap .content-inner .check-item-wrap .check-item:last-child label {
  margin-left: 0;
}
.lang-he .step .step-content-wrap .geo-inner .geo-text.detected {
  margin-left: 0;
  margin-right: 7px;
}
.lang-he .step .step-content-wrap .content-inner .field-wrap .field .field-icon {
  right: auto;
  left: 20px;
}
.lang-he .step .step-content-wrap .content-inner .field-wrap .error-wrap {
  right: 20px;
  left: 0;
}

/* Responsive */
/* Screen max 360px */
@media (max-width: 365px) {
  .step .step-content-wrap .content-inner .check-row:nth-child(2) .check-item-wrap .check-item label {
    font-size: 12px;
  }
}
/* Large height mobile size: Galaxy S20+/S20 Ultra */
@media (max-width: 479px) and (max-height: 785px) {
  .isAndroid.keyboard-open.active-step-5 .step .step-content-wrap {
    padding-bottom: 60px;
  }
  .isAndroid .header {
    min-height: 65px;
  }

  .iOs.keyboard-open.active-step-4 .step .step-content-wrap, .iOs.keyboard-open.active-step-5 .step .step-content-wrap, .iOs.keyboard-open.active-step-6 .step .step-content-wrap {
    padding-bottom: 20px;
  }
}
/* Iphone 8/7/6S, Galaxy S5/S6/S7 */
@media (max-width: 400px) and (max-height: 570px) {
  .step .step-content-wrap .content-inner .check-row {
    margin-bottom: 6px;
  }

  .step .step-content-wrap .content-inner .check-row .step-title {
    margin-bottom: 5px;
  }

  .step#step1 .girl-photo {
    background-position-y: -15px;
  }

  .step#step1 .step-content-wrap .content-inner {
    margin-bottom: 10px;
  }

  .header {
    padding: 7px 15px;
  }

  .isAndroid .header {
    min-height: 50px;
  }

  .step .step-content-wrap {
    padding-bottom: 10px;
  }
}
/* Galaxy S5/S6/S7 Keyboard Opened */
@media (max-width: 400px) and (max-height: 260px) {
  .isAndroid.keyboard-open.active-step-5 .step .step-content-wrap {
    padding-bottom: 20px;
  }

  .isAndroid.keyboard-open.active-step-6 .step .step-content-wrap {
    padding-bottom: 40px;
  }
}
/* Iphone SE */
@media (max-width: 400px) and (max-height: 460px) {
  .step .step-content-wrap .content-inner .check-item-wrap .check-item label {
    padding: 10px;
    min-width: 95px;
  }

  .step .step-content-wrap .content-inner {
    margin-bottom: 10px;
  }

  .step .step-content-wrap .content-inner .step-title {
    font-size: 15px;
    line-height: 17px;
  }

  .step .step-content-wrap .geo-inner {
    padding: 8px 10px;
  }

  .btn {
    margin-bottom: 10px;
  }
  .btn:last-child {
    margin-bottom: 0;
  }

  .step#step1 .step-content-wrap {
    padding-top: 5px;
  }

  .step .step-content-wrap .content-inner .field-wrap .field input {
    padding: 11px 25px;
  }

  .step .girl-photo {
    background-size: cover;
    background-position-y: -25px;
  }

  .step.final-step {
    font-size: 14px;
  }
  .step.final-step p {
    line-height: 1.3;
    margin: 0 0 0.5rem;
  }

  .iOs.keyboard-open.active-step-4 .step .step-content-wrap, .iOs.keyboard-open.active-step-5 .step .step-content-wrap, .iOs.keyboard-open.active-step-6 .step .step-content-wrap {
    padding-bottom: 40px;
  }
}
