/* ==========================================================================
   Questionnaire (post-payment onboarding)
   ========================================================================== */
.otp-qhero { padding-block: clamp(40px, 6vw, 72px) clamp(90px, 10vw, 130px); overflow: hidden; }
.otp-qhero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -300px; border-radius: 50%; border: 1px solid rgba(116, 239, 208, .12); box-shadow: 0 0 0 80px rgba(116, 239, 208, .02), 0 0 0 160px rgba(116, 239, 208, .015); z-index: -1; }
.otp-qhero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.otp-qhero h1 { font-family: var(--otp-f-display); font-size: clamp(36px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; color: #fff; margin: 20px 0 16px; }
.otp-qhero p.otp-lead { color: #c3d6da; }
.otp-qhero__chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.otp-qhero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; color: #d6e8e6; }
.otp-qhero__chips .otp-icon { width: 16px; height: 16px; color: var(--otp-mint); }
.otp-order { border-radius: 20px; padding: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(116, 239, 208, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.otp-order__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(116, 239, 208, .18); font-size: 14px; }
.otp-order__row:last-child { border-bottom: 0; }
.otp-order__row span { font-family: var(--otp-f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fb0b5; }
.otp-order__row strong { color: #fff; text-align: right; word-break: break-all; }
.otp-order__paid { display: inline-flex; align-items: center; gap: 6px; color: var(--otp-lime) !important; }
.otp-order__paid .otp-icon { width: 16px; height: 16px; }

.otp-q { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; margin-top: -72px; padding-bottom: 80px; position: relative; z-index: 2; }
.otp-qcard { background: #fff; border-radius: 24px; border: 1px solid #e1ded5; box-shadow: 0 40px 80px -40px rgba(6, 28, 38, .4), 0 2px 0 rgba(0, 0, 0, .02); overflow: hidden; }
.otp-qsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #ecebe5; background: #fbfaf6; }
.otp-qsteps button { width: 100%; border: 0; background: none; text-align: left; padding: 18px 22px 16px; cursor: pointer; position: relative; color: #8a948f; display: grid; gap: 2px; }
.otp-qsteps button[disabled] { cursor: default; }
.otp-qsteps button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; transition: background .3s; }
.otp-qsteps__n { font-family: var(--otp-f-mono); font-size: 11px; letter-spacing: .1em; }
.otp-qsteps__l { font-weight: 700; font-size: 14px; color: inherit; }
.otp-qsteps li.is-active button { color: var(--otp-text); }
.otp-qsteps li.is-active button::after { background: var(--otp-green); }
.otp-qsteps li.is-done button { color: var(--otp-green-d); }
.otp-qsteps li.is-done .otp-qsteps__n::after { content: " ✓"; }

.otp-qstep { border: 0; margin: 0; padding: 30px clamp(18px, 4vw, 38px) 6px; min-width: 0; }
.otp-qform.is-js .otp-qstep:not(.is-active) { display: none; }
.otp-qstep.is-active { animation: otp-type .45s var(--otp-ease); }
.otp-qstep__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
.otp-qstep__icon { width: 52px; height: 52px; border-radius: 15px; background: var(--otp-ink); color: var(--otp-lime); display: grid; place-items: center; flex: none; }
.otp-qstep__icon .otp-icon { width: 26px; height: 26px; }
.otp-qstep__head legend { padding: 0; font-family: var(--otp-f-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; float: left; width: 100%; }
.otp-qstep__head p { clear: both; margin: 6px 0 0; color: var(--otp-muted); font-size: 15px; padding-top: 4px; }
.otp-qstep__count { display: block; font-family: var(--otp-f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--otp-green-d); margin-bottom: 6px; }

.otp-qf { padding: 22px 0 26px; border-top: 1px solid #f0eee8; }
.otp-qf:first-of-type { border-top: 0; padding-top: 0; }
.otp-qf__top { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-bottom: 14px; }
.otp-qf__num { width: 34px; height: 34px; border-radius: 10px; background: #e2fbf2; color: var(--otp-green-d); font-family: var(--otp-f-mono); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.otp-qf__num--plain { background: var(--otp-paper); color: #7d8784; }
.otp-qf__title { font-weight: 700; font-size: 16.5px; line-height: 1.35; margin: 4px 0 4px; }
.otp-qf__badge { display: inline-block; vertical-align: 2px; margin-left: 8px; font-family: var(--otp-f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: #f0eee8; color: #7d8784; font-weight: 500; }
.otp-qf__badge--req { background: #e2fbf2; color: var(--otp-green-d); }
.otp-qf__help { margin: 0; font-size: 13.5px; color: #75828a; }
.otp-qf__inputs { display: grid; gap: 12px; padding-left: 48px; }
.otp-qf__inputs--2, .otp-qf__inputs--first-full { grid-template-columns: 1fr 1fr; }
.otp-qf__inputs--3 { grid-template-columns: 1fr 1.25fr 1fr; }
.otp-qf__inputs--first-full > :first-child { grid-column: 1 / -1; }
.otp-in { position: relative; }
.otp-in label.otp-sr + .otp-ctl { }
.otp-ctl {
	width: 100%;
	background: #fbfaf7;
	border: 1.5px solid #e2ded3;
	border-radius: 12px;
	padding: 14px 15px;
	font: inherit;
	font-size: 15.5px;
	color: var(--otp-text);
	transition: border-color .2s, box-shadow .2s, background .2s;
	outline: 0;
}
.otp-ctl::placeholder { color: #a3aaa6; }
.otp-ctl:hover { border-color: #cfc9bb; }
.otp-ctl:focus { border-color: var(--otp-green); background: #fff; box-shadow: 0 0 0 4px rgba(0, 181, 122, .14); }
textarea.otp-ctl { min-height: 118px; resize: vertical; line-height: 1.55; }
.otp-ctl.is-invalid { border-color: var(--otp-pink); box-shadow: 0 0 0 4px rgba(255, 66, 137, .1); }
.otp-in__count { position: absolute; right: 12px; bottom: 10px; font-family: var(--otp-f-mono); font-size: 10.5px; color: #b2b8b4; pointer-events: none; }

.otp-pills { display: flex; flex-wrap: wrap; gap: 9px; border: 0; padding: 0; margin: 0; }
.otp-pill { position: relative; cursor: pointer; }
.otp-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.otp-pill span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 11px; border: 1.5px solid #e2ded3; background: #fbfaf7; font-size: 14px; font-weight: 600; color: #3d4e5a; transition: all .2s; }
.otp-pill span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #aab4b0; transition: all .2s; background: #fff no-repeat center / 11px; }
.otp-pill:hover span { border-color: #cfc9bb; }
.otp-pill input:checked + span { background: var(--otp-ink); border-color: var(--otp-ink); color: #fff; }
.otp-pill input:checked + span::before { background-color: var(--otp-lime); border-color: var(--otp-lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23061C26' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.otp-pill input:focus-visible + span { outline: 3px solid var(--otp-orange); outline-offset: 2px; }
.otp-pills.is-invalid .otp-pill span { border-color: #ffb3cd; }

.otp-drop { display: flex; align-items: center; gap: 16px; padding: 20px; border: 2px dashed #bfe3d6; border-radius: 16px; background: #f6fcf9; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.otp-drop:hover, .otp-drop.is-over { border-color: var(--otp-green); background: #ecfaf3; }
.otp-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.otp-drop__icon { width: 46px; height: 46px; border-radius: 13px; background: #fff; display: grid; place-items: center; color: var(--otp-green); flex: none; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .2); }
.otp-drop__icon .otp-icon { width: 22px; height: 22px; }
.otp-drop strong { display: block; font-size: 15px; }
.otp-drop small { color: #75828a; font-size: 12.5px; }
.otp-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.otp-files li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: var(--otp-paper); }
.otp-files li .otp-icon { width: 16px; height: 16px; color: var(--otp-green-d); }
.otp-files li small { margin-left: auto; color: #8a948f; font-family: var(--otp-f-mono); font-size: 11px; }

.otp-consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin: 4px 0 26px; border-radius: 14px; background: var(--otp-paper); font-size: 14px; color: #44545f; cursor: pointer; }
.otp-consent input { width: 20px; height: 20px; accent-color: var(--otp-green); margin: 1px 0 0; flex: none; }
.otp-consent a { color: var(--otp-green-d); font-weight: 600; }
.otp-consent.is-invalid { box-shadow: inset 0 0 0 1.5px var(--otp-pink); }

.otp-qerr { margin: 0 clamp(18px, 4vw, 38px) 18px; padding: 14px 16px; border-radius: 12px; background: #fff0f4; border: 1px solid #ffc5d8; color: #7a1f43; font-size: 14.5px; font-weight: 600; }
.otp-qerr[hidden] { display: none; }
.otp-qfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(18px, 4vw, 38px); border-top: 1px solid #ecebe5; background: #fbfaf6; }
.otp-qfoot__hint { font-size: 13px; color: #7d8784; display: inline-flex; gap: 8px; align-items: center; }
.otp-qfoot__hint .otp-icon { width: 15px; height: 15px; color: var(--otp-green); }
.otp-qfoot__btns { display: flex; gap: 10px; margin-left: auto; }
.otp-btn--back { --bg: #fff; --fg: var(--otp-text); --shadow: transparent; box-shadow: inset 0 0 0 1.5px #dcd7cb; }
.otp-qform.is-js [data-q-submit] { display: none; }
.otp-qform.is-js.is-last [data-q-submit] { display: inline-flex; }
.otp-qform.is-js.is-last [data-q-next] { display: none; }
.otp-qform:not(.is-js) [data-q-next], .otp-qform:not(.is-js) [data-q-back] { display: none; }
.otp-qform.is-first [data-q-back] { visibility: hidden; }

/* Live draft */
.otp-qaside { display: grid; gap: 18px; position: sticky; top: calc(var(--otp-header-h) + 20px); }
.otp-draft { border-radius: 22px; background: var(--otp-paper); border: 1.5px solid var(--otp-ink); box-shadow: 8px 8px 0 var(--otp-lime); overflow: hidden; }
.otp-draft__head { background: var(--otp-ink); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-family: var(--otp-f-mono); font-size: 11.5px; letter-spacing: .14em; }
.otp-draft__head em { font-style: normal; color: var(--otp-lime); }
.otp-draft__body { padding: 18px 18px 6px; background-image: radial-gradient(rgba(11, 28, 46, .08) 1px, transparent 1.2px); background-size: 18px 18px; }
.otp-draft__name { font-family: var(--otp-f-display); font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 4px; word-break: break-word; }
.otp-draft__name.is-empty { color: #b9b4a7; }
.otp-draft__sub { margin: 0 0 14px; font-size: 13px; color: var(--otp-muted); min-height: 1.4em; }
.otp-draft__rows { margin: 0; display: grid; gap: 0; }
.otp-draft__row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px dashed #d4cdbd; font-size: 13px; }
.otp-draft__row dt { font-family: var(--otp-f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8b8f86; padding-top: 2px; }
.otp-draft__row dd { margin: 0; color: var(--otp-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.otp-draft__row dd.is-empty { color: transparent; background: repeating-linear-gradient(90deg, #d9d3c5 0 6px, transparent 6px 10px); height: 2px; margin-top: 9px; }
.otp-draft__row dd .otp-mini { display: inline-block; padding: 1px 6px; margin: 0 4px 3px 0; border-radius: 5px; background: var(--otp-ink); color: #fff; font-size: 11.5px; }
.otp-draft__meter { padding: 14px 18px 16px; border-top: 1.5px solid var(--otp-ink); background: #fff; }
.otp-draft__meter div { display: flex; justify-content: space-between; font-family: var(--otp-f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--otp-muted); margin-bottom: 8px; }
.otp-draft__meter strong { color: var(--otp-text); }
.otp-draft__bar { height: 8px; border-radius: 99px; background: #ecebe5; overflow: hidden; }
.otp-draft__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--otp-green), var(--otp-lime)); transition: width .5s var(--otp-ease); }

.otp-side { background: #fff; border: 1px solid #e1ded5; border-radius: 20px; padding: 20px; }
.otp-side h3 { font-family: var(--otp-f-display); font-size: 17px; margin: 0 0 14px; letter-spacing: -.02em; }
.otp-side p { margin: 0; font-size: 13.5px; color: var(--otp-muted); }
.otp-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.otp-timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 13.5px; }
.otp-timeline li > span { width: 28px; height: 28px; border-radius: 50%; background: #e2fbf2; color: var(--otp-green-d); font-family: var(--otp-f-mono); font-size: 12px; display: grid; place-items: center; }
.otp-timeline li.is-now > span { background: var(--otp-lime); color: var(--otp-ink); }
.otp-timeline strong { display: block; font-size: 14px; }
.otp-timeline small { color: #75828a; }
.otp-side--dark { background: var(--otp-ink); border-color: var(--otp-ink); color: #fff; }
.otp-side--dark .otp-kicker { margin-bottom: 6px; color: var(--otp-mint); font-size: 11.5px; }
.otp-side--dark p { color: #a9c1c6; }
.otp-side .otp-days { font-family: var(--otp-f-display); font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 4px 0 8px; color: var(--otp-lime); }
.otp-side--note { background: #e8f7f0; border-color: #cdeedd; }
.otp-side--note h3 { display: flex; align-items: center; gap: 8px; }
.otp-side--note .otp-icon { width: 18px; height: 18px; color: var(--otp-green-d); }

/* States */
.otp-qstate { padding: clamp(36px, 6vw, 64px) clamp(22px, 5vw, 56px); text-align: center; }
.otp-qstate__icon { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center; background: #e2fbf2; color: var(--otp-green); position: relative; }
.otp-qstate__icon::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed #a6e8cf; animation: otp-spin 14s linear infinite; }
@keyframes otp-spin { to { transform: rotate(360deg); } }
.otp-qstate__icon .otp-icon { width: 42px; height: 42px; }
.otp-qstate__icon--lock { background: var(--otp-paper); color: var(--otp-text); }
.otp-qstate h2 { font-family: var(--otp-f-display); font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 12px; }
.otp-qstate p { color: var(--otp-muted); max-width: 520px; margin: 0 auto 22px; font-size: 16px; }
.otp-qstate__ref { display: inline-flex; gap: 10px; align-items: center; font-family: var(--otp-f-mono); font-size: 12px; letter-spacing: .08em; padding: 8px 14px; border-radius: 10px; background: var(--otp-paper); margin-bottom: 26px; }
.otp-qstate .otp-btn + .otp-btn { margin-left: 10px; }

@media (max-width: 1100px) {
	.otp-qf__inputs--3 { grid-template-columns: 1fr 1fr; }
	.otp-qf__inputs--3 > :first-child { grid-column: 1 / -1; }
	.otp-q { grid-template-columns: 1fr; }
	.otp-qaside { position: static; grid-template-columns: 1fr 1fr; }
	.otp-qaside .otp-draft { grid-row: span 2; }
}
@media (max-width: 860px) {
	.otp-qhero__grid { grid-template-columns: 1fr; }
	.otp-order { max-width: 520px; }
}
@media (max-width: 640px) {
	.otp-qaside { grid-template-columns: 1fr; }
	.otp-qaside .otp-draft { grid-row: auto; order: -1; }
	.otp-qsteps button { padding: 14px 12px; }
	.otp-qsteps__l { font-size: 12.5px; line-height: 1.2; }
	.otp-qf__inputs { padding-left: 0; }
	.otp-qf__inputs--2, .otp-qf__inputs--3, .otp-qf__inputs--first-full { grid-template-columns: 1fr; }
	.otp-qfoot { flex-wrap: wrap; }
	.otp-qfoot__hint { display: none; }
	.otp-qfoot__btns { width: 100%; }
	.otp-qfoot__btns .otp-btn { flex: 1; }
	.otp-qform.is-first [data-q-back] { display: none; }
	.otp-qstate .otp-btn { width: 100%; }
	.otp-qstate .otp-btn + .otp-btn { margin: 10px 0 0; }
}
