/* Стили форм */

/* Общие стили для всех полей */
.vavilen-form input[type="text"],
.vavilen-form input[type="email"],
.vavilen-form input[type="tel"],
.vavilen-form input[type="password"],
.vavilen-form input[type="number"],
.vavilen-form select,
.vavilen-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border 0.3s;
  box-sizing: border-box;
  background: #fff;
}

/* Фокус-эффект */
.vavilen-form input:focus,
.vavilen-form select:focus,
.vavilen-form textarea:focus {
  border-color: #4285f4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Стилизация селекта */
.vavilen-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

/* Стилизация textarea */
.vavilen-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Скрываем стандартные чекбоксы */
.vavilen-form input[type="checkbox"],
.vavilen-form input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Стилизация кастомного чекбокса */
.vavilen-form .checkbox-label,
.vavilen-form .radio-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 10px;
}

/* Галочка (до выбора) */
.vavilen-form .checkbox-label:before,
.vavilen-form .radio-label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 3px;
}

/* Галочка (после выбора) */
.vavilen-form input[type="checkbox"]:checked + .checkbox-label:before {
  background: #4285f4;
  border-color: #4285f4;
}

.vavilen-form input[type="checkbox"]:checked + .checkbox-label:after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 0;
  color: white;
  font-size: 14px;
}

/* Радио-кнопки (круглые) */
.vavilen-form .radio-label:before {
  border-radius: 50%;
}

.vavilen-form input[type="radio"]:checked + .radio-label:before {
  background: #4285f4;
  border-color: #4285f4;
}

.vavilen-form input[type="radio"]:checked + .radio-label:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}