/* AML/CFT Readiness Diagnostic — front-end styles
   by CS Prashant Kumar | www.csatwork.in
   Premium compliance-tech · mobile-first · green theme */

.amlcft-root {
	--amlcft-primary: #14532D;
	--amlcft-secondary: #16A34A;
	--amlcft-ink: #0F172A;
	--amlcft-mute: #64748B;
	--amlcft-line: #E2E8F0;
	--amlcft-bg: #F8FAFC;
	--amlcft-card: #FFFFFF;
	--amlcft-critical: #B91C1C;
	--amlcft-high: #C2410C;
	--amlcft-medium: #B45309;
	--amlcft-low: #0369A1;
	--amlcft-strong: #15803D;
	--amlcft-radius: 14px;
	--amlcft-shadow: 0 1px 2px rgba(15,23,42,.06), 0 12px 32px -12px rgba(15,23,42,.18);

	max-width: 860px;
	margin: 0 auto;
	color: var(--amlcft-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.amlcft-root *, .amlcft-root *::before, .amlcft-root *::after { box-sizing: border-box; }

/* ---------- Shell ---------- */
.amlcft-card {
	background: var(--amlcft-card);
	border: 1px solid var(--amlcft-line);
	border-radius: var(--amlcft-radius);
	box-shadow: var(--amlcft-shadow);
	padding: 28px;
	margin: 16px 0;
}
.amlcft-brandbar {
	display: flex; align-items: center; gap: 12px;
	padding-bottom: 16px; margin-bottom: 8px;
	border-bottom: 1px solid var(--amlcft-line);
}
.amlcft-mark {
	width: 40px; height: 40px; border-radius: 10px;
	background: var(--amlcft-primary); color: #fff;
	display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: 0 0 auto;
}
.amlcft-brandbar h1 { font-size: 18px; margin: 0; color: var(--amlcft-primary); line-height: 1.2; }
.amlcft-brandbar .by { font-size: 12px; color: var(--amlcft-mute); }

.amlcft-h { color: var(--amlcft-primary); font-size: 22px; margin: 0 0 8px; line-height: 1.25; }
.amlcft-sub { color: var(--amlcft-mute); margin: 0 0 20px; }
.amlcft-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--amlcft-secondary); margin-bottom: 6px; }

/* Outcome flow strip: Assess Readiness → Identify Gaps → Prioritise Risk → Take Action */
.amlcft-flow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.amlcft-flow .step { flex: 1 1 0; min-width: 130px; background: var(--amlcft-bg); border: 1px solid var(--amlcft-line); border-radius: 12px; padding: 14px 10px; text-align: center; }
.amlcft-flow .step .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amlcft-primary); color: #fff; font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.amlcft-flow .step .t { display: block; font-size: 13px; font-weight: 700; color: var(--amlcft-primary); line-height: 1.25; }
.amlcft-flow .arrow { display: flex; align-items: center; color: var(--amlcft-secondary); font-size: 20px; font-weight: 700; }

/* ---------- Progress ---------- */
.amlcft-progress { margin: 4px 0 22px; }
.amlcft-progress .track { height: 8px; background: var(--amlcft-line); border-radius: 6px; overflow: hidden; }
.amlcft-progress .fill { height: 8px; background: linear-gradient(90deg, var(--amlcft-secondary), var(--amlcft-primary)); border-radius: 6px; transition: width .35s ease; }
.amlcft-progress .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--amlcft-mute); margin-top: 6px; }

/* ---------- Forms ---------- */
.amlcft-field { margin-bottom: 16px; }
.amlcft-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.amlcft-field .hint { font-size: 12px; color: var(--amlcft-mute); font-weight: 400; }
.amlcft-input, .amlcft-select {
	width: 100%; padding: 11px 13px; font-size: 15px;
	border: 1px solid var(--amlcft-line); border-radius: 10px; background: #fff; color: var(--amlcft-ink);
	transition: border-color .15s, box-shadow .15s;
}
.amlcft-input:focus, .amlcft-select:focus { outline: none; border-color: var(--amlcft-secondary); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.amlcft-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.amlcft-privacy { font-size: 12px; color: var(--amlcft-mute); background: var(--amlcft-bg); border: 1px solid var(--amlcft-line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }

/* Toggle chips (yes/no) */
.amlcft-toggle { display: inline-flex; border: 1px solid var(--amlcft-line); border-radius: 10px; overflow: hidden; }
.amlcft-toggle button { border: 0; background: #fff; padding: 8px 18px; font-size: 14px; cursor: pointer; color: var(--amlcft-mute); }
.amlcft-toggle button.on { background: var(--amlcft-primary); color: #fff; font-weight: 600; }

/* ---------- Option list (assessment) ---------- */
.amlcft-q { margin-bottom: 6px; }
.amlcft-q .qtag { font-size: 12px; color: var(--amlcft-secondary); font-weight: 700; letter-spacing: .04em; }
.amlcft-q .qtext { font-size: 18px; font-weight: 600; margin: 6px 0 4px; color: var(--amlcft-ink); }
.amlcft-q .qwhy { font-size: 13px; color: var(--amlcft-mute); margin-bottom: 16px; }
.amlcft-options { display: grid; gap: 10px; }
.amlcft-opt {
	display: flex; align-items: flex-start; gap: 12px;
	border: 1.5px solid var(--amlcft-line); border-radius: 12px; padding: 13px 15px; cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s; background: #fff;
}
.amlcft-opt:hover { border-color: var(--amlcft-secondary); background: #F0FDF4; }
.amlcft-opt.sel { border-color: var(--amlcft-secondary); background: #F0FDF4; box-shadow: 0 0 0 3px rgba(22,163,74,.12); }
.amlcft-opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--amlcft-line); flex: 0 0 auto; margin-top: 2px; position: relative; }
.amlcft-opt.sel .dot { border-color: var(--amlcft-secondary); }
.amlcft-opt.sel .dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--amlcft-secondary); }
.amlcft-opt .lbl { font-size: 15px; }
.amlcft-critical-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #fff; background: var(--amlcft-primary); border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }

/* ---------- Buttons / nav ---------- */
.amlcft-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.amlcft-btn { border: 0; border-radius: 11px; padding: 13px 24px; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .05s, opacity .15s, background .15s; }
.amlcft-btn:active { transform: translateY(1px); }
.amlcft-btn-primary { background: var(--amlcft-primary); color: #fff; }
.amlcft-btn-primary:hover { background: #0f3d21; }
.amlcft-btn-ghost { background: transparent; color: var(--amlcft-mute); border: 1px solid var(--amlcft-line); }
.amlcft-btn-ghost:hover { color: var(--amlcft-ink); border-color: var(--amlcft-mute); }
.amlcft-btn[disabled] { opacity: .45; cursor: not-allowed; }
.amlcft-btn-block { width: 100%; }

.amlcft-sectionchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.amlcft-chip { font-size: 11px; padding: 4px 10px; border-radius: 20px; background: var(--amlcft-bg); border: 1px solid var(--amlcft-line); color: var(--amlcft-mute); }
.amlcft-chip.done { background: #F0FDF4; border-color: var(--amlcft-secondary); color: var(--amlcft-strong); }
.amlcft-chip.cur { background: var(--amlcft-primary); color: #fff; border-color: var(--amlcft-primary); }

/* ---------- Results dashboard ---------- */
.amlcft-scorehead { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.amlcft-dial { --v: 0; width: 150px; height: 150px; border-radius: 50%; flex: 0 0 auto;
	background: conic-gradient(var(--amlcft-secondary) calc(var(--v)*1%), var(--amlcft-line) 0);
	display: grid; place-items: center; position: relative; }
.amlcft-dial::before { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.amlcft-dial .val { position: relative; text-align: center; }
.amlcft-dial .val b { font-size: 34px; color: var(--amlcft-primary); display: block; line-height: 1; }
.amlcft-dial .val span { font-size: 12px; color: var(--amlcft-mute); }
.amlcft-scoremeta { flex: 1; min-width: 220px; }
.amlcft-classbadge { display: inline-block; color: #fff; font-weight: 700; border-radius: 8px; padding: 6px 14px; font-size: 14px; }
.amlcft-band-strong { background: var(--amlcft-strong); }
.amlcft-band-moderate { background: var(--amlcft-low); }
.amlcft-band-improvement { background: var(--amlcft-medium); }
.amlcft-band-gaps { background: var(--amlcft-critical); }
.amlcft-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.amlcft-kpi { text-align: center; background: var(--amlcft-bg); border: 1px solid var(--amlcft-line); border-radius: 12px; padding: 12px 6px; }
.amlcft-kpi b { display: block; font-size: 24px; }
.amlcft-kpi span { font-size: 11px; color: var(--amlcft-mute); }

.amlcft-cap { background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; border-radius: 12px; padding: 12px 14px; margin-top: 16px; font-size: 13px; }

.amlcft-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--amlcft-line); margin: 20px 0 18px; overflow-x: auto; }
.amlcft-tab { border: 0; background: transparent; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--amlcft-mute); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.amlcft-tab.on { color: var(--amlcft-primary); border-bottom-color: var(--amlcft-primary); }

.amlcft-catrow { margin-bottom: 14px; }
.amlcft-catrow .top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.amlcft-catrow .name { font-weight: 600; }
.amlcft-catrow .pct { color: var(--amlcft-mute); }
.amlcft-catbar { height: 9px; background: var(--amlcft-line); border-radius: 6px; overflow: hidden; }
.amlcft-catbar > span { display: block; height: 9px; border-radius: 6px; }

.amlcft-dims { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 8px 0 18px; }
.amlcft-dim { background: var(--amlcft-bg); border: 1px solid var(--amlcft-line); border-radius: 12px; padding: 14px; text-align: center; }
.amlcft-dim b { display: block; font-size: 26px; color: var(--amlcft-primary); }
.amlcft-dim span { font-size: 12px; color: var(--amlcft-mute); }

.amlcft-finding { border: 1px solid var(--amlcft-line); border-left-width: 4px; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.amlcft-finding .pri { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.amlcft-finding h4 { margin: 4px 0 6px; font-size: 15px; }
.amlcft-finding p { margin: 4px 0; font-size: 14px; }
.amlcft-finding .ref { font-size: 12px; color: var(--amlcft-mute); }
.amlcft-sev-critical { border-left-color: var(--amlcft-critical); }
.amlcft-sev-high { border-left-color: var(--amlcft-high); }
.amlcft-sev-medium { border-left-color: var(--amlcft-medium); }
.amlcft-sev-low { border-left-color: var(--amlcft-low); }
.amlcft-sev-strong { border-left-color: var(--amlcft-strong); }
.amlcft-pri-critical { color: var(--amlcft-critical); }
.amlcft-pri-high { color: var(--amlcft-high); }
.amlcft-pri-medium { color: var(--amlcft-medium); }
.amlcft-pri-low { color: var(--amlcft-low); }
.amlcft-pri-strong { color: var(--amlcft-strong); }

.amlcft-evgroup { margin-bottom: 16px; }
.amlcft-evgroup h4 { color: var(--amlcft-primary); font-size: 14px; margin: 0 0 6px; }
.amlcft-evgroup ul { margin: 0; padding-left: 4px; list-style: none; }
.amlcft-evgroup li { padding: 5px 0 5px 26px; position: relative; font-size: 14px; border-bottom: 1px dashed var(--amlcft-line); }
.amlcft-evgroup li::before { content: "☐"; position: absolute; left: 4px; color: var(--amlcft-secondary); }

.amlcft-sharecard { background: linear-gradient(135deg, var(--amlcft-primary), var(--amlcft-secondary)); color: #fff; border-radius: 16px; padding: 24px; text-align: center; }
.amlcft-sharecard .s { font-size: 46px; font-weight: 800; line-height: 1; }
.amlcft-sharecard .c { font-size: 15px; opacity: .95; margin-top: 6px; }
.amlcft-sharecard .t { font-size: 12px; opacity: .85; margin-top: 12px; }
.amlcft-sharebtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.amlcft-sharebtns a, .amlcft-sharebtns button { text-decoration: none; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 9px; border: 1px solid var(--amlcft-line); background: #fff; color: var(--amlcft-ink); cursor: pointer; }

.amlcft-consistency { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; font-size: 13px; }
.amlcft-consistency b { color: var(--amlcft-medium); }

.amlcft-note { font-size: 12px; color: var(--amlcft-mute); margin-top: 8px; }
.amlcft-spinner { width: 34px; height: 34px; border: 3px solid var(--amlcft-line); border-top-color: var(--amlcft-secondary); border-radius: 50%; animation: amlcft-spin .8s linear infinite; margin: 24px auto; }
@keyframes amlcft-spin { to { transform: rotate(360deg); } }
.amlcft-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #7F1D1D; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.amlcft-root { font-size: 15px; }
	.amlcft-card { padding: 20px 16px; border-radius: 12px; }
	.amlcft-grid2 { grid-template-columns: 1fr; }
	.amlcft-kpis { grid-template-columns: repeat(2,1fr); }
	.amlcft-dims { grid-template-columns: 1fr; }
	.amlcft-scorehead { justify-content: center; text-align: center; }
	.amlcft-q .qtext { font-size: 16px; }
	.amlcft-actions .amlcft-btn { padding: 12px 18px; }
	.amlcft-flow .arrow { display: none; }
	.amlcft-flow .step { flex-basis: 100%; }
}
