/* ------------------------------------------------------------ *\
  Reset
\* ------------------------------------------------------------ */

html {
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
  font-size: 10px;
}

body {
  min-width: 32rem;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

ol,
ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------------------------ *\
  Variables
\* ------------------------------------------------------------ */

:root {
  --purple: #575bb5;
  --purple-2: #6d70bf;
  --light-purple: #999db6;
  --dark-purple: #323a6c;
  --dark-purple-2: #2d396d;
  --border-color: #969cb6;
  --yellow: #ffc24d;
  --pink: #f669ad;
  --success: #74bf6d;
  --error: #bf776d;
  --text-color: #212121;
  --gray: #4e4e4e;
  --gray-2: #eeeeee;
  --light-gray: #f8f6f6;
  --dark-gray: #929292;
  --white: #fff;
}

/* ------------------------------------------------------------ *\
  Basic styles
\* ------------------------------------------------------------ */

h1,
h2,
h3 {
  font-weight: 500;
}

h1 {
  font-size: 2.6rem;
  color: var(--purple);
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

body {
  background-color: transparent;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }
}

p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

  p.bold {
    font-weight: 700;
  }

    p.bold span {
      color: var(--pink);
    }

.shell {
  max-width: 55rem;
  width: 100%;
  margin: 0 auto;
}

.source-sans {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-color);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.1rem solid var(--dark-purple);
  background: transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 2.3rem 1.2rem;
  border-radius: 4.4rem;
  max-width: 25.6rem;
  width: 100%;
  cursor: pointer;
}

.btn--big {
  max-width: 33.8rem;
}

.btn--purple {
  background-color: var(--dark-purple);
  color: var(--white);
}

  .btn--purple:hover {
    background-color: var(--purple);
    border-color: var(--purple);
  }

.btn--white {
  color: var(--dark-purple);
}

  .btn--white:hover {
    background-color: var(--purple);
    border-color: var(--purple);
    color: var(--white);
  }

.btn--gray {
  background-color: var(--gray-2);
  color: var(--light-purple);
  border-color: var(--gray-2);
}

@media screen and (max-width: 767px) {
  .btn {
    padding: 1.6rem 1.2rem;
    font-size: 1.6rem;
  }
}

/* ------------------------------------------------------------ *\
  Header
\* ------------------------------------------------------------ */

.header {
  background-color: var(--white);
  text-align: center;
  padding: 0.6rem 2rem;
}

  .header img {
    display: inline-block;
    max-width: 227px;
  }

/* ------------------------------------------------------------ *\
  Steps
\* ------------------------------------------------------------ */

.steps {
  position: relative;
  padding: 6.3rem 0;
}

  .steps:not(.steps--1) h1 {
    text-align: left;
  }

  .steps:not(.steps--1) .steps__container {
    padding-left: 4.4rem;
    padding-right: 4.4rem;
  }

@media screen and (max-width: 767px) {
}

@media screen and (max-width: 767px) {
  .steps__container {
    max-width: 47rem;
  }
}

@media screen and (max-width: 475px) {
  .steps:not(.steps--1) .steps__container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

.steps:not(.steps--1):not(.steps--2) .steps__actions {
  display: flex;
  gap: 1rem;
}

  .steps:not(.steps--1):not(.steps--2) .steps__actions .btn {
    gap: 1rem;
  }

  .steps:not(.steps--1):not(.steps--2) .steps__actions a:first-child svg {
    transform: rotate(180deg);
  }

.steps__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.steps__bg-image {
  padding-bottom: 56.25%;
  /*position: relative;*/
}

.steps--loading .steps__bg-image {
  position: relative;
}

.steps--6 .steps__bg-image {
  position: relative;
}

.steps__bg-image img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  object-fit: cover;
}

.steps__container {
  position: relative;
  background-color: var(--white);
  max-width: 55rem;
  width: 100%;
  margin: 0 auto;
  border-radius: 2.5rem;
  padding: 2.4rem 3.6rem 4.2rem;
}

.steps__heading {
  text-align: center;
  margin-bottom: 1.3rem;
}

  .steps__heading h1 {
    margin-bottom: 0.8rem;
  }

  .steps__heading img {
    max-width: 13.9rem;
  }

.steps__entry p + p {
  margin-top: 1.8rem;
}

.steps__body {
  margin-top: 2.1rem;
}

.steps__footer {
  margin-top: 1.4rem;
  font-size: 1.4rem;
}

.steps__list p {
  margin-bottom: 0.7rem;
  font-size: inherit;
}

.steps__list ul {
  font-size: 1.4rem;
  line-height: 1.2571;
  padding-left: 2.1rem;
}

.steps__list li {
  position: relative;
}

  .steps__list li:before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 0.8rem;
    display: block;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background-color: var(--text-color);
  }

  .steps__list li + li {
    margin-top: 0.3rem;
  }

.steps__actions {
  margin-top: 1.9rem;
  text-align: center;
}

  .steps__actions p {
    margin-bottom: 1.6rem;
  }

  .steps__actions .btn {
    margin: 0 auto;
  }

.steps__final-steps {
  text-align: center;
}

.steps__final-step + .steps__final-step {
  margin-top: 3.6rem;
}

.steps__final-step h3 {
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.28em;
  margin-bottom: 2.1rem;
}

.steps__final-step .btn {
  margin: 0 auto;
}

.steps__discounted-product {
  border-radius: 2rem;
  background-color: var(--light-gray);
  text-align: center;
  padding: 1.6rem 2.1rem 0.8rem;
  max-width: 23.1rem;
  margin: 0 auto 2.1rem;
}

  .steps__discounted-product h3 {
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
  }

  .steps__discounted-product img {
    max-width: 11.4rem;
  }

.steps__discount-code {
  background-color: var(--light-gray);
  border-radius: 2rem;
  padding: 1.6rem 3rem 1.9rem;
  text-align: center;
}

  .steps__discount-code h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark-purple);
  }

@media screen and (max-width: 767px) {
  .steps__discount-code h2 {
    font-size: 2.2rem;
  }
}

.steps__discount-code span {
  color: var(--pink);
}

.steps__discount-code p {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark-gray);
  max-width: 28.1rem;
  margin: 0 auto;
  line-height: 1.2;
}

@media screen and (max-width: 767px) {
  .steps__container {
    max-width: 47rem;
  }
}

@media screen and (max-width: 475px) {
  .steps__container {
    padding: 2.4rem 1.2rem;
    margin: 1rem;
    width: unset;
  }
}

/* ------------------------------------------------------------ *\
  Steps Loading
\* ------------------------------------------------------------ */

.steps--loading {
  display: none;
}

  .steps--loading .steps__body {
    text-align: center;
  }

    .steps--loading .steps__body p {
      margin-top: 1rem;
      font-size: 1.6rem;
    }

/* ------------------------------------------------------------ *\
  Steps 2
\* ------------------------------------------------------------ */

.steps--2 .steps__actions {
  margin-top: 4.8rem;
}

/* ------------------------------------------------------------ *\
  steps 3
\* ------------------------------------------------------------ */

.steps--3 p.bold {
  margin-top: 1rem;
  text-align: center;
}

.steps--3 .steps__container {
  display: flex;
  flex-direction: column;
  min-height: 85rem;
  height: 100%;
}

.steps--3 .steps__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.steps--3 .steps__footer {
  margin-top: auto;
}

/* ------------------------------------------------------------ *\
  Steps 5
\* ------------------------------------------------------------ */

.steps--5 .steps__container,
.steps--6 .steps__container {
  display: flex;
  flex-direction: column;
  min-height: 72.2rem;
  height: 100%;
}

@media screen and (max-width: 767px) {
  .steps--5 .steps__container,
  .steps--6 .steps__container {
    min-height: 60rem;
  }
}

.steps--6 .steps__container {
  min-height: auto;
}

.steps--5 .steps__inner,
.steps--6 .steps__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
}

.steps--5 .steps__footer,
.steps--6 .steps__footer {
  margin-top: auto;
}

/* ------------------------------------------------------------ *\
  Form
\* ------------------------------------------------------------ */

.form__field {
  display: flex;
  flex-direction: column;
  color: var(--dark-purple-2);
}

  .form__field.has-error input {
    border-color: var(--error);
  }

  .form__field.has-success input {
    border-color: var(--success);
  }

.form__field--order-id.has-error .hint {
  display: none;
}

.form__field.has-error .error {
  display: block;
}

.form__field label {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form__field .form__input {
  color: currentColor;
  outline: none;
  border-radius: 0.3rem;
  border: 0.1rem solid var(--border-color);
  height: 4rem;
  font-size: 1.6rem;
  padding: 1.3rem 1.6rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.form__field + .form__field {
  margin-top: 1.6rem;
}

.form__field span {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2192;
  margin-top: 0.4rem;
}

  .form__field span.error {
    color: var(--error);
    /*display: none;*/
  }

.form__radio label {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  border-radius: 2rem;
  overflow: hidden;
  cursor: pointer;
}

  .form__radio label::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-left: 1.7rem;
    height: 1.7rem;
    width: 1.7rem;
    border-radius: 50%;
    border: 1px solid var(--purple-2);
    flex-shrink: 0;
  }

  .form__radio label::after {
    content: none;
    position: absolute;
    left: 2rem;
    display: inline-block;
    height: 1.1rem;
    width: 1.1rem;
    border-radius: 50%;
    background-color: var(--purple-2);
    flex-shrink: 0;
  }

.form__radio input:checked ~ label:after {
  content: '';
}

.form__radio input {
  position: absolute;
  visibility: hidden;
}

.form__radio + .form__radio {
  margin-top: 2.4rem;
}

.form__textarea {
  margin-top: 2.5rem;
}

  .form__textarea textarea {
    resize: none;
    display: block;
    width: 100%;
    border: 0.1rem solid var(--purple-2);
    border-radius: 0.3rem;
    height: 16.8rem;
    font-size: 1.6rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--dark-gray);
    padding: 1.3rem 1.8rem;
    outline: none;
    margin-bottom: 0.2rem;
  }

/* ------------------------------------------------------------ *\
  Product
\* ------------------------------------------------------------ */

.product {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 0 1.7rem 0 1rem;
}

  .product h3 {
    color: var(--dark-purple);
  }

  .product p {
    font-size: 1.4rem;
  }

.product__media {
  margin-right: 1.3rem;
}

  .product__media img {
    max-width: 6rem;
  }

@media screen and (max-width: 767px) {
  .product {
    flex-direction: column;
  }
}

/* ------------------------------------------------------------ *\
  Product rating
\* ------------------------------------------------------------ */

.product-rating {
  background-color: var(--light-gray);
  border-radius: 2rem;
  padding: 2.2rem 1rem 2rem;
  margin-bottom: 0.3rem;
}

.product-rating__inner {
  text-align: center;
}

.product-rating h3 {
  color: var(--dark-purple);
  margin-bottom: 1.4rem;
}

.product-rating__image {
  margin-bottom: 0.8rem;
}

  .product-rating__image img {
    max-width: 10rem;
  }

.product-rating__ratings {
  display: flex;
  flex-flow: row-reverse;
  justify-content: center;
  gap: 1.1rem;
}

  .product-rating__ratings input {
    position: absolute;
    visibility: hidden;
  }

  .product-rating__ratings > input:checked ~ label svg,
  .product-rating__ratings > input:checked ~ label ~ label svg {
    fill: var(--yellow);
  }

    .product-rating__ratings > input:checked ~ label svg path,
    .product-rating__ratings > input:checked ~ label ~ label svg path {
      stroke: var(--yellow);
    }

.info {
  font-size: 1.2rem;
  color: var(--dark-gray);
  padding-left: 1.6rem;
}

/* ------------------------------------------------------------ *\
  Loading spinner
\* ------------------------------------------------------------ */

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

  .lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid var(--pink);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--pink) transparent transparent transparent;
  }

    .lds-ring div:nth-child(1) {
      animation-delay: -0.45s;
    }

    .lds-ring div:nth-child(2) {
      animation-delay: -0.3s;
    }

    .lds-ring div:nth-child(3) {
      animation-delay: -0.15s;
    }

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#custom-tooltip {
  display: none;
  font-size: 2rem;
  color: green;
}

.step3-text {
  margin-bottom: 25px;
  padding: 0 50px;
}

.steps--4 .steps__bg-image img {
  min-height: 1400px;
}

.textarea-info {
  margin-top: 10px;
}

  .textarea-info p {
    padding-left: 0;
  }

.step5-next {
  display: none;
}

html {
  background-image: url(../images/amazon_background.jpg);
  background-size: cover;
}
