.tfm-grid {
  margin-top: 12px;
}

.tfm-card {
  display: inline-block;
  vertical-align: top;
  width: 320px;
  margin: 0 16px 16px 0;
  padding: 18px 18px 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.tfm-card .tfm-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tfm-card .tfm-check {
  margin-top: 6px;
}

.tfm-card .tfm-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 6px;
}

.tfm-card .tfm-block {
  font-size: 22px;
  line-height: 1.35;
}

.tfm-card .tfm-muted {
  color: #333;
  opacity: .95;
}

.tfm-card h4 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.tfm-card ul {
  margin: 0 0 0 22px;
}

.tfm-card li {
  font-size: 22px;
  margin: 6px 0;
}

/* Hide the native checkbox but keep it accessible to JS */
.tfm-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Visual selected state */
.tfm-card.is-selected {
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76, 110, 245, .25), 0 6px 18px rgba(0, 0, 0, .12);
}

/* Optional hover affordance */
.tfm-card {
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.tfm-card:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.tfm-compare-grid .tfm-compare-card {
  width: 360px;
  padding: 16px;
}

.tfm-card-header .tfm-fid {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.tfm-card-header .tfm-sub {
  font-size: 18px;
  line-height: 1.25;
  color: #333;
  opacity: .9;
}

.tfm-survivor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tfm-survivor-label {
  font-weight: 700;
  font-size: 16px;
}

.tfm-fields {
  margin-top: 12px;
}

.tfm-field-row {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 10px;
}

/* ===== Step 3 ONLY (namespaced) ===== */
.tfm-step3 {
  margin-top: 14px;
}

.tfm3-row {
  display: grid;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 10px;
  grid-template-columns: 220px repeat(var(--tfm-cols), minmax(320px, 1fr));
}

.tfm3-cell {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 12px;
}

.tfm3-label {
  background: transparent;
  border: none;
  /* padding: 12px 6px; */
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
  opacity: .6;
}

.tfm3-row-hdr .tfm3-cell {
  border: none;
  background: transparent;
  padding: 0 12px 6px;
}

.tfm3-hdr {
  font-size: 26px;
  font-weight: 900;
}

.tfm3-choice {
  cursor: pointer;
}

.tfm3-choice.is-picked {
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76, 110, 245, .18);
  background: rgba(76, 110, 245, .06);
}

.tfm3-radio {
  display: inline-block;
  /* vertical-align: top; */
  margin-right: 8px;
}

.tfm3-val {
  display: inline-block;
  /* font-size: 18px; */
  line-height: 1.25;
  word-break: break-word;
}

/* Titan Family Merge – override global form width */
#titan-family-merge-form {
  width: auto;
  max-width: none;
}