/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.1
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/*** FOR CALCULATOR ***/
<style>
.calc-wrapper {
  margin: 0 auto;
}

.calc-group {
  margin-bottom: 35px;
}

.calc-group h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Стилизация радиокнопок */
.calc-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 2px;
  position: relative;
  padding-left: 32px;
  user-select: none;
}

/* Скрываем стандартный радио-инпут браузера */
.calc-group label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Создаем кастомный круглый радио-инпут */
.calc-group label .radio-custom {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid #b2c2bc;
  border-radius: 50%;
  background-color: #fff;
  transition: all 0.2s ease;
  display: inline-block;
}

/* Эффект при наведении */
.calc-group label:hover .radio-custom {
  border-color: #143C29;
}

/* Внутренняя точка (по умолчанию скрыта, масштабированием в ноль) */
.calc-group label .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #143C29;
  transition: transform 0.2s ease;
}

/* Когда радиокнопка выбрана */
.calc-group label input[type="radio"]:checked ~ .radio-custom {
  border-color: #143C29;
}

/* Показываем точку при выборе */
.calc-group label input[type="radio"]:checked ~ .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

/* Блок результата (скрыт по умолчанию) */
.calc-result-box {
  display: none; 
  align-items: center;
  background: #205c46;
  border: 1px solid #205c46;
  padding: 30px;
  margin-top: 40px;
}

.result-circle {
  width: 80px;
  height: 80px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
  margin-right: 25px;
}

.result-content p {
 color: #f1ece4;
}

.result-content a {
  text-decoration: underline;
  font-weight: 500;
	color: #f1ece4;
}

.result-content a:hover {
  color: #8d4f38;
}
</style>