/* === MERIT CALCULATOR (embedded widget) === */
.merit-calculator {
  background: white;
  padding: 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.calc-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-primary);
  padding: 6px;
  border-radius: var(--radius-md);
}

.calc-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: color 0.2s ease-out, background-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.calc-tab:hover {
  color: var(--medical-blue);
}

.calc-tab.active {
  background: white;
  color: var(--medical-blue);
  box-shadow: var(--shadow-sm);
}

.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 576px) {
  .calc-form-grid {
    grid-template-columns: 1fr;
  }
}

.calc-result {
  margin-top: 32px;
  padding: 24px;
  background: var(--sky-blue);
  border-radius: var(--radius-lg);
  display: none;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: center;
  animation: slideUp 0.3s ease;
}

.calc-result.visible {
  display: grid;
}

@media (max-width: 576px) {
  .calc-result.visible {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.result-label {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--medical-blue);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* Same weight as .result-main-card .result-score on the dedicated
   merit-calculator page (pages/merit-calculator.css) — this is the
   compact homepage-widget version of the same "your score" number, so
   it should differ in size, not in how bold it reads. */
.result-score {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--medical-blue);
  line-height: 1;
}

.result-eligibility {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-result .text-sm-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--medical-blue);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  background: var(--medical-blue);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}

.btn-submit:hover {
  background: var(--medical-blue-dark);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
