/* Approved concept 3: compact case summary and three connected stages. */
.phone #next-home-scf-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--biz-line, #e1e6e2);
  border-radius: 24px;
  background: var(--biz-surface, #fff);
  color: var(--biz-ink, #202422);
  box-shadow: var(--biz-shadow-card, 0 2px 8px #15271c05);
  text-align: right;
}

#next-home-scf-card .scf-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

#next-home-scf-card .scf-card-mark {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #44594a;
  background: #eef3ef;
}

#next-home-scf-card .scf-card-heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

#next-home-scf-card .scf-card-title {
  margin: 0;
  color: var(--biz-ink, #202422);
  font-family: var(--biz-font-semibold, "Vazirmatn SemiBold", Tahoma, sans-serif);
  font-size: 15px !important;
  line-height: 24px;
}

#next-home-scf-card :is(.scf-card-buyer, .scf-card-metric-label, .scf-card-value > small, .scf-card-note) {
  color: var(--biz-muted, #5d655f);
  font-family: var(--biz-font-regular, "Vazirmatn Regular", Tahoma, sans-serif);
  font-size: 12px !important;
  line-height: 20px;
  overflow-wrap: anywhere;
}

#next-home-scf-card .scf-card-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
}

#next-home-scf-card .scf-card-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
}

#next-home-scf-card .scf-card-value > strong {
  font-family: var(--biz-font-semibold, "Vazirmatn SemiBold", Tahoma, sans-serif);
  font-size: 23px !important;
  line-height: 34px;
  letter-spacing: 0;
  font-variant-numeric: proportional-nums;
  overflow-wrap: anywhere;
}

#next-home-scf-card .scf-card-note { margin-top: -8px; }

#next-home-scf-card .scf-card-steps {
  --scf-current-ink: #3b608c;
  --scf-current-surface: #edf3fa;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  direction: rtl;
}

#next-home-scf-card .scf-card-steps[data-current-tone="warning"] {
  --scf-current-ink: #76531f;
  --scf-current-surface: #faf0de;
}

#next-home-scf-card .scf-card-steps[data-current-tone="success"] {
  --scf-current-ink: #285a3b;
  --scf-current-surface: #e9f3ec;
}

#next-home-scf-card .scf-card-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #7c877f;
  text-align: center;
}

#next-home-scf-card .scf-card-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 1px;
  background: #dce3de;
}

#next-home-scf-card .scf-card-step-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
  color: #939c95;
  background: #f1f3f1;
}

#next-home-scf-card .scf-card-step.is-complete .scf-card-step-icon {
  color: #768c7c;
  background: #eef3ef;
}

#next-home-scf-card .scf-card-step.is-current {
  color: var(--scf-current-ink);
}

#next-home-scf-card .scf-card-step.is-current .scf-card-step-icon {
  color: var(--scf-current-ink);
  background: var(--scf-current-surface);
  border: 1.5px solid currentColor;
  box-shadow: 0 0 0 3px var(--scf-current-surface);
}

#next-home-scf-card .scf-card-step-label {
  font-family: var(--biz-font-regular, "Vazirmatn Regular", Tahoma, sans-serif);
  font-size: 12px !important;
  line-height: 20px;
}

#next-home-scf-card .scf-card-step.is-current .scf-card-step-label {
  font-family: var(--biz-font-semibold, "Vazirmatn SemiBold", Tahoma, sans-serif);
}

#next-home-scf-card :is(.scf-card-mark, .scf-card-step-icon, .scf-card-action) > svg {
  display: block;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#next-home-scf-card .scf-card-mark > svg { width: 21px; height: 21px; }
#next-home-scf-card .scf-card-step-icon > svg { width: 13px; height: 13px; }
#next-home-scf-card .scf-card-step.is-current svg { stroke-width: 2.35; }
#next-home-scf-card .scf-card-step-icon > svg:has(use[href="#i-check"]) { stroke-width: 2.15; }

#next-home-scf-card .scf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 12px;
  border-top: 1px solid var(--biz-line, #e1e6e2);
}

#next-home-scf-card .scf-card-status {
  display: inline;
  width: auto;
  min-height: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--biz-muted, #5d655f);
  background: transparent;
  box-shadow: none;
  font-family: var(--biz-font-regular, "Vazirmatn Regular", Tahoma, sans-serif);
  font-size: 12px !important;
  line-height: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#next-home-scf-card .scf-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--biz-brand, #0056f5);
  font-family: var(--biz-font-medium, "Vazirmatn Medium", Tahoma, sans-serif);
  font-size: 12px !important;
  line-height: 24px;
  white-space: nowrap;
}

#next-home-scf-card .scf-card-action > svg { width: 18px; height: 18px; }

.phone #next-home-scf-card:focus-visible {
  outline: 2px solid var(--biz-brand, #0056f5);
  outline-offset: 3px;
}

@media (max-width: 359px) {
  .phone #next-home-scf-card { padding: 16px; }
  #next-home-scf-card .scf-card-top { gap: 8px; }
  #next-home-scf-card .scf-card-title { font-size: 14px !important; }
}
