/* Trupoint Health — Test Recommender page template */
:root {
  --tpt-rec-navy: #0B1F3A;
  --tpt-rec-blue: #1F4ED8;
  --tpt-rec-blue-deep: #1A44C0;
  --tpt-rec-teal: #0E8F7A;
  --tpt-rec-teal-soft: #E6F4F0;
  --tpt-rec-red: #D32B2B;
  --tpt-rec-red-soft: #FBE9E9;
  --tpt-rec-bg: #F7F9FC;
  --tpt-rec-white: #FFFFFF;
  --tpt-rec-border: #E5E7EB;
  --tpt-rec-text: #111827;
  --tpt-rec-muted: #6B7280;
  --tpt-rec-info: #EFF6FF;
  --tpt-rec-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  --tpt-rec-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.tpt-recommender-page,
.tpt-recommender-page * {
  box-sizing: border-box;
}

.tpt-recommender-page {
  background: var(--tpt-rec-bg);
  color: var(--tpt-rec-text);
  font-family: var(--tpt-rec-font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.tpt-rec-shell {
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 24px;
}

.tpt-rec-topbar {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--tpt-rec-border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.tpt-rec-topbar__inner {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1140px;
  padding: 14px 24px;
}

.tpt-rec-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 10px;
  text-decoration: none;
}

.tpt-rec-brand__logo {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.tpt-rec-brand__logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.tpt-rec-brand__text {
  color: var(--tpt-rec-navy);
  font-size: 15px;
  font-weight: 700;
}

.tpt-rec-brand__text span {
  color: var(--tpt-rec-muted);
  font-size: 13px;
  font-weight: 500;
  margin-left: 6px;
}

.tpt-rec-topnav {
  display: flex;
  gap: 4px;
}

.tpt-rec-topnav a {
  border-radius: 8px;
  color: var(--tpt-rec-text);
  font-size: 13px;
  padding: 6px 12px;
  text-decoration: none;
}

.tpt-rec-topnav a:hover {
  background: var(--tpt-rec-bg);
}

.tpt-rec-topnav a.is-active {
  background: var(--tpt-rec-blue);
  color: #fff;
}

.tpt-rec-hero {
  padding: 32px 0 24px;
}

.tpt-rec-eyebrow {
  align-items: center;
  color: var(--tpt-rec-teal);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tpt-rec-eyebrow span {
  background: var(--tpt-rec-teal);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.tpt-rec-hero h1 {
  color: var(--tpt-rec-navy);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 6px;
  max-width: 620px;
}

.tpt-rec-hero p {
  color: var(--tpt-rec-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  max-width: 580px;
}

.tpt-rec-app {
  padding-bottom: 80px;
}

.tpt-rec-stepper {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 0 24px;
  max-width: 720px;
  padding: 0;
}

.tpt-rec-stepper li {
  align-items: center;
  color: var(--tpt-rec-muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 10px;
}

.tpt-rec-stepper li.is-active,
.tpt-rec-stepper li.is-done {
  color: var(--tpt-rec-navy);
}

.tpt-rec-stepper__circle {
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--tpt-rec-border);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.tpt-rec-stepper li.is-active .tpt-rec-stepper__circle {
  background: var(--tpt-rec-blue);
  border-color: var(--tpt-rec-blue);
  box-shadow: 0 0 0 4px rgba(31, 78, 216, 0.12);
  color: #fff;
}

.tpt-rec-stepper li.is-done .tpt-rec-stepper__circle {
  background: var(--tpt-rec-teal);
  border-color: var(--tpt-rec-teal);
  color: #fff;
}

.tpt-rec-card,
.tpt-rec-results-summary,
.tpt-rec-disclaimer-card {
  background: #fff;
  border: 1px solid var(--tpt-rec-border);
  border-radius: 16px;
  box-shadow: var(--tpt-rec-shadow);
}

.tpt-rec-card {
  padding: 28px;
}

.tpt-rec-card__head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tpt-rec-card h2 {
  color: var(--tpt-rec-navy);
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.tpt-rec-card p {
  color: var(--tpt-rec-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.tpt-rec-private {
  color: var(--tpt-rec-muted);
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

.tpt-rec-step {
  display: none;
}

.tpt-rec-step.is-active {
  animation: tptRecSlideUp 240ms ease-out both;
  display: block;
}

.tpt-rec-demo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.tpt-rec-field {
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tpt-rec-field > span,
.tpt-rec-field legend {
  color: var(--tpt-rec-text);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
}

.tpt-rec-field small {
  color: var(--tpt-rec-muted);
  font-size: 12px;
}

.tpt-rec-age {
  align-items: center;
  display: flex;
  gap: 12px;
}

.tpt-rec-age input[type="number"] {
  border: 1px solid var(--tpt-rec-border);
  border-radius: 8px;
  color: var(--tpt-rec-navy);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 12px;
  text-align: center;
  width: 88px;
}

.tpt-rec-age input[type="range"] {
  accent-color: var(--tpt-rec-blue);
  flex: 1;
}

.tpt-rec-sex-toggle {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.tpt-rec-sex-toggle button,
.tpt-rec-btn,
.tpt-rec-selected-summary button,
.tpt-rec-disclaimer-card button,
.tpt-rec-chip,
.tpt-rec-expand {
  cursor: pointer;
  font: inherit;
}

.tpt-rec-sex-toggle button {
  background: #fff;
  border: 1px solid var(--tpt-rec-border);
  border-radius: 10px;
  color: var(--tpt-rec-text);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 12px;
}

.tpt-rec-sex-toggle button.is-selected {
  background: var(--tpt-rec-info);
  border-color: var(--tpt-rec-blue);
  color: var(--tpt-rec-blue);
}

.tpt-rec-disclaimer {
  background: var(--tpt-rec-bg);
  border: 1px solid var(--tpt-rec-border);
  border-radius: 12px;
  margin-top: 22px;
  padding: 16px;
}

.tpt-rec-disclaimer strong {
  color: var(--tpt-rec-navy);
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.tpt-rec-disclaimer p {
  color: var(--tpt-rec-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

.tpt-rec-step-footer {
  align-items: center;
  border-top: 1px solid var(--tpt-rec-border);
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
}

.tpt-rec-step-footer span {
  color: var(--tpt-rec-muted);
  font-size: 13px;
}

.tpt-rec-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 10px 18px;
  text-decoration: none;
}

.tpt-rec-btn--primary {
  background: var(--tpt-rec-blue);
  color: #fff;
}

.tpt-rec-btn--primary:hover {
  background: var(--tpt-rec-blue-deep);
  color: #fff;
}

.tpt-rec-btn--secondary {
  background: #fff;
  border-color: var(--tpt-rec-border);
  color: var(--tpt-rec-text);
}

.tpt-rec-btn--ghost {
  background: transparent;
  color: var(--tpt-rec-muted);
}

.tpt-rec-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.tpt-rec-search {
  display: block;
  margin-bottom: 20px;
}

.tpt-rec-search input {
  background: var(--tpt-rec-bg);
  border: 1px solid var(--tpt-rec-border);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  width: 100%;
}

.tpt-rec-search input:focus,
.tpt-rec-age input[type="number"]:focus {
  border-color: var(--tpt-rec-blue);
  box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.12);
  outline: none;
}

.tpt-rec-sym-group {
  margin-bottom: 22px;
}

.tpt-rec-sym-group__head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tpt-rec-sym-group__head strong {
  color: var(--tpt-rec-navy);
  font-size: 13px;
}

.tpt-rec-sym-group__head span {
  color: var(--tpt-rec-muted);
  font-size: 11px;
}

.tpt-rec-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tpt-rec-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tpt-rec-border);
  border-radius: 999px;
  color: var(--tpt-rec-text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  transition: all 120ms ease;
}

.tpt-rec-chip:hover {
  border-color: var(--tpt-rec-blue);
  color: var(--tpt-rec-blue);
}

.tpt-rec-chip::before {
  border: 1.5px solid var(--tpt-rec-border);
  border-radius: 4px;
  content: "";
  display: inline-block;
  height: 16px;
  width: 16px;
}

.tpt-rec-chip.is-selected {
  background: var(--tpt-rec-info);
  border-color: var(--tpt-rec-blue);
  color: var(--tpt-rec-blue);
}

.tpt-rec-chip.is-selected::before {
  background: var(--tpt-rec-blue);
  border-color: var(--tpt-rec-blue);
  box-shadow: inset 0 0 0 3px #fff;
}

.tpt-rec-selected-summary {
  align-items: center;
  background: var(--tpt-rec-navy);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11, 31, 58, .25);
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 12px 16px;
  position: sticky;
  bottom: 16px;
  z-index: 5;
}

.tpt-rec-selected-summary strong {
  font-size: 22px;
}

.tpt-rec-selected-summary span {
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  margin-left: 8px;
}

.tpt-rec-selected-summary button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}

.tpt-rec-results-summary {
  background: linear-gradient(135deg, #0B1F3A 0%, #112A4F 100%);
  color: #fff;
  margin-bottom: 24px;
  overflow: hidden;
  padding: 28px 32px;
  position: relative;
}

.tpt-rec-results-summary > span {
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tpt-rec-results-summary h2 {
  color: #fff;
  font-size: 22px;
  margin: 6px 0 0;
}

.tpt-rec-results-summary p {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  margin: 6px 0 0;
}

.tpt-rec-results-summary [data-rec-results-chips] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tpt-rec-result-chip {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
}

.tpt-rec-inline-notice {
  background: var(--tpt-rec-info);
  border: 1px solid rgba(31, 78, 216, .18);
  border-radius: 12px;
  color: var(--tpt-rec-blue);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 12px 16px;
}

.tpt-rec-test-card {
  background: #fff;
  border: 1px solid var(--tpt-rec-border);
  border-radius: 16px;
  box-shadow: var(--tpt-rec-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.tpt-rec-test-card.is-top {
  border-color: var(--tpt-rec-blue);
}

.tpt-rec-test-card__body {
  padding: 24px 28px;
}

.tpt-rec-test-card__top {
  align-items: flex-start;
  display: flex;
  gap: 20px;
}

.tpt-rec-rank {
  align-items: center;
  background: var(--tpt-rec-bg);
  border-radius: 8px;
  color: var(--tpt-rec-muted);
  display: flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.is-top .tpt-rec-rank {
  background: var(--tpt-rec-blue);
  color: #fff;
}

.tpt-rec-test-info {
  flex: 1;
  min-width: 0;
}

.tpt-rec-top-tag {
  color: var(--tpt-rec-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tpt-rec-test-name {
  color: var(--tpt-rec-navy);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.is-top .tpt-rec-test-name {
  font-size: 22px;
}

.tpt-rec-test-code,
.tpt-rec-test-short {
  color: var(--tpt-rec-muted);
  font-size: 13px;
  margin-top: 4px;
}

.tpt-rec-score {
  flex: 0 0 160px;
  text-align: right;
}

.tpt-rec-score__tier {
  color: var(--tpt-rec-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.tpt-rec-score__tier.is-strong {
  color: var(--tpt-rec-teal);
}

.tpt-rec-score__value {
  color: var(--tpt-rec-navy);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.tpt-rec-score__value span {
  color: var(--tpt-rec-muted);
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
}

.tpt-rec-score__bar {
  background: var(--tpt-rec-border);
  border-radius: 999px;
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.tpt-rec-score__bar span {
  background: var(--tpt-rec-blue);
  border-radius: 999px;
  display: block;
  height: 100%;
}

.tpt-rec-score__bar span.is-strong {
  background: var(--tpt-rec-teal);
}

.tpt-rec-test-detail {
  border-top: 1px solid var(--tpt-rec-border);
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr;
  padding: 22px 28px 24px;
}

.tpt-rec-block-title {
  color: var(--tpt-rec-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.tpt-rec-explanation {
  color: var(--tpt-rec-text);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

.tpt-rec-triggered {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tpt-rec-triggered span {
  background: var(--tpt-rec-teal-soft);
  border-radius: 999px;
  color: var(--tpt-rec-teal);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.tpt-rec-marker-row {
  border-bottom: 1px dashed var(--tpt-rec-border);
  display: flex;
  gap: 12px;
  padding: 8px 0;
}

.tpt-rec-marker-row:last-child {
  border-bottom: 0;
}

.tpt-rec-marker-row strong {
  color: var(--tpt-rec-text);
  flex: 0 0 130px;
  font-size: 13px;
}

.tpt-rec-marker-row span {
  color: var(--tpt-rec-muted);
  flex: 1;
  font-size: 13px;
}

.tpt-rec-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tpt-rec-disclaimer-card {
  margin-top: 28px;
}

.tpt-rec-disclaimer-card button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tpt-rec-text);
  display: flex;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 20px;
  text-align: left;
  width: 100%;
}

.tpt-rec-disclaimer-card div {
  border-top: 1px solid var(--tpt-rec-border);
  color: var(--tpt-rec-muted);
  font-size: 13px;
  line-height: 1.65;
  padding: 16px 20px 18px;
}

.tpt-rec-alert,
.tpt-rec-loading,
.tpt-rec-empty {
  background: #fff;
  border: 1px solid var(--tpt-rec-border);
  border-radius: 12px;
  color: var(--tpt-rec-muted);
  font-size: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.tpt-rec-alert {
  background: var(--tpt-rec-red-soft);
  border-color: rgba(211, 43, 43, .22);
  color: var(--tpt-rec-red);
}

@keyframes tptRecSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .tpt-rec-topbar__inner,
  .tpt-rec-card__head,
  .tpt-rec-test-card__top,
  .tpt-rec-step-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .tpt-rec-demo-grid,
  .tpt-rec-test-detail {
    grid-template-columns: 1fr;
  }

  .tpt-rec-score {
    flex-basis: auto;
    text-align: left;
    width: 100%;
  }

  .tpt-rec-topnav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .tpt-rec-shell,
  .tpt-rec-topbar__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tpt-rec-stepper {
    grid-template-columns: 1fr;
  }

  .tpt-rec-card,
  .tpt-rec-test-card__body,
  .tpt-rec-test-detail,
  .tpt-rec-results-summary {
    padding: 20px;
  }
}
