/* Themeable tokens */
:root {
  --mht-bg: #f7f7fa;
  --mht-card: #ffffff;
  --mht-border: #e6e6ef;
  --mht-primary: #2c2f66; /* dark indigo like screenshot */
  --mht-text: #1f2330;
  --mht-muted: #6b7280;
  --mht-radius: 16px;
  --mht-shadow: 0 8px 24px rgba(28, 28, 58, 0.08);
}

.mht-card {
  background: var(--mht-bg);
  border: 1px solid var(--mht-border);
  border-radius: var(--mht-radius);
  padding: 24px;
  box-shadow: var(--mht-shadow);
  margin: 18px 0;
}

.mht-head {
  /* font-weight: 700;
  font-size: 22px; */
  color: var(--mht-text);
  margin-bottom: 18px;
}

.mht-label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--mht-text);
}

.mht-help {
  font-size: 12px;
  color: var(--mht-muted);
  margin-top: 6px;
}

.mht-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.mht-input {
  width: 100%;
  border: 1px solid var(--mht-border);
  background: #efeff3;
  border-radius: 10px;
  padding: 12px 44px 12px 14px;
  font-size: 16px;
  outline: none;
}

/* Due Date Calculator Input */
.ddc-input {
  width: 80%;
  border: 1px solid var(--mht-border);
  background: #efeff3;
  border-radius: 10px;
  padding: 12px 12px 12px 12px;
  font-size: 16px;
  outline: none;
}
/* Due Date Calculator Ultrasound Scan */
.ddc-us-input {
  border: 1px solid var(--mht-border) !important;
  background: #efeff3;
  border-radius: 10px !important;
  padding: 12px 12px 12px 12px !important;
  font-size: 14px;
  outline: none;
}
.mht-input-addon {
  position: absolute;
  right: 10px;
  font-weight: 600;
  color: #6b6e8a;
}

.mht-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mht-btn {
  background: var(--mht-primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(44, 47, 102, 0.18);
}
.mht-btn:hover {
  opacity: 0.95;
}
.mht-btn-ghost {
  background: transparent;
  color: var(--mht-primary);
  border: 1px solid var(--mht-primary);
  box-shadow: none;
}

.mht-row {
  /* display: flex; */
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--mht-border);
}
.mht-row:last-child {
  border-bottom: 0;
}

.mht-row-q {
  flex: 1 1 auto;
  color: var(--mht-text);
}
.mht-select {
  flex: 0 0 280px;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mht-border);
  border-radius: 10px;
  background: #fff;
}

/* BMI Layout (screenshot style) */
.mht-bmi-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

@media (max-width: 768px) {
  .mht-bmi-grid {
    grid-template-columns: 1fr;
  }
}

.mht-result-box {
  background: var(--mht-primary);
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  margin-top: 20px;
}
.mht-bmi-title,
.mht-result {
  font-weight: 800;
  font-size: 18px;
  opacity: 0.95;
}
.mht-bmi-value {
  font-weight: 800;
  font-size: 42px;
  line-height: 1.1;
  margin-top: 6px;
}
.mht-bmi-chip,
.severity {
  margin-top: 8px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 12px;
}
.mht-bmi-underweight {
  background: #f59e0b;
  color: #fff;
}
.mht-bmi-overweight {
  background: #f59e0b;
  color: #fff;
}
.mht-bmi-obese {
  background: #ef4444;
  color: #fff;
}


/* ==== BMI CALCULATOR STYLES ==== */

.mht-bmi-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mht-bmi-wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.mht-bmi-group {
    margin-bottom: 15px;
}

.mht-bmi-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.mht-bmi-group input,
.mht-bmi-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.mht-bmi-error {
    color: red;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

#mht-bmi-result-box {
    display: none;
    margin-top: 25px;
    padding: 18px;
    border-radius: 12px;
    background: #f7f9fc;
    text-align: center;
}

#mht-bmi-result-box p {
    margin: 5px 0;
    font-size: 16px;
    font-weight: 500;
}
