.header__avatar img {
  width: 75px;
  height: 46px;
}

.main-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.submit-button {
  /* border-radius: 12px; */
  text-align: center;
  text-transform: none;
  background-color: #f14635;
  color: #fff;
  transition: all 0.3s ease-out;
  border: none;
  font-size: 18px;
  font-weight: 700;
  padding: 15px;
  width: 100%;
  outline: 0;
  cursor: pointer;
  /* border: 1px solid #171a17; */
}

form .form__title {

  font-weight: 700;
  margin: 20px 0 20px 0;
  text-align: center;
  font-size: 32px;
  color: #109CF7;
}

.form__title {
  font-size: 24px;
  color: #000000;
  font-weight: 700;

  padding-bottom: 20px;
}


.main-form input {
  padding: 12px 16px;
  /* border-radius: 12px; */
  border: 1px solid grey;

  width: 100%;
}

.main-form input::placeholder {

  color: rgba(156, 163, 175, 0.769);
  font-weight: 400;
}

.input_wrapper {
  display: flex;
  flex-direction: column;
}


.input-wrapper {
  color: black
}

.iti__selected-dial-code {
  color: white;
  font-size: 16px !important;
}

.main-form {
  max-width: 570px;
  width: 100%;
  margin: 25px auto;

  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  /* border-radius: 20px; */
}

.chat-content-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 20px;
}

.text b {
  color: #109CF7;
}

.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
  color: #f14635;
}

.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: currentColor;
  margin: -3.6px 0 0 -3.6px;
}

.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}

.lds-roller div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}

.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}

.lds-roller div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}

.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}

.lds-roller div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}

.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}

.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}

.lds-roller div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}

.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}

.lds-roller div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}

.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}

.lds-roller div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}

.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}

.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Стили для модального окна */
.modal {
  display: none;
  /* По умолчанию скрыто */
  position: fixed;
  place-items: center;
  z-index: 1999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  /* Полупрозрачный фон */
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
  font-size: 110%;
  display: grid;
  place-items: center;

  max-width: 500px;
  min-height: 400px;
  max-height: 65%;
  position: relative;
}

/* Закрыть кнопка */
.close-error-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 25px;
  top: 25px;
}

.close-error-modal:hover,
.close-error-modal:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* preloader */
.preloader {
  display: grid !important;
  place-items: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 99;
  width: 100%;
  height: 100%;
  overflow: visible;
  background: white;
  opacity: 1;
  transition: opacity 2s linear;
  border-radius: 20px;
}

.preloader-visible {
  visibility: visible;
  opacity: 1;
  transition: opacity 2s linear;
}

.preloader-hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 2s, opacity 2s linear;
}

.error-border {
  border: dashed 1px #ce0909 !important;
}

p.error-msg {
  margin: 0;
  color: #ce0909;
  padding: 5px 0 0;
  font-size: 14px;
}

.iti__block {
  scale: 1.55;
}

.unavailable {
  padding-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 25px;
  max-width: fit-content;
  margin: 0 auto;
}

.unavailable-container {
  margin-top: 25px;
  width: 100%;
  display: grid;
  place-items: center;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  border: 1px solid red;
  background-color: #ff00003d;
}

.unavailable-container p {
  font-size: 12px;
}

.hidden-container {
  display: grid;
  place-items: center;
  background-color: #109CF7;
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 228;
  left: 0;
  top: 0;
  overflow: hidden;
}

.all-hidden,
.all-hidden div,
.all-hidden div:after {
  box-sizing: border-box;
  color: white;
  background-color: #109CF7;
}

.all-hidden {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.all-hidden div {
  animation: all-hidden 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}

.all-hidden div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7.2px;
  height: 7.2px;
  border-radius: 50%;
  background: currentColor;
  margin: -3.6px 0 0 -3.6px;
}

.all-hidden div:nth-child(1) {
  animation-delay: -0.036s;
}

.all-hidden div:nth-child(1):after {
  top: 62.62742px;
  left: 62.62742px;
}

.all-hidden div:nth-child(2) {
  animation-delay: -0.072s;
}

.all-hidden div:nth-child(2):after {
  top: 67.71281px;
  left: 56px;
}

.all-hidden div:nth-child(3) {
  animation-delay: -0.108s;
}

.all-hidden div:nth-child(3):after {
  top: 70.90963px;
  left: 48.28221px;
}

.all-hidden div:nth-child(4) {
  animation-delay: -0.144s;
}

.all-hidden div:nth-child(4):after {
  top: 72px;
  left: 40px;
}

.all-hidden div:nth-child(5) {
  animation-delay: -0.18s;
}

.all-hidden div:nth-child(5):after {
  top: 70.90963px;
  left: 31.71779px;
}

.all-hidden div:nth-child(6) {
  animation-delay: -0.216s;
}

.all-hidden div:nth-child(6):after {
  top: 67.71281px;
  left: 24px;
}

.all-hidden div:nth-child(7) {
  animation-delay: -0.252s;
}

.all-hidden div:nth-child(7):after {
  top: 62.62742px;
  left: 17.37258px;
}

.all-hidden div:nth-child(8) {
  animation-delay: -0.288s;
}

.all-hidden div:nth-child(8):after {
  top: 56px;
  left: 12.28719px;
}

@keyframes all-hidden {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.plyr {
  --plyr-color-main: #f14635;
  /* Ваш цвет (например, черный) */
}

/* Нацеливаемся на большую кнопку Play в центре */
.plyr__control--overlaid {
  animation: plyr-pulse 2s infinite;
  /* Убедимся, что тень не обрезается */
  overflow: visible !important;
}

@keyframes plyr-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    /* Цвет тени под ваш дизайн */
  }

  70% {
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Опционально: убираем анимацию, когда видео уже запущено */
.plyr--playing .plyr__control--overlaid {
  display: none;
}

.leadForm {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  margin: 0 auto;
}

/* Общие стили контейнера */
.field {
  margin-bottom: 25px;
  /* Резервируем место под ошибку (18px текст + запас) */
  position: relative;
  /* Важно для абсолютного позиционирования ошибки */
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Стили для всех инпутов */
.leadForm input {
  font-family: inherit;
  width: 100%;
  padding: 12px;

  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  color: white;
  border-radius: 15px;
}

/* Состояние при фокусе */
.leadForm input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
  border-radius: 15px;

}

/* Ошибка (красная рамка) */
.leadForm input.invalid {
  border-color: #ff4d4d;
  border-radius: 15px;

}

/* Стилизация сообщения об ошибке */
.error-msg {
  position: absolute;
  top: 100%;
  /* Размещаем сразу под инпутом */
  left: 0;
  color: #ff4d4d;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 4px;
  /* Небольшой отступ от границы инпута */

  /* Анимация появления */
  opacity: 0;
  transform: translateY(-5px);
  /* Ошибка будет плавно «выплывать» сверху вниз */
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  /* Чтобы текст ошибки не мешал кликам */
}

.error-msg.active {
  opacity: 1;
  transform: translateY(0);
}

/* Плавное появление ошибки */
.leadForm input.invalid+.error-msg,
.iti.invalid+.error-msg {
  /* для телефона с учетом обертки библиотеки */
  height: 18px;
  opacity: 1;
  margin-top: 5px;
  border-radius: 15px;

}

/* Стилизация кнопки */
.leadForm .submit-button {
  font-family: inherit;
  padding: 6px 24px;
  background-color: #2A6DFF;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  width: 100%;
  min-height: 55px;
  border-radius: 15px;

}

.leadForm .submit-button:disabled {
  background-color: #cfcece;
  cursor: not-allowed;

}

.leadForm .submit-button.is-loading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leadForm .submit-button.is-loading .loader {
  display: block;
}

.leadForm .submit-button.is-loading .btn-text {
  display: none;
}

.leadForm .submit-button.is-error,
.leadForm .submit-button.is-error:disabled {
  background-color: #ff4d4d;
  color: white;
}

/* Корректировка для intl-tel-input */
.iti {
  width: 100%;
}

.field:focus-within input.invalid~.error-msg,
input.invalid~.error-msg {
  height: 18px;
  opacity: 1;
  margin-top: 5px;

}

/* Для телефона (библиотека оборачивает инпут в .iti) */
.iti.invalid+.error-msg {
  height: 18px;
  opacity: 1;
  margin-top: 5px;
}

/* Стандартная рамка для обычных инпутов */
.leadForm input.invalid {
  border-color: #ff4d4d !important;
  border-radius: 15px;

}

/* Рамка для контейнера телефона */
.iti.invalid {
  border: 2px solid #ff4d4d;
  border-radius: 15px;

  /* чтобы углы совпадали с инпутом */
}

/* Убираем внутреннюю рамку инпута внутри .iti, чтобы они не двоились */
.iti.invalid input {
  border: none !important;
  border-radius: 15px;

}

/* Стилизация текста ошибки */
.error-msg {
  color: #ff4d4d;
  font-size: 12px;
  height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  display: block;
}

.error-msg.active {
  height: 18px;
  opacity: 1;
  margin-top: 5px;
}

/* HTML: <div class="loader"></div> */
.loader {
  display: none;
  width: 35px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #000000;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%)
  }

  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%)
  }

  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%)
  }

  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%)
  }

  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%)
  }

  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%)
  }

  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%)
  }
}

@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg)
  }

  49.99% {
    transform: scaleY(1) rotate(135deg)
  }

  50% {
    transform: scaleY(-1) rotate(0deg)
  }

  100% {
    transform: scaleY(-1) rotate(-135deg)
  }
}

.leadForm {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  margin: 0 auto;
}

/* Общие стили контейнера */
.field {
  margin-bottom: 25px;
  /* Резервируем место под ошибку (18px текст + запас) */
  position: relative;
  /* Важно для абсолютного позиционирования ошибки */
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Стили для всех инпутов */
.leadForm input {
  font-family: inherit;
  width: 100%;
  padding: 12px;

  border-radius: 12px !important;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

/* Состояние при фокусе */
.leadForm input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.2);
}

/* Ошибка (красная рамка) */
.leadForm input.invalid {
  border-color: #ff4d4d;
}

/* Стилизация сообщения об ошибке */
.error-msg {
  position: absolute;
  top: 100%;
  /* Размещаем сразу под инпутом */
  left: 0;
  color: #ff4d4d;
  font-size: 12px;
  line-height: 1.2;
  margin-top: 4px;
  /* Небольшой отступ от границы инпута */

  /* Анимация появления */
  opacity: 0;
  transform: translateY(-5px);
  /* Ошибка будет плавно «выплывать» сверху вниз */
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  /* Чтобы текст ошибки не мешал кликам */
}

.error-msg.active {
  opacity: 1;
  transform: translateY(0);
}

/* Плавное появление ошибки */
.leadForm input.invalid+.error-msg,
.iti.invalid+.error-msg {
  /* для телефона с учетом обертки библиотеки */
  height: 18px;
  opacity: 1;
  margin-top: 5px;
}

/* Стилизация кнопки */
.leadForm .submit-button {
  font-family: inherit;
  padding: 6px 24px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  width: 100%;
  min-height: 45px;
}

.leadForm .submit-button:disabled {
  background-color: #cfcece;
  cursor: not-allowed;

}

.leadForm .submit-button.is-loading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leadForm .submit-button.is-loading .loader {
  display: block;
}

.leadForm .submit-button.is-loading .btn-text {
  display: none;
}

.leadForm .submit-button.is-error,
.leadForm .submit-button.is-error:disabled {
  background-color: #ff4d4d;
  color: white;
}

/* Корректировка для intl-tel-input */
.iti {
  width: 100%;
}

.field:focus-within input.invalid~.error-msg,
input.invalid~.error-msg {
  height: 18px;
  opacity: 1;
  margin-top: 5px;
}

/* Для телефона (библиотека оборачивает инпут в .iti) */
.iti.invalid+.error-msg {
  height: 18px;
  opacity: 1;
  margin-top: 5px;
}

/* Стандартная рамка для обычных инпутов */
.leadForm input.invalid {
  border-color: #ff4d4d !important;
}

/* Рамка для контейнера телефона */
.iti.invalid {
  border: 2px solid #ff4d4d;
  border-radius: 16px;
  /* чтобы углы совпадали с инпутом */
}

/* Убираем внутреннюю рамку инпута внутри .iti, чтобы они не двоились */
.iti.invalid input {
  border: none !important;
}

/* Стилизация текста ошибки */
.error-msg {
  color: #ff4d4d;
  font-size: 12px;
  height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  display: block;
}

.error-msg.active {
  height: 18px;
  opacity: 1;
  margin-top: 5px;
}

/* HTML: <div class="loader"></div> */
.loader {
  display: none;
  width: 35px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #000000;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}

@keyframes l20-1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%)
  }

  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%)
  }

  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%)
  }

  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%)
  }

  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%)
  }

  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%)
  }

  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%)
  }
}

@keyframes l20-2 {
  0% {
    transform: scaleY(1) rotate(0deg)
  }

  49.99% {
    transform: scaleY(1) rotate(135deg)
  }

  50% {
    transform: scaleY(-1) rotate(0deg)
  }

  100% {
    transform: scaleY(-1) rotate(-135deg)
  }
}