/* ══════════════════════════════════════════════════
   Questionnaire 2 — additive styles only.
   Loads alongside checkup.css and reuses its .ck-*
   primitives (shell, cards, buttons, .ck-opt, .ck-doors,
   sliders, report) so both questionnaires look identical
   everywhere except the few genuinely new components below.
   ══════════════════════════════════════════════════ */

#checkup2-wrap {
  position: fixed; inset: 0; z-index: 2000;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--accent-bg) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, var(--beige) 0%, transparent 55%),
    var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}

/* ── option description line (used by the Section-2 action cards) ── */
.ck-opt-desc { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--muted); margin-top: 2px; line-height: 1.5; }

/* ── multi-select checkmark badge (investment destinations) ── */
.ck-opt { position: relative; }
.ck2-opt-check {
  margin-left: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); color: transparent; transition: all .15s;
}
.ck-opt.on .ck2-opt-check { background: var(--accent); border-color: var(--accent); color: white; }

/* ── richer action cards (Section-2 questions with title + description) ──
   .ck-opt-rich is added whenever an option carries a .sub description, so
   the whole card (both lines) reads as one obviously-clickable unit. */
.ck-opt-rich { align-items: flex-start; padding: 16px 18px; box-shadow: 0 1px 0 rgba(var(--shadow-rgb),.02); }
.ck-opt-rich:hover { box-shadow: 0 10px 24px rgba(var(--shadow-rgb),.10); transform: translateY(-2px); }
.ck-opt-rich .ck-opt-e { margin-top: 1px; }

/* ── icon-card grid (dependants / goal / destinations) — replaces plain
   vertical lists so these screens read as a tappable deck, not a form ── */
.ck-opts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.ck-opt-card {
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 8px; padding: 16px 10px; min-height: 104px; position: relative;
}
.ck-opt-card .ck-opt-e { font-size: 30px; }
.ck-opt-card > span:last-child { font-size: var(--text-xs); line-height: 1.35; }
.ck-opt-card .ck2-opt-check { position: absolute; top: 8px; right: 8px; margin-left: 0; }

/* ── runway bar (emergency-fund MCQ) ── */
.ck2-runway { display: flex; gap: 3px; margin-top: 6px; }
.ck2-runway-seg { width: 14px; height: 6px; border-radius: var(--radius-sm); background: var(--border); }
.ck2-runway-seg.on { background: var(--accent); }

/* ── crash reference graph (k2_crash) ── */
.ck2-crash-ref { margin: 4px 0 10px; padding: 12px 16px 8px; background: var(--bg); border-radius: var(--r); border: 1px solid var(--border); }
.ck2-crash-ref svg { width: 100%; height: auto; display: block; }
.ck2-crash-labels { display: flex; justify-content: space-between; font-size: var(--text-2xs); font-weight: 700; color: var(--muted); margin-top: 2px; font-family: var(--font-en); }
.ck2-crash-labels b { color: var(--err-text); }

/* ── prize cards (the doors question — replaces the generic doors component here) ── */
.ck2-prizecards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.ck2-prizecard {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: white; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 18px 8px; cursor: pointer; font-family: var(--font-mr);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ck2-prizecard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(var(--shadow-rgb),.12); }
.ck2-prizecard.on { border-color: var(--accent); background: var(--accent-bg); }
.ck2-prize-door { line-height: 1; }
.ck2-prize-door svg { width: clamp(56px, 16vw, 84px); height: auto; }
.ck2-prize-line { font-size: var(--text-xs); font-weight: 700; color: var(--text); line-height: 1.35; }

/* ══════════════════════════════════════════════════
   Report redesign (finance-kundali-one-page.html reference)
   Reuses .ck-card/.ck-report/.ck-actions/.ck-cta/.ck-btn-*/
   .ck-disclaimer as-is; everything below is new to that page.
   ══════════════════════════════════════════════════ */

/* ── hero: identity only, light card (no cosmic band here) ── */
.ck2-hero { margin: -26px -26px 24px; padding: 22px 26px 20px; background: linear-gradient(135deg, var(--bg), var(--accent-bg)); border-bottom: 1px solid var(--border); }
.ck2-eyebrow {
  display: inline-flex; padding: 6px 12px; border: 1px solid rgba(var(--gold-rgb),.35);
  border-radius: var(--radius-pill); color: var(--accent-text); background: var(--accent-bg);
  font-size: var(--text-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ck2-eyebrow-light { background: rgba(255,255,255,.12); color: var(--gold-on-dark); border-color: rgba(255,255,255,.2); }
/* two classes (0-2-0) beats checkup.css's ".ck-card h2" (0-1-1) — the bare
   ".ck2-person-name" alone used to lose that fight and silently fall back
   to the shared h2 size/weight/margin. */
.ck2-report-v2 .ck2-person-name { margin: 10px 0 3px; font-size: var(--text-3xl); font-family: var(--font-serif); font-weight: 650; color: var(--text); letter-spacing: -.02em; }
.ck2-person-meta { margin: 0; color: var(--muted); font-size: var(--text-sm); }

/* ── sections ── */
.ck2-section { margin-top: 30px; }
.ck2-section-head { margin-bottom: 14px; }
.ck2-section-head h2, .ck2-section > h2 { margin: 0 0 4px; font-size: var(--text-xl); color: var(--text); }
.ck2-section-head p { margin: 0; color: var(--muted); font-size: var(--text-xs); max-width: 480px; }

/* ── legend + diamond chart ── */
.ck2-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.ck2-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--text-xs); }
.ck2-dot { width: 9px; height: 9px; border-radius: 50%; }
.ck2-dot.lit { background: var(--accent); }
.ck2-dot.growing { background: var(--gold-deep); }
.ck2-dot.open { background: var(--err-text); }

.ck2-chart-board {
  position: relative; height: 320px; overflow: hidden;
  border: 2px solid #8B6A20; border-radius: var(--radius-xl);
  background: radial-gradient(circle at 50% 46%, rgba(var(--gold-rgb),.09), transparent 42%), linear-gradient(135deg, #FFFDF6, #F6EEDB);
  box-shadow: inset 0 0 0 4px #FFFAF0, inset 0 0 0 6px rgba(139,106,32,.62), 0 14px 34px rgba(var(--shadow-rgb),.09);
}
.ck2-chart-board::before {
  content: ''; position: absolute; inset: 2px; z-index: 0;
  background: linear-gradient(135deg, #FFFDF6, #F6EEDB);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.ck2-chart-board::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom right, transparent 49.7%, rgba(139,106,32,.64) 49.85%, rgba(139,106,32,.64) 50.15%, transparent 50.3%),
    linear-gradient(to bottom left, transparent 49.7%, rgba(139,106,32,.64) 49.85%, rgba(139,106,32,.64) 50.15%, transparent 50.3%);
}
.ck2-chart-tags { position: absolute; inset: 0; }
.ck2-tag {
  position: absolute; width: min(26%, 168px); min-height: 38px; padding: 7px 9px;
  border-radius: var(--radius-md); box-shadow: 0 3px 12px rgba(var(--shadow-rgb),.06);
  font-family: var(--font-mr); font-size: var(--text-xs); font-weight: 600;
  text-align: center; line-height: 1.25; transform: translate(-50%, -50%); z-index: 2;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.ck2-tag:nth-child(1) { left: 50%; top: 25%; }
.ck2-tag:nth-child(2) { left: 76%; top: 25%; }
.ck2-tag:nth-child(3) { left: 76%; top: 75%; }
.ck2-tag:nth-child(4) { left: 50%; top: 75%; }
.ck2-tag:nth-child(5) { left: 24%; top: 75%; }
.ck2-tag:nth-child(6) { left: 24%; top: 25%; }
.ck2-tag.lit { color: var(--accent-text); background: var(--accent-bg); }
.ck2-tag.growing { color: var(--gold-deep); background: rgba(255,248,226,.95); }
.ck2-tag.open { color: var(--err-text); background: rgba(255,242,237,.95); }
.ck2-seal {
  position: absolute; left: 50%; top: 50%; z-index: 4; display: grid; width: 44px; height: 44px;
  place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(139,106,32,.65);
  border-radius: 50%; color: #8B261F; background: #FFF9E9; box-shadow: 0 0 0 4px rgba(var(--gold-rgb),.15);
  font-family: var(--font-mr); font-size: var(--text-xs); font-weight: 700;
}
.ck2-corner { position: absolute; z-index: 4; width: 14px; height: 14px; border: 1.5px solid #8B6A20; transform: rotate(45deg); background: #FFF9E9; }
.ck2-corner.tl { left: 12px; top: 12px; } .ck2-corner.tr { right: 12px; top: 12px; }
.ck2-corner.bl { left: 12px; bottom: 12px; } .ck2-corner.br { right: 12px; bottom: 12px; }

/* ── planet card + horoscope ── */
.ck2-planet-card {
  display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center;
  margin-top: 4px; padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-xl); color: white;
  background: linear-gradient(135deg, var(--night-1), var(--night-2));
}
.ck2-planet-art-wrap { display: flex; justify-content: center; }
.ck2-planet-art-wrap svg { width: 100%; max-width: 160px; height: auto; }
.ck2-planet-copy h3 { margin: 10px 0 2px; font-size: var(--text-xl); color: var(--gold-on-dark); }
.ck2-graha-karak { margin: 0 0 8px; font-size: var(--text-xs); font-weight: 600; font-style: italic; color: rgba(255,255,255,.65); }
.ck2-planet-copy p { margin: 0; color: rgba(255,255,255,.8); font-size: var(--text-sm); line-height: 1.65; }
.ck2-horoscope { margin-top: 16px; padding: 22px; border: 1px solid #EAD8A4; border-radius: var(--r); background: #FFF8E6; }
.ck2-horoscope h3 { margin: 0 0 8px; font-size: var(--text-base); color: var(--text); }
.ck2-horoscope blockquote { margin: 0; color: #614D22; font-family: var(--font-serif); font-size: var(--text-lg); font-style: italic; line-height: 1.55; }
.ck2-horoscope p { margin: 10px 0 0; color: var(--muted); font-size: var(--text-xs); }

/* ── action cards ── */
.ck2-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ck2-action-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r); background: white; }
.ck2-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-weight: 700; font-family: var(--font-en); }
.ck2-action-card h3 { margin: 0 0 6px; font-size: var(--text-sm); color: var(--text); }
.ck2-action-card p { margin: 0 0 10px; color: var(--muted); font-size: var(--text-xs); line-height: 1.55; }
.ck2-all-done { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); font-size: var(--text-sm); font-weight: 700; color: var(--text); }

/* ── footer + marketing band ── */
.ck2-report-footer { margin-top: 8px; }
.ck2-marketing-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  /* bottom margin must exactly cancel .ck-report's own padding-bottom, or
     the band's bottom edge is clipped by .ck-card's overflow:hidden — the
     two used to be hand-typed separately (30px vs 26px) and drifted. */
  margin: 28px -26px calc(-1 * var(--ck-report-pad-b, 26px)); padding: 20px 26px;
  color: var(--accent-bg); background: linear-gradient(135deg, var(--accent-text), var(--accent));
}
.ck2-marketing-brand { display: flex; align-items: center; gap: 12px; }
.ck2-marketing-logo { width: 34px; height: auto; }
.ck2-marketing-brand strong { display: block; font-size: var(--text-sm); }
.ck2-marketing-brand span, .ck2-marketing-contact { color: rgba(255,255,255,.78); font-size: var(--text-xs); }

@media (max-width: 700px) {
  .ck-opts-grid { grid-template-columns: repeat(2, 1fr); }
  /* doors stay 3-across even on mobile — one short line per card fits,
     and stacking to 1 column destroys the "pick one of three" read */
  .ck2-chart-board { height: 380px; }
  .ck2-tag { width: 30%; font-size: var(--text-2xs); }
  .ck2-planet-card { grid-template-columns: 1fr; text-align: center; }
  .ck2-planet-art-wrap svg { max-width: 120px; }
  .ck2-action-grid { grid-template-columns: 1fr; }
  .ck2-marketing-footer { flex-direction: column; align-items: flex-start; margin-left: -18px; margin-right: -18px; }
}

/* ══════════════════════════════════════════════════
   True one-page PDF (see ck2Print() in checkup2.js)

   #ck2-print-root/.ck2-page is a FRESH CLONE of the report, sized to
   exactly one A4 page and parked off-screen so it can be measured at the
   same geometry it will print at. Geometry below is a straight port of
   finance-kundali-one-page.html's @media print block (the original
   one-page design) onto this file's actual class names. .ck2-page-inner's
   `transform: scale(var(--ck2-fit))` (set by JS after measuring) is what
   guarantees the page never overflows, at any input length.
   ══════════════════════════════════════════════════ */
.ck2-page {
  position: fixed; left: -300mm; top: 0; z-index: -1;
  width: 210mm; height: 297mm; overflow: hidden;
  background: white; color: var(--text); font-family: var(--font-mr);
}
.ck2-page-inner { transform: scale(var(--ck2-fit, 1)); transform-origin: top left; width: calc(100% / var(--ck2-fit, 1)); }
.ck2-page .ck-card { box-shadow: none; border: none; border-radius: 0; padding: 0; margin: 0; width: 210mm; animation: none; }
.ck2-page .ck2-hero { margin: 0; padding: 6mm 14mm 5mm; }
.ck2-page .ck2-section { margin: 5mm 13mm 0; }
.ck2-page .ck2-section-head { margin-bottom: 3mm; }
.ck2-page .ck2-section-head h2, .ck2-page .ck2-section > h2 { font-size: 15pt; }
.ck2-page .ck2-section-head p { font-size: 8pt; }
.ck2-page .ck2-legend { margin-bottom: 3mm; font-size: 8pt; }
.ck2-page .ck2-chart-board { height: 64mm; box-shadow: inset 0 0 0 3px #FFFAF0, inset 0 0 0 4.5px rgba(139,106,32,.62); }
.ck2-page .ck2-tag { min-height: 8mm; padding: 1.5mm 2mm; font-size: 7.5pt; }
.ck2-page .ck2-planet-card { grid-template-columns: 68mm 1fr; gap: 5mm; min-height: 38mm; margin-top: 3mm; padding: 4mm; border-radius: 5mm; }
.ck2-page .ck2-planet-art-wrap svg { max-width: 29mm; }
.ck2-page .ck2-planet-copy h3 { font-size: 12pt; }
.ck2-page .ck2-graha-karak { font-size: 7pt; }
.ck2-page .ck2-planet-copy p { font-size: 8.5pt; }
.ck2-page .ck2-horoscope { margin-top: 2.5mm; padding: 3mm 5mm; border-radius: 4mm; }
.ck2-page .ck2-horoscope h3 { margin-bottom: 1mm; font-size: 10pt; }
.ck2-page .ck2-horoscope blockquote { font-size: 10pt; line-height: 1.35; }
.ck2-page .ck2-horoscope p { margin-top: 1mm; font-size: 7pt; }
.ck2-page .ck2-action-grid { gap: 4mm; margin-top: 3mm; }
.ck2-page .ck2-action-card { grid-template-columns: 8mm 1fr; gap: 3mm; padding: 4mm; border-radius: 4mm; box-shadow: none; }
.ck2-page .ck2-number { width: 8mm; height: 8mm; font-size: 8pt; }
.ck2-page .ck2-action-card h3 { margin-bottom: 1mm; font-size: 10pt; }
.ck2-page .ck2-action-card p { margin-bottom: 0; font-size: 8pt; line-height: 1.35; }
.ck2-page .ck-disclaimer { font-size: 6.5pt; padding: 0 13mm; margin: 2mm 0 0; }
.ck2-page .ck2-marketing-footer { height: 16mm; margin: 4mm 0 0; padding: 3mm 13mm; }
.ck2-page .ck2-marketing-logo { width: 10mm; height: 10mm; }
.ck2-page .ck2-marketing-brand strong { font-size: 8pt; }
.ck2-page .ck2-marketing-brand span, .ck2-page .ck2-marketing-contact { font-size: 6.5pt; }
.ck2-page .ck2-chart-board, .ck2-page .ck2-tag, .ck2-page .ck2-seal, .ck2-page .ck2-planet-card,
.ck2-page .ck2-horoscope, .ck2-page .ck2-marketing-footer {
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}

@page { size: A4 portrait; margin: 0; }
@media print {
  /* overflow:visible beats the inline body.style.overflow='hidden' set
     while the quiz overlay is open, because an !important author rule
     always wins over a non-important inline style. */
  html, body { overflow: visible !important; height: auto !important; margin: 0 !important; background: #fff !important; }
  /* display:none (not visibility:hidden) removes siblings from layout
     entirely — the old approach kept them occupying space, which is part
     of why the report used to get clipped instead of laid out cleanly. */
  body > *:not(#ck2-print-root) { display: none !important; }
  #ck2-print-root { position: static !important; left: auto; display: block !important; }
  #ck2-print-root, #ck2-print-root * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
