.rider-safety-foundation {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface, #fff);
}

.safety-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.safety-heading h3 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: 22px;
}

.safety-heading .form-note {
  max-width: 680px;
  margin: 0;
}

.safety-status-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5f3;
  color: #38534f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.safety-truth-card,
.safety-circle-card,
.safety-ride-card,
.safety-action-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfa;
}

.safety-truth-card {
  border-color: #e7d9bd;
  background: #fffaf0;
}

.safety-truth-card > strong,
.safety-circle-card > strong,
.safety-ride-card > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.safety-truth-card > p,
.safety-circle-card > p,
.safety-ride-card > p,
.safety-action-detail,
.safety-ride-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.safety-circle-card .safety-action-card,
.safety-ride-card .safety-action-card {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.safety-ride-status {
  margin-top: 10px;
  font-weight: 700;
  color: #38534f;
}

.safety-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.safety-action-button,
.safety-emergency-link {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.safety-action-button[disabled] {
  cursor: not-allowed;
  opacity: .62;
}

.safety-action-detail {
  margin-top: 9px;
}

.safety-emergency-card {
  border-color: #ead3d3;
  background: #fff8f8;
}

.safety-emergency-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 760px) {
  .rider-safety-foundation {
    gap: 12px;
    margin: 20px 0 8px;
    padding: 16px 14px max(18px, env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  .safety-heading {
    display: grid;
    gap: 10px;
  }

  .safety-status-badge {
    justify-self: start;
  }

  .safety-action-grid {
    grid-template-columns: 1fr;
  }
}
