/* TrustFit public-safe fit check polish.
   Phase 2N-J aligns TrustFit conversion toward the 10-day assessment.
   Static CSS only: no scoring, backend, form, portal, payment, or vendor changes. */

.trustfit-section {
  padding-top: clamp(52px, 7vw, 88px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.trustfit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 32px;
}

.trustfit-hero .section-heading {
  margin: 0;
}

.trustfit-hero-actions,
.trustfit-closeout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.trustfit-hero-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 22px 56px rgba(14, 31, 36, 0.14);
}

.trustfit-hero-card p {
  margin: 0;
  color: #d8e6e3;
}

.trustfit-hero-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: #eef7f4;
  font-size: 16px;
  line-height: 1.55;
}

.trustfit-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.trustfit-proof-strip article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(14, 31, 36, 0.05);
}

.trustfit-proof-strip h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.trustfit-proof-strip p {
  margin: 0;
  font-size: 15px;
}

.trustfit-assessment-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 28px 0;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-left: 6px solid rgba(22, 164, 119, 0.55);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(14, 31, 36, 0.08);
}

.trustfit-assessment-bridge h2 {
  margin-bottom: 10px;
  text-wrap: balance;
}

.trustfit-assessment-bridge p {
  max-width: 760px;
  margin-bottom: 0;
}

.trustfit-flow {
  margin-top: 22px;
}

.trustfit-step {
  border-radius: 20px;
}

.trustfit-choice-card {
  min-height: 148px;
}

.trustfit-result {
  margin-top: 30px;
}

.trustfit-result-grid article {
  min-height: 170px;
}

.trustfit-closeout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid #cde8de;
  border-radius: 20px;
  background: #f4fbf8;
}

.trustfit-closeout p {
  margin: 0;
  color: var(--muted);
}

.trustfit-closeout .button,
.trustfit-assessment-bridge .button {
  white-space: nowrap;
}

.trustfit-boundary-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #f0b7a4;
  border-radius: 18px;
  background: #fff8f5;
}

.trustfit-boundary-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.trustfit-boundary-card p {
  margin: 0;
  color: #6b2f20;
}

.trustfit-actions {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .trustfit-hero,
  .trustfit-proof-strip,
  .trustfit-closeout,
  .trustfit-assessment-bridge {
    grid-template-columns: 1fr;
  }

  .trustfit-closeout .button,
  .trustfit-assessment-bridge .button {
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .trustfit-section {
    padding-top: 34px;
  }

  .trustfit-section h1 {
    font-size: clamp(36px, 11vw, 44px);
  }

  .trustfit-hero-card,
  .trustfit-step,
  .trustfit-boundary-card,
  .trustfit-closeout,
  .trustfit-assessment-bridge {
    padding: 20px;
  }

  .trustfit-proof-strip article {
    padding: 16px;
  }

  .trustfit-result-grid {
    grid-template-columns: 1fr;
  }

  .trustfit-actions .button,
  .trustfit-hero-actions .button,
  .trustfit-closeout-actions .button {
    width: 100%;
  }
}
