/* BMI premium gauge CSS */

.boxed-card { background:#fff; border-radius:12px; box-shadow:0 6px 18px rgba(12,20,30,0.04); overflow:visible; }

/* Layout */
.result-row { display:grid; grid-template-columns: 1fr 460px; gap:22px; margin-top:20px; }
@media (max-width:980px) { .result-row { grid-template-columns: 1fr 400px; } }
@media (max-width:760px) { .result-row { grid-template-columns: 1fr; } }

/* Summary styling */
.summary-card .summary-value { font-size:44px; font-weight:800; margin:6px 0; color:#0f172a; }
.status-label { font-weight:700; color:#0a66c2; margin-bottom:8px; }
.result-metrics { margin-top:12px; display:grid; gap:8px; font-size:14px; color:#374151; }

/* Gauge container - fixed height so canvas never collapses */
.gauge-card { padding:18px 16px; display:flex; flex-direction:column; align-items:center; text-align:center; }
.gauge-wrapper { width:100%; max-width:420px; height:260px; position:relative; }

/* responsive tweak */
@media (max-width:760px) { .gauge-wrapper { max-width:340px; height:220px; margin:14px auto 0; } }

/* ensure canvas fills wrapper */
#gmiGauge, #bmiGauge { width:100% !important; height:100% !important; display:block; }

/* center text on gauge */
.gauge-center-text {
  position:absolute; top:52%; left:50%; transform:translate(-50%,-50%);
  font-size:22px; font-weight:800; color:#0f172a;
}

/* legend */
.gauge-legend { margin-top:12px; display:flex; gap:12px; justify-content:center; flex-wrap:wrap; font-size:13px; color:#374151; }
.legend-item { display:flex; gap:8px; align-items:center; }
.legend-item i { width:14px; height:12px; border-radius:3px; display:inline-block; }

/* FAQ small styles (keeps expand/collapse working) */
.faq .faq-item { margin-bottom:10px; }
.faq-question { width:100%; text-align:left; background:#fff; border:1px solid #eee; padding:12px 14px; border-radius:8px; font-weight:700; cursor:pointer; }
.faq-answer { padding:10px 14px; border-left:3px solid #0a66c2; background:#fff; display:none; margin-top:8px; border-radius:6px; color:#333; }


/* PREMIUM GAUGE LOOK */
.premium-gauge-card {
  padding-top: 26px;
  padding-bottom: 24px;
}

.gauge-wrapper {
  width: 100%;
  max-width: 440px;
  height: 260px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 768px) {
  .gauge-wrapper {
    max-width: 360px;
    height: 220px;
  }
}

/* BELOW-NEEDLE VALUE */
.gauge-bmi-display {
  margin-top: -10px;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  transition: color 0.4s ease;
}

/* LEGEND */
.gauge-legend {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-item i {
  width: 16px;
  height: 14px;
  border-radius: 3px;
}

/* Canvas crispness */
#bmiGauge {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Two-column result layout (Summary + Gauge) */
.results-grid-2col {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 10px;
    align-items: stretch;
    margin-top: 10px;
}

/* Responsive (stack vertically) */
@media (max-width: 900px) {
    .results-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   BMI Calculator – Input UX (Final)
========================================= */

/* ===== Horizontal Input Rows ===== */

.input-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.input-label strong {
  display: block;
  font-size: 15px;
}

.input-label .hint {
  font-size: 12px;
  color: var(--text-muted);
}

.unit-choice {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.row label {
  font-size: 13px;
}

.disabled {
  opacity: 0.45;
}

.disabled input {
  background: #f3f4f6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
  .input-row {
    grid-template-columns: 1fr;
  }

  .input-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .input-grid {
    grid-template-columns: 1fr;
  }
}
