/* Capital Market Readiness Assessment — CKA brand */
:root {
  --red: #e5102a;
  --red-dark: #9e0d1e;
  --ink: #282f3b;
  --navy: #1f2530;
  --muted: #6b7280;
  --line: #e4e6eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --soft-red: #fdeef0;
  --green: #1f8a4c;
  --amber: #b7791f;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Spartan', 'Inter', sans-serif; color: var(--ink); margin: 0; line-height: 1.3; }
a { color: var(--red); }

/* ---------- top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.topbar img { height: 46px; width: auto; display: block; }
.topbar .back { font-size: 14px; color: var(--ink); text-decoration: none; font-weight: 500; }
.topbar .back:hover { color: var(--red); }

.wrap { max-width: 820px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- hero ---------- */
.hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, rgba(229,16,42,.18) 0%, rgba(31,37,48,0) 55%);
  color: #fff;
  padding: 56px 0 96px;
}
.hero .eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 12px; border-radius: 4px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(26px, 4.4vw, 38px); font-weight: 700; margin-bottom: 16px; }
.hero p { color: #d3d7de; max-width: 680px; margin: 0; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: #fff; }
.hero .meta span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: middle; }

/* ---------- chat card ---------- */
.chat-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: 0 8px 30px rgba(31,37,48,.10); margin-top: -56px; position: relative; }
.chat-card strong { font-family: 'Spartan', sans-serif; font-size: 16px; display: block; }
.chat-card small { color: var(--muted); }
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: 6px; font-size: 15px; }
.btn-wa:hover { background: #1ebe5a; }
.btn-wa svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- progress ---------- */
.progress { position: sticky; top: 0; z-index: 20; background: rgba(245,246,248,.96); backdrop-filter: blur(6px); padding: 14px 0 12px; margin-top: 24px; }
.progress .steps { display: flex; gap: 6px; }
.progress .steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .25s; }
.progress .steps i.done { background: var(--red); }
.progress .label { font-size: 13px; color: var(--muted); margin-top: 7px; display: flex; justify-content: space-between; }

/* ---------- form ---------- */
form.cma { padding-bottom: 60px; }
.section { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 28px 28px 8px; margin-top: 18px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.section-num { font-family: 'Spartan', sans-serif; font-weight: 700; font-size: 13px; color: var(--red); background: var(--soft-red); border-radius: 4px; padding: 4px 9px; white-space: nowrap; }
.section h2 { font-size: 21px; font-weight: 700; }
.section .intro { color: var(--muted); margin: 4px 0 4px; font-size: 15px; }

.q { padding: 20px 0; border-top: 1px solid var(--line); }
.section-head + .q, .intro + .q { border-top: 0; }
.q > label.qlabel, .q > .qlabel { display: block; font-weight: 600; margin-bottom: 12px; font-size: 16px; }
.req { color: var(--red); margin-left: 2px; }
.opt-tag { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.hint { color: var(--muted); font-weight: 400; font-size: 13px; display: block; margin-top: 2px; }

.choices { display: grid; gap: 8px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .choices.cols-2 { grid-template-columns: 1fr; } }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; font-size: 15px; background: #fff; }
.choice:hover { border-color: #c9ccd3; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #b8bcc6; border-radius: 50%; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.choice.checkbox .mark { border-radius: 5px; }
.choice input:checked ~ .mark { border-color: var(--red); background: var(--red); }
.choice input:checked ~ .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice.checkbox input:checked ~ .mark::after { width: 5px; height: 10px; border-radius: 0; background: none; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.choice:has(input:checked) { border-color: var(--red); background: var(--soft-red); }
.choice input:focus-visible ~ .mark { outline: 3px solid rgba(229,16,42,.3); outline-offset: 2px; }

input.text, textarea.text { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input.text:focus, textarea.text:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229,16,42,.12); }
.other-input { margin-top: 8px; display: none; }
.other-input.show { display: block; }

.consent .choice { font-size: 15px; }

.q.has-error .choice, .q.has-error input.text { border-color: var(--red); }
.err { display: none; color: var(--red); font-size: 13px; margin-top: 8px; font-weight: 500; }
.q.has-error .err { display: block; }

.alert { background: var(--soft-red); border: 1px solid #f5c2c9; color: var(--red-dark); padding: 14px 18px; border-radius: 8px; margin-top: 18px; font-size: 15px; }

.submit-row { margin-top: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border: 0; font: 600 16px 'Inter', sans-serif; padding: 15px 32px; border-radius: 6px; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--red-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.small { font-size: 13px; color: var(--muted); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- thank you ---------- */
.thanks { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 44px 32px; text-align: center; margin: -56px auto 60px; position: relative; box-shadow: 0 8px 30px rgba(31,37,48,.10); }
.thanks .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--soft-red); display: grid; place-items: center; margin: 0 auto 20px; }
.thanks .tick svg { width: 30px; height: 30px; stroke: var(--red); }
.thanks h2 { font-size: 26px; margin-bottom: 12px; }
.thanks p { color: var(--muted); max-width: 520px; margin: 0 auto 10px; }
.thanks .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

footer.foot { background: var(--navy); color: #aab0bb; font-size: 14px; padding: 22px 0; text-align: center; }
footer.foot a { color: #fff; text-decoration: none; }
