


.modal-block_title{
    text-align: center;
    margin-bottom: 20px;
}
.modal-block_title{
    font-size: 54px;
    color: #BB080B;
}
.place-adress_title{
    color: #BB080B;
    font-size: 32px;
}

.block-closed svg path{
  stroke: #BB080B;
}
.modal-block .button-green{
    font-size: 20px;
}
.input-block_title{
    font-size: 20px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    color: #333;
}
.input-block input{
    padding: 8px 15px;
    background: none;
    border: 1px solid #BB080B;
    border-radius: 8px;
    width: 96.5%;
    font-size: 20px;
}



/* Контейнер для выравнивания */
  .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: sans-serif;
  }

  /* 1. Скрываем стандартный input */
  .custom-radio-input {
    display: none;
  }

  /* 2. Стилизуем Label (внешний вид кнопки) */
  .custom-radio-label {
    position: relative;
    cursor: pointer;
    padding-left: 35px; /* Место под кружок слева */
    line-height: 24px;
    user-select: none;
    color: #333;
    letter-spacing: 2px;
  }

  /* 3. Создаем пустой круг (::before) */
  .custom-radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: none;
    transition: all 0.3s ease;
  }

  

  /* 4. Создаем точку внутри (::after) - скрыта по умолчанию */
  .custom-radio-label::after {
    content: '';
    position: absolute;
    left: 5px; /* Центрируем внутри круга */
    top: 50%;
    transform: translateY(-50%) scale(0); /* scale(0) скрывает точку */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #BB080B; /* Цвет выбранной точки */
    transition: all 0.3s ease;
  }

  /* 5. Состояние HOVER (наведение) */
  .custom-radio-label:hover::before {
    border-color: #BB080B;
  }

  /* 6. Состояние CHECKED (выбрано) */
  /* Меняем цвет рамки внешнего круга */
  .custom-radio-input:checked + .custom-radio-label::before {
    border-color: #BB080B;
  }

  /* Показываем внутреннюю точку (scale(1)) */
  .custom-radio-input:checked + .custom-radio-label::after {
    transform: translateY(-50%) scale(1);
  }

  .custom-radio-label{
    font-size: 20px;
    color: #333;
  }

  .radio-group_title{
    font-size: 20px;
    color: #333;
    letter-spacing: 2px;
  }

  .radio-group_subtitle{
    font-size: 16px;
    color: #BB080B;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }






  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* 1. Скрываем стандартный чекбокс */
  .custom-checkbox-input {
    display: none;
  }

  /* 2. Стилизуем Label */
  .custom-checkbox-label {
    position: relative;
    cursor: pointer;
    padding-left: 35px;
    line-height: 24px;
    user-select: none;
    color: #333;
    font-size: 20px;
  }

  /* 3. Рисуем квадрат (::before) */
  .custom-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px; /* Скругленные углы */
    background: none;
    transition: all 0.2s ease;
  }

  /* 4. Рисуем галочку (::after) */
  .custom-checkbox-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 40%;
    transform: translateY(-50%) rotate(45deg) scale(0);
    width: 7px;
    height: 14px;
    border: solid #BB080B; /* Цвет галочки */
    border-width: 0 2px 2px 0; /* Рисуем только правый и нижний бордер */
    transition: all 0.2s ease;
  }

  /* 5. Ховер эффект */
  .custom-checkbox-label:hover::before {
    border-color: #BB080B;
  }

  /* 6. Состояние CHECKED (выбрано) */
  .custom-checkbox-input:checked + .custom-checkbox-label::before {
    background: none; /* Синий фон квадрата */
    border-color: #BB080B;
  }

  /* Показываем галочку */
  .custom-checkbox-input:checked + .custom-checkbox-label::after {
    transform: translateY(-50%) rotate(45deg) scale(1);
  }

  .checkbox-group_title{
    font-size: 20px;
    color: #333;
  }

  .group-checkbox{
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .group-checkbox_wrapper{
    display: flex;
    gap: 20px;
  }


  .contact-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
  }





  /* Скрываем модалку по умолчанию */
.modal-block {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 18px;
    background: #FDFFF5;
    padding: 40px;
}

/* Показываем модалку когда есть класс show */
.modal-block.show {
    display: block;
    animation: modalAppear 0.3s ease;
}

/* Фон */
.bckground-modal-block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.bckground-modal-block.show {
    opacity: 1;
    visibility: visible;
}

/* Анимация */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Крестик */
.block-closed {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}



/* Контейнер для контента с прокруткой */
.modal-content-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 20px;
    
    /* Стилизация скролла (по желанию) */
    scrollbar-width: thin;
    scrollbar-color: #BB080B #FDFFF5;
}

.modal-content-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-content-scroll::-webkit-scrollbar-track {
    background: #FDFFF5;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
    background-color: #BB080B;
    border-radius: 20px;
}


.modal-block_map iframe {
    width: 100%;
    height: 460px;
    max-width: 100%;
    border-radius: 12px;
    
   box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.2);
}

.modal-block .place-adress_text{
    margin-top: 20px;
}

.mobile-block{
    display: none;
}

.bck-envelope{
    min-height: 100vh;
    min-width: 100vw;
    background-size: 100% 100%;
    background: url(../img/pic/bck_env.webp) no-repeat center center/cover;
   

    position: fixed;
    top: 0;
    z-index: 10000;
}

.envelope-block_svg{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
}

.envelope-block_svg svg{
    width: 670px;
    height: 670px;
    
}

.envelope-bloc_text{
    font-size: 42px;
    text-align: center;
    max-width: 470px;
    transform: rotate(-24deg);

    position: absolute;
    top: 74%;
    left: 55%;
    transform: translate(-38%, -64%) rotate(-24deg);
    color: #445844;
}

.bck-envelope_info_text {
    color: #FDFFF5;
    font-size: 32px;
    letter-spacing: 20.71px;
    
    /* Центрирование */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 120px; /* отступ от нижнего края, подбери под свой дизайн */

    line-height: 48px;
    
    /* Для текста */
    text-align: center;
}

.confirmed-modal_anketa .modal-block_title{
    margin-bottom: 0;
}

.place-adress_subtitle{
  font-size: 18px;
  letter-spacing: 2px;
  color: #333;
}

@media screen and (max-width:913px){
   .modal-block_title{
        font-size:32px;
        margin-bottom: 20px;
    }

    .input-block_title{
        font-size: 20px;
    }

    .input-block input{
        font-size: 18px;
    }
    .radio-group_title{
        font-size: 20px;
    }

    .custom-radio-label{
        font-size: 18px;
    }
    .modal-content-scroll{
        padding-right: 0px;
    }

    .custom-checkbox-label{
        font-size: 18px;
    }
    .group-checkbox_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
    }

    .input-block input {
    width: 94.5%;
    }
    .modal-block .button-green.czB{
        width: 98.8%;
    }

    .modal-block .block-closed svg{
        width: 36px;
        height: 36px;
    }

    .input-block input{
        padding: 8px 0px 8px 15px;
    }

    .modal-block{
        max-width: 90%;
        width: 100%;
        padding: 40px 15px 15px 15px;
    }
    .block-closed{
    top: 10px;
    right: 10px;
    }

    .contact-form{
        gap: 10px;
    }

    .custom-radio-label.more-people::before{
    top: 50%;
  }

      .envelope-block_svg svg {
        width: 330px;
        height: 330px;
    }

    .envelope-bloc_text{
        font-size: 21px;
    }

    .bck-envelope_info_text{
        font-size: 20px;
        letter-spacing: 16.71px;
        bottom: 90px;

        line-height: 30px;
    }

    .custom-radio-label.more-people::after{
        top: 50%;
    }
}