/* Guided-assessment atoms: chips, reveals, summary receipt, FAQ. */

.hsq-hidden {
  display: none !important;
}

/* ── chip questions ── */
.hsq-chip-group {
  margin: 20px 0 28px;
  padding: 14px 16px;
  background: #f7f8f7;
  border-radius: 10px;
}
.hsq-chip-q {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.hsq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hsq-chip {
  border: 1.5px solid #c9cfcb;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.hsq-chip:hover {
  border-color: #067a46;
}
.hsq-chip-on {
  background: #067a46;
  border-color: #067a46;
  color: #fff;
  font-weight: 600;
}

/* ── conditional reveals ── */
.hsq-reveal {
  border-left: 3px solid #067a46;
  padding: 2px 0 2px 16px;
  margin: 16px 0;
}

/* ── summary block (the canonical form) ── */
.hsq-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
  margin-top: 8px;
}
.hsq-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hsq-summary-row {
  border: 1px solid #e2e6e3;
  border-radius: 10px;
  padding: 12px 14px;
}
.hsq-summary-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.hsq-summary-label {
  font-weight: 600;
  font-size: 14px;
}
.hsq-summary-answer {
  font-size: 14px;
  color: #067a46;
  font-weight: 600;
}
.hsq-summary-answer:not(:empty)::before {
  content: "✓ ";
}
.hsq-summary-head {
  flex-wrap: wrap;
}
.hsq-jump {
  margin-left: auto;
  color: #777;
  font-size: 13px;
  text-decoration: underline;
  white-space: nowrap;
}
.hsq-edit {
  border: 0;
  background: none;
  color: #067a46;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
/* answered rows read as a receipt: chips fold away */
.hsq-summary-row.hsq-collapsed .hsq-chips {
  display: none;
}
.hsq-summary-row .hsq-chips {
  margin-top: 10px;
}

/* ── contact fields (mirrors the v1 form styling) ── */
.hsq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .hsq-row {
    grid-template-columns: 1fr;
  }
}
.hsq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.hsq-field > span {
  font-weight: 600;
}
.hsq-field em {
  color: #c00;
  font-style: normal;
  margin-left: 2px;
}
.hsq-field input,
.hsq-field select,
.hsq-field textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.hsq-field input:focus,
.hsq-field textarea:focus {
  outline: 2px solid #1a1a1a;
  outline-offset: 1px;
}
.hsq-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.hsq-submit {
  align-self: flex-start;
  border: 0;
  border-radius: 6px;
  background: #067a46;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  cursor: pointer;
}
.hsq-submit:hover {
  background: #05623a;
}
.hsq-submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.hsq-note {
  font-size: 13px;
  color: #777;
  margin: 0;
}
.hsq-status {
  font-size: 15px;
  min-height: 1em;
}
.hsq-ok {
  color: #067a46;
  font-weight: 600;
}
.hsq-err {
  color: #c00;
}

/* ── FAQ accordions ── */
.hsq-faq {
  border: 1px solid #e2e6e3;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
}
.hsq-faq summary {
  font-weight: 600;
  cursor: pointer;
}
.hsq-faq .hsq-faq-a {
  padding-top: 10px;
}
