/* PHQ-9 page: the shared landing styles provide the brand palette and buttons. */
[hidden] { display: none !important; }

.phq-header { padding-bottom: 18px; }
.phq-nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 600; }
.phq-nav a:hover, .phq-nav a:focus-visible, .phq-text-link:hover, .phq-text-link:focus-visible { color: var(--purple-dark); text-decoration: underline; }
.phq-breadcrumb { display: flex; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 32px; }
.phq-breadcrumb a:hover { color: var(--purple-dark); }
.phq-hero { padding-bottom: 46px; }
.phq-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 50px; align-items: center; }
.phq-eyebrow { display: inline-block; color: var(--purple-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.phq-hero h1 { max-width: 780px; margin: 16px 0 20px; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.phq-nowrap { white-space: nowrap; }
.phq-lead { max-width: 690px; margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; color: #424b76; }
.phq-facts { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 26px 0 0; list-style: none; }
.phq-facts li { padding: 10px 14px; border: 1px solid #e6e5ff; border-radius: 999px; background: #fff; color: #4c508b; font-size: 13px; font-weight: 700; }
.phq-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 30px; }
.phq-text-link { color: var(--purple-dark); font-weight: 700; }
.phq-hero-note { max-width: 660px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.phq-hero-aside { padding: 36px; border: 1px solid #eae7ff; border-radius: 32px; background: linear-gradient(155deg, #f2efff, #fff 73%); box-shadow: var(--shadow); }
.phq-hero-aside-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: #dedaff; color: var(--purple-dark); font-size: 30px; }
.phq-hero-aside h2 { margin: 28px 0 14px; font-size: 24px; line-height: 1.2; letter-spacing: -.025em; }
.phq-hero-aside p { margin: 0; color: var(--muted); line-height: 1.65; }
.phq-hero-aside-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dedcf4; color: #4c508b; font-size: 13px; line-height: 1.5; }
.phq-test-section, .phq-explainer, .phq-scores, .phq-faq { scroll-margin-top: 24px; }
.phq-test-section { padding-top: 44px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.phq-section-heading { max-width: 860px; margin: 0 0 28px; }
.phq-section-heading h2 { margin: 12px 0 12px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.16; letter-spacing: -.035em; }
.phq-section-heading p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.phq-form { max-width: 970px; }
.phq-progress { display: flex; align-items: center; gap: 22px; padding: 19px 22px; margin-bottom: 18px; border: 1px solid #e5e4fa; border-radius: 18px; background: #fff; color: #4c508b; font-size: 14px; font-weight: 700; }
.phq-progress-track { flex: 1; height: 8px; border-radius: 999px; background: #eae8ff; overflow: hidden; }
.phq-progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #7065ff, #76cee8); transition: width .2s ease; }
.phq-error { padding: 14px 18px; border-radius: 12px; background: #fff1f1; color: #a5394f; font-weight: 700; }
.phq-question { min-width: 0; padding: 25px 28px 28px; margin: 0 0 14px; border: 1px solid #e9e7f8; border-radius: 24px; background: #fff; box-shadow: 0 12px 38px rgba(111, 119, 199, .06); }
.phq-question legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 700; line-height: 1.55; }
.phq-question-number { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 7px; border-radius: 10px; background: #eeecff; color: var(--purple-dark); font-size: 12px; font-weight: 800; vertical-align: middle; }
.phq-options { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.phq-options label { position: relative; display: block; cursor: pointer; }
.phq-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.phq-options span { display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px; border: 1px solid #e2e3f1; border-radius: 14px; background: #fafaff; color: #485077; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.25; transition: background .15s ease, border-color .15s ease; }
.phq-options label:hover span { border-color: #aca6ff; }
.phq-options input:focus-visible + span { outline: 3px solid #8f85ff; outline-offset: 2px; }
.phq-options input:checked + span { border-color: #7065ff; background: #efedff; color: #433ac7; box-shadow: inset 0 0 0 1px #7065ff; }
.phq-question--missing { border-color: #cf687a; }
.phq-question-note { clear: both; margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.phq-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 18px; }
.phq-form-actions button { border: 0; cursor: pointer; }
.phq-form-actions span { color: var(--muted); font-size: 13px; }
.phq-result { padding-bottom: 70px; }
.phq-safety { max-width: 970px; padding: 22px 26px; margin-bottom: 18px; border: 1px solid #f5c9d0; border-left: 5px solid #d55d77; border-radius: 18px; background: #fff5f6; line-height: 1.6; }
.phq-safety strong { color: #90394d; font-size: 18px; }
.phq-safety p { margin: 8px 0 0; }
.phq-safety a { color: #873049; font-weight: 800; text-decoration: underline; }
.phq-safety--inline { margin-bottom: 18px; }
.phq-result-card { max-width: 970px; padding: 34px 40px; border: 1px solid #e3dfff; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.phq-result-card h2 { margin: 12px 0 5px; color: var(--purple-dark); font-size: 66px; letter-spacing: -.06em; line-height: 1; }
.phq-result-card h2 small { color: var(--muted); font-size: 24px; font-weight: 500; letter-spacing: 0; }
.phq-result-level { margin: 12px 0; font-size: 22px; font-weight: 800; }
.phq-result-card > p:not(.phq-result-level) { max-width: 700px; color: var(--muted); line-height: 1.6; }
.phq-result-disclaimer { font-size: 13px; }
.phq-function-text { padding: 12px 16px; border-radius: 12px; background: #f3f7ff; }
.phq-result-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 25px; }
.phq-reset { padding: 11px 16px; border: 1px solid #aaa5ed; border-radius: 12px; background: #fff; color: var(--purple-dark); font-weight: 700; cursor: pointer; }
.phq-consult { display: flex; justify-content: space-between; align-items: center; gap: 28px; max-width: 970px; margin-top: 18px; padding: 26px 34px; border-radius: 24px; background: #eceaff; }
.phq-consult h3 { margin: 0 0 8px; font-size: 22px; }
.phq-consult p { max-width: 570px; margin: 0; color: #4e5683; line-height: 1.55; }
.phq-consult .btn { flex-shrink: 0; }
.phq-explainer, .phq-scores, .phq-faq { padding-top: 60px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.phq-copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1050px; }
.phq-copy-grid p { margin: 0; color: #414a75; font-size: 17px; line-height: 1.75; }
.phq-table-wrap { max-width: 970px; overflow-x: auto; border: 1px solid #e4e3f3; border-radius: 20px; background: #fff; }
.phq-scores table { width: 100%; border-collapse: collapse; text-align: left; }
.phq-scores caption { padding: 17px 20px; color: var(--muted); text-align: left; font-size: 13px; }
.phq-scores th, .phq-scores td { padding: 17px 20px; border-top: 1px solid #ecebf6; line-height: 1.45; }
.phq-scores thead th { background: #f5f3ff; color: #454779; font-size: 13px; }
.phq-scores tbody th { color: var(--purple-dark); white-space: nowrap; }
.phq-score-note { max-width: 950px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.phq-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1050px; }
.phq-faq-grid > div { padding: 25px; border: 1px solid #e7e6f5; border-radius: 20px; background: #fff; }
.phq-faq-grid h3 { margin: 0 0 10px; font-size: 18px; }
.phq-faq-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.phq-sources { max-width: 1280px; padding: 35px 0 60px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.phq-sources h2 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.phq-sources p { max-width: 950px; margin: 0; }
.phq-sources a { color: var(--purple-dark); text-decoration: underline; }
.phq-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0 38px; border-top: 1px solid var(--line); }
.phq-footer img { width: 110px; }
.phq-footer > div { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; }
.phq-footer a:hover { color: var(--purple-dark); }

@media (max-width: 900px) {
  .phq-nav { gap: 15px; }
  .phq-hero-grid { gap: 22px; }
  .phq-hero-aside { padding: 25px; }
  .phq-consult { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .phq-header { padding-bottom: 8px; }
  .phq-nav { display: none; }
  .phq-breadcrumb { margin: 15px 0 26px; }
  .phq-hero { padding-bottom: 32px; }
  .phq-hero-grid, .phq-copy-grid, .phq-faq-grid { grid-template-columns: 1fr; }
  .phq-hero-grid { gap: 28px; }
  .phq-hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .phq-hero-aside { display: none; }
  .phq-hero-actions { gap: 15px; }
  .phq-test-section { padding-top: 34px; padding-bottom: 44px; }
  .phq-progress { flex-direction: column; align-items: stretch; gap: 10px; }
  .phq-question { padding: 16px 17px 18px; }
  .phq-question legend { font-size: 16px; }
  .phq-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .phq-options span { min-height: 54px; font-size: 13px; }
  .phq-form-actions { align-items: flex-start; flex-direction: column; }
  .phq-form-actions .btn { width: 100%; }
  .phq-result-card { padding: 26px 23px; }
  .phq-consult { padding: 24px; }
  .phq-consult .btn { width: 100%; }
  .phq-explainer, .phq-scores, .phq-faq { padding: 45px 0; }
  .phq-copy-grid { gap: 18px; }
  .phq-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .phq-facts { gap: 6px; }
  .phq-facts li { padding: 8px 10px; font-size: 12px; }
  .phq-hero-actions .btn { width: 100%; }
  .phq-scores th, .phq-scores td { padding: 13px 14px; }
}
