/* Get matched survey (page-templates/get-matched.php + assets/js/parts/match.js) */
.match-page .breadcrumbs { margin-bottom: 18px; }
.mq-intro { margin-bottom: 22px; }
.mq-lead { font-size: 1.1rem; color: var(--ink); margin: 0 0 10px; max-width: 620px; }
.mq-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin: 0; }
.mq-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--clay-dark); }

.mq { padding: 22px 18px; }
@media (min-width: 640px) { .mq { padding: 34px 36px; } }

/* Progress */
.mq-progress { margin-bottom: 22px; }
.mq-bar { height: 8px; border-radius: var(--pill); background: var(--teal-soft); overflow: hidden; }
.mq-bar-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--teal); transition: width .35s ease; }
.mq-count { margin: 8px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

/* Steps (plain form without JS: all steps stacked) */
.mq-step { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.mq-q { display: block; padding: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3.4vw, 1.85rem); line-height: 1.25; color: var(--ink); margin: 0 0 6px; }
.mq-q:focus { outline: none; }
.mq-q:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.mq-num { color: var(--clay-dark); }
.mq-help { margin: 0 0 18px; font-size: 15px; }

.mq.is-stepper .mq-step { margin-bottom: 0; }
.mq.is-stepper .mq-num { display: none; }
.mq.is-stepper .mq-step.is-active { animation: mq-in .3s ease both; }
@keyframes mq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.mq.is-stepper .mq-step.is-active { animation: none; }
	.mq-bar-fill { transition: none; }
}

/* Option cards */
.mq-opts { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .mq-opts { grid-template-columns: 1fr 1fr; } }
.mq-type-multi .mq-opts, .mq-opts-many { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mq-opts-many { max-height: 420px; overflow-y: auto; padding: 2px; margin: -2px; }
.mq-type-multi .mq-opts { max-height: none; overflow: visible; }

.mq-opt {
	position: relative; display: flex; align-items: center; gap: 12px;
	min-height: 58px; padding: 14px 44px 14px 16px;
	background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
	cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.mq-opt:hover { border-color: var(--teal); background: var(--teal-soft); }
.mq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mq-opt-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-dark); }
.mq-opt-icon .icon { width: 20px; height: 20px; }
.mq-opt-text { display: flex; flex-direction: column; min-width: 0; }
.mq-opt-label { font-weight: 500; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.mq-opt-desc { font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.mq-tick {
	position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: transparent;
}
.mq-type-checks .mq-tick, .mq-type-multi .mq-tick { border-radius: 6px; }
.mq-tick .icon { width: 14px; height: 14px; }

.mq-opt:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 1px var(--teal) inset; }
.mq-opt:has(input:checked) .mq-tick { background: var(--teal); border-color: var(--teal); color: var(--surface); }
.mq-opt:has(input:checked) .mq-opt-icon { background: var(--surface); color: var(--teal-dark); }
.mq-opt:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Concern chips: compact pills */
.mq-type-multi .mq-opt { min-height: 48px; padding: 10px 40px 10px 14px; border-radius: var(--pill); }
.mq-type-multi .mq-opt-desc { display: none; }
.mq-type-multi .mq-tick { right: 12px; width: 20px; height: 20px; }

/* Navigation */
.mq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.mq-nav .btn { min-height: 48px; min-width: 120px; }
.mq-back .icon { transform: rotate(180deg); }
.mq-back.is-hidden { visibility: hidden; }
.mq-nav .mq-next:only-child { margin-left: auto; }

/* Final screen */
.mq-summary { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.mq-summary li { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; border-top: 1px solid var(--line); }
.mq-summary li:first-child { border-top: 0; }
@media (min-width: 560px) { .mq-summary li { flex-direction: row; justify-content: space-between; gap: 16px; } }
.mq-sum-q { font-size: 13.5px; color: var(--muted); }
.mq-sum-a { font-weight: 600; text-align: left; }
@media (min-width: 560px) { .mq-sum-a { text-align: right; } }
.mq-also { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; line-height: 2; }
.mq-submit { min-height: 54px; font-size: 16px; }
.mq-tip { font-size: 14px; margin: 12px 0 0; }

/* Footer lines */
.mq-foot { margin-top: 20px; text-align: center; }
.mq-private { display: inline-flex; gap: 8px; align-items: flex-start; text-align: left; font-size: 14.5px; color: var(--muted); margin: 0 0 8px; }
.mq-private .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
