:root {
  --primary: #ff9249;
  --primary-alt: #c85a14;
  --secondary: #d28cff;
  --cta-gradient: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-alt) 100%
  );
  --color-white: #ffffff;
  --color-dark: #0f0f0f;
  --dark-grey-1: #0f0f0f;
  --dark-grey-2: #161616;
  --dark-grey-3: #1d1d1d;
  --dark-grey-4: #2c2f31;
  --dark-grey-5: #424248;
  --grey-1: #5e5e5e;
  --grey-2: #828282;
  --grey-3: #a4a4a4;
  --grey-4: var(--monochrome-12);
  --transparent-white-1: #ffffffb3;
  --transparent-white-2: #ffffff33;
  --transparent-white-3: #ffffff1a;
  --transparent-white-4: #ffffff0f;
  --monochrome-0: #000;
  --monochrome-12: #ccc;
  --monochrome-15: #fff;
  --font-family-primary: Lato, Arial, sans-serif;
  --font-family-secondary: Inter, Arial, Helvetica, sans-serif;
  --font-family-title: "Bebas Neue", Arial, Helvetica, sans-serif;
  --spacing-small: 12px;
  --spacing-medium: 20px;
  --spacing-large: 40px;
  --radius-small: 12px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --title-primary-color: var(--monochrome-15);
  --title-primary-font-family: var(--font-family-title);
  --title-primary-font-size: 3rem;
  --title-primary-font-weight: 400;
  --title-primary-line-height: 1.1;
  --title-primary-text-transform: uppercase;
  --text-font-size: 1rem;
  --text-line-height: 1.3;
  --text-font-weight: 400;
  --transition-speed: 0.5s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-family-primary);
  font-size: 16px;
  background-color: var(--color-dark);
  background-image: url("../images/hero-mobile.jpg");
  background-size: 100% auto;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--color-white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 769px) {
  body {
    background-image: url("../images/hero-1440.jpg");
  }
}

@media (min-width: 1441px) {
  body {
    background-image: url("../images/hero-1920.jpg");
  }
}

@media (min-width: 1921px) {
  body {
    background-size: cover;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul,
li,
p {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

.column {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-small);
}

.main-container {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.header {
  position: relative;
  width: 100%;
  z-index: 100;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 85%;
  height: 80px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-medium) * 1.5);
}

.header__logo {
  display: block;
  height: 26px;
}

.header__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.button-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 175px;
  height: 43px;
  min-width: 48px;
  border-radius: 8px;
  padding: 0 20px;
  gap: 6px;
  background: linear-gradient(180deg, #ff9249 0%, #c85a14 100%);
  color: var(--dark-grey-1);
  font-family: Lato, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 25px;
  letter-spacing: 0.2px;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0px 0.8px 0px 0px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.button-primary:hover {
  transform: scale(1.05);
}

.button-primary .button-icon {
  width: 18px;
  height: 24px;
  display: block;
}

.button-primary span {
  display: inline-block;
}

@media (max-width: 768px) {
  .header__container {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 60px;
    padding: var(--spacing-medium) var(--spacing-small);
  }

  .header__logo {
    height: 20px;
  }

  .button-primary {
    width: auto;
    height: auto;
    min-height: 43px;
    padding: 0 16px;
    font-size: 14px;
    gap: 4px;
  }

  .button-primary .button-icon {
    width: 15px;
    height: 20px;
  }
}

.main-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  padding: 30px;
  z-index: 1;
  gap: 20px;
}

@media (max-width: 768px) {
  .main-content {
    padding: 0 12px;
    width: 100%;
  }
}

.form-button-next {
  display: flex;
  width: 250px;
  min-width: 48px;
  max-width: 250px;
  padding: 5px 35.63px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #fefefe 0%, #bcbcbc 100%);
  border: none;
  cursor: pointer;
  color: #000;
  text-align: center;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 0.2px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.form-button-next--create {
  height: 43px;
  padding: 0 20px;
  background: linear-gradient(180deg, #ff9249 0%, #c85a14 100%);
  color: var(--dark, #0f0f0f);
  text-align: center;
  text-shadow: 0 0.8px 0 rgba(0, 0, 0, 0.25);
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: 0.2px;
  box-shadow: 0px 0.8px 0px 0px rgba(0, 0, 0, 0.25);
}

.form-button-next--create:hover {
  transform: scale(1.05);
}

.form-button-next:not(.form-button-next--create):hover {
  background: linear-gradient(180deg, #fefefe 0%, #fff 100%);
}

@media (max-width: 768px) {
  .form-button-next {
    width: 100%;
    max-width: 250px;
  }
}

.form-modal {
  width: 700px;
  height: auto;
  border-radius: 20px;
  padding: 20px 32px;
  gap: 28px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .form-modal {
    width: 100%;
    padding: 20px;
    gap: 20px;
  }
}

.form-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 16px;
}

@media (max-width: 768px) {
  .form-header {
    height: 48px;
  }
}

.form-header__back {
  position: absolute;
  left: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.form-header__back:hover {
  opacity: 0.7;
}

.form-header__back img {
  width: 24px;
  height: 24px;
  display: block;
}

.form-header__title {
  font-family: "Bebas Neue", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
  vertical-align: middle;
  text-transform: uppercase;
  color: var(--monochrome-15);
  margin: 0;
}

@media (max-width: 768px) {
  .form-header__title {
    font-size: 20px;
    font-weight: 400;
  }
}

.step-indicator {
  width: 100%;
  display: flex;
  gap: 4px;
  margin-top: -8px;
}

.step-indicator__bar {
  flex: 1;
  height: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease;
}

.step-indicator__bar--active {
  background: rgba(255, 255, 255, 1);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

@media (max-width: 768px) {
  .step-content[data-step="1"] .step-content__options {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .step-content[data-step="1"] .style-option__image {
    width: calc(50vw - 70px);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

.step-content[style*="display: none"] {
  display: none !important;
}

.step-content__title {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--monochrome-15);
  text-align: center;
  margin: 0;
}

.step-content__options {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.step-content[data-step="3"] .step-content__options {
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .step-content[data-step="3"] .step-content__options {
  }
}

.step-content__options--safety-type {
  gap: 8px;
}

.step-content__options--body-type {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

.step-content[data-step="5"] .step-content__options {
  justify-content: flex-start;
  align-self: stretch;
  flex-wrap: wrap;
}

.step-content[data-step="5"] .step-content__options--eye-color {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.step-content__options--eye-color-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(139px, 1fr));
  gap: 12px;
  justify-content: start;
  justify-items: start;
  max-width: 100%;
}

@media (max-width: 768px) {
  .step-content__options {
    gap: 8px 12px;
  }

  .step-content[data-step="5"] .step-content__options--hairstyle {
    justify-content: center;
  }

  .step-content[data-step="5"] .step-content__options--eye-color {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }

  .step-content__options--eye-color-wrapper {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(139px, 1fr));
    gap: 12px;
    justify-content: center;
    justify-items: start;
    max-width: 100%;
  }
}

.step-content__options--hair-color {
  display: flex;
  justify-content: center !important;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  flex-wrap: wrap;
}

.hair-color-option {
  display: block;
  cursor: pointer;
}

.hair-color-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hair-color-option__circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.hair-color-option__input:checked + .hair-color-option__circle {
  border: 2px solid #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.body-type-option {
  cursor: pointer;
}

.body-type-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.body-type-option__box {
  display: flex;
  height: 48px;
  min-width: 100px;
  padding: 1px 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  transition: border 0.3s ease, background 0.3s ease;
}

@media (max-width: 768px) {
  .body-type-option__box {
    min-width: 70px;
    height: 30px;
  }
}

.body-type-option__input:not(:checked) + .body-type-option__box {
  border: 1px solid #cccccc;
  background: transparent;
}

.body-type-option__input:checked + .body-type-option__box {
  border: 3px solid #fff;
  background: rgba(255, 255, 255, 0.1);
}

.body-type-option__label {
  display: flex;
  height: 46.67px;
  padding: 15px 0 15px 0;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  text-align: center;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
}

.body-type-option__input:not(:checked)
  + .body-type-option__box
  .body-type-option__label {
  color: #cccccc;
}

@media (max-width: 768px) {
  .body-type-option__label {
    font-size: 14px;
  }
}

.style-option {
  display: block;
  cursor: pointer;
}

.style-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.style-option__image {
  display: flex;
  width: 273px;
  height: 273px;
  padding: 12px 0;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: none;
  transition: border 0.3s ease;
  position: relative;
  overflow: hidden;
}

.style-option__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  z-index: 0;
}

.step-content[data-step="3"] .style-option__image {
  width: 173px;
  height: 173px;
}

@media (max-width: 768px) {
  .step-content[data-step="3"] .style-option__image {
    width: clamp(105px, 22vw, 173px);
    height: clamp(105px, 22vw, 173px);
    aspect-ratio: 1 / 1;
  }
}

.step-content[data-step="5"] .style-option__image {
  width: 139px;
  height: 139px;
}

.style-option__image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55.29%,
    rgba(0, 0, 0, 0.8) 100%
  );
  border-radius: 10px;
  z-index: 1;
}

.style-option__input:checked + .style-option__image {
  border: 2px solid #fff;
}

.style-option__label {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--monochrome-15);
  text-align: center;
  position: relative;
  z-index: 2;
}

.safety-type-option {
  display: block;
  cursor: pointer;
  flex: 1 0 0;
  min-width: 200px;
}

.safety-type-option__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.safety-type-option__box {
  display: flex;
  height: 150px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  transition: border 0.3s ease;
  position: relative;
}

.safety-type-option__input:checked + .safety-type-option__box {
  border: 2px solid #fff;
}

@media (max-width: 768px) {
  .safety-type-option__icon {
    width: clamp(25px, 6vw, 50px);
  }

  .safety-type-option__icons {
    gap: 1px;
  }
}

.safety-type-option__label {
  color: #fff;
  text-align: center;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 17.92px;
}

.age-slider-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.age-slider {
  flex: 1;
  position: relative;
  height: 6px;
}

.age-slider__wrapper {
  position: relative;
  width: 100%;
  height: 6px;
  --thumb-position: 50%;
}

.age-slider__input {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(
    --slider-gradient,
    linear-gradient(
      to right,
      #2b2b2b 0%,
      #afafaf 16%,
      #272727 50%,
      #272727 100%
    )
  );
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.age-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 4px solid #544c54;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.age-slider__input::-moz-range-thumb {
  width: 12px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 4px solid #544c54;
  background: #ffffff;
  cursor: pointer;
  box-sizing: border-box;
}

.age-slider__value {
  position: absolute;
  top: -27px;
  left: var(--thumb-position, 50%);
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 17.92px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}

.age-slider__label {
  color: #aaa;
  text-align: center;
  font-family: Lato, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 17.92px;
  flex-shrink: 0;
  min-width: 30px;
}

@media (max-width: 768px) {
  .style-option__image {
    width: 100%;
    max-width: 273px;
  }

  .safety-type-option {
    width: calc(50vw - 70px);
    min-width: unset;
  }
}

.main-content h1 {
  color: var(--monochrome-15);
  font-family: var(--font-family-title);
  font-size: var(--title-primary-font-size);
  font-weight: var(--title-primary-font-weight);
  line-height: var(--title-primary-line-height);
  text-transform: var(--title-primary-text-transform);
}

@media (max-width: 768px) {
  .main-content h1 {
    font-size: 2rem;
    line-height: 35px;
  }
}

.footer {
  position: relative;
  width: 100%;
  background: transparent;
  padding: 40px 0 24px;
  z-index: 1;
  margin-top: auto;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-medium) * 1.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: var(--spacing-medium);
}

.footer__rta-logo {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.footer__rta-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer__copyright.mobile {
  display: none;
}

.footer__copyright.mobile p {
  text-align: center;
}

.footer__copyright p {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--monochrome-15);
  margin: 0;
  white-space: nowrap;
}

.footer__right {
  display: flex;
  align-items: center;
}

.footer__spicier-logo {
  height: 25px;
}

.footer__spicier-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.footer__links {
  border-top: 0.8px solid #b6b6b6;
  padding-top: 9.2px;
  height: 24.8px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer__links .rta-logo {
  display: none;
}

.footer__links .rta-logo img {
  display: block;
  width: 31px;
  height: auto;
}

.footer__links a {
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  padding: 1.6px 0;
  white-space: nowrap;
}

.footer__links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer__container {
    padding: 0 var(--spacing-small);
  }

  .footer__top {
    flex-direction: column;
    gap: var(--spacing-small);
    align-items: flex-start;
  }

  .footer__left {
    display: none;
  }

  .footer__copyright.desktop {
    display: none;
  }

  .footer__copyright.mobile {
    display: flex;
  }

  .footer__copyright p {
    font-size: 12px;
    white-space: normal;
  }

  .footer__right {
    align-self: flex-end;
    justify-content: center;
    order: 1;
    width: 100%;
  }

  .footer__links {
    justify-content: center;
    align-items: center;
    height: auto;
    gap: var(--spacing-small);
  }

  .footer__links .rta-logo {
    display: block;
  }

  .footer__links a {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .safety-type-option__icon {
    width: 30px !important;
    height: 30px !important;
    margin-right: -10px;
  }

  .safety-type-option__icons {
    display: flex;
    gap: 0px;
  }

  .age-slider__input::-webkit-slider-thumb {
    height: 28px !important;
  }

  .age-slider__input::-moz-range-thumb {
    height: 28px !important;
  }

  .style-option__label {
    font-size: 14px;
  }

  .safety-type-option__label {
    font-size: 14px;
  }

  .body-type-option__label {
    font-size: 14px;
  }
}
