/* Punarjanma Nepal: contact. A speckled green panel with the direct ways to reach us, and three tick-box questions, one at a time. */
.cq { padding: clamp(16px, 2.4vw, 32px) 0 clamp(48px, 6vw, 88px); }
.cq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; max-width: 1240px; }

/* ───── the panel */
.cq-side { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px); border-radius: clamp(20px, 2vw, 28px); background: var(--deep); color: var(--paper); min-height: min(640px, calc(100svh - 140px)); }
.cq-flecks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cq-side .crumbs, .cq-side .crumbs a { color: rgba(247,245,240,.7); }
.cq-h { margin: .2em 0 .25em; font-size: clamp(44px, 5vw, 80px); line-height: .9; color: var(--paper); }
.cq-lead { margin: 0; max-width: 22em; font-size: clamp(16px, 1.2vw, 19px); color: rgba(247,245,240,.82); }
.cq-or { margin: auto 0 10px; padding-top: 28px; font-weight: 600; color: rgba(247,245,240,.7); font-size: .92em; }
.cq-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cq-ways a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(247,245,240,.08); box-shadow: inset 0 0 0 1px rgba(247,245,240,.14); color: var(--paper); text-decoration: none; transition: background .15s, transform .15s; }
.cq-ways a:hover { background: rgba(247,245,240,.16); transform: translateX(3px); }
.cq-ways svg { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--paper); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cq-ways li:first-child svg { color: #1F9D55; }
.cq-ways span { display: grid; min-width: 0; }
.cq-ways small { font-size: .8em; color: rgba(247,245,240,.65); }
.cq-ways b { font-weight: 700; overflow-wrap: anywhere; }

/* ───── the questions */
.cq-form { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 3vw, 44px); border-radius: clamp(20px, 2vw, 28px); background: var(--white); box-shadow: 0 0 0 1px var(--line-n), 0 30px 60px -40px rgba(14,51,38,.4); }
.cq-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.cq-count { font-size: .9em; color: var(--text-2); }
.cq-count b { color: var(--text); }
.cq-bar { display: flex; gap: 6px; }
.cq-bar i { width: clamp(28px, 3vw, 44px); height: 6px; border-radius: 3px; background: var(--bone); transition: background .3s; }
.cq-form[data-at="1"] .cq-bar i:nth-child(-n+1), .cq-form[data-at="2"] .cq-bar i:nth-child(-n+2), .cq-form[data-at="3"] .cq-bar i:nth-child(-n+3), .cq-form[data-at="4"] .cq-bar i { background: var(--c); }
.cq-bar i:nth-child(1) { --c: var(--red); } .cq-bar i:nth-child(2) { --c: var(--blue); } .cq-bar i:nth-child(3) { --c: var(--yellow); } .cq-bar i:nth-child(4) { --c: var(--teal); }
.cq-form:not(.cq-js) .cq-top { display: none; }

.cq-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cq-form:not(.cq-js) .cq-step + .cq-step { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-n); }
.cq-form.cq-js .cq-step:not(.on) { display: none; }
.cq-step.on { animation: cq-in .32s cubic-bezier(.2,.8,.2,1) both; }
.cq-step.on.back { animation-name: cq-in-back; }
@keyframes cq-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes cq-in-back { from { opacity: 0; transform: translateX(-18px); } }
.cq-q { display: block; padding: 0; margin: 0 0 6px; font: 800 clamp(28px, 2.7vw, 42px)/1 var(--display); color: var(--text); outline: none; }
.cq-hint { margin: 0 0 clamp(16px, 2vw, 24px); color: var(--text-2); }

.cq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cq-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cq-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 16px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px transparent; cursor: pointer; font-weight: 600; color: var(--text); transition: box-shadow .15s, background .15s, transform .12s; user-select: none; }
.cq-opt:hover { box-shadow: inset 0 0 0 1.5px rgba(20,64,47,.28); }
.cq-opt:active { transform: scale(.985); }
.cq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cq-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 1.5px rgba(30,37,34,.3); transition: background .15s, box-shadow .15s; }
.cq-opt input[type=radio] + .cq-box { border-radius: 50%; }
.cq-box svg { width: 16px; height: 16px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .2s ease-out .05s; }
.cq-opt:has(input:checked) { background: color-mix(in srgb, var(--ink) 7%, var(--white)); box-shadow: inset 0 0 0 2px var(--ink); }
.cq-opt input:checked + .cq-box { background: var(--ink); box-shadow: none; }
.cq-opt input:checked + .cq-box svg { stroke-dashoffset: 0; }
.cq-opt input:focus-visible + .cq-box { outline: 2px solid var(--ink); outline-offset: 3px; }
.cq-opt > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cq-t { min-width: 0; line-height: 1.2; }

.cq-other { margin-top: 10px; }
.cq-js .cq-other:not(.on) { display: none; }
.cq-other input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--white); font: inherit; color: var(--text); outline: none; }
.cq-other input:focus { box-shadow: 0 0 0 4px rgba(20,64,47,.1); }
.cq-err { margin: 10px 0 0; color: var(--red); font-weight: 600; font-size: .92em; }
.cq-err[hidden] { display: none; }
.cq-step.shake .cq-opts { animation: cq-shake .3s; }
@keyframes cq-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.cq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(16px, 2vw, 22px); }
.cq-wide { grid-column: 1 / -1; }
.cq-fields .field { margin: 0; }
.cq-fields .field label { font-size: .88em; }
.cq-fields .field input, .cq-fields .field textarea { padding: 11px 14px; }
.cq-fields .field textarea { min-height: 64px; }
.cq-opt-k { font-weight: 400; color: var(--text-2); }

.cq-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: clamp(20px, 2.6vw, 32px); }
.cq-form:not(.cq-js) .cq-nav [data-next], .cq-form:not(.cq-js) .cq-nav [data-back] { display: none; }
.cq-back { margin-right: auto; padding: 10px 6px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; }
.cq-back:hover { color: var(--text); border-bottom-color: currentColor; }
.cq-nav .btn { min-width: 132px; }

@media (prefers-reduced-motion: reduce) { .cq-step.on, .cq-step.shake .cq-opts { animation: none; } }
@media (max-width: 900px) {
  .cq-grid { grid-template-columns: minmax(0, 1fr); }
  .cq-side { min-height: 0; }
  .cq-or { margin-top: 20px; padding-top: 0; }
  .cq-ways { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 560px) {
  .cq-opts, .cq-opts-3, .cq-fields { grid-template-columns: minmax(0, 1fr); }
  .cq-opt { min-height: 52px; }
  .cq-side { padding: 20px; }
  .cq-h { font-size: 44px; }
  .cq-or { margin-top: 16px; margin-bottom: 8px; }
  .cq-ways { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cq-ways a { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; }
  .cq-ways svg { width: 30px; height: 30px; padding: 7px; border-radius: 8px; }
  .cq-ways span { display: flex; align-items: baseline; gap: 8px; }
  .cq-ways small { font-size: .78em; min-width: 4.6em; }
  .cq-ways b { font-size: .9em; }
}
.cq-opts .cq-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .cq-opts .cq-opt:last-child:nth-child(odd) { grid-column: auto; } }
