/* Compliance product page (/compliance-forms) — the page's own mock-ups. Shared layout
   is static/css/product.css (ADR-0088). Classes cp-. */

/* 1 — flags */
.cp-flags { position: relative; width: 280px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding-bottom: 36px; }
.cp-flags img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; box-shadow: 0 3px 8px rgba(16, 24, 40, .14);
  opacity: 0; transform: scale(.7); transition: opacity .35s, transform .35s cubic-bezier(.2, 1.5, .4, 1); transition-delay: calc(var(--i) * 45ms + .2s); }
.pp-card.in .cp-flags img { opacity: 1; transform: none; }
.cp-flags-count { position: absolute; right: 0; bottom: 0; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, #0c64ae, #5b5bd6); color: #fff;
  font-size: .78rem; box-shadow: 0 8px 20px rgba(76, 90, 214, .3); }

/* 2 — a plain-language question */
.cp-ask, .cp-qa { display: flex; flex-direction: column; gap: 8px; }
.cp-ask { width: 280px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); font-size: .82rem; }
.cp-step { font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a93a4; }
.cp-opt { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; border: 1px solid #e3e7ee; font-size: .76rem; color: #4b5568; }
.cp-opt i { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c3cad8; }
.cp-opt.on { border-color: #0c64ae; background: #eaf2fb; color: #0c3f6e; font-weight: 600; }
.cp-opt.on i { border-color: #0c64ae; background: radial-gradient(#0c64ae 40%, transparent 46%); }
.pp-card .cp-opt { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * 120ms + .3s); }
.pp-card.in .cp-opt { opacity: 1; transform: none; }
.cp-help { display: flex; gap: 6px; align-items: center; font-size: .68rem; color: #92600a; }

/* 3 — the official PDF filling in */
.cp-pdf { position: relative; width: 250px; background: #fff; border-radius: 4px; padding: 14px; box-shadow: 0 14px 34px rgba(16, 24, 40, .12); }
.cp-pdf-top { display: flex; flex-direction: column; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid #1d2433; font-size: .82rem; }
.cp-pdf-top small { font-size: .62rem; color: #6b7487; }
.cp-boxes { display: flex; flex-wrap: wrap; gap: 5px; }
.cp-box { height: 26px; border: 1px solid #c9cfdb; border-radius: 2px; position: relative; overflow: hidden; flex: none; }
.cp-box.w20 { width: calc(20% - 4px); } .cp-box.w30 { width: calc(30% - 4px); } .cp-box.w40 { width: calc(40% - 4px); } .cp-box.w50 { width: calc(50% - 3px); }
.cp-box.w60 { width: calc(60% - 3px); } .cp-box.w70 { width: calc(70% - 3px); } .cp-box.w100 { width: 100%; }
.cp-box i { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: "Courier New", ui-monospace, monospace; font-size: .7rem;
  color: #1e3a8a; white-space: nowrap; clip-path: inset(0 100% 0 0); }
.cp-box.chk i { font-family: inherit; font-weight: 800; }
.pp-card.in .cp-box i, .pp-scene.on .cp-box i { animation: cpType .8s steps(14) both; }
.cp-box:nth-child(2) i { animation-delay: .7s !important; } .cp-box:nth-child(3) i { animation-delay: 1.4s !important; } .cp-box:nth-child(4) i { animation-delay: 2.1s !important; }
.cp-box:nth-child(5) i { animation-delay: 2.6s !important; } .cp-box:nth-child(6) i { animation-delay: 3s !important; } .cp-box:nth-child(7) i { animation-delay: 3.4s !important; }
.cp-box:nth-child(8) i { animation-delay: 3.8s !important; } .cp-box:nth-child(9) i { animation-delay: 4.1s !important; }
@keyframes cpType { to { clip-path: inset(0 0 0 0); } }
.cp-live { position: absolute; top: -12px; right: -12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #1d2433; color: #fff;
  font-size: .64rem; font-weight: 700; }
.cp-live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: ppPulse 1.6s infinite; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }

/* 4 — prefilled from the record */
.cp-prefill { width: 280px; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); font-size: .78rem; }
.cp-emp { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid #eef0f4; }
.cp-emp span:last-child { display: flex; flex-direction: column; }
.cp-emp small { color: #8a93a4; font-size: .68rem; }
.cp-pf-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f5f6f9; }
.cp-pf-row small { color: #8a93a4; font-size: .66rem; }
.cp-pf-row span { border-radius: 4px; padding: 2px 4px; margin-left: -4px; transition: background .6s; transition-delay: calc(var(--i) * 200ms + .5s); }
.cp-pf-row i { color: #7c3aed; font-size: .66rem; opacity: 0; transition: opacity .4s; transition-delay: calc(var(--i) * 200ms + .5s); }
.pp-card.in .cp-pf-row span { background: #f3effd; }
.pp-card.in .cp-pf-row i { opacity: 1; }

/* 5 — signature boxes */
.cp-sign { width: 250px; background: #fff; border-radius: 4px; padding: 18px 16px; box-shadow: 0 14px 34px rgba(16, 24, 40, .12); position: relative; }
.cp-line { display: block; height: 6px; border-radius: 3px; background: #e6e9f1; margin: 8px 0; width: 90%; } .cp-line.s { width: 60%; }
.cp-sign-row { display: flex; gap: 8px; margin-top: 18px; }
.cp-sigbox { flex: 1.7; font-size: .64rem; font-weight: 700; color: #0c64ae; border: 1.5px dashed #7aa7f0; background: rgba(12, 100, 174, .07); border-radius: 4px; padding: 10px 8px; }
.cp-sigbox.d { flex: 1; color: #7c3aed; border-color: #c4b5fd; background: rgba(124, 58, 237, .06); }
.pp-card.in .cp-sigbox { animation: esDrop .6s .4s both cubic-bezier(.2, 1.4, .4, 1); }
@keyframes esDrop { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: none; } }
.cp-sent { position: absolute; right: -10px; bottom: -14px; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: #16a34a; color: #fff;
  font-size: .7rem; font-weight: 700; box-shadow: 0 8px 18px rgba(22, 163, 74, .35); }

/* 6 — filed */
.cp-folder { width: 280px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); font-size: .78rem; }
.cp-folder-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #eef0f4; }
.cp-folder-head i { color: #f59e0b; --fa-primary-color: #f59e0b; --fa-secondary-color: #fbbf24; font-size: 1.2rem; }
.cp-doc { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f5f6f9;
  opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * 160ms + .3s); }
.cp-doc:last-child { border-bottom: 0; }
.cp-doc i { color: #dc2626; --fa-primary-color: #dc2626; --fa-secondary-color: #dc2626; }
.cp-doc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-doc small { margin-left: auto; color: #8a93a4; flex: none; }
.pp-card.in .cp-doc { opacity: 1; transform: none; }
.cp-doc:first-of-type { font-weight: 600; }

/* ---- walkthrough ---- */
.cp-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #7aa7f0; box-shadow: 0 0 0 4px rgba(12, 100, 174, .08); color: #6b7487; }
.cp-typed { color: #1d2433; font-weight: 600; }
.cp-caret { width: 1.5px; height: 18px; background: #1d2433; margin-left: -6px; animation: fmBlink 1s step-end infinite; }
@keyframes fmBlink { 50% { opacity: 0; } }
.cp-results { display: grid; gap: 8px; margin-top: 12px; }
.cp-res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #eef0f4; font-size: .82rem; }
.cp-res img { border-radius: 3px; flex: none; }
.cp-res b { flex: none; min-width: 34px; }
.cp-res span { color: #6b7487; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-res.on { border-color: #0c64ae; background: #f3f8fe; }
.pp-scene.on .cp-res { animation: ppRow .4s both; animation-delay: calc(var(--i) * 120ms); }
.cp-for { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e3e7ee; font-size: .84rem; }
.cp-for small { color: #8a93a4; font-weight: 600; }
.cp-qa b { font-size: .95rem; line-height: 1.4; margin-bottom: 4px; }
.cp-qa .cp-opt { font-size: .84rem; padding: 12px 14px; }
.pp-scene.on .cp-qa .cp-opt { animation: ppRow .4s both; } .pp-scene.on .cp-qa .cp-opt:nth-of-type(2) { animation-delay: .15s; }
.cp-fromrec { display: flex; gap: 8px; align-items: center; margin-top: 8px; padding: 10px 12px; border-radius: 9px; background: #f3effd; color: #6d28d9; font-size: .78rem; font-weight: 600; }
.pp-scene.on .cp-fromrec { animation: ppRow .5s .6s both; }
.cp-preview { display: flex; gap: 14px; align-items: flex-start; }
.cp-pdf.big { width: auto; flex: 1; box-shadow: 0 0 0 1px #e3e7ee; }
.cp-pdf.big .cp-box { height: 30px; }
.cp-pages { display: grid; gap: 8px; }
.cp-pages span { display: block; width: 40px; height: 52px; border-radius: 3px; border: 1px solid #e3e7ee; background: repeating-linear-gradient(180deg, #fff 0 7px, #eef1f6 7px 9px); }
.cp-pages span.on { border-color: #0c64ae; box-shadow: 0 0 0 2px rgba(12, 100, 174, .2); }
.cp-done-file { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid #e3e7ee; }
.cp-done-file i { font-size: 2rem; color: #dc2626; --fa-primary-color: #dc2626; --fa-secondary-color: #dc2626; }
.cp-done-file span { display: flex; flex-direction: column; min-width: 0; }
.cp-done-file small { color: #8a93a4; }
.cp-done-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cp-done-actions .pp-fake-btn { margin-top: 16px; }
.cp-ghost { margin-top: 16px; padding: 10px 16px; border-radius: 10px; border: 1px solid #d8dce5; color: #4b5568; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

/* ---- catalog ---- */
.cp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: #0c64ae; }
.cp-catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cp-country { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(16, 24, 40, .07);
  font-size: .9rem; color: #1d2433; transition: transform .3s; }
.cp-country:hover { transform: translateY(-3px); }
.cp-country img { border-radius: 4px; box-shadow: 0 2px 6px rgba(16, 24, 40, .15); flex: none; }

@media (max-width: 640px) {
  .cp-catalog { grid-template-columns: minmax(0, 1fr); }
  .cp-pages { display: none; }
  .cp-res span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-flags img, .pp-card .cp-opt, .cp-doc { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cp-box i { clip-path: none; animation: none !important; }
  .cp-pf-row i { opacity: 1; }
}
