:root {
  --bs-primary: #dc3545;
  --bs-primary-rgb: 220, 53, 69;
}


.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  background-color: var(--bs-primary) !important;
}

.list-group-item.active {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}


.form-check-input:checked {
  background-color: #d52a33 !important;
  border-color: #d52a33 !important;
}

.form-check-input:focus {
  border-color: #d52a33 !important;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(213, 42, 51, 0.25) !important;
}


.hero-calculator {
  padding: 3.5rem 0 2.5rem;
  background: #f5f6fa;
}

.hero-calculator .hero-img {
  max-height: 360px;
  width: 100%;
  object-fit: contain;
}

.hero-calculator .hero-calc-img {
  height: 600px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .hero-calculator .hero-calc-img {
    height: 320px;
  }
}


.calculator-page {
  padding: 2.5rem 0 4rem;
}

.calc-shell {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.calc-content {
  flex: 1 1 auto;
}

/* Sidebar */
.calc-sidebar {
  flex: 0 0 220px;
  background: #fff;
  border: 1px solid #e4e6ed;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 110px;
}

@media (max-width: 991.98px) {
  .calc-shell {
    flex-direction: column;
  }

  .calc-sidebar {
    position: static;
    width: 100%;
  }
}


.calc-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calc-heading {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.calc-note {
  font-size: .75rem;
  margin-top: 1rem;
  color: #6b7280;
}

.calc-bottom-note {
  font-size: .75rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

.calc-link {
  color: #c40621;
  font-weight: 600;
  text-decoration: none;
}

.calc-link:hover {
  text-decoration: underline;
}


.calc-tab {
  display: block;
  width: 100%;
  border: 1px solid #e4e6ed;
  background: #fff;
  border-radius: .75rem;
  padding: .6rem .8rem;
  text-align: left;
  font-weight: 500;
  margin-bottom: .6rem;
  transition: background-color .2s, color .2s;
}

.calc-tab.is-active {
  background: #c40621;
  color: #fff;
  border-color: #c40621;
}


.calc-group {
  background: #fff;
  border: 1px solid #e4e6ed;
  border-radius: .75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.calc-group-header {
  background: #fff;
  width: 100%;
  text-align: left;
  border: none;
  padding: .9rem 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.calc-group-header::after {
  content: "▾";
  font-size: .75rem;
  opacity: .6;
  transition: transform 0.25s ease;
}

.calc-group-header.open::after {
  transform: rotate(180deg);
}

.calc-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  background: #fafafa;
}

.calc-group-body ul {
  list-style: none;
  margin: 0;
  padding: .25rem 1.25rem 1rem;
}

.calc-group-body li {
  margin-top: .7rem;
}

.calc-group-body a {
  text-decoration: none;
  color: #c40621;
  font-weight: 500;
}


.calc-panel {
  display: none;
}

.calc-panel.is-active {
  display: block;
}

.calc-notices {
  padding: 0 0 3rem;
}

.calc-notice-box {
  background: #fffbea;
  border: 1px solid #f6dea9;
  border-radius: 1rem;
  padding: 1.5rem 1.5rem 1.25rem;
  line-height: 1.6;
  font-size: .9rem;
}

.calc-notice-box p {
  margin-bottom: .7rem;
}

.calc-notice-box ul {
  margin: .6rem 0 0 1.2rem;
}

.calc-notice-box li {
  margin-bottom: .4rem;
}

@media (max-width: 768px) {
  .calc-notice-box {
    border-radius: .75rem;
  }
}