/* Meaning of Home questionnaire — builds on style.css variables */
.moh-section {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow);
}

.moh-progress {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .4rem;
  margin-bottom: 1.6rem;
}

.moh-progress span {
  padding: .5rem .3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-align: center;
}

.moh-progress span.done {
  background: var(--gold-soft);
  color: var(--navy);
}

.moh-progress span.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.moh-stage h2 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  letter-spacing: -.02em;
}

.moh-stage .moh-lede {
  max-width: 760px;
  margin: 0 0 1.4rem;
  color: var(--muted);
  line-height: 1.6;
}

.moh-reflection {
  max-width: 780px;
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: var(--cream);
  color: var(--ink);
  font-style: italic;
  line-height: 1.6;
}

.moh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .85rem;
}

.moh-grid.words {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Option cards override the site's global button pill style */
button.moh-card {
  display: grid;
  align-content: start;
  gap: .35rem;
  min-height: 0;
  width: 100%;
  padding: 1.05rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

button.moh-card:hover {
  background: #fffaf0;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11,31,58,.08);
}

button.moh-card:focus-visible {
  outline: 3px solid rgba(200,164,93,.55);
  outline-offset: 2px;
}

button.moh-card[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--light-blue);
  box-shadow: inset 0 0 0 1.5px var(--navy);
}

.moh-card .moh-card-title {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 1000;
}

.moh-card .moh-card-text {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.moh-card .moh-tag {
  justify-self: start;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.moh-word .moh-card-title {
  font-size: 1.35rem;
}

.moh-tone {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.moh-tone.positive { color: #2f7a4f; }
.moh-tone.neutral { color: var(--muted); }
.moh-tone.negative { color: #9a4b3c; }

.moh-hint {
  margin: .9rem 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.moh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.moh-actions button[disabled] {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Location results */
.moh-places {
  display: grid;
  gap: 1rem;
}

.moh-place {
  padding: 1.3rem;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff, rgba(255,242,207,.45));
}

.moh-place.selected {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy), 0 18px 40px rgba(11,31,58,.1);
}

.moh-place-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.moh-place h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
}

.moh-match {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.moh-place p {
  margin: .55rem 0;
  line-height: 1.6;
}

.moh-place .moh-why-list {
  margin: .4rem 0 .8rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.moh-types {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}

button.moh-type {
  min-height: 0;
  padding: .55rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: .88rem;
  font-weight: 900;
  box-shadow: none;
  cursor: pointer;
}

button.moh-type:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

button.moh-type[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

button.moh-type .best {
  margin-left: .35rem;
  font-size: .7rem;
  font-weight: 900;
  opacity: .8;
}

.moh-brief {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.moh-brief h3 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.moh-brief ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.65;
}

/* Lead questions */
.moh-form {
  display: grid;
  gap: .9rem;
  max-width: 720px;
}

.moh-form label {
  display: grid;
  gap: .35rem;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
}

.moh-form select,
.moh-form input,
.moh-form textarea {
  width: 100%;
  min-height: 48px;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.moh-form textarea {
  min-height: 110px;
  resize: vertical;
}

.moh-form select:focus,
.moh-form input:focus,
.moh-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,164,93,.15);
}

.moh-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.moh-error {
  min-height: 1.2em;
  margin: 0;
  color: #9a4b3c;
  font-size: .9rem;
  font-weight: 700;
}

.moh-small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.moh-done {
  max-width: 780px;
}

.moh-done .guidance-output {
  margin: 1rem 0 1.4rem;
}

/* Why section */
.moh-why {
  margin-top: 2.4rem;
}

.moh-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.moh-why-grid article {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.moh-why-grid h3 {
  margin: 0 0 .5rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.moh-why-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .moh-progress {
    grid-template-columns: repeat(4, 1fr);
  }
  .moh-progress span:nth-child(n+5) {
    display: none;
  }
  .moh-progress.late span:nth-child(-n+3) {
    display: none;
  }
  .moh-progress.late span:nth-child(n+4) {
    display: block;
  }
  .moh-two,
  .moh-why-grid {
    grid-template-columns: 1fr;
  }
  .moh-section {
    border-radius: 26px;
  }
}
