/* BMI Calculator – live t8e / r8e / i7e parity */

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

.bmi-container {
  background: linear-gradient(180deg, #2d587b, #52a1e1) !important;
  color: #fff;
  border-radius: 12px !important;
  padding: 2.5rem !important;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: none !important;
}
.bmi-container label,
.bmi-container .form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #fff !important;
  font-family: var(--base-font);
}
.bmi-container .form-control {
  height: 50px;
  padding: 10px 15px;
  font-size: 1.05rem;
  background-color: #1d3e58 !important;
  border: none !important;
  color: #fff !important;
  font-weight: 500;
  border-radius: 10px !important;
}
.bmi-container .form-control::placeholder {
  color: #c7d5e0;
}
.bmi-container .form-control:focus {
  box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .15);
  background-color: #1d3e58 !important;
  color: #fff !important;
}

.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;
}

.calc-button {
  background-color: #fff;
  color: #2d587b;
  font-weight: 700;
  padding: 12px 36px !important;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  font-family: var(--base-font);
  cursor: pointer;
}
.calc-button:hover {
  background-color: #d3e6f7;
  color: #1b3c5a;
}

.bmi-result {
  background-color: #e0f4ff !important;
  border: none !important;
  color: #000;
  font-weight: 500;
  margin-top: 0 !important;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 1rem;
}
.bmi-result ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}
.bmi-result ul li {
  margin-bottom: 6px;
}
.bmi-result .text-danger {
  color: #dc3545 !important;
}

.bmi-gauge {
  margin-bottom: .5rem;
}
.bmi-gauge svg {
  max-width: 100%;
  height: auto;
}

.bmi-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;
}
.bmi-page .content-heading-para {
  font-family: var(--base-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #6f6f6f;
  margin-bottom: 1rem;
}
.bmi-page .bmi-content-list {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.bmi-page .bmi-content-list li {
  font-family: var(--base-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #6f6f6f;
}

.bmi-page .calc_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--base-font);
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(2, 6, 23, .06);
  box-shadow: 0 6px 18px #02061714, 0 2px 6px #0206170a;
  background: #fff;
}
.bmi-page .calc_table thead tr {
  background: linear-gradient(180deg, #2d587b, #52a1e1);
}
.bmi-page .calc_table thead th {
  background: transparent !important;
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  border: 0;
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
}
.bmi-page .calc_table thead th + th {
  box-shadow: inset 1px 0 #ffffff2e;
  text-align: center;
}
.bmi-page .calc_table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  color: #111827;
  vertical-align: middle;
  background: #fff;
  font-size: 15px;
}
.bmi-page .calc_table tbody td + td {
  border-left: 1px solid #ddd;
  text-align: center;
}
.bmi-page .calc_table tbody tr:nth-child(2n) td {
  background-color: #f9f9f9;
}
.bmi-page .calc_table tbody tr:hover td {
  background-color: #e6f2ff;
}
.bmi-page .calc_table tbody tr:last-child td {
  border-bottom: 0;
}

.bmi-chart-btn button {
  background-color: #fff;
  border: 2px solid #2d587b8a;
  color: #2d587b;
  font-weight: 700;
  padding: 12px 36px !important;
  font-size: 1rem;
  border-radius: 8px;
  font-family: var(--base-font);
  cursor: pointer;
}
.bmi-chart-btn a {
  text-decoration: none;
}
.download-pfd-icon-bmi {
  width: 24px;
  height: 24px;
}

.bmi-formula h5,
.ponderal-formula h5 {
  font-weight: 700;
  color: #121212;
}
.bmi-formula p,
.ponderal-formula p {
  font-family: var(--base-font);
  font-size: 18px;
  line-height: 28px;
  color: #121212;
}

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