/* Suicide-help crisis modal. Structure & design follow #thirtyDayGate
   (.thirtyDayGateOverlay / Inner / Card) so behaviour stays consistent.
   Lives at body level (outside #step2Section-2) — see basic.php — so the
   fixed overlay shares the root stacking context and paints above the
   header and the chat widget. */

.suicide-help-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-toast, 1200);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto
}

.suicide-help-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 51, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px)
}

.suicide-help-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center
}

.suicide-help-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-bg-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(18, 26, 51, 0.22), 0 4px 16px rgba(18, 26, 51, 0.1);
  animation: suicideModalIn 0.3s ease-out
}

@keyframes suicideModalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.97) }
  to   { opacity: 1; transform: translateY(0) scale(1) }
}

.suicide-help-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  font-size: var(--text-2xl);
  line-height: 1;
  color: #999;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s
}

.suicide-help-close:hover {
  border-color: var(--color-orange);
  color: var(--color-orange)
}

.suicide-help-close:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px
}

.suicide-help-heading {
  font-family: DM Serif Display;
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-heading);
  text-align: left;
  padding-right: 44px;
  margin-bottom: 16px
}

.suicide-help-important {
  color: var(--color-orange)
}

.suicide-help-description {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: 12px
}

.suicide-help-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--color-border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.suicide-help-call {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg-peach);
  border-radius: var(--radius-md, 12px);
  padding: 16px 18px
}

.suicide-help-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  line-height: 1
}

.suicide-help-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0
}

.suicide-help-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.3
}

.suicide-help-sub {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.45
}

.suicide-help-phone {
  font-weight: 600;
  color: var(--color-text-heading)
}

@media (max-width:768px) {
  .suicide-help-content {
    padding: 28px 22px;
    max-height: 92vh
  }

  .suicide-help-heading {
    font-size: var(--text-2xl)
  }

  .suicide-help-description {
    font-size: var(--text-base)
  }

  .suicide-help-call {
    padding: 14px 16px;
    gap: 12px
  }
}

@media (max-width:480px) {
  .suicide-help-modal {
    padding: 14px
  }

  .suicide-help-content {
    padding: 24px 18px
  }

  .suicide-help-heading {
    font-size: var(--text-xl);
    line-height: 1.3
  }

  .suicide-help-call {
    padding: 12px 14px
  }
}

@media (prefers-contrast:high) {
  .suicide-help-overlay {
    background-color: rgba(0, 0, 0, 0.9)
  }

  .suicide-help-content {
    border: 2px solid #000
  }

  .suicide-help-important,
  .suicide-help-title,
  .suicide-help-phone,
  .suicide-help-sub {
    color: #000
  }

  .suicide-help-call {
    background: #fff;
    border: 2px solid #000
  }
}
