/* Onboarding pages (template-*-onboarding.php). RTL, Pejvaq navy + orange. */

.pq-onboarding .pq-main { padding-top: var(--pq-head-h); }
.pq-ob {
	--ob-radius: 12px;
	--ob-acc: var(--pq-orange, #fc6e20);
	--ob-acc-dark: #e05a10;
	--ob-acc-soft: #fff1e8;
	--ob-acc-glow: rgba(252, 110, 32, .22);
	--ob-navy: var(--pq-navy, #0e2839);
	--ob-muted: #6b7780;
	--ob-line: #e3e8eb;
	--ob-soft: #f2f5f8;
	color: var(--pq-ink, #212529);
}
.pq-ob *, .pq-ob *::before, .pq-ob *::after { box-sizing: border-box; }
.pq-ob button, .pq-ob input, .pq-ob select, .pq-ob textarea { font-family: inherit; }
.pq-ob ul, .pq-ob ol { list-style: none; margin: 0; padding: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top band: intro + questionnaire ---------- */
.pq-ob-top {
	background:
		radial-gradient(circle at 100% 100%, rgba(252, 110, 32, .28), transparent 45%),
		var(--ob-navy);
	color: #fff;
	padding: 56px 0 0;
	margin-bottom: 120px;
}
.pq-ob-top__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 56px;
	align-items: start;
}

.pq-ob-intro { padding-bottom: 56px; }
.pq-ob-intro h1 { font-size: 38px; line-height: 1.45; font-weight: 700; text-wrap: balance; }
.pq-ob-intro h1 span { color: #ff9a5c; }
.pq-ob-intro__lead { margin-top: 16px; font-size: 17px; line-height: 1.9; color: #d5e2e8; max-width: 460px; }

.pq-ob-plan {
	margin-top: 32px;
	padding: 20px 22px;
	border-radius: var(--ob-radius);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .14);
	max-width: 460px;
}
.pq-ob-plan__title { font-size: 15px; font-weight: 700; color: #fff; }
.pq-ob-plan ul { margin-top: 12px; display: grid; gap: 10px; }
.pq-ob-plan li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e6eef2; }
.pq-ob-plan li svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 8px; background: rgba(252, 110, 32, .22); color: #ff9a5c; }
.pq-ob-plan li[hidden] { display: none; }
.pq-ob-plan li.is-new { animation: pq-ob-in .45s ease both; }
.pq-ob-plan__hint { margin-top: 14px; font-size: 13px; color: #9fb4bf; }
@keyframes pq-ob-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ---------- Questionnaire card ---------- */
.pq-ob-card {
	position: relative;
	margin-bottom: -120px;
	padding: 28px 32px 24px;
	border-radius: var(--ob-radius);
	background: #fff;
	color: var(--pq-ink, #212529);
	box-shadow: 0 24px 60px rgba(14, 40, 57, .28);
	scroll-margin-top: calc(var(--pq-head-h) + 16px);
}

.pq-ob-progress__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ob-muted); }
.pq-ob-progress__row span:first-child { font-weight: 700; color: var(--ob-navy); }
.pq-ob-progress__bar { margin-top: 10px; height: 6px; border-radius: 999px; background: var(--ob-soft); overflow: hidden; }
.pq-ob-progress__bar span { display: block; height: 100%; width: 8%; border-radius: inherit; background: var(--ob-acc); transition: width .4s ease; }

.pq-ob-resume {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 10px 16px; margin-top: 18px; padding: 12px 16px;
	border-radius: 8px; background: var(--ob-acc-soft); font-size: 14px; color: var(--ob-navy);
}
.pq-ob-resume[hidden] { display: none; }
.pq-ob-resume div { display: flex; gap: 8px; }
.pq-ob-resume button { border: 0; border-radius: 6px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; }
.pq-ob-resume__go { background: var(--ob-acc); color: #fff; }
.pq-ob-resume__reset { background: transparent; color: var(--ob-navy); text-decoration: underline; text-underline-offset: 4px; }

.pq-ob-step { border: 0; margin: 24px 0 0; padding: 0; min-width: 0; }
.pq-ob-form.is-js .pq-ob-step:not(.is-active) { display: none; }
.pq-ob-step.is-active { animation: pq-ob-step .35s ease both; }
@keyframes pq-ob-step { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pq-ob-step legend { padding: 0; font-size: 23px; line-height: 1.5; font-weight: 700; color: var(--ob-navy); outline: none; }
.pq-ob-step__sub { margin-top: 4px; font-size: 14px; color: var(--ob-muted); }

.pq-ob-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 12px; margin-top: 20px; }
@media (min-width: 768px) {
	.pq-ob-tiles:has(> :nth-child(7)) { grid-template-columns: repeat(4, 1fr); }
	.pq-ob-tiles:has(> :nth-child(9)):not(:has(> :nth-child(11))) { grid-template-columns: repeat(5, 1fr); }
}
.pq-ob-tile {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
	padding: 16px 10px 14px; border: 2px solid #dfe5e8; border-radius: var(--ob-radius);
	cursor: pointer; text-align: center; background: #fff;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.pq-ob-tile:hover { border-color: var(--ob-acc); transform: translateY(-2px); }
.pq-ob-tile input { position: absolute; opacity: 0; pointer-events: none; }
.pq-ob-tile__pic { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--ob-soft); overflow: hidden; color: var(--ob-acc); }
.pq-ob-tile__pic img { width: 100%; height: 100%; object-fit: cover; }
.pq-ob-tile__pic svg { width: 30px; height: 30px; }
.pq-ob-tile__name { font-size: 14px; font-weight: 700; color: var(--ob-navy); line-height: 1.5; }
.pq-ob-tile__desc { font-size: 12px; line-height: 1.6; color: var(--ob-muted); }
.pq-ob-tile--desc { padding: 18px 12px 16px; }
.pq-ob-tile:has(input:checked) { border-color: var(--ob-acc); background: #fff8f3; box-shadow: 0 6px 16px var(--ob-acc-glow); }
.pq-ob-tile:has(input:focus-visible) { outline: 3px solid var(--ob-acc); outline-offset: 2px; }

.pq-ob-field { margin-top: 18px; }
.pq-ob-field > label, .pq-ob-q { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ob-navy); }
.pq-ob-field small { font-weight: 400; color: var(--ob-muted); }
.pq-ob-field input[type="text"], .pq-ob-field input[type="email"], .pq-ob-field input[type="tel"], .pq-ob-field select, .pq-ob-field textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #c4cdd2; border-radius: 6px; background: #fff;
	font-size: 15px; line-height: 1.6; color: var(--pq-ink, #212529);
}
.pq-ob-field input[dir="ltr"] { text-align: left; }
.pq-ob-field input[dir="ltr"]::placeholder { text-align: left; }
.pq-ob-field textarea { resize: vertical; }
.pq-ob-field :is(input, select, textarea):focus { outline: none; border-color: var(--ob-acc); box-shadow: 0 0 0 3px var(--ob-acc-glow); }
.pq-ob .pq-ob-field .is-invalid { border-color: #c0392b; background: #fffafa; }
.pq-ob-chips.is-invalid, .pq-ob-tiles.is-invalid { outline: 2px solid #f3c4bf; outline-offset: 6px; border-radius: 8px; }
.pq-ob-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

.pq-ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pq-ob-chip { position: relative; cursor: pointer; }
.pq-ob-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pq-ob-chip span {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
	border: 1px solid #c4cdd2; border-radius: 999px; font-size: 14px; color: var(--pq-ink, #212529); background: #fff;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.pq-ob-chip:hover span { border-color: var(--ob-acc); }
.pq-ob-chip input:checked + span { background: var(--ob-acc); border-color: var(--ob-acc); color: #fff; font-weight: 700; }
.pq-ob-chip input[type="checkbox"]:checked + span::before { content: "\2713"; font-size: 12px; }
.pq-ob-chip input:focus-visible + span { outline: 3px solid rgba(252, 110, 32, .45); outline-offset: 2px; }
.pq-ob-chips--big .pq-ob-chip span { padding: 10px 16px; font-size: 15px; }

.pq-ob-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; cursor: pointer; }
.pq-ob-consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ob-acc); flex: none; }
.pq-ob-consent.is-invalid span { color: #c0392b; }

.pq-ob-hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pq-ob-error, .pq-ob-alert { margin-top: 16px; padding: 10px 14px; border-radius: 6px; background: #fdecea; color: #a5281b; font-size: 14px; }
.pq-ob-error[hidden] { display: none; }

.pq-ob-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pq-ob-back { display: inline-flex; align-items: center; gap: 4px; padding: 10px 4px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--ob-navy); cursor: pointer; }
.pq-ob-back[hidden] { display: none; }
.pq-ob-back svg { width: 18px; height: 18px; }
.pq-ob-back:hover { color: var(--ob-acc); }
.pq-ob-btn {
	display: inline-flex; align-items: center; gap: 8px; margin: 0; margin-inline-start: auto;
	padding: 12px 24px; border: 0; border-radius: 8px; background: var(--ob-acc); color: #fff;
	font-size: 15px; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer;
	transition: background .2s ease, transform .1s ease;
}
.pq-ob-btn:hover { background: var(--ob-acc-dark); color: #fff; }
.pq-ob-btn:active { transform: translateY(1px); }
.pq-ob-btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s ease; }
.pq-ob-btn:hover svg { transform: translateX(-3px); }
.pq-ob-btn[disabled] { opacity: .7; cursor: progress; }
.pq-ob-form.is-js .pq-ob-submit { display: none; }
.pq-ob-form.is-js.is-last .pq-ob-submit { display: inline-flex; }
.pq-ob-form.is-js.is-last .pq-ob-next, .pq-ob-form:not(.is-js) .pq-ob-next { display: none; }
.pq-ob-saved { margin-top: 14px; font-size: 12px; color: var(--ob-muted); text-align: left; }
.pq-ob-form:not(.is-js) .pq-ob-progress, .pq-ob-form:not(.is-js) .pq-ob-saved { display: none; }

.pq-ob-done { padding: 24px 4px 12px; text-align: center; outline: none; }
.pq-ob-done[hidden] { display: none; }
.pq-ob-done__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ob-acc-soft); color: var(--ob-acc); }
.pq-ob-done__icon svg { width: 32px; height: 32px; stroke-width: 2.4; }
.pq-ob-done h2 { margin-top: 16px; font-size: 26px; line-height: 1.5; color: var(--ob-navy); }
.pq-ob-done p { margin: 10px auto 0; max-width: 460px; font-size: 15px; line-height: 1.9; color: var(--ob-muted); }
.pq-ob-done .pq-ob-btn { margin: 24px auto 0; }

/* ---------- How it works ---------- */
.pq-ob-how ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--ob-line); }
.pq-ob-how li { display: flex; gap: 14px; align-items: flex-start; }
.pq-ob-how li > span { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ob-navy); color: #fff; font-weight: 700; }
.pq-ob-how strong { display: block; font-size: 16px; color: var(--ob-navy); }
.pq-ob-how p { margin-top: 4px; font-size: 14px; color: var(--ob-muted); }

/* ---------- What you get ---------- */
.pq-ob-gets { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; padding-top: 64px; padding-bottom: 64px; }
.pq-ob-gets__lead h2 { font-size: 30px; line-height: 1.5; font-weight: 700; color: var(--ob-navy); text-wrap: balance; }
.pq-ob-gets__lead > p { margin-top: 14px; font-size: 16px; line-height: 1.9; color: var(--ob-muted); max-width: 480px; }
.pq-ob-gets__cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
.pq-ob-gets__cats a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 5px 5px 14px; border-radius: 999px; background: var(--ob-soft); font-size: 14px; font-weight: 700; color: var(--ob-navy); text-decoration: none; }
.pq-ob-gets__cats a:hover { background: var(--ob-acc-soft); }
.pq-ob-gets__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ob-acc); }
.pq-ob-gets__ic svg { width: 18px; height: 18px; }
.pq-ob-gets__cats img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.pq-ob-gets__list { margin: 0; }
.pq-ob-gets__list > div { padding: 18px 0; border-top: 1px solid var(--ob-line); }
.pq-ob-gets__list > div:last-child { border-bottom: 1px solid var(--ob-line); }
.pq-ob-gets__list dt { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ob-navy); }
.pq-ob-gets__list dt svg { width: 22px; height: 22px; color: var(--ob-acc); flex: none; }
.pq-ob-gets__list dd { margin: 6px 32px 0 0; font-size: 15px; color: var(--ob-muted); }

/* ---------- FAQ ---------- */
.pq-ob-faq { padding-bottom: 64px; max-width: 884px; margin-right: auto; margin-left: auto; }
.pq-ob-faq h2 { font-size: 26px; font-weight: 700; color: var(--ob-navy); margin-bottom: 16px; }
.pq-ob-faq details { border-bottom: 1px solid var(--ob-line); }
.pq-ob-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 700; color: var(--ob-navy); cursor: pointer; list-style: none; }
.pq-ob-faq summary::-webkit-details-marker { display: none; }
.pq-ob-faq summary svg { flex: none; width: 20px; height: 20px; transition: transform .2s ease; }
.pq-ob-faq details[open] summary svg { transform: rotate(180deg); }
.pq-ob-faq summary:hover { color: var(--ob-acc); }
.pq-ob-faq details p { padding: 0 0 18px; font-size: 15px; line-height: 1.9; color: var(--ob-muted); max-width: 700px; }

/* ---------- Closing band ---------- */
.pq-ob-end { background: radial-gradient(circle at 0% 0%, rgba(252, 110, 32, .32), transparent 50%), var(--ob-navy); color: #fff; }
.pq-ob-end__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.pq-ob-end h2 { font-size: 26px; line-height: 1.5; font-weight: 700; text-wrap: balance; }
.pq-ob-end p { margin-top: 8px; font-size: 15px; color: #d5e2e8; }
.pq-ob-end p a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.pq-ob-btn--light { flex: none; margin: 0; background: #fff; color: var(--ob-navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.pq-ob-btn--light:hover { background: var(--ob-acc-soft); color: var(--ob-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pq-ob-top { padding-bottom: 40px; margin-bottom: 0; }
	.pq-ob-top__inner { display: flex; flex-direction: column; gap: 0; }
	.pq-ob-intro { display: contents; }
	.pq-ob-intro h1 { order: 1; }
	.pq-ob-intro__lead { order: 2; max-width: 640px; margin-bottom: 28px; }
	.pq-ob-card { order: 3; width: 100%; max-width: 760px; margin-bottom: 0; }
	.pq-ob-plan { order: 4; width: 100%; max-width: 760px; margin-top: 20px; }
	.pq-ob-gets { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
	.pq-ob-top { padding: 32px 0; }
	.pq-ob-intro h1 { font-size: 27px; }
	.pq-ob-intro__lead { font-size: 15px; margin-bottom: 22px; }
	.pq-ob-card { padding: 22px 18px 18px; }
	.pq-ob-step legend { font-size: 20px; }
	.pq-ob-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.pq-ob-tile__pic { width: 60px; height: 60px; }
	.pq-ob-tiles:has(.pq-ob-tile--desc) { grid-template-columns: 1fr; }
	.pq-ob-tile--desc { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 12px 14px; text-align: right; }
	.pq-ob-tile--desc .pq-ob-tile__pic { grid-row: span 2; width: 52px; height: 52px; }
	.pq-ob-tile--desc .pq-ob-tile__pic svg { width: 24px; height: 24px; }
	.pq-ob-tile--desc .pq-ob-tile__name { align-self: end; }
	.pq-ob-tile--desc .pq-ob-tile__desc { align-self: start; }
	.pq-ob-row { grid-template-columns: 1fr; }
	.pq-ob-nav { position: sticky; z-index: 2; bottom: 0; margin: 24px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--ob-line); }
	.pq-ob-saved { text-align: right; }
	.pq-ob-how ol { grid-template-columns: 1fr; gap: 18px; padding: 32px 0; }
	.pq-ob-gets { padding-top: 40px; padding-bottom: 40px; }
	.pq-ob-gets__lead h2, .pq-ob-faq h2, .pq-ob-end h2 { font-size: 22px; }
	.pq-ob-faq { padding-bottom: 40px; }
	.pq-ob-end__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.pq-ob-step.is-active, .pq-ob-plan li.is-new { animation: none; }
	.pq-ob-progress__bar span, .pq-ob-tile, .pq-ob-btn svg { transition: none; }
}