/* Основные стили для калькулятора */
.hero-form {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 0 auto;
}

.hero-form .form-control {
  margin-bottom: 30px;
}

.hero-form select[name="type"]:focus {
  outline: none;
  box-shadow: 0 0 5px #ffcc00;
}

.hero-form .form-control-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.hero-form .m-big {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

.hero-form input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #FDD900;
  border-radius: 5px;
  outline: none;
}

.hero-form input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

.hero-form input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

.hero-form .l-line {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-form .t-center {
  text-align: center;
}

.hero-form .btn {
  padding: 14px 30px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

.hero-form .btn.m-yellow {
  background-color: #FDD900;
  color: #000;
}

.hero-form .btn.m-green {
  background-color: #FDD900;
  color: #fff;
}

#guard-image {
  max-width: 300px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 35px;
}

.form-control.m-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 60px; /* отступ от нижней границы блока */
  
}


.btn.m-yellow.blocky {
  width: auto;
  padding: 16px 148px;
}

.hero-form {
  padding-bottom: 60px;
  position: relative;
}


/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
  .hero-form {
    padding: 20px;
  }

  .hero-form .form-step > div {
    flex-direction: column !important;
    align-items: center !important;
  }

  .hero-form select,
  .hero-form input[type="range"] {
    width: 100% !important;
  }

  #guard-image {
    max-width: 80vw !important;
    height: auto !important;
    margin-top: 20px !important;
  }

  .form-control.m-format .l-line {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .btn.blocky {
    width: 100% !important;
  }

 

}
* Изоляция кнопки — сброс всех стилей и задание нужных */
.calc-isolated-button * {
  all: unset; /* Полный сброс всех стилей */
  box-sizing: border-box;
}

.calc-isolated-button button {
  all: unset;
  box-sizing: border-box;
  display: inline-block;
  padding: 12px 20px;
  background-color: #ffcc00;
  color: #000;
  border-radius: 4px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.calc-isolated-button button:hover {
  background-color: #e60017;
}

.calc-isolated-button span {
  all: unset;
}

@media (max-width: 768px) {
  .calc-isolated-button button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: center;
    display: block;
  }
}
@keyframes pulse-blob {
  0% {
    transform: scale(1);
    border-radius: 50% 50% 48% 52% / 50% 52% 48% 50%;
  }
  33% {
    transform: scale(1.05);
    border-radius: 52% 48% 50% 50% / 48% 50% 52% 50%;
  }
  66% {
    transform: scale(0.98);
    border-radius: 50% 52% 48% 50% / 52% 50% 50% 48%;
  }
  100% {
    transform: scale(1);
    border-radius: 50% 50% 48% 52% / 50% 52% 48% 50%;
  }
}

.calc-isolated-button button {
  all: unset;
  box-sizing: border-box;
  display: inline-block;
  padding: 12px 20px;
  background-color: #ffcc00;
  color: #000;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  animation: pulse-blob 3s infinite ease-in-out;
}