
  /* Модальное окно */
  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
  }
  /* Контейнер формы */
  .modal-content {
    background: #f9efee;
    width: 90%;
    max-width: 450px;
    padding: 15px;
    border-radius: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
  }
  /* Заголовок */
  h2 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #000;
  }
  /* Крестик закрытия */
  .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
  }
  /* Обертка формы */
  form {
    display: flex;
    flex-direction: column;
  }
  /* Поля и блоки */
  .field-group {
    margin-bottom: 15px;
  }
  label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
  }
  input[type=text],
  input[type=email],
  input[type=number] {
    width: -webkit-fill-available;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid #f75381;
    font-size: 14px;
    outline: none;
    background:#f9efee;
    transition: border-color 0.2s;
  }
  input[type=text]:focus,
  input[type=email]:focus,
  input[type=number]:focus,
  input[type=range]:focus {
    border-color: #f75381;
  }
input[type=text],
input[type=email],
input[type=number] {
  text-align: center;
}
/* Скрываем оригинальный чекбокс */
/* Скрываем стандартный чекбокс */
#consent {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #f75381;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: all 0.2s;
  display: inline-block;
  vertical-align: middle;
}

/* Добавляем галочку при выборе */
#consent:checked {
  background-color: #f75381;
}

#consent:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Можно добавить эффект при наведении */
#consent:hover {
  box-shadow: 0 0 5px rgba(247, 83, 129, 0.5);
}
  /* Расположение возраст и рост рядом */
  .flex-row {
    display: flex;
    gap: 20px;
  }
  /* Обертки для каждого поля */
  .half {
    flex: 1;
  }

  /* Ползунок с розовым кругом и округлыми стилями */
  input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 4px;
    outline: none;
    transition: background 0.3s;
  }
  /* Кнопка для кастомных ползунков */
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #f75381;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    transition: background 0.3s;
  }
  input[type=range]::-webkit-slider-thumb:hover {
    background: #d01756;
  }
  input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #f75381;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    transition: background 0.3s;
  }
  input[type=range]::-moz-range-thumb:hover {
    background: #d01756;
  }

  /* Текущее значение с текущей точкой */
  .range-value {
    text-align: center;
    font-weight: 600;
    margin-top: 5px;
  }

  /* Фото загрузка */
  .photos-section {
    margin-top: 10px;
  }
  .photos-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
  }
  .photos-btn {
    padding: 10px 15px;
    background-color: #f75381;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
  }
  #photos {
    display: none;
  }
  /* предпросмотр фото в ячейках */
  #photo-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
  }
  #photo-preview div {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Контейнер для миниатюр изображений и кнопки "+" */
  .image-upload-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .thumbnails {
    display: flex;
    gap: 8px;
  }
  .thumbnail {
    width: 50px;
    height: 60px;
    background-color: #f9efee;
    border: 2px solid #f75381;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    position: relative;
  }
  
  .add-button {
    width: 50px;
    height: 60px;
    background-color: #f9efee;
    border: 2px solid #f75381;
    border-radius: 8px;
    font-size: 36px;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
  }
  @media (max-width: 400px) {
  .image-upload-container {
    flex-direction: column; /* делаем колонкой, чтобы всё было вертикально */
    align-items: flex-start; /* по левому краю */
  }
  
  /* Можно установить максимальную ширину для thumbnails или сделать их в колонку */
  .thumbnails {
    flex-direction: row; /* или column, если хотите */
    flex-wrap: wrap;
  }
}

  /* крестик для удаления миниатюр */
  .delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
  }

  /* чекбокс */
  .checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 15px;
  }
  .checkbox-group input {
    margin-right: 8px;
  }
  /* кнопка отправки — выровнена по центру */
  .submit-btn {
    margin: 20px auto 0 auto; /* центрируем по горизонтали */
    display: block;
    padding: 12px;
    background: linear-gradient(90deg, #f75581 0%, #fe7e5b 70.19%, #fdab7c 100%);
    color: #fff;
    height: 3rem;
    width: 14.125rem;
    border: none;
    border-radius: 3rem;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
  }
  .submit-btn:hover {
    background: linear-gradient(90deg, #fdab7c 0%, #fe7e5b 29.81%, #f75581 100%);
  }
  /* сообщение о результате */
  #form-message {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
  }
  .circular-chart {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
  transform: rotate(-90deg);
}
.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 3.8;
}
.circle {
  fill: none;
  stroke: #f75581;
  stroke-width: 3.8;
  stroke-linecap: round;
  stroke-dasharray: 0, 100;
  transition: stroke-dasharray 0.3s ease;
}
.percentage {
  font-family: sans-serif;
  font-size: 0.8em;
  text-anchor: middle;
  fill: #333;
}
.progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: conic-gradient(#f75581 0deg, #ddd 0deg);
  /* Можно добавить прозрачность, если нужно */
  /* opacity: 0.7; */
}