/* AVanti+ homepage simulator refresh */
.hero-calculator-panel .calculator-shell {
  max-width: 390px;
  padding: 23px 20px 20px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  background: rgba(255, 253, 253, .98);
  box-shadow: 0 20px 48px rgba(27, 5, 7, .18);
}

#avantiCalculator { scroll-margin-top: 145px; }

.hero-calculator-panel .calculator-intro h2 {
  margin-bottom: 7px;
  color: #a91518;
  font-family: Sora, Manrope, sans-serif;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -.035em;
  text-transform: none;
}

.hero-calculator-panel .calculator-intro p {
  margin-bottom: 16px;
  color: #421c1d;
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 600;
}

.hero-calculator-panel .calculator-form { gap: 12px; }
.hero-calculator-panel .category-grid { gap: 10px; }

.hero-calculator-panel .category-card {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 5px;
  border: 1px solid #ead9d9;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
  color: #421c1d;
  box-shadow: 0 4px 12px rgba(66, 28, 29, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hero-calculator-panel .category-card:hover {
  transform: translateY(-2px);
  border-color: #d68a8b;
  background: #fff;
  color: #421c1d;
  box-shadow: 0 9px 18px rgba(66, 28, 29, .1);
}

.hero-calculator-panel .category-card.is-active {
  border-color: #be1b1e;
  background: linear-gradient(180deg, #fffafa 0%, #fff0f0 100%);
  color: #7d171a;
  box-shadow: inset 0 0 0 1px rgba(190, 27, 30, .18), 0 5px 14px rgba(190, 27, 30, .1);
}

.hero-calculator-panel .category-card:focus-visible {
  outline: 3px solid rgba(190, 27, 30, .35);
  outline-offset: 3px;
}

.hero-calculator-panel .category-card .choice-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid #f2dada;
  border-radius: 14px;
  background: #fff1f1;
  color: #b51b1f;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.hero-calculator-panel .category-card.is-active .choice-icon {
  border-color: #f0c4c5;
  background: #fce1e1;
  color: #9f1216;
}

.hero-calculator-panel .category-card .choice-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  stroke: none;
}

.hero-calculator-panel .category-card strong {
  color: inherit;
  font-size: .78rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.hero-calculator-panel .avanti-fa-credit {
  margin: 11px 0 0;
  color: #897779;
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.hero-calculator-panel .avanti-fa-credit a {
  color: #7d2b2b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .hero-calculator-panel .calculator-shell {
    padding: 20px 16px 17px;
    border-radius: 21px;
  }

  .hero-calculator-panel .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-calculator-panel .category-card {
    min-height: 96px;
    padding: 9px 3px;
    border-radius: 14px;
  }

  .hero-calculator-panel .category-card .choice-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .hero-calculator-panel .category-card strong { font-size: .73rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-calculator-panel .category-card { transition: none; }
}
