/* Intentionally scoped: no changes to the service picker or request wizard. */
#request-how-it-works {
  box-sizing: border-box;
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-family: inherit;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

#request-how-it-works::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

#request-how-it-works .request-how-panel {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  min-height: 0;
}

#request-how-it-works .request-how-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 14px 12px 20px;
  border-bottom: 1px solid #e5e7eb;
}

#request-how-it-works #request-how-title {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

#request-how-it-works .request-how-content {
  min-height: 0;
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

#request-how-it-works .request-how-subtitle {
  margin: 0 0 22px;
  color: #15803d;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

#request-how-it-works .request-how-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#request-how-it-works .request-how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#request-how-it-works .request-how-icon {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #15803d;
}

#request-how-it-works svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#request-how-it-works .request-how-step > div {
  min-width: 0;
}

#request-how-it-works .request-how-step h3,
#request-how-it-works .request-how-details h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

#request-how-it-works .request-how-step p,
#request-how-it-works .request-how-details p {
  margin: 0;
  color: #4b5563;
  font-size: 0.825rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#request-how-it-works .request-how-details {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: #fffbeb;
}

#request-how-it-works .request-how-details h3 {
  color: #78350f;
}

#request-how-it-works .request-how-footer {
  margin: 18px 0 12px;
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

#request-how-it-works [data-how-continue] {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: #15803d;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}

#request-how-it-works [data-how-continue]:hover {
  background: #15803d;
}

#request-how-it-works [data-how-continue]:focus-visible {
  outline: 3px solid #15803d;
  outline-offset: 3px;
}

@media (max-width: 600px) {
  #request-how-it-works {
    width: 100%;
    max-height: calc(95vh - env(safe-area-inset-top, 0px));
    max-height: calc(95dvh - env(safe-area-inset-top, 0px));
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  #request-how-it-works .request-how-content {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
