.animation-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 1);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 20px rgba(15, 118, 110, 0);
  }
  100% {
    transform: scale(0.9);
  }
}

.hero-figure {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 50rem;
  width: 100%;
  max-width: 45rem;
  border-radius: 1.5rem;
  background: #fff;
}

@media (min-width: 768px) {
  .hero-figure {
    height: 60rem;
    width: 45rem;
  }
}

.hero-figure__panel {
  display: none;
  flex: 1;
  flex-direction: column;
  height: 100%;
}

.hero-figure__panel.is-active {
  display: flex;
}

.hero-figure__preloader {
  margin: auto;
  position: relative;
  width: 8rem;
  height: 8rem;
}

.hero-figure__preloader svg {
  animation: spin 1s linear infinite;
  width: 100%;
  height: 100%;
  color: #0F766E;
}

.hero-figure__preloader img {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 6rem;
  height: 6rem;
}

.hero-figure__spinner {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin: auto;
}

.hero-figure__spinner i {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  border: 3px solid #0F766E;
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
}

.hero-figure__spinner i:first-child {
  animation: spinner-spin 0.8s ease infinite;
}

.hero-figure__spinner i:last-child {
  opacity: 0.75;
  animation: spinner-spin 0.8s linear infinite;
  border-style: dotted;
}

@keyframes spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-figure__input-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .hero-figure__input-wrap {
    height: 60vh;
  }
}

.hero-figure__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-figure__brand img {
  width: 3.5rem;
}

.hero-figure__brand span {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0F766E;
}

.hero-figure__search {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
}

.hero-figure__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.25rem;
  font-weight: 500;
  background: transparent;
  min-width: 0;
}

.hero-figure__search button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #0F766E;
  color: #fff;
  flex-shrink: 0;
}

.hero-figure__result {
  flex: 1;
  overflow: hidden;
  padding: 0.5rem 1rem 5rem;
}

.hero-figure__result svg {
  width: 100%;
  height: 100%;
}

.hero-figure__nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-top: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
}

.hero-figure__nav button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  color: #9ca3af;
}

.hero-figure__nav button.is-active {
  border-bottom: 2px solid #0F766E;
  color: #0F766E;
}

.hero-figure__nav button img {
  width: 3rem;
  height: 3rem;
}

.hero-figure__nav .placeholder {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: #e5e7eb;
}

.hero-rating {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .hero-rating {
    margin-top: 0;
    margin-bottom: 0;
  }
}

.hero-rating__avatars {
  display: flex;
}

.hero-rating__avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: 3px solid #e5e7eb;
  margin-left: -1rem;
  object-fit: cover;
}

.hero-rating__avatar:first-child {
  margin-left: 0;
}

.hero-rating__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: #0F766E;
}

.hero-rating__stars {
  display: flex;
  color: #facc15;
}

.hero-rating__stars svg {
  width: 1.75rem;
  height: 1.75rem;
}

#scroll-top {
  transform: translateX(10rem);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

#scroll-top.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.icon-arrow {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  margin-left: 0.25rem;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.how-much__wrap::before {
  background: radial-gradient(circle at 80% 90%, #99F6E4 0%, transparent 55%),
    linear-gradient(160deg, #ECFDF8 0%, #CCFBF1 100%);
}
