/*
 * Commercial Loan Apps, front end.
 *
 * Same look as the original Commercial Loan Application plugin: dark masthead,
 * paper background, white cards, one accent colour. Every rule is scoped under
 * .hkca and every class is prefixed hkc- so it drops into any theme without
 * leaking. Accent shades arrive as custom properties written inline by PHP.
 */

.hkca {
	--hkc-ink: #17211e;
	--hkc-ink-2: #3c4a45;
	--hkc-ink-3: #6b7873;
	--hkc-paper: #fbfbf9;
	--hkc-card: #fff;
	--hkc-band: #f3f5f0;
	--hkc-rule: #dfe3da;
	--hkc-rule-soft: #edefe8;
	--hkc-good: #2b6a4f;
	--hkc-warn: #a63a26;
	--hkc-warn-tint: #fbefec;
	--hkc-radius: 10px;
	--hkc-radius-sm: 7px;
	--hkc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	box-sizing: border-box;
	margin: 0;
	background: var(--hkc-paper);
	color: var(--hkc-ink);
	font-family: var(--hkc-font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	font-variant-numeric: tabular-nums;
}

.hkca *,
.hkca *::before,
.hkca *::after {
	box-sizing: inherit;
}

.hkca h1,
.hkca h2,
.hkca h3,
.hkca h4,
.hkca p {
	margin: 0;
}

.hkca [hidden] {
	display: none !important;
}

/* ── Masthead ───────────────────────────────────────────────────────────── */

.hkca .hkc-head {
	position: sticky;
	top: 0;
	z-index: 30;
	background: var(--hkc-ink);
	color: #fff;
	padding-top: env(safe-area-inset-top);
}

.hkca .hkc-head-in {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 960px;
	margin: 0 auto;
	padding: 12px 16px 10px;
}

.hkca .hkc-mark {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--hkc-accent, #5f7f23);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

/* Logo sits on a light plate so dark artwork never vanishes on the dark bar. */
.hkca .hkc-mark-logo {
	flex: 0 0 auto;
	width: auto;
	max-width: 190px;
	height: 38px;
	padding: 5px 10px;
	border-radius: 7px;
	background: #fff;
}

.hkca .hkc-mark-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
}

@media (max-width: 420px) {
	.hkca .hkc-mark-logo {
		max-width: 132px;
		height: 34px;
	}
}

.hkca .hkc-ident-name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}

.hkca .hkc-head-form {
	margin-left: auto;
	font-size: 12.5px;
	font-weight: 500;
	color: #93a39c;
	white-space: nowrap;
}

.hkca .hkc-progress {
	background: var(--hkc-ink);
	padding-bottom: 12px;
}

.hkca .hkc-progress-in {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px;
}

.hkca .hkc-track {
	height: 3px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.18);
	overflow: hidden;
}

.hkca .hkc-bar {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	background: var(--hkc-accent-line, #c6dd8f);
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hkca .hkc-track-label {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 7px;
	font-size: 12.5px;
	color: #a4b3ac;
}

/* ── Layout and cards ───────────────────────────────────────────────────── */

.hkca .hkc-main {
	max-width: 960px;
	margin: 0 auto;
	padding: 22px 16px 130px;
	outline: none;
}

.hkca .hkc-card {
	background: var(--hkc-card);
	border: 1px solid var(--hkc-rule);
	border-radius: var(--hkc-radius);
	margin-bottom: 14px;
	overflow: hidden;
}

.hkca .hkc-card-head {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 13px 16px;
	background: var(--hkc-band);
	border: 0;
	border-bottom: 1px solid var(--hkc-rule);
	text-align: left;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--hkc-ink);
	cursor: pointer;
}

.hkca .hkc-card-head.is-static {
	cursor: default;
}

.hkca .hkc-card-title {
	flex: 1;
}

.hkca .hkc-card.is-closed .hkc-card-head {
	border-bottom-color: transparent;
}

.hkca .hkc-card.is-closed .hkc-card-body {
	display: none;
}

.hkca .hkc-card-body {
	padding: 18px 16px;
}

.hkca .hkc-card-plain .hkc-card-body {
	padding-top: 16px;
	padding-bottom: 16px;
}

/* Chevron square. */
.hkca .hkc-chev {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 6px;
	background: var(--hkc-accent-tint, #eef3e2);
	color: var(--hkc-accent-dark, #4a6419);
}

.hkca .hkc-chev svg {
	width: 14px;
	height: 14px;
	transition: transform 0.18s;
}

.hkca .hkc-card.is-closed > .hkc-card-head .hkc-chev svg,
.hkca .hkc-item.is-closed > .hkc-item-head .hkc-chev svg {
	transform: rotate(-90deg);
}

/* Group title band (General Business Info and friends). */
.hkca .hkc-group {
	margin-top: 22px;
}

.hkca .hkc-group:first-child {
	margin-top: 0;
}

.hkca .hkc-group-title {
	margin: 0 0 14px;
	padding: 7px 12px;
	background: var(--hkc-band);
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--hkc-ink-2);
}

.hkca .hkc-group-note {
	font-weight: 500;
	color: var(--hkc-warn);
	margin-left: 4px;
}

/* ── Grid and fields ────────────────────────────────────────────────────── */

.hkca .hkc-grid {
	display: grid;
	gap: 16px 18px;
	grid-template-columns: 1fr;
}

@media (min-width: 560px) {
	.hkca .hkc-cols-2,
	.hkca .hkc-cols-4 {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 860px) {
	.hkca .hkc-cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

.hkca .hkc-field {
	min-width: 0;
}

.hkca .hkc-field.is-full {
	grid-column: 1 / -1;
}

.hkca .hkc-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 5px;
	line-height: 1.35;
}

.hkca .hkc-req {
	color: var(--hkc-warn);
	font-weight: 400;
	margin-left: 2px;
}

.hkca .hkc-help {
	font-size: 13px;
	color: var(--hkc-ink-3);
	margin: 3px 0 0;
}

.hkca input[type="text"],
.hkca input[type="tel"],
.hkca input[type="email"],
.hkca input[type="date"],
.hkca select,
.hkca textarea {
	width: 100%;
	font-family: inherit;
	/* 16px minimum stops iOS Safari zooming in on focus. */
	font-size: 16px;
	color: var(--hkc-ink);
	background: #fff;
	border: 1.5px solid var(--hkc-rule);
	border-radius: var(--hkc-radius-sm);
	padding: 11px 13px;
	min-height: 48px;
	margin: 0;
	transition: border-color 0.15s, box-shadow 0.15s;
	appearance: none;
	-webkit-appearance: none;
}

.hkca select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7873' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.hkca select:disabled {
	background-color: var(--hkc-band);
	color: var(--hkc-ink-2);
	opacity: 1;
}

.hkca textarea {
	min-height: 120px;
	line-height: 1.5;
	resize: vertical;
}

.hkca input:focus,
.hkca select:focus,
.hkca textarea:focus {
	outline: none;
	border-color: var(--hkc-accent, #5f7f23);
	box-shadow: 0 0 0 3px var(--hkc-accent-glow, #e8f0d6);
}

.hkca ::placeholder {
	color: #a3aca8;
	opacity: 1;
}

.hkca .hkc-bad {
	border-color: var(--hkc-warn) !important;
	background-color: var(--hkc-warn-tint) !important;
}

.hkca .hkc-err {
	display: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--hkc-warn);
	margin-top: 5px;
}

.hkca .hkc-err.is-on {
	display: block;
}

/* Money and percent: symbol inside the box. */
.hkca .hkc-addon {
	position: relative;
}

.hkca .hkc-addon-sym {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--hkc-ink-3);
	font-size: 16px;
	pointer-events: none;
}

.hkca .hkc-addon input {
	padding-left: 28px;
}

/* Radios and checkboxes. */
.hkca .hkc-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	padding-top: 4px;
}

.hkca .hkc-choices.is-stack {
	flex-direction: column;
	gap: 4px;
}

.hkca .hkc-choice {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 44px;
	cursor: pointer;
	font-size: 15px;
}

.hkca .hkc-choice input {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--hkc-accent, #5f7f23);
}

/* Toggle switch. */
.hkca .hkc-switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	cursor: pointer;
}

.hkca .hkc-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.hkca .hkc-switch-ui {
	position: relative;
	flex: 0 0 46px;
	width: 46px;
	height: 26px;
	border-radius: 99px;
	background: #cfd5cf;
	transition: background 0.18s;
}

.hkca .hkc-switch-ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.18s;
}

.hkca .hkc-switch input:checked + .hkc-switch-ui {
	background: var(--hkc-accent, #5f7f23);
}

.hkca .hkc-switch input:checked + .hkc-switch-ui::after {
	transform: translateX(20px);
}

.hkca .hkc-switch input:focus-visible + .hkc-switch-ui {
	outline: 2.5px solid var(--hkc-accent-dark, #4a6419);
	outline-offset: 2px;
}

/* Info dot beside a label. */
.hkca .hkc-info {
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	border-radius: 50%;
	background: var(--hkc-accent, #5f7f23);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	font-style: normal;
	cursor: help;
	vertical-align: middle;
}

/* ── Repeating items (owners, creditors) ────────────────────────────────── */

.hkca .hkc-item {
	border: 1px solid var(--hkc-rule);
	border-radius: var(--hkc-radius-sm);
	margin-bottom: 14px;
	background: #fcfdfb;
	overflow: hidden;
}

.hkca .hkc-item-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	background: var(--hkc-accent-tint, #eef3e2);
	border-bottom: 1px solid var(--hkc-rule);
	font-weight: 600;
	font-size: 15px;
}

.hkca .hkc-item-title {
	flex: 1;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.hkca .hkc-item.is-closed .hkc-item-body {
	display: none;
}

.hkca .hkc-item-body {
	padding: 16px 12px;
}

.hkca .hkc-item-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.hkca .hkc-item-bar .hkc-choice {
	min-height: 36px;
	font-size: 14px;
	flex: 1;
}

/* Round icon buttons: add (accent) and remove (red). */
.hkca .hkc-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	display: inline-grid;
	place-items: center;
	border: 0;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
}

.hkca .hkc-icon svg {
	width: 14px;
	height: 14px;
}

.hkca .hkc-icon-add {
	background: var(--hkc-accent, #5f7f23);
}

.hkca .hkc-icon-add:hover {
	background: var(--hkc-accent-dark, #4a6419);
}

.hkca .hkc-icon-del {
	background: var(--hkc-warn);
}

.hkca .hkc-icon-del:hover {
	background: #86301f;
}

.hkca .hkc-icon:focus-visible,
.hkca .hkc-card-head:focus-visible,
.hkca .hkc-item-title:focus-visible {
	outline: 2.5px solid var(--hkc-accent-dark, #4a6419);
	outline-offset: 2px;
}

.hkca .hkc-addrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hkc-accent-dark, #4a6419);
}

.hkca .hkc-sum {
	margin: 4px 0 12px;
	padding: 8px 12px;
	background: var(--hkc-band);
	border-radius: 5px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hkc-ink-2);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
}

.hkca .hkc-sum b {
	color: var(--hkc-ink);
}

/* ── Terms and signatures ───────────────────────────────────────────────── */

.hkca .hkc-terms-text {
	padding: 14px 16px;
	background: #f7f5f3;
	border-radius: var(--hkc-radius-sm);
	font-size: 13px;
	line-height: 1.6;
	color: var(--hkc-ink-2);
}

.hkca .hkc-terms-text p + p {
	margin-top: 6px;
}

.hkca .hkc-terms-agree {
	display: flex;
	justify-content: center;
	margin: 16px 0 6px;
}

.hkca .hkc-guarantor {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--hkc-rule-soft);
}

.hkca .hkc-g-row {
	display: grid;
	gap: 14px 18px;
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 760px) {
	.hkca .hkc-g-row {
		grid-template-columns: 110px 1.1fr 1fr 1fr;
	}
}

.hkca .hkc-g-label {
	font-weight: 600;
	font-size: 14px;
	padding-top: 10px;
}

.hkca .hkc-g-date {
	padding-top: 2px;
	font-size: 14px;
}

.hkca .hkc-g-date b {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
}

.hkca .hkc-g-date span {
	display: block;
	padding: 11px 0;
	color: var(--hkc-ink-2);
}

.hkca .hkc-sig-tools {
	display: flex;
	justify-content: flex-end;
	margin: 12px 0 8px;
}

.hkca .hkc-sig-wrap {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
}

.hkca .hkc-sig {
	display: block;
	width: 100%;
	aspect-ratio: 900 / 240;
	background: #eee;
	border: 1.5px solid var(--hkc-ink-3);
	border-radius: var(--hkc-radius-sm);
	touch-action: none;
	cursor: crosshair;
}

.hkca .hkc-sig.hkc-bad {
	background: var(--hkc-warn-tint) !important;
}

/* The "sign here" flag. Pure CSS, no image. */
.hkca .hkc-sig-flag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%) rotate(-4deg);
	padding: 3px 18px 3px 10px;
	background: #ffe600;
	border: 1.5px solid #17211e;
	clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #17211e;
	pointer-events: none;
	transition: opacity 0.2s;
}

.hkca .hkc-sig-wrap.is-signed .hkc-sig-flag {
	opacity: 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.hkca .hkc-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	background: rgba(251, 251, 249, 0.96);
	border-top: 1px solid var(--hkc-rule);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	backdrop-filter: blur(6px);
}

.hkca .hkc-nav-in {
	display: flex;
	justify-content: center;
	gap: 10px;
	max-width: 960px;
	margin: 0 auto;
}

.hkca .hkc-btn {
	min-height: 50px;
	padding: 13px 22px;
	border: 1.5px solid transparent;
	border-radius: var(--hkc-radius-sm);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

.hkca .hkc-btn-submit {
	flex: 1 1 auto;
	max-width: 280px;
	background: var(--hkc-accent, #5f7f23);
	color: #fff;
}

.hkca .hkc-btn-submit:hover {
	background: var(--hkc-accent-dark, #4a6419);
}

.hkca .hkc-btn-quiet {
	background: #fff;
	color: var(--hkc-ink-2);
	border-color: var(--hkc-rule);
}

.hkca .hkc-btn-quiet:hover {
	border-color: var(--hkc-ink-3);
}

.hkca .hkc-btn-small {
	min-height: 38px;
	padding: 7px 14px;
	font-size: 13.5px;
	background: var(--hkc-ink);
	color: #fff;
}

.hkca .hkc-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.hkca .hkc-btn:focus-visible {
	outline: 2.5px solid var(--hkc-accent-dark, #4a6419);
	outline-offset: 2px;
}

/* Jump buttons. */
.hkca .hkc-jump {
	position: fixed;
	right: 12px;
	bottom: 86px;
	z-index: 35;
	display: grid;
	gap: 6px;
}

.hkca .hkc-jump button {
	width: 38px;
	height: 34px;
	border: 0;
	border-radius: 6px;
	background: var(--hkc-ink);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	opacity: 0.82;
}

.hkca .hkc-jump button:hover {
	opacity: 1;
}

.hkca .hkc-jump svg {
	width: 16px;
	height: 16px;
}

/* ── Notices ────────────────────────────────────────────────────────────── */

.hkca .hkc-note {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: var(--hkc-radius-sm);
	font-size: 14.5px;
	border: 1px solid var(--hkc-rule);
	background: #fff;
}

.hkca .hkc-note-warn,
.hkca .hkc-note-err {
	background: var(--hkc-warn-tint);
	border-color: #ecc3ba;
	color: #7d2a1b;
}

.hkca .hkc-note-ok {
	background: #edf5f0;
	border-color: #bfdccb;
	color: #1f4f3a;
}

.hkca .hkc-note ul {
	margin: 6px 0 0 18px;
	padding: 0;
}

.hkca .hkc-saved {
	display: grid;
	gap: 10px;
}

.hkca .hkc-saved-link {
	display: flex;
	gap: 8px;
}

.hkca .hkc-saved-link input {
	flex: 1;
	font-size: 14px;
}

.hkca .hkc-empty {
	padding: 26px 16px;
	text-align: center;
	color: var(--hkc-ink-3);
	font-size: 15px;
}

.hkca .hkc-done {
	background: #fff;
	border: 1px solid var(--hkc-rule);
	border-radius: var(--hkc-radius);
	padding: 34px 22px;
	text-align: center;
}

.hkca .hkc-done h2 {
	font-size: 25px;
	letter-spacing: -0.015em;
	margin-bottom: 8px;
}

.hkca .hkc-done p {
	color: var(--hkc-ink-2);
	max-width: 52ch;
	margin: 0 auto 10px;
}

.hkca .hkc-ref {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 14px;
	border-radius: 7px;
	background: var(--hkc-accent-tint, #eef3e2);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--hkc-accent-dark, #4a6419);
}

/* Honeypot, off-screen. */
.hkca .hkc-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ── Footer (same copy and styling as the original plugin) ──────────────── */

.hkca .hkc-foot {
	max-width: 960px;
	margin: 0 auto;
	padding: 22px 16px 130px;
	border-top: 1px solid var(--hkc-rule);
	font-size: 12px;
	line-height: 1.6;
	color: #8a938f;
}

.hkca .hkc-foot-legal p {
	margin-bottom: 8px;
	max-width: 72ch;
}

.hkca .hkc-foot-legal p:last-child {
	margin-bottom: 0;
}

.hkca .hkc-foot-contact {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--hkc-rule-soft);
	font-size: 13px;
	color: var(--hkc-ink-2);
}

.hkca .hkc-foot-contact a {
	color: var(--hkc-accent-dark, #4a6419);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 500;
}

.hkca .hkc-foot-contact a + a {
	margin-left: 14px;
}

.hkca .hkc-foot-credit {
	margin-top: 16px;
	font-size: 11.5px;
	color: #a8b0ac;
}

.hkca .hkc-foot-credit a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #d4d9d5;
	padding-bottom: 1px;
	transition: color 0.15s, border-color 0.15s;
}

.hkca .hkc-foot-credit a:hover {
	color: var(--hkc-ink-2);
	border-color: var(--hkc-ink-3);
}

.hkca .hkc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.hkca * {
		transition: none !important;
	}
}

@media print {
	.hkca .hkc-head,
	.hkca .hkc-nav,
	.hkca .hkc-jump {
		display: none !important;
	}
}

/* ── v2.1: brand highlight, chooser, steps, bullets ─────────────────────── */

.hkca .hkc-head {
	border-top: 4px solid var(--hkc-accent, #5f7f23);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.hkca .hkc-head-in {
	padding: 14px 16px 12px;
	gap: 16px;
}

/* Logo: larger light plate with an accent ring and soft glow so it reads first. */
.hkca .hkc-mark-logo {
	max-width: 240px;
	height: 56px;
	padding: 7px 16px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 2px var(--hkc-accent, #5f7f23), 0 6px 22px rgba(255, 255, 255, 0.16);
}

.hkca .hkc-mark {
	flex-basis: 52px;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	font-size: 18px;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 6px 22px rgba(255, 255, 255, 0.14);
}

.hkca .hkc-ident-name {
	font-size: 18px;
	font-weight: 700;
}

.hkca .hkc-head-txt {
	margin-left: auto;
	text-align: right;
}

.hkca .hkc-head-form {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}

.hkca .hkc-head-sub {
	margin: 2px 0 0;
	font-size: 11.5px;
	color: #93a39c;
}

@media (max-width: 560px) {
	.hkca .hkc-mark-logo { max-width: 160px; height: 46px; padding: 6px 12px; }
	.hkca .hkc-head-sub { display: none; }
	.hkca .hkc-head-form { font-size: 12.5px; }
}

/* Section jump chips */
.hkca .hkc-steps {
	display: flex;
	gap: 6px;
	max-width: 960px;
	margin: 0 auto;
	padding: 0 16px 10px;
	overflow-x: auto;
	scrollbar-width: none;
}

.hkca .hkc-steps::-webkit-scrollbar { display: none; }

.hkca .hkc-step {
	flex: 0 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: transparent;
	color: #d6dfda;
	font: inherit;
	font-size: 12.5px;
	padding: 5px 12px;
	border-radius: 999px;
	cursor: pointer;
}

.hkca .hkc-step:hover,
.hkca .hkc-step:focus-visible {
	background: var(--hkc-accent, #5f7f23);
	border-color: var(--hkc-accent, #5f7f23);
	color: #fff;
	outline: none;
}

/* Program chooser */
.hkca .hkc-choose-t { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.hkca .hkc-choose-d { margin: 0 0 16px; color: #5b6b65; }

.hkca .hkc-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 10px;
	margin: 0 0 16px;
}

.hkca .hkc-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	font: inherit;
	padding: 14px;
	background: #fff;
	border: 1px solid #dfe5e1;
	border-radius: 12px;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.hkca .hkc-tile:hover,
.hkca .hkc-tile:focus-visible {
	border-color: var(--hkc-accent, #5f7f23);
	box-shadow: 0 6px 18px rgba(23, 33, 30, 0.1);
	transform: translateY(-1px);
	outline: none;
}

.hkca .hkc-tile.is-on {
	border-color: var(--hkc-accent, #5f7f23);
	box-shadow: 0 0 0 2px var(--hkc-accent, #5f7f23);
}

.hkca .hkc-tile-ico {
	display: grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--hkc-accent, #5f7f23);
	color: #fff;
}

.hkca .hkc-tile-ico svg { width: 22px; height: 22px; }
.hkca .hkc-tile-t { font-weight: 700; font-size: 15px; margin-top: 6px; }
.hkca .hkc-tile-d { font-size: 12.5px; color: #5b6b65; line-height: 1.4; }

.hkca .hkc-tile-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hkc-accent, #5f7f23);
}

.hkca .hkc-cur {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.hkca .hkc-cur-txt { display: flex; flex-direction: column; flex: 1 1 200px; }
.hkca .hkc-cur-k { font-size: 12px; color: #5b6b65; }
.hkca .hkc-cur-txt b { font-size: 18px; }

.hkca .hkc-btn-ghost {
	background: #fff;
	color: var(--hkc-ink);
	border: 1px solid #c9d2cd;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	font-size: 13.5px;
}

.hkca .hkc-btn-ghost:hover { border-color: var(--hkc-accent, #5f7f23); color: var(--hkc-accent, #5f7f23); }

/* Bulleted "have ready" list */
.hkca .hkc-ready { border-left: 4px solid var(--hkc-accent, #5f7f23); }
.hkca .hkc-ready-t { margin: 0 0 8px; font-size: 15px; font-weight: 700; }

.hkca .hkc-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 7px;
}

.hkca .hkc-bullets li {
	position: relative;
	padding-left: 22px;
	line-height: 1.45;
	font-size: 14px;
}

.hkca .hkc-bullets li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.5em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hkc-accent, #5f7f23);
}

/* Section intros and group titles */
.hkca .hkc-group-title {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hkca .hkc-group-title::before {
	content: "";
	flex: 0 0 6px;
	height: 16px;
	border-radius: 3px;
	background: var(--hkc-accent, #5f7f23);
}

/* Ownership running total */
.hkca .hkc-own-total {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	padding: 9px 14px;
	margin-top: 10px;
	border-radius: 10px;
	background: #f1f4f2;
	font-size: 13.5px;
}

.hkca .hkc-own-total.is-full { background: #e6f1d6; }
.hkca .hkc-own-total.is-over { background: #fbe4e1; }
.hkca .hkc-own-warn { color: #a3281b; font-weight: 600; }

@media (max-width: 560px) {
	.hkca .hkc-tiles { grid-template-columns: 1fr 1fr; }
	.hkca .hkc-tile { padding: 12px; }
}

.hkca .hkc-intro { margin: 0 0 14px; color: #5b6b65; font-size: 13.5px; }

/* ── v2.2: modern surface, status badges, choice pills, mobile layout ──── */

.hkca {
	--hkc-radius: 14px;
	--hkc-radius-sm: 10px;
	--hkc-shadow: 0 1px 2px rgba(23, 33, 30, 0.04), 0 4px 16px rgba(23, 33, 30, 0.05);
	--hkc-amber: #8a5a00;
	--hkc-amber-tint: #fff4dc;
}

/* Cards: lighter frame, soft lift, roomier body. */
.hkca .hkc-card {
	border-color: #e4e8e1;
	box-shadow: var(--hkc-shadow);
	margin-bottom: 16px;
}

.hkca .hkc-card-head {
	padding: 15px 18px;
	background: #fff;
	border-bottom-color: #edf0ea;
	font-size: 16.5px;
	transition: background 0.15s;
}

.hkca .hkc-card-head:not(.is-static):hover {
	background: #fafbf8;
}

.hkca .hkc-card-body {
	padding: 20px 18px 22px;
}

@media (min-width: 760px) {
	.hkca .hkc-card-body { padding: 22px 24px 26px; }
	.hkca .hkc-card-head { padding: 16px 24px; }
}

.hkca .hkc-chev {
	border-radius: 8px;
}

/* Section status badge: "3 left" until complete, then a green tick. */
.hkca .hkc-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--hkc-amber-tint);
	color: var(--hkc-amber);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	white-space: nowrap;
}

.hkca .hkc-badge.is-done {
	background: #e5f2e9;
	color: var(--hkc-good);
}

.hkca .hkc-badge svg {
	width: 12px;
	height: 12px;
}

/* Group titles: quieter band, accent tick kept. */
.hkca .hkc-group-title {
	background: transparent;
	padding: 0 0 8px;
	border-bottom: 1px solid #edf0ea;
	border-radius: 0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--hkc-ink-2);
}

.hkca .hkc-group-title::before {
	height: 13px;
	flex-basis: 4px;
}

.hkca .hkc-group-note {
	text-transform: none;
	letter-spacing: 0;
}

/* Inputs: rounder, clearer hover. */
.hkca input[type="text"],
.hkca input[type="tel"],
.hkca input[type="email"],
.hkca input[type="date"],
.hkca select,
.hkca textarea {
	border-color: #d9ded6;
	border-radius: var(--hkc-radius-sm);
}

.hkca input[type="text"]:hover,
.hkca input[type="date"]:hover,
.hkca select:hover,
.hkca textarea:hover {
	border-color: #b9c2bc;
}

.hkca .hkc-label {
	font-size: 13.5px;
	color: var(--hkc-ink-2);
}

/* Radio choices as tappable pills. Browsers without :has() keep plain radios. */
.hkca .hkc-choices {
	gap: 8px;
}

.hkca .hkc-choices .hkc-choice {
	min-height: 44px;
	padding: 0 16px 0 12px;
	border: 1.5px solid #d9ded6;
	border-radius: 999px;
	background: #fff;
	transition: border-color 0.15s, background 0.15s;
}

.hkca .hkc-choices .hkc-choice:hover {
	border-color: #b9c2bc;
}

.hkca .hkc-choices .hkc-choice:has(input:checked) {
	border-color: var(--hkc-accent, #5f7f23);
	background: var(--hkc-accent-tint, #eef3e2);
	font-weight: 600;
}

.hkca .hkc-choices .hkc-choice:has(input:focus-visible) {
	box-shadow: 0 0 0 3px var(--hkc-accent-glow, #e8f0d6);
}

.hkca .hkc-choices.is-stack {
	flex-direction: row;
	flex-wrap: wrap;
}

/* Repeating items. */
.hkca .hkc-item {
	border-color: #e4e8e1;
	border-radius: 12px;
	background: #fff;
}

.hkca .hkc-item-head {
	padding: 11px 14px;
	background: #f6f8f3;
}

.hkca .hkc-item-body {
	padding: 18px 14px;
}

.hkca .hkc-addrow {
	padding: 10px 12px;
	border: 1.5px dashed var(--hkc-accent-line, #c6dd8f);
	border-radius: 12px;
	justify-content: space-between;
}

/* Section chips: tick when complete, filled when in view. */
.hkca .hkc-step {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 13px;
	min-height: 32px;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hkca .hkc-step-ok {
	display: none;
	width: 12px;
	height: 12px;
}

.hkca .hkc-step-ok svg {
	display: block;
	width: 12px;
	height: 12px;
}

.hkca .hkc-step.is-done .hkc-step-ok {
	display: inline-block;
	color: var(--hkc-accent-line, #c6dd8f);
}

.hkca .hkc-step.is-active {
	background: #fff;
	border-color: #fff;
	color: var(--hkc-ink);
	font-weight: 600;
}

.hkca .hkc-step.is-active .hkc-step-ok {
	color: var(--hkc-good);
}

/* Bottom bar: what is left on the left, actions on the right. */
.hkca .hkc-nav {
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 -6px 20px rgba(23, 33, 30, 0.06);
	border-top-color: #e4e8e1;
}

.hkca .hkc-nav-in {
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.hkca .hkc-left {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hkc-amber);
}

.hkca .hkc-left.is-ready {
	color: var(--hkc-good);
}

.hkca .hkc-nav-btns {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.hkca .hkc-btn {
	border-radius: 12px;
}

.hkca .hkc-btn-submit {
	min-width: 170px;
	box-shadow: 0 4px 14px rgba(23, 33, 30, 0.14);
}

@media (max-width: 600px) {
	.hkca .hkc-nav {
		padding-top: 8px;
	}
	.hkca .hkc-nav-in {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}
	.hkca .hkc-left {
		text-align: center;
		font-size: 12.5px;
	}
	.hkca .hkc-left:empty {
		display: none;
	}
	.hkca .hkc-nav-btns {
		margin: 0;
	}
	.hkca .hkc-nav-btns .hkc-btn {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		padding: 12px 10px;
		font-size: 15px;
	}
	.hkca .hkc-nav-btns .hkc-btn-quiet {
		flex: 0.85 1 0;
	}
	/* Up/down buttons crowd a phone screen and sit over the inputs. */
	.hkca .hkc-jump {
		display: none;
	}
	.hkca .hkc-main {
		padding: 16px 12px 150px;
	}
	.hkca .hkc-card-body {
		padding: 18px 14px 20px;
	}
	.hkca .hkc-card-head {
		padding: 14px;
		font-size: 16px;
	}
}

/* Notices: errors read as a checklist of links. */
.hkca .hkc-note {
	border-radius: 12px;
	padding: 14px 16px;
}

.hkca .hkc-errlist {
	list-style: none;
	margin: 8px 0 0 !important;
	padding: 0;
	display: grid;
	gap: 2px;
}

.hkca .hkc-errlink {
	display: inline;
	padding: 2px 0;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.hkca .hkc-errlink::before {
	content: "\2192\00a0";
	text-decoration: none;
	display: inline-block;
}

.hkca .hkc-errlink:hover,
.hkca .hkc-errlink:focus-visible {
	color: #4d1a10;
	outline: none;
}

/* Program chooser: a list of rows on phones, a grid of tiles on wider screens. */
.hkca .hkc-tile {
	border-color: #e4e8e1;
	border-radius: 14px;
}

@media (max-width: 560px) {
	.hkca .hkc-tiles {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.hkca .hkc-tile {
		display: grid;
		grid-template-columns: 40px 1fr;
		column-gap: 12px;
		row-gap: 2px;
		align-items: center;
		padding: 12px 14px;
	}
	.hkca .hkc-tile-ico {
		grid-row: span 2;
	}
	.hkca .hkc-tile-t {
		margin-top: 0;
		padding-right: 64px;
	}
	.hkca .hkc-tile-d {
		grid-column: 2;
	}
	.hkca .hkc-tile-badge {
		top: 12px;
		right: 12px;
	}
}

/* Signature pad: white paper, dashed guide. */
.hkca .hkc-sig {
	background: #fff;
	border: 1.5px dashed #b9c2bc;
	border-radius: 12px;
}

.hkca .hkc-sig-wrap.is-signed .hkc-sig {
	border-style: solid;
	border-color: var(--hkc-accent, #5f7f23);
}

.hkca .hkc-done {
	border-radius: 16px;
	box-shadow: var(--hkc-shadow);
	padding: 42px 22px;
}

@media print {
	.hkca .hkc-card { box-shadow: none; }
	.hkca .hkc-badge { display: none !important; }
}

/* Percent reads as a suffix: "25 %", not "%25". */
.hkca .hkc-addon.is-suffix .hkc-addon-sym {
	left: auto;
	right: 14px;
}

.hkca .hkc-addon.is-suffix input {
	padding-left: 13px;
	padding-right: 32px;
}

/* Phones: a shorter masthead leaves more of the screen for the form, and the
   terms scroll inside their own box instead of pushing the signature away. */
@media (max-width: 560px) {
	.hkca .hkc-head-in { padding: 10px 14px 8px; gap: 10px; }
	.hkca .hkc-mark { flex-basis: 40px; width: 40px; height: 40px; font-size: 15px; border-radius: 10px; }
	.hkca .hkc-mark-logo { height: 40px; max-width: 150px; padding: 5px 10px; }
	.hkca .hkc-ident-name { font-size: 15.5px; }
	.hkca .hkc-head-form { font-size: 12px; color: #c9d3ce; }
	.hkca .hkc-progress { padding-bottom: 8px; }
	.hkca .hkc-steps { padding-bottom: 8px; }
	.hkca .hkc-terms-text { max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
