/* Health forum + consumer account */

.forum-page {
  padding-block: 1.5rem 3rem;
  max-width: 960px;
}

.forum-hero {
  margin-bottom: 1.5rem;
}

.forum-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.forum-hero__copy p {
  margin: 0 0 1rem;
  max-width: 40rem;
  opacity: 0.9;
}

.forum-btn-primary {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.forum-btn-primary:hover,
.forum-btn-primary:focus-visible {
  background: #912018;
  border-color: #912018;
  color: #fff;
}

.forum-doctor-strip {
  margin-bottom: 1rem;
  padding: 0.75rem 0;
}

.forum-doctor-strip.is-empty:not(:has(.forum-doctor-strip__label)) {
  display: none;
}

.forum-doctor-strip__label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.forum-doctor-strip__row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.forum-doctor-card {
  flex: 0 0 auto;
  min-width: 140px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.forum-doctor-card strong {
  display: block;
  font-size: 0.95rem;
}

.forum-doctor-card span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.forum-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.forum-filters select,
.forum-filters input[type="search"],
.forum-ask-form input,
.forum-ask-form select,
.forum-ask-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  font: inherit;
}

.forum-filters__cat {
  flex: 1 1 180px;
}

.forum-filters__search {
  flex: 2 1 220px;
}

.forum-q {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.forum-q__title {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: inherit;
}

.forum-q__specialty {
  float: right;
  font-size: 0.85rem;
  color: #1d4ed8;
}

.forum-q__snippet {
  margin: 0.4rem 0;
  opacity: 0.85;
}

.forum-q__meta {
  margin: 0;
  font-size: 0.85rem;
}

.forum-q__answers {
  color: #b42318;
  font-weight: 600;
  margin-right: 0.75rem;
  text-transform: uppercase;
}

.forum-ask-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.forum-ask-form label input,
.forum-ask-form label select,
.forum-ask-form label textarea {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
}

.forum-fieldset {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.forum-dropzone {
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1rem 0;
  text-align: center;
}

.forum-dropzone__moderation {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.72);
}

.forum-agree {
  display: flex !important;
  gap: 0.5rem;
  align-items: flex-start;
  font-weight: 500 !important;
}

.forum-agree input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.forum-agree--media {
  margin-top: 0.35rem;
}

.forum-media-pending {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.925rem;
  line-height: 1.45;
}

.forum-errors,
.forum-field-error {
  color: #b42318;
  font-weight: 500;
  font-size: 0.9rem;
}

.forum-attach-wrap {
  display: inline-block;
  margin: 0.25rem;
  user-select: none;
}

.forum-attach-img {
  max-width: 220px;
  border-radius: 8px;
  margin: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

.forum-attach-video {
  max-width: 320px;
  display: block;
  margin: 0.5rem 0;
}

.forum-answer {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.forum-answer__who {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.forum-answer__who time {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.5rem;
}

.consumer-dash {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.consumer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 1rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
}

.consumer-nav__label {
  margin: 0 0 0.35rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.consumer-nav a {
  text-decoration: none;
  color: inherit;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.consumer-nav a.is-active,
.consumer-nav a:hover {
  background: rgba(180, 35, 24, 0.08);
  color: #912018;
}

.consumer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.consumer-stats div {
  padding: 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
  background: #fff;
}

.consumer-stats strong {
  display: block;
  font-size: 1.35rem;
}

.consumer-stats span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.consumer-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.consumer-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1.75rem;
}

.consumer-cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  min-height: 96px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.consumer-cta-card:hover,
.consumer-cta-card:focus-visible {
  border-color: rgba(180, 35, 24, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.consumer-cta-card strong {
  font-size: 0.98rem;
}

.consumer-cta-card span {
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.35;
}

.consumer-section-title {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.consumer-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.consumer-list li {
  margin: 0.35rem 0;
}

.consumer-report-card,
.consumer-link-section {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: #fff;
}

.consumer-auth {
  max-width: 520px;
}

.consumer-lead {
  margin: 0.35rem 0 1rem;
  line-height: 1.5;
  max-width: 40rem;
}

.consumer-hint {
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.consumer-feature-list {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.consumer-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.consumer-form__terms-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.68);
}

.consumer-form--register .auth-field {
  margin-bottom: 0.85rem;
}

.consumer-form--register .auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.consumer-form__required-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
}

.consumer-form .auth-field-error {
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.875rem;
}

.consumer-form input,
.consumer-form textarea,
.consumer-form select {
  min-height: 44px;
  font-size: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.consumer-form .btn {
  min-height: 44px;
  width: 100%;
  max-width: 280px;
}

.consumer-claim-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.consumer-claim-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.consumer-claim-list__item:last-child {
  border-bottom: 0;
}

/* SaaS audience guidance */
.saas-guide-page {
  max-width: 960px;
}

.saas-guide-hero {
  margin-bottom: 1.75rem;
}

.saas-guide-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
}

.saas-guide-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  line-height: 1.2;
}

.saas-guide-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  line-height: 1.55;
  opacity: 0.92;
}

.saas-guide-detail {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  background: #fff;
}

.saas-guide-detail h2 {
  margin: 0.5rem 0 0.65rem;
  font-size: 1.25rem;
}

.saas-guide-detail ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.saas-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.saas-guide-foot {
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.6;
}

.saas-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.saas-lanes--compact {
  margin-top: 2rem;
}

.saas-lane {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  min-height: 180px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.saas-lane:hover,
.saas-lane:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.28);
}

.saas-lane.is-current {
  border-color: #b42318;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.25);
}

.saas-lane__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.06);
}

.saas-lane--consumer .saas-lane__badge,
.saas-lane-banner--consumer .saas-lane__badge {
  background: rgba(180, 35, 24, 0.12);
  color: #912018;
}

.saas-lane--marketplace .saas-lane__badge {
  background: rgba(12, 74, 110, 0.12);
  color: #0c4a6e;
}

.saas-lane--tenant .saas-lane__badge {
  background: rgba(20, 83, 45, 0.12);
  color: #14532d;
}

.saas-lane__title {
  margin: 0;
  font-size: 1.1rem;
}

.saas-lane__copy {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.85;
}

.saas-lane__cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: #b42318;
}

.saas-lane-banner {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(180, 35, 24, 0.25);
  background: rgba(180, 35, 24, 0.06);
}

.saas-lane-banner p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.saas-lane-banner--inline {
  margin-bottom: 0.85rem;
}

.saas-lane-banner--inline p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
}

.saas-lane-switch {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.saas-lane-switch__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.saas-lane-switch ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.6;
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .saas-lanes {
    grid-template-columns: 1fr;
  }

  .saas-lane {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .forum-page {
    padding-inline: 0.15rem;
  }

  .consumer-dash {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .consumer-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: static;
    gap: 0.35rem;
    padding: 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .consumer-nav__label {
    display: none;
  }

  .consumer-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
  }

  .consumer-stats {
    grid-template-columns: 1fr;
  }

  .consumer-cta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .consumer-form .btn {
    max-width: none;
  }

  .saas-guide-actions .btn {
    flex: 1 1 auto;
    text-align: center;
    min-height: 44px;
  }

  .forum-q__specialty {
    float: none;
    display: block;
    margin-top: 0.25rem;
  }
}

@media (max-width: 420px) {
  .consumer-cta-grid {
    grid-template-columns: 1fr;
  }
}
