.form-wrapper-blue-top {
  position: absolute;
  border-radius: 15px 15px 0 0;
  top: 0;
  width: 100%;
  height: 100px;
  background: #0075FF;
  font-size: 28px;
  font-weight: 600;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 0 0 64px;
  z-index: 3;
}

.mobile_on_sv {
  display: none;
}
.mobile_off_sv {
  display: block;
}

.form-wrapper-survey-main-wrapper {
  flex-direction: column;
  justify-content: space-between;
  margin-top: 130px;
  padding: 0px 64px 64px 64px;
  height: calc(100% - 128px);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  display: none;
}

.form-wrapper-survey-main-wrapper-finish {
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 64px 64px 64px;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  display: none;
  background-image: url('../images/survey-video/background.png');
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 15px;
   z-index: 1;
}

.form-wrapper-survey-main-wrapper.show {
    display: flex;
    opacity: 1;
}

.form-wrapper-survey-main-wrapper-finish.show {
    display: flex;
    opacity: 1;
}

.survey-buttons {
  display: flex;
  align-items: center;
  gap: 42px;
}

.survey-button-prim {
    user-select: none;
    width: 270px; /* Ширина кнопки */
    height: 58px; /* Высота кнопки */
    background-color: #0075FF; /* Основной синий цвет */
    color: white; /* Цвет текста */
    border: none; /* Убираем рамку */
    border-radius: 8px; /* Скругление углов */
    padding: 14px 48px; /* Внутренние отступы */
    font-size: 18px; /* Размер текста */
    font-weight: 600; /* Полужирный текст */
    cursor: pointer; /* Курсор при наведении */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Состояние при наведении */
.survey-button-prim:hover {
    background-color: #005FCC; /* Темно-синий цвет при наведении */
}

/* Состояние при нажатии */
.survey-button-prim:active {
    background-color: #004BA0; /* Еще более темный синий при нажатии */
    transform: scale(0.98); /* Легкое уменьшение кнопки при нажатии */
}

#prevBtn {
  display: none;
  transition: all 0.3s;
} 

.survey-button-sec {
  user-select: none;
  background: transparent;
  font-size: 18px;
  font-weight: 500;
  color: #0075FF;
}

.survey-close {
  background: transparent;
  right: 64px;
  top: 32px;
}

.survey-close:hover {
  background: transparent;
}
.survey-close svg {
  fill: white;
}

.form-wrapper-survey-pb-container {
  display: flex;
  margin-bottom: 20px;
  gap: 40px;
  align-items: center;
}

.progress-bar-container {
    width: 100%;
    background-color: #f4f4f7;
    border-radius: 10px;
    overflow: hidden;
    height: 26px;
}

#progress-bar {
    height: 100%;
    background-color: #007bff;
    width: 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

#question-number {
    font-size: 20px;
    color: #007bff;
    text-align: right;
    white-space: nowrap;
}

.survey-page-container {
  padding-right: 5px;
  flex-direction: column;
  gap: 24px;
  height: calc(100% - 56px);
  overflow: auto;
  
  opacity: 0;
  transition: opacity 0.2s ease-in-out; /* Время совпадает с JavaScript */
  display: none;
}

.survey-page-container.show {
    display: flex;
    opacity: 1;
}

.survey-text-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.survey-page-text-header {
  font-size: 38px;
  font-weight: 600;
}

.survey-page-text {
  color: #686868;
  font-size: 18px;
  font-weight: 400;
}

.survey-images-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  
}

.survey-images-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.survey-image {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}

.survey-image img {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: border 0.3s ease;
  object-fit: cover;
}

.obj-fit-contain {
  object-fit: contain !important;
}

.survey-image p {
  font-size: 18px;
  color: #1d1d1d;
  text-align: left;
  transition: color 0.3s;
}

.survey-image.selected img{
  border: 2px solid #0075FF;
}

.survey-container-photo {
  display: flex;
  gap: 6px;
  align-items: center;
}

.survey-radio {
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  border: 2px solid #bdbdbd;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  background: transparent;
  position: relative;
}

.survey-radio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/icons/check.svg');
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.survey-container-ques-5.selected .survey-radio {
  background-color: #0075FF;
  border: 0px;
}

.survey-container-ques-5.selected .survey-radio::before {
  opacity: 1; /* Плавное появление изображения */
}

.survey-checkbox {
  min-width: 16px;
  min-height: 16px;
  max-width: 16px;
  max-height: 16px;
  border: 1.5px solid #b0b0b0;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.survey-image.selected .survey-checkbox {
  border: 5px solid #0075FF;
}

.survey-image.selected p {
  color: #0075FF;
}

.survey-container-ques-4, .survey-container-ques-5, .survey-container-ques-6, .survey-container-ques-7 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  cursor: pointer;
}

.survey-container-ques-4.selected .survey-checkbox {
  border: 5px solid #0075FF;
}

.survey-container-ques-4.selected p {
  color: #0075FF;
}

.survey-container-ques-6.selected .survey-checkbox {
  border: 5px solid #0075FF;
}

.survey-container-ques-6.selected p {
  color: #0075FF;
}

.survey-container-ques-7.selected .survey-checkbox {
  border: 5px solid #0075FF;
}

.survey-container-ques-7.selected p {
  color: #0075FF;
}

.survey_finish_block {
  margin-top: 130px;
  height: calc(100% - 78px);
  display: flex;
  justify-content: space-between;
}

.survey_finish_content {
  width: 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.survey_finish_img {
  width: 40%;
  height: 630px;
}

.survey_finish_header {
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1D1D1D;
}

.survey_finish_text {
  font-size: 18px;
  font-weight: 500;
  color: #686868;
}

.input_survey_container_finish {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.survey_finish_checkmark_container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 11px;
}

.survey_finish_checkmark_img {
  width: 20px;
  height: 20px;
}

.width_630px {
  width: 630px;
}

.textvideo_header {
  font-size: 45px;
  font-weight: 600;
  margin-bottom: 25px;
}

.textvideo_header_2 {
  font-size: 25px;
  font-weight: 700;
  margin: 28px 0;
}

.textvideo_text {
  font-size: 18px;
  margin-top: 10px;
}
@media (1140px >= width >= 1040px) {
  .textvideo_header {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
  }
}

@media (1700px >= width > 1140px) {
  .textvideo_header {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
  }
}

@media (width <= 1140px) {
  .textvideo_header {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 18px;
  }
  
  .textvideo_header_2 {
    font-size: 18px;
    font-weight: 700;
    margin: 12px 0;
  }
  
  .textvideo_text {
    font-size: 14px;
    margin-top: 0px;
  }
  .mobile_on_sv {
    display: block;
  }
  
  .mobile_off_sv {
    display: none;
  }

  .form-wrapper-blue-top {
    position: absolute;
    border-radius: 15px 15px 0 0;
    top: 0;
    width: 100%;
    height: 100px;
    background: #0075FF;
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    padding: 14px;
    z-index: 3;
  }
  
  .form-wrapper-blue-top-text {
    width: calc(100% - 40px);
  }
  
  .survey-close {
    background: transparent;
    right: 20px;
    top: 24px;
  }
  
  .form-wrapper-survey-main-wrapper {
     margin-top: 114px;
     padding: 0px 14px 14px 14px;
     height: calc(100% - 120px);
  }
   .form-wrapper-survey-main-wrapper-finish{
     padding: 0px 14px 14px 14px;
     height: calc(100% - 120px);
     background-image: none;
   }
  .progress-bar-container {
    height: 18px;
    border-radius: 20px;
  }
  
  .survey-buttons {
    display: flex;
    justify-content: space-between;
    gap: 18px
  }
  
  .survey-button-prim {
    width: 80%;
    font-size: 14px;;
  }
  
  .survey-button-sec {
    font-size: 14px;
  }
  
  .form-wrapper-survey-pb-container {
    gap: 10px;
    margin-bottom: 18px;
  }
  
  #question-number {
    font-size: 14px;
  }
  
  .survey-text-container {
    gap: 10px;
  }
  
  .survey-page-text-header, .survey_finish_header {
    font-size: 22px;
  }
  
  .survey-page-text, .survey_finish_text {
    font-size: 14px;
  }
  
  .survey-page-container {
    gap: 14px;
  }
  
  .survey-images-container {
    gap: 16px;
  }
  
  .survey-container-photo p {
    font-size: 14px;
  }
  
  .width_630px {
    width: 100%;
  }
  
  [class^="survey-container-ques"] {
    font-size: 14px;
  }
  
  .survey_finish_img {
    display: none;
  }
  
  .survey_finish_block {
    height: calc(100vh - 40px);
    margin-top: 114px;
  }
  
  .survey_finish_content {
    width: 100%;
    justify-content: flex-start;
  }
  
  .survey_finish_checkmark_container {
    font-size: 12px;
  }
  
  .survey_finish_checkmark_img {
    width: 16px;
    height: 16px;
  }
  
  .input_survey_container_finish {
   margin-top: 14px; 
  }

  
/* Состояние при наведении */
  .survey-button-prim:hover {
      background-color: #0075FF; /* Темно-синий цвет при наведении */
  }
}

@media (max-width: 1140px) {
  .survey-images-row {
    flex-wrap: wrap;
  }
  .survey-image {
    width: calc(50% - 8px); /* 2 элемента в строке */
  }
}

/* Стили для экранов шире 1140px: по четыре элемента в строке */
@media (min-width: 1140px) {
  .survey-images-row {
    flex-wrap: nowrap;
  }
  .survey-image {
    width: calc(25% - 12px); /* 4 элемента в строке */
  }
}