/* Body Fat Calculator – live c8e / l8e parity */

body:has(.bodyfat-page) {
  background: #f3faff;
}
body:has(.bodyfat-page) .navbar-pc {
  background: #f3faff !important;
  box-shadow: none !important;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.bodyfat-page {
  background: #f3faff;
}
.bodyfat-page .bodyfat-hero {
  background: #f3faff !important;
  margin: 0 !important;
  padding-top: 3rem !important;
  padding-bottom: 1.5rem !important;
  overflow: hidden;
  display: flow-root;
}
.bodyfat-page .bodyfat-lower {
  background: #fff;
  width: 100%;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.bfc-container {
  background: linear-gradient(180deg, #2d587b, #52a1e1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 12px 24px #00000040;
  font-family: Segoe UI, sans-serif;
  margin: auto;
  color: #fff;
}
.bfc-container h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.bfc-container label,
.bfc-container .form-label {
  display: block;
  font-weight: 500;
  margin-bottom: .5rem;
  font-size: 1rem;
  color: #fff;
}
.bfc-container .form-control {
  background-color: #254f73;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: .95rem;
  transition: all .2s ease;
}
.bfc-container .form-control::placeholder {
  color: #aac5de;
}
.bfc-container .form-control:focus {
  border: 1px solid #fff;
  box-shadow: 0 0 0 2px #fff6;
  background-color: #254f73;
  color: #fff;
}
.bfc-container .btn-primary {
  background: #fff;
  color: #2d587b;
  border: none;
  font-weight: 700;
  padding: .8rem 2rem;
  border-radius: 12px;
  transition: all .3s ease-in-out;
  margin-top: 1rem;
}
.bfc-container .btn-primary:hover {
  background: #dbeeff;
  color: #0e2f4b;
}
.bfc-toggle {
  background-color: #ffffff1a !important;
  color: #fff !important;
  border-radius: 12px !important;
  margin-right: 10px;
  font-weight: 500;
  padding: .5rem 1.5rem !important;
  transition: .3s ease;
  border: 1px solid transparent !important;
}
input[type="radio"].btn-check:checked + .bfc-toggle {
  background-color: #fff !important;
  color: #2d587b !important;
  font-weight: 600;
}

.bodyfat-page .bmi-result {
  background-color: #e0f4ff !important;
  border: none !important;
  color: #000;
  font-weight: 500;
  border-radius: 12px;
}
.bodyfat-page .bmi-result .text-success {
  color: #198754 !important;
}
.bodyfat-page .bmi-result p {
  margin-bottom: .8rem;
  color: #000;
}
.bodyfat-page .bmi-result strong {
  color: #000;
}

.bodyfat-page .content-heading-text {
  font-family: var(--base-font);
  font-weight: 500;
  font-size: 38px;
  line-height: 48px;
  color: #121212;
  letter-spacing: .2px;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.bodyfat-page .content-heading-para {
  font-family: var(--base-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #6f6f6f;
  margin-bottom: 1rem;
}
.bodyfat-page .bmi-content-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.bodyfat-page .bmi-content-list li {
  font-family: var(--base-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #6f6f6f;
}
.bodyfat-page .bfp-formulas-container {
  width: 100%;
  overflow: hidden;
}
.bodyfat-page .calc_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--base-font);
  box-shadow: 0 2px 10px #0000001a;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
}
.bodyfat-page .calc_table thead th {
  background: linear-gradient(180deg, #2d587b, #52a1e1);
  color: #fff;
  text-align: left;
  padding: 12px;
  font-weight: 700;
  border-right: 1px solid #ffffff33;
}
.bodyfat-page .calc_table thead th:last-child {
  text-align: center;
  border-right: none;
}
.bodyfat-page .calc_table tbody td {
  padding: 12px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  vertical-align: middle;
}
.bodyfat-page .calc_table tbody td + td {
  border-left: 1px solid #ddd;
  text-align: center;
}
.bodyfat-page .calc_table tbody tr:nth-child(2n) td {
  background-color: #f9f9f9;
}
.bodyfat-page .calc_table tbody tr:hover td {
  background-color: #e6f2ff;
}

@media (max-width: 768px) {
  .bfc-container {
    padding: 1.5rem;
  }
  .bodyfat-page .content-heading-text {
    font-size: 28px;
    line-height: 34px;
  }
  .bfc-toggle {
    padding: .45rem 1rem !important;
    margin-right: 6px;
  }
}
