/* Shared styles for /tests/ quiz pages (mindneeds.care).
   Mirrors the inline CSS in adaptation-test.js so every test renders identically.
   New tests link this sheet via layouts/tests/single.html and carry no inline CSS. */

* { box-sizing: border-box; margin: 0; padding: 0; }

.wrap {
  min-height: 100vh;
  background: #ece7e0;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 48px;
}

.card {
  background: #fff;
  border-radius: 24px;
  max-width: 580px;
  width: 100%;
  padding: 44px 40px;
  box-shadow: 0 2px 32px rgba(0,0,0,0.06);
}
@media (max-width: 560px) {
  .card { padding: 28px 22px; }
}

.eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A89F94;
  margin-bottom: 14px;
}

.intro-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: #282f49;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
@media (max-width: 560px) { .intro-title { font-size: 26px; } }

.intro-body {
  font-size: 14px;
  font-weight: 300;
  color: #7e7e8a;
  line-height: 1.7;
  margin-bottom: 28px;
}
.intro-body strong { font-weight: 500; color: #4a4a57; }

.meta-row {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #A89F94;
  font-weight: 400;
  margin-bottom: 32px;
}

.btn-start {
  width: 100%;
  background: #3D6B5A;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-start:hover { background: #2D5243; transform: translateY(-1px); }
.btn-start:disabled { background: #cfc8bd; cursor: default; transform: none; }

.hr { width: 40px; height: 2px; background: #EDE5D8; margin: 24px 0; }

/* ---- Question list (all questions on one page) ---- */
.q-item { margin-bottom: 26px; }
.q-item + .q-item { border-top: 1px solid #F0EAE0; padding-top: 26px; }

.q-text {
  font-size: 16px;
  font-weight: 500;
  color: #282f49;
  line-height: 1.5;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  display: flex;
  gap: 10px;
}
@media (max-width: 560px) { .q-text { font-size: 15px; } }

.q-num {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: #7fb3a1;
  min-width: 22px;
}

.opts { display: flex; flex-direction: column; gap: 9px; }

.opt {
  background: #FDFAF6;
  border: 1.5px solid #EDE5D8;
  border-radius: 13px;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  font-weight: 300;
  color: #4a4a57;
  font-family: 'Poppins', sans-serif;
  line-height: 1.55;
  cursor: pointer;
  transition: all 0.15s;
}
.opt:hover { border-color: #7fb3a1; background: rgba(127,179,161,0.08); }
.opt.sel { border-color: #7fb3a1; background: rgba(127,179,161,0.18); color: #282f49; font-weight: 400; }

/* ---- Likert 1-7 horizontal scale (ECR) ---- */
.scale-anchors {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #A89F94;
  font-weight: 400;
  margin-bottom: 8px;
  gap: 10px;
}
.scale-anchors span:last-child { text-align: right; }
.scale-row { display: flex; gap: 7px; }
.scale-btn {
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  min-width: 0;
  background: #FDFAF6;
  border: 1.5px solid #EDE5D8;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 400;
  color: #7e7e8a;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scale-btn:hover { border-color: #7fb3a1; background: rgba(127,179,161,0.08); }
.scale-btn.sel { border-color: #7fb3a1; background: rgba(127,179,161,0.22); color: #282f49; font-weight: 600; }
@media (max-width: 560px) { .scale-btn { font-size: 12px; border-radius: 8px; } .scale-row { gap: 5px; } }

/* ---- Submit ---- */
.submit-row { margin-top: 32px; }
.answered-count {
  text-align: center;
  font-size: 12px;
  color: #A89F94;
  font-weight: 400;
  margin-bottom: 12px;
}

/* ---- Result ---- */
.res-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #A89F94; margin-bottom: 10px; }
.res-name { font-size: 32px; font-weight: 600; color: #282f49; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.15; }
@media (max-width: 560px) { .res-name { font-size: 24px; } }
.res-score { font-size: 14px; font-weight: 500; color: #3D6B5A; margin-bottom: 16px; }
.res-tag { font-size: 15px; font-weight: 300; color: #7e7e8a; font-style: italic; margin-bottom: 22px; line-height: 1.5; }

.res-block { margin-bottom: 18px; }
.res-label { font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #A89F94; margin-bottom: 6px; }
.res-body { font-size: 13px; font-weight: 300; color: #4a4a57; line-height: 1.75; }
.res-body + .res-body { margin-top: 12px; }

.res-science { background: #F7F2EA; border-radius: 13px; padding: 18px 20px; margin: 18px 0; }

/* ---- Crisis block (PHQ-9 Q9, EPDS Q10) ---- */
.crisis-box {
  background: #FBEFE3;
  border: 1.5px solid #E4B07A;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 24px;
}
.crisis-title { font-size: 13px; font-weight: 600; color: #9A5B26; margin-bottom: 8px; letter-spacing: 0.01em; }
.crisis-body { font-size: 13px; font-weight: 300; color: #7a5436; line-height: 1.7; }
.crisis-body strong { font-weight: 600; color: #9A5B26; }

/* ---- CTA ---- */
.cta-box { background: #3D6B5A; border-radius: 18px; padding: 28px 24px; margin-top: 28px; text-align: center; }
.cta-title { font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.cta-body { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.75); line-height: 1.65; margin-bottom: 18px; }
.btn-cta { width: 100%; background: #fff; color: #3D6B5A; border: none; border-radius: 11px; padding: 14px; font-size: 13px; font-family: 'Poppins', sans-serif; font-weight: 500; cursor: pointer; transition: transform 0.15s; }
.btn-cta:hover { transform: translateY(-1px); }

.restart { display: block; text-align: center; margin-top: 20px; background: none; border: none; font-size: 12px; color: #A89F94; font-family: 'Poppins', sans-serif; cursor: pointer; text-decoration: underline; width: 100%; }

.fade { animation: fadeUp 0.3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
