  *, *::before, *::after{
            box-sizing: border-box;
            padding: 0;
            margin: 0;
        }
        html, body{
          line-height: unset;
        }
    .model-registration{
    --error-color: #e74c3c;
font-weight: 400;
font-size: 16px;
min-height: 732px;
height: 100%;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.98);
    }

    .model-registration.loaded {
    opacity: 1;
    transform: none;
    transition: all .425s 
cubic-bezier(.22, 1, .36, 1);
}

        .model-registration *{
        font-size: 16px;
      color: var(--body, #333333);
  
      }
:root {
  --body: #333333;
}

    .model-registration__optional{
font-weight: 400;
font-size: 14px;
line-height: 140%;
letter-spacing: -1%;
    }

.agency-setup__list-title{
font-weight: 600;
font-size: 16px;
line-height: 24px;
letter-spacing: -1%;
margin-bottom: 16px;
}
.modal-notification{
    position: absolute;
    max-width: 830px;
    width: 95%;
    background: #F6EEE3;
    border-radius: 32px;
    padding: 32px;
    border-top: 1px solid #E5D2B8;
      transform: scale(0.9);
  transition: transform 0.3s ease;
}
.model-registration__list--radio{
  max-height: 530px;
  overflow: auto;
}
.modal-notification__img{
  object-fit: cover;
}
.modal-notification__header{
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-notification__body{
font-weight: 500;
font-size: 16px;
line-height: 150%;
letter-spacing: -1%;
gap: 12px;
margin-bottom: 32px;
}

.mb-12{
  margin-bottom: 12px;
}

.modal-notification__header{
color: #0E0E0E;
font-weight: 600;
font-size: 24px;
line-height: 110.00000000000001%;
letter-spacing: -0.02em;
text-transform: capitalize;

}
.modal-notification__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-notification__wrapper--visible {
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}

.modal-notification__wrapper--visible .modal-notification {
  transform: scale(1);
}
.model-registration__content:not(:has(.slider)) {
  padding-right: clamp(0px, calc((100vw - 768px) * 0.0595), 40px);
}
.modal-notification__button{
  font-family: Montserrat;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-block: 12px;
    color: white;
    border-radius: 22px;
    border: none;
    cursor: pointer;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.010625) 91.67%, rgba(0, 0, 0, 0) 100%), #282828;

}

.modal-notification--visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

        .agency-setup__title{
font-weight: 600;
font-size: 30px;
line-height: 100%;
letter-spacing: -0.02em;
margin-bottom: 16px;
        }
        .agency-setup__subtitle{
font-weight: 400;
font-size: 18px;
line-height: 24px;
letter-spacing: -0.01em;
color: var(--body, #333333);
margin-bottom: 24px;

        }
.agency-setup__subtitle p + p {
  margin-top: 16px; 
}
.model-registration>*{
  flex: 1;
}
        .model-registration{
          height: auto;
            padding: 16px;
            width: 100%;
            border: 1px solid #EBDDC9;
            background: #FFFFFF;
            border-radius: 32px;
            display: flex;
            gap: 24px;
        }
        .model-registration__setup-wrapper{
          overflow: hidden;
          max-width: 432px;
              border-radius: 16px;
          padding: calc(16px + (32 - 16) * ((100vw - 390px) / (1440 - 390)));
            background: #F6EEE3;
            border: 1px solid #0000001F
        }
        .model-registration__content{
            padding-top: 36px;
            flex: 1;
            min-width: 420px;
            overflow: hidden;
        }

        /* Agency setup first step */
          .setup-steps {
            list-style: none;
            position: relative;
        }
.setup-steps__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 32px;
  width: 2px;
  height: 100%;
  background-color: #d4c4b0;
}
        /* Element: setup-steps__item */
        .setup-steps__item {

            display: flex;
            align-items: flex-start;
            margin-bottom: 24px;
            position: relative;
            gap: 16px;
        }

/* Увеличиваем счетчик для основных шагов */
.setup-steps__item {
  counter-increment: step;
}

.setup-steps__item::before {
      transition: all 0.3s ease;
  content: counter(step);
    background: #D8D1C8;
    border: 1px solid #C4B49D;
  color: black;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
        /* Modifier: setup-steps__number--active */
        .setup-steps__item--active::before {
            background-color: #2d2d2d;
            color: white;
        }

        .setup-steps__substeps{
            display: block;
        }
        .setup-steps__step {
  counter-reset: substep; /* Сбрасываем счетчик option в начале каждого шага */
}

.setup-steps__substep {
  counter-increment: substep; /* Увеличиваем счетчик option на каждом substep */
}
        .setup-steps__substep::before{
              content: counter(substep, lower-alpha);
    width: 32px;
    height: 32px;
    border-radius: 99px;
    background: #D8D1C8;
    border: 1px solid #C4B49D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: black;
    transition: all 0.3s ease;
    flex-shrink: 0;
        }
.setup-steps__substep--active::before{
      background-color: #2d2d2d;
    color: white;
}
        .setup-steps__item--active .setup-steps__substeps{
            display: block;
        }
 .agency-setup__list .agency-setup__item{
font-weight: 400;
font-size: 16px;;
line-height: 24px;
margin-bottom: 12px;
display: flex;
gap: 6px;
align-items: center;
letter-spacing: -0.01em;
color: var(--body, #333333);

 }
.agency-setup__list .agency-setup__item::before {
  flex-shrink: 0;
    content: "";
    background: url(/images/check.svg) no-repeat center / 60%;
    height: 11px;
    width: 21px;
}

.agency-photos__item{
  
}

        .setup-steps__number {
            background-color: #d4c4b0;
            color: #8b7355;
        }

        /* Element: setup-steps__content */
        .setup-steps__content {
            flex: 1;
        }
        .setup-steps__title--active{
            margin-bottom: 12px;
        }
        /* Element: setup-steps__title */
        .setup-steps__title {
font-weight: 600;
font-size: 16px;;
line-height: 24px;
letter-spacing: -1%;
color: #333333;
        }

        /* Element: setup-steps__description */
        .setup-steps__description {
            font-size: 16px;;
            color: #666;
            line-height: 1.4;
        }

.setup-steps__substep {
  display: none;
  position: relative;
  gap: 16px;
}
.setup-steps__item--active .setup-steps__title{
    margin-bottom: 12px;
}
.setup-steps__item--active .setup-steps__substep{
  margin-bottom: 24px;
}
.setup-steps__substep--active.setup-steps__substep{
  margin-bottom: 32px;
}

.setup-steps__item--active .setup-steps__substep{
        display: flex;
}
.setup-steps__substep-desc{
    display: none;
}
.setup-steps__item--active .setup-steps__substep-desc{
    display: block;
}
.setup-steps__substeps .setup-steps__substep-desc{
    display: none;
}
.setup-steps__substep--active .setup-steps__substep-desc{
    display: block;
}

.agency-registration__active-step--mobile{
  display: none;
  padding-bottom: 32px;
}
.setup-steps__item--active{
    margin-bottom: 32px;
}

.setup-steps__item-hidden {
  display: none;
}

.setup-steps__substep:not(:last-child)::after {
        content: '';
    position: absolute;
    left: 16px;
    top: 32px;
    width: 2px;
    height: 102%;
    background-color: #d4c4b0;
}



        /* first step configuration */
        .model-registration__title {
    font-size: 24px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 40px;
}

/* Element: model-registration__option-list */
.model-registration__option-list {
    list-style: none;
}

/* Element: model-registration__option-item */
.model-registration__option-item:not(:last-child) {
    margin-bottom: 16px;
}

/* Element: model-registration__option-button */
.model-registration__option-button {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    background-color: #e8ddd2;
    font-size: 16px;;
    font-weight: 500;
    color: #2d2d2d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-registration__option-button:hover {
    background-color: #ddd0c1;
}

/* Modifier: model-registration__option-button--selected */
.model-registration__option-button--selected {
    background-color: #c4b49a;
    color: #2d2d2d;
}

/* Element: model-registration__option-marker */
.model-registration__option-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #8b7355;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Modifier: model-registration__option-marker--selected */
.model-registration__option-marker--selected {
    background-color: #5a4a38;
}

/* Modifier: model-registration__button--secondary */
.model-registration__button--secondary {
    background-color: transparent;
    border: 2px solid #d4c4b0;
}

.model-registration__button--secondary:hover {
    border-color: #b8a690;
    color: #2d2d2d;
}

.model-registration__button--primary:hover {
    background-color: #1a1a1a;
}
/* Element: model-registration__form */
.model-registration__form {
    margin-bottom: 40px;
}

/* Element: model-registration__field */

/* Element: model-registration__row */
.model-registration__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Element: model-registration__input-wrapper */
.model-registration__input-wrapper {
    position: relative;
}

/* Element: model-registration__input */
.model-registration__input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e8ddd2;
    border-radius: 50px;
    font-size: 16px;;
    background-color: #f8f5f1;
    color: #2d2d2d;
    transition: all 0.2s ease;
}

.model-registration__input:focus {
    outline: none;
    border-color: #c4b49a;
    background-color: #fff;
}

.model-registration__input::placeholder {
    color: #999;
}

.model-registration__subtitle{
  display: flex;
  align-items: center;
font-weight: 400;
font-size: 20px;
line-height: 100%;
letter-spacing: -0.02em;
gap: 8px;
flex-wrap: wrap;
color: #0E0E0E;
margin-bottom: 16px;
}

.model-registration__subtitle-hint{
  color: #333333;
font-weight: 400;
font-size: 14px;
letter-spacing: -1%;
}

.model-registration__subtitle-text{
  color: #333333;
  margin-bottom: 16px;
}
.question-hint{
  margin-bottom: 16px;
}
.model-registration__label, .model-registration__label-hint {
  margin-bottom: 16px;
}

/* Если сразу после .model-registration__label идёт .model-registration__label-hint */
.model-registration__label:has(+ .model-registration__label-hint) {
  margin-bottom: 12px;
}

.rate-input{
  text-align: center;
}
/* Modifier: model-registration__input--password */
.model-registration__input--password {
    padding-right: 50px;
}

/* Element: model-registration__password-toggle */
.model-registration__password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-registration__password-toggle:hover {
    background-color: rgba(139, 115, 85, 0.1);
}

/* Element: model-registration__form-actions */
.model-registration__form-actions {
    display: flex;
    gap: 16px;
}

/* Element: model-registration__button */
.model-registration__button {
    padding: 12px 24px;
    border-radius: 22px;
    font-size: 16px;;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    color: var(--body, #333333);
}

/* Modifier: model-registration__button--secondary */
.model-registration__button--secondary {
    background-color: transparent;
    color: #666;
    border: 2px solid #d4c4b0;
}

.model-registration__button--secondary:hover {
    border-color: #b8a690;
    color: #2d2d2d;
}

.model-select__wrapper{
  flex: 1;
  position: relative;
}

/* Modifier: model-registration__button--primary */
.model-registration__button--primary {
background: linear-gradient(0deg, #282828, #282828),
linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.010625) 91.67%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.model-registration__button--primary:hover {
    background-color: #1a1a1a;
}

.setup-steps__substep-desc--active{
    display: block;
}

.model-registration__configuration-prev-wrapper,
.model-registration__configuration-next-wrapper{
  display: none;
}

.model-registration__content input[type="radio"],
.model-registration__content input[type="checkbox"]{
  position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}

.model-registration__select{
  position: relative;
  padding: 12px 32px 12px 16px;
  border: 1px solid #0000001F;
  width: 100%;
  background: #EBDDC9;
  border-radius: 30px;
font-weight: 500;
font-size: 16px;;
border: 1px solid transparent;
line-height: 150%;
}

.model-registration__content input[type="checkbox"] + label,
.model-registration__content input[type="radio"] + label {
  cursor: pointer;
  font-weight: 500;
    max-width: 281px;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.01em;
  border-radius: 99px;
  display: flex;
  align-items: center;
  padding: 8px;
  background: #F6EEE3;
  border: 1px solid #D8D1C8;
}

.duration-control{
width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.duration-control-label{
  flex: 1;
  margin-right: 12px;
}

.required-mark{
    font-size: 29px;
    height: 15px;
    display: inline-block;
    color: #DD1818;
    margin-left: 8px;
    width: 9px;
}
.model-registration__content input[type="radio"]:checked + label{
background: #E2D2BC;
}
.model-registration__option-list{
    counter-reset: option; 
}

.model-registration__option-item{
    counter-increment: option;
}

.model-registration__label{
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 8px;
font-weight: 500;
font-size: 16px;;
line-height: 150%;
letter-spacing: -1%;
color: #333333;
}

.code-input-container{
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.model-registration__field-password{
  flex: 1;
  min-width: 0;
}
.model-registration__field-password label,
.model-registration__field-email label{
  margin-bottom: 12px;
  white-space: nowrap;
}
.model-registration__configuration .model-registration__field{
  margin-bottom: 24px;
}

.code-input-container .code-input{
      font-family: Montserrat;
  flex: 1;
  padding: 13px 0px !important;
  border-radius: 30px;
text-align: center;
width: 100%;
}
.model-registration__credentials-field-group{
  display: flex;
  margin-bottom: 24px;
  gap: 24px;
}

.model-registration__content input[type="checkbox"] + label::before,
.model-registration__content input[type="radio"] + label::before{
    content: counter(option, upper-alpha);
    width: 32px;
    height: 32px;
    border-radius: 99px;
    background: #D8D1C8;
    border: 1px solid #C4B49D;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: black;
    flex-shrink: 0;
}

.model-registration__content input[type="radio"]:checked + label::before,
.model-registration__content input[type="checkbox"]:checked + label::before {
    content: "";
    display: flex;
    align-items: center;
     background: 
        url(/images/check.svg) no-repeat center / 60%,
        linear-gradient(214.26deg, #D5A970 -46.93%, #EADAC3 15.81%, #D5A970 80.35%);
    background-repeat: no-repeat;
    background-position: center;
    justify-content: center;
    border: 1px solid #C4B49D;
    background-size: 12px 12px, 100%;
}

.model-registration__option-item{
  position: relative;
}

.model-registration__content input[type="text"],
.model-registration__content input[type="password"],
.model-registration__content input[type="email"],
.model-registration__content input[type="tel"]{
  padding: 14px 16px;
  background: #EBDDC9;
  border: 1px solid #0000001F;
  font-size: 16px;;
}
.time-range-label{
font-weight: 500;
font-size: 16px;;
line-height: 150%;
letter-spacing: -1%;

  margin-bottom: 8px;
}


.time-range-container{
  display: flex;
  gap: 8px;
  align-items: center;
font-weight: 500;
font-size: 16px;;
line-height: 150%;
}
.rate-input{
  max-width: 146px;
  width: 100%;
  border: 1px solid #0000001F;
  border-radius: 32px;
  height: 32px;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.model-registration__content input::placeholder {
color: #333333;
font-weight: 400;
        font-family: Montserrat;
font-size: 14px;
line-height: 140%;
letter-spacing: -1%;
}

.model-registration__content textarea::placeholder{
font-weight: 500;
font-size: 15px;
line-height: 160%;
        font-family: Montserrat;
letter-spacing: -2%;
color: #9c9494b2;
}
.model-registration__content textarea{
  resize: vertical;
  width: 100%;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;;
  line-height: 160%;
  letter-spacing: -2%;
  border: 1px solid #EBDDC9;
  padding: 16px;
  border-radius: 16px;
}

.model-registration__title{
font-weight: 600;
font-size: 20px;
color: #0E0E0E;
line-height: 100%;
margin-bottom: 24px;
letter-spacing: -0.02em;
}

.model-registration__configuration-with__hint{
  margin-bottom: 16px;
}
.modal-notification{
    font-family: Montserrat;
}
.modal-notification__hint{
  display: flex;
 gap: 4px;
 margin-bottom: 16px;
font-weight: 500;
font-size: 14px;
line-height: 150%;
letter-spacing: -1%;

}

.mb-16{
  margin-bottom: 16px;
}

.modal-notification__hint svg{
  flex-shrink: 0;
      transform: translateY(3px);
}
.agency-registration__active-header{
font-weight: 600;
font-size: 16px;
line-height: 24px;
color: var(--body, #333333);
letter-spacing: -1%;
margin-bottom: 12px;
}

.agency-registration__active-substep-description{
 font-size: 16px;
}

.model-registration__hint{
  display: block;
  margin-bottom: 32px;
font-weight: 400;
font-size: 16px;;
line-height: 24px;
letter-spacing: -1%;
}


.agency-registration__first-step{
  display: none;
}
.model-registration__configuration{
  margin-bottom: 24px;
}

.resend-code{
  margin-right: 4px;
font-weight: 600;
font-size: 14px;
line-height: 140%;
letter-spacing: -1%;
outline: none;
border: none;
background: none;
cursor: pointer;
}
.resend-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.model-registration__terms-checkbox{
  color: #0E0E0E;
  display: flex;
  font-weight: 500;
}
.model-registration__terms-checkbox::before{
  content: '';
  flex-shrink: 0;
  display: inline-block;
  background: #D8CEBD;
  border: 1px solid #0000001F;
  border-radius: 100%;
  width: 24px;
  margin-right: 12px;
  height: 24px;
}
.model-registration__configuration .model-registration__terms-checkbox:first-of-type {
  margin-bottom: 16px;
}
.model-registration__terms-checkbox-highlighted{
  text-decoration: underline;
    color: #DD1818;
}
.model-registration__terms-checkbox input{
  display: none;
}

.modal-notification__separator{
  margin-inline: -32px;
border-top: 1px solid #E5D2B8;
 margin-bottom: 32px;
}

.model-registration__password-wrapper{
  padding: 14px 16px;
  display: flex;
  gap: 4px;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background: #EBDDC9;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: inherit !important;
}

.model-registration__password-wrapper input{
    background: none;
font-weight: 400;
font-size: 14px;
padding: 0 !important;
width: 100%;
  outline: none !important;
  border: none !important;
}
.slider {
  margin-bottom: 30px;
}

.model-registration__slider-value{
  min-height: 26.4px;
}


.slider:not(.noUi-target) {
    height: 2px; 
    border-radius: 3px;
    position: relative;
}

.slider:not(.noUi-target)::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    top: -10px;
    left: 0;
    border: 2px solid #EBDDC9;
}


.model-registration__slider-value {
font-weight: 600;
font-size: 24px;
line-height: 110.00000000000001%;
letter-spacing: -2%;
margin-bottom: 16px;
}

/* Кастомизация noUiSlider */
.slider .noUi-connect {
  background: #000000A3;
}
.slider.noUi-horizontal{
  height: 2px;
  margin-left: 7px;
  margin-right: 17px;
  background: #0000001F;
  border: none;
}
.slider.noUi-horizontal .noUi-handle{
  width: 24px;
  border-radius: 99px;
  height: 24px;
  top: -10px;
}
.slider .noUi-handle {
  border: 2px solid #EBDDC9;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.slider .noUi-handle:before,
.slider .noUi-handle:after {
  display: none;
}
.model-registration__terms-checkbox:has(input:checked)::before {
     background: 
        url(/images/white-check.svg) no-repeat center / 50%,
        #DD1818;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контейнер */
.photo-upload-container {
  margin: 24px 0;
}
.photo-upload__notice{
  margin-bottom: 16px;
}
.photo-upload-subtitle {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.photo-upload-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  line-height: 1.5;
}

.recommendations-title {
font-weight: 600;
font-size: 16px;;
line-height: 24px;
letter-spacing: -1%;
}

.photo-upload-recommendation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.recommendation-icon {
  color: #28a745;
  font-weight: bold;
  flex-shrink: 0;
}

.notice-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Сетка фото */
.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* Слот для фото */
.photo-upload-slot {
  position: relative;
  aspect-ratio: 1;
  border: 2px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.photo-upload-slot:hover {
  border-color: #EBDDC9;
  background: #f8f9fa;
}

.photo-upload-input {
  display: none;
}

.input-error{
  border: 1px solid red !important;
}

.photo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-upload-icon {
  font-size: 48px;
  color: #999;
  line-height: 1;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.photo-upload-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.photo-upload-slot:hover .photo-upload-icon {
  color: var(--body);
  transform: scale(1.1);
}

.photo-drop-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.photo-drop-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.photo-drop-overlay__content {
  text-align: center;
  color: var(--body);
  pointer-events: none;
}

.photo-drop-overlay__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  animation: bounce 1s ease-in-out infinite;
}

.photo-drop-overlay__title {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 12px;
  
}

.photo-drop-overlay__subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Превью фото */
.photo-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.photo-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.code-hint{
  font-size: 14px;
}

.photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #dc3545;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.time-range-control{
  display: flex;
  align-items: center;
}
.select-wrapper{
  position: relative;
}
.photo-remove-btn:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}
/* Когда слот заполнен */
.photo-upload-slot.has-photo {
  border-color: #28a745;
  border-style: solid;
}

.photo-upload-slot.has-photo .photo-upload-label {
  display: none;
}

.photo-upload-slot.has-photo .photo-preview {
  display: block;
}
.time-range-text{
  margin-right: 8px;
}

.image-input-error{
  border: 2px solid red;
}

.rate-duration-table {
  text-align: center;
  width: 100%;
  font-size: 16px;;
  font-weight: 500;
  line-height: 150%;
  border-spacing: 0 16px;
  table-layout: fixed;
}

.rate-duration-input {
  text-align: left;
  padding: 0 8px; /* Добавлено */
}

.rate-duration-table td {
  vertical-align: baseline;
}

.rate-duration-heading {
  text-align: left;
}
.rate-duration-heading:not(:first-child){
    padding: 0 8px;
}
.rate-duration-table-head {
  margin-bottom: 16px;
}

.rate-duration-time {
  display: flex;
  align-items: center;
}

.rate-duration-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 24px;
}

.photo-upload-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

.photo-preview {
  position: relative;
}

.photo-preview.uploading .photo-preview-image {
  opacity: 0.5;
}

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

.iti.iti--allow-dropdown{
  width: 100%;
}

.model-registration__select{
    appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.model-registration__input-error{
  margin-top: 8px;
  color: var(--error-color);
}
/* Адаптивность */
@media screen and (max-width: 768px) {
      .agency-registration__start{
    max-height: unset;
  }
  .model-registration{
    min-height: 732px;
    height: 100%;
  }
  .model-registration__content:not(:has(.slider)){
    padding-right: unset;
  }
    .photo-upload-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .rate-input{
    height: 44px;
  }
      .setup-steps__item:not(:last-child) {
        width: 100%;

    }
  .setup-steps__item:not(:last-child)::after {
  left: 32px;
  top: 16px;
  width: 100%;
  height: 2px;
}

  .setup-steps__item{
    margin-bottom: 0;
  }
  .setup-steps{
    margin-bottom: 24px;
  }
  .agency-registration__active-step--mobile{
    display: block;
  }
  .model-registration__content{
    min-width: auto;
  }
  .setup-steps::before{
    left: 0;
    right: 0;
    top: 15px;
    width: 100%;
    height: 2px;
  }
  .model-registration{
    flex-direction: column;
    gap: 0px;
    padding: 16px;
  }
  .agency-registration__first-step{
    max-height: 300px;
  }
.model-registration__setup-wrapper{
  max-width: unset;
  height: unset;
  max-height: fit-content;
}

.setup-steps{
  display: flex;
  justify-content: space-between;
}
.setup-steps__content{
  display: none;
}
}


@media screen and (max-width: 480px) {
  .photo-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rate-input{
    max-width: 100px;
  }
.model-registration__credentials-field-group{
  flex-direction: column;
}
}

@media screen and (max-width: 390px) {
  .select-wrapper{
    width: 100%;
  }
  .time-range-control{
    flex-direction: column;
    align-items: start;
    flex: 1;
  }

  .agency-registration__first-step{
    max-height: unset;
  }
  .setup-steps__item:not(:last-child)::after {
    background-color: unset;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0' y1='0' x2='100%25' y2='0' stroke='%23C4B49D' stroke-width='2' stroke-dasharray='8,4' /%3e%3c/svg%3e");
    background-repeat: repeat-x;
    background-position: center;
    height: 2px;
    border: none;
  }

  .setup-steps__item--active:not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0' y1='0' x2='100%25' y2='0' stroke='%23C4B49D' stroke-width='2' /%3e%3c/svg%3e");
  }

  .setup-steps__item--active ~ .setup-steps__item:not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0' y1='0' x2='100%25' y2='0' stroke='%23C4B49D' stroke-width='2' /%3e%3c/svg%3e");
  }

  .setup-steps__item::before {
    opacity: 0;
  }

  .setup-steps__item[data-step="1"]::before,
  .setup-steps__item:last-child::before,
  .setup-steps__item--active::before,
  .setup-steps__item:nth-last-child(2):has(+ .setup-steps__item--active:last-child)::before {
    opacity: 1;
  }

  /* ✅ Когда активен data-step="1" - показываем data-step="2" */
  .setup-steps__item[data-step="1"].setup-steps__item--active ~ .setup-steps__item[data-step="2"]::before{
    opacity: 1;
  }

  /* ✅ Когда активен data-step="1" - скрываем data-step="3" */
  .setup-steps__item[data-step="1"].setup-steps__item--active ~ .setup-steps__item[data-step="3"] {
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;  }

/* ✅ Когда активен data-step="1" - у всех следующих элементов (включая data-step="2") прерывчатая линия */
  .setup-steps__item[data-step="1"].setup-steps__item--active ~ .setup-steps__item::after {
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0' y1='0' x2='100%25' y2='0' stroke='%23C4B49D' stroke-width='2' stroke-dasharray='8,4' /%3e%3c/svg%3e");
  }

  /* ✅ Когда активен data-step="2" */
  /* Скрываем первый элемент (data-step="1") */
  .setup-steps__item[data-step="1"]:has(~ .setup-steps__item[data-step="2"].setup-steps__item--active) {
  height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  }

  /* Показываем номер третьего элемента (data-step="3") */
  .setup-steps__item[data-step="2"].setup-steps__item--active ~ .setup-steps__item[data-step="3"]::before {
    opacity: 1;
  }

  /* ✅ Когда активен data-step="2" - у data-step="3" и всех последующих прерывчатая линия */
  .setup-steps__item[data-step="2"].setup-steps__item--active ~ .setup-steps__item:not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0' y1='0' x2='100%25' y2='0' stroke='%23C4B49D' stroke-width='2' stroke-dasharray='8,4' /%3e%3c/svg%3e");
  }

  /* ✅ Когда активен data-step="4" или data-step="5" - скрываем data-step="3" */
  .setup-steps__item[data-step="3"]:has(~ .setup-steps__item[data-step="4"].setup-steps__item--active),
  .setup-steps__item[data-step="3"]:has(~ .setup-steps__item[data-step="5"].setup-steps__item--active) {
     height: 0;
  width: 0;
  overflow: hidden;
  opacity: 0;
  }

  /* ✅ Когда активен data-step="5" - у data-step="4" сплошная линия */
  .setup-steps__item[data-step="4"]:has(~ .setup-steps__item[data-step="5"].setup-steps__item--active):not(:last-child)::after {
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3cline x1='0' y1='0' x2='100%25' y2='0' stroke='%23C4B49D' stroke-width='2' /%3e%3c/svg%3e");
  }

  .model-registration__setup-wrapper {
    max-height: unset;
    padding: 16px;
  }

  .modal-notification__header {
    flex-direction: column;
    align-items: unset;
  }

  .setup-steps::before {
    left: 0;
    right: 0;
    top: 15px;
    width: 100%;
    height: 2px;
    border-top: 3px dashed #c0b4a0;
    background: none;
  }
}
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(-5px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
        .validation-error {
      color: var(--error-color);
      font-size: 16px;;
      margin-top: 5px;
      display: none;
      animation: fadeIn 0.3s ease-in;
    }
    
    .validation-error.show {
      display: block;
    }