.ktv-portal,
.ktv-app {
	--ktv-blue: #173d69;
	--ktv-blue-dark: #102c4b;
	--ktv-blue-soft: #eaf1f8;
	--ktv-gold: #ad7a2b;
	--ktv-ink: #1c2732;
	--ktv-muted: #5e6b78;
	--ktv-line: #d7dfe7;
	--ktv-surface: #ffffff;
	--ktv-bg: #f5f7fa;
	--ktv-danger: #b42318;
	--ktv-success: #18764c;
	box-sizing: border-box;
	color: var(--ktv-ink);
	font-family: inherit;
}

.ktv-portal *,
.ktv-app * {
	box-sizing: border-box;
}

.ktv-portal {
	max-width: 1080px;
	margin: 0 auto;
	padding-block: clamp(40px, 7vw, 80px);
}

.ktv-page-copy {
	max-width: 820px;
	margin: 0 auto;
	padding: clamp(42px, 7vw, 76px) 20px 0;
	text-align: center;
}

.ktv-page-copy .ktv-page-eyebrow {
	margin: 0 0 10px;
	color: #ad7a2b;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .14em;
}

.ktv-page-copy h2 {
	margin: 0 0 14px;
	color: #102c4b;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.12;
}

.ktv-page-copy p {
	color: #5e6b78;
	font-size: 1.04rem;
}

.ktv-portal__intro {
	max-width: 760px;
	margin: 0 auto 26px;
	text-align: center;
}

.ktv-portal__intro h2,
.ktv-card__header h2 {
	margin: 8px 0 10px;
	color: var(--ktv-blue-dark);
	font-size: clamp(1.75rem, 4vw, 2.65rem);
	line-height: 1.12;
}

.ktv-portal__intro p,
.ktv-card__header p {
	margin: 0;
	color: var(--ktv-muted);
	font-size: 1.02rem;
}

.ktv-eyebrow {
	display: inline-flex;
	align-items: center;
	color: var(--ktv-gold);
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.ktv-portal__choices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 22px;
}

.ktv-portal__choices button {
	display: grid;
	grid-template-columns: 42px 1fr;
	grid-template-rows: auto auto;
	gap: 2px 10px;
	min-height: 100px;
	padding: 18px;
	border: 1px solid var(--ktv-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ktv-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ktv-portal__choices button:hover,
.ktv-portal__choices button:focus-visible {
	border-color: var(--ktv-blue);
	box-shadow: 0 8px 24px rgba(20, 53, 87, .12);
	transform: translateY(-2px);
}

.ktv-portal__choices button.is-active {
	border-color: var(--ktv-blue);
	background: var(--ktv-blue);
	color: #fff;
}

.ktv-portal__choices .dashicons {
	grid-row: 1 / span 2;
	width: 42px;
	height: 42px;
	font-size: 32px;
	line-height: 42px;
	color: var(--ktv-gold);
	text-align: center;
}

.ktv-portal__choices button.is-active .dashicons {
	color: #fff;
}

.ktv-portal__choices strong {
	align-self: end;
	font-size: 1rem;
}

.ktv-portal__choices small {
	align-self: start;
	opacity: .76;
	font-size: .83rem;
	line-height: 1.35;
}

.ktv-portal__panel[hidden] {
	display: none !important;
}

.ktv-app {
	max-width: 920px;
	margin: 0 auto;
	padding-block: clamp(40px, 7vw, 80px);
}

.ktv-portal .ktv-app {
	margin: 0 auto;
	padding-block: 0;
}

.ktv-card {
	overflow: hidden;
	border: 1px solid var(--ktv-line);
	border-radius: 14px;
	background: var(--ktv-surface);
	box-shadow: 0 18px 50px rgba(16, 44, 75, .1);
}

.ktv-card__header {
	padding: clamp(24px, 5vw, 42px) clamp(20px, 6vw, 52px) 26px;
	border-bottom: 1px solid var(--ktv-line);
	background: linear-gradient(135deg, #fff 0%, var(--ktv-blue-soft) 100%);
}

.ktv-progress {
	display: grid;
	grid-template-columns: repeat(var(--ktv-steps, 4), minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 20px clamp(20px, 6vw, 52px);
	border-bottom: 1px solid var(--ktv-line);
	background: #fbfcfd;
	list-style: none;
}

.ktv-progress:has(li:nth-child(3):last-child) {
	--ktv-steps: 3;
}

.ktv-progress:has(li:nth-child(4):last-child) {
	--ktv-steps: 4;
}

.ktv-progress li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	color: #7b8792;
	font-weight: 700;
}

.ktv-progress li:not(:last-child)::after {
	position: absolute;
	top: 15px;
	left: calc(32px + 8px);
	right: 8px;
	height: 2px;
	background: var(--ktv-line);
	content: "";
}

.ktv-progress li.is-complete:not(:last-child)::after {
	background: var(--ktv-blue);
}

.ktv-progress li > span {
	position: relative;
	z-index: 1;
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border: 2px solid var(--ktv-line);
	border-radius: 50%;
	background: #fff;
	font-size: .84rem;
}

.ktv-progress li.is-active,
.ktv-progress li.is-complete {
	color: var(--ktv-blue);
}

.ktv-progress li.is-active > span,
.ktv-progress li.is-complete > span {
	border-color: var(--ktv-blue);
	background: var(--ktv-blue);
	color: #fff;
}

.ktv-progress small {
	position: relative;
	z-index: 1;
	padding-right: 8px;
	background: #fbfcfd;
	font-size: .78rem;
	white-space: nowrap;
}

.ktv-form {
	padding: clamp(24px, 6vw, 52px);
}

.ktv-step[hidden],
.ktv-working[hidden],
.ktv-error[hidden],
.ktv-result[hidden],
[data-membership-family][hidden],
[data-voluntary-field][hidden],
[data-account-signature][hidden] {
	display: none !important;
}

.ktv-step h3 {
	margin: 0 0 8px;
	color: var(--ktv-blue-dark);
	font-size: clamp(1.35rem, 3vw, 1.8rem);
	line-height: 1.2;
}

.ktv-step h4 {
	margin: 28px 0 14px;
	color: var(--ktv-blue-dark);
	font-size: 1rem;
}

.ktv-help,
.ktv-legal-note {
	margin: 0 0 24px;
	color: var(--ktv-muted);
	font-size: .93rem;
	line-height: 1.55;
}

.ktv-legal-note {
	margin-top: 18px;
	font-size: .84rem;
}

.ktv-turnstile {
	margin-top: 24px;
	padding: 17px;
	border: 1px solid #cbd8e5;
	border-radius: 9px;
	background: #f5f8fb;
}

.ktv-turnstile[aria-invalid="true"] {
	border-color: var(--ktv-danger);
	background: #fff8f7;
}

.ktv-turnstile__intro {
	margin: 0 0 13px;
	color: var(--ktv-muted);
	font-size: .88rem;
	line-height: 1.5;
}

.ktv-turnstile__intro strong {
	color: var(--ktv-blue-dark);
}

.ktv-turnstile__widget {
	width: 100%;
	min-height: 65px;
	overflow: hidden;
}

.ktv-turnstile__widget iframe {
	display: block;
	max-width: 100%;
}

.ktv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 19px;
}

.ktv-grid--address {
	grid-template-columns: minmax(0, 2fr) minmax(120px, .7fr);
}

.ktv-field--wide {
	min-width: 0;
}

.ktv-field--compact {
	max-width: 360px;
	margin-top: 14px;
}

.ktv-member-number-choice {
	display: grid !important;
	grid-template-columns: 21px 1fr;
	gap: 9px;
	align-items: start;
	margin: 10px 0 0 !important;
	font-size: .87rem !important;
	font-weight: 600 !important;
	line-height: 1.4;
	cursor: pointer;
}

.ktv-member-number-choice input {
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	accent-color: var(--ktv-blue);
}

.ktv-member-number-help {
	margin: 7px 0 0;
	color: var(--ktv-muted);
	font-size: .82rem;
	line-height: 1.45;
}

.ktv-field--member-number.is-unknown > input {
	background: #f1f4f7;
	color: var(--ktv-muted);
}

.ktv-field label,
.ktv-signature legend,
.ktv-choice-field legend,
.ktv-child-row label,
.ktv-signature__panel label {
	display: block;
	margin: 0 0 7px;
	color: var(--ktv-ink);
	font-size: .9rem;
	font-weight: 700;
}

.ktv-field input,
.ktv-field select,
.ktv-signature__panel input,
.ktv-child-row input {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #aeb9c3;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--ktv-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.ktv-field textarea {
	display: block;
	width: 100%;
	min-height: 170px;
	margin: 0;
	padding: 14px;
	resize: vertical;
	border: 1px solid #aeb9c3;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: var(--ktv-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.55;
}

.ktv-field--message {
	margin-top: 18px;
}

.ktv-field input:focus,
.ktv-field select:focus,
.ktv-field textarea:focus,
.ktv-signature__panel input:focus,
.ktv-child-row input:focus {
	outline: 0;
	border-color: var(--ktv-blue);
	box-shadow: 0 0 0 3px rgba(23, 61, 105, .16);
}

.ktv-field input[aria-invalid="true"],
.ktv-field textarea[aria-invalid="true"],
.ktv-signature[aria-invalid="true"] canvas {
	border-color: var(--ktv-danger);
}

.ktv-field-error {
	min-height: 0;
	margin: 5px 0 0;
	color: var(--ktv-danger);
	font-size: .82rem;
	font-weight: 600;
	line-height: 1.35;
}

.ktv-field-error:empty {
	display: none;
}

.ktv-choice-field,
.ktv-signature {
	min-width: 0;
	margin: 0 0 24px;
	padding: 0;
	border: 0;
}

.ktv-choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.ktv-choice-grid label {
	display: block;
	cursor: pointer;
}

.ktv-choice-grid input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ktv-choice-grid label > span {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 84px;
	padding: 15px 18px;
	border: 2px solid var(--ktv-line);
	border-radius: 9px;
	background: #fff;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ktv-choice-grid input:checked + span {
	border-color: var(--ktv-blue);
	background: var(--ktv-blue-soft);
	box-shadow: 0 0 0 2px rgba(23, 61, 105, .08);
}

.ktv-choice-grid input:focus-visible + span {
	outline: 3px solid rgba(23, 61, 105, .25);
	outline-offset: 2px;
}

.ktv-choice-grid strong {
	color: var(--ktv-blue-dark);
	font-size: 1rem;
}

.ktv-choice-grid small {
	margin-top: 3px;
	color: var(--ktv-muted);
}

.ktv-notice {
	margin: 0 0 22px;
	padding: 16px 18px;
	border-left: 4px solid var(--ktv-gold);
	border-radius: 5px;
	background: #fff8eb;
	font-size: .91rem;
	line-height: 1.5;
}

.ktv-notice p {
	margin: 5px 0 0;
}

.ktv-notice--mandate {
	max-height: 280px;
	overflow: auto;
	border-left-color: var(--ktv-blue);
	background: var(--ktv-blue-soft);
}

.ktv-family {
	margin: 22px 0;
	padding: 22px;
	border: 1px solid var(--ktv-line);
	border-radius: 9px;
	background: var(--ktv-bg);
}

.ktv-children {
	margin-top: 20px;
}

.ktv-child-row {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(150px, 1fr) 42px;
	gap: 10px;
	align-items: end;
	margin-bottom: 10px;
}

.ktv-icon-button,
.ktv-link-button {
	min-height: 42px;
	border: 0;
	background: transparent;
	color: var(--ktv-blue);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ktv-icon-button {
	display: grid;
	place-items: center;
	width: 42px;
	padding: 0;
	border: 1px solid var(--ktv-line);
	border-radius: 6px;
	background: #fff;
	color: var(--ktv-danger);
	font-size: 22px;
}

.ktv-link-button {
	padding: 4px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ktv-consent {
	display: grid;
	grid-template-columns: 24px 1fr;
	gap: 11px;
	align-items: start;
	margin: 14px 0;
	font-size: .92rem;
	line-height: 1.55;
	cursor: pointer;
}

.ktv-consent--standalone {
	margin: 20px 0 12px;
}

.ktv-consent input {
	width: 21px;
	height: 21px;
	margin: 2px 0 0;
	accent-color: var(--ktv-blue);
}

.ktv-consent a {
	color: var(--ktv-blue);
	font-weight: 700;
}

.ktv-money {
	display: grid;
	grid-template-columns: 1fr 48px;
}

.ktv-money input {
	border-radius: 6px 0 0 6px;
}

.ktv-money span {
	display: grid;
	place-items: center;
	border: 1px solid #aeb9c3;
	border-left: 0;
	border-radius: 0 6px 6px 0;
	background: var(--ktv-bg);
	font-weight: 700;
}

.ktv-signature {
	margin-top: 26px;
}

.ktv-signature__tabs {
	display: inline-flex;
	gap: 6px;
	margin: 0 0 10px;
	padding: 4px;
	border-radius: 7px;
	background: var(--ktv-bg);
}

.ktv-signature__tabs button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 40px;
	padding: 7px 12px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--ktv-muted);
	font: inherit;
	font-size: .88rem;
	font-weight: 700;
	cursor: pointer;
}

.ktv-signature__tabs button.is-active {
	background: #fff;
	box-shadow: 0 1px 5px rgba(16, 44, 75, .12);
	color: var(--ktv-blue);
}

.ktv-signature__panel[hidden] {
	display: none !important;
}

.ktv-signature__panel {
	position: relative;
}

.ktv-signature canvas {
	display: block;
	width: 100%;
	height: 190px;
	border: 2px solid #aeb9c3;
	border-radius: 7px;
	background: #fff;
	cursor: crosshair;
	touch-action: none;
	user-select: none;
}

.ktv-signature__line {
	position: absolute;
	left: 7%;
	right: 7%;
	top: 145px;
	height: 1px;
	background: #aeb9c3;
	pointer-events: none;
}

.ktv-signature__preview {
	display: flex;
	align-items: end;
	min-height: 120px;
	margin-top: 12px;
	padding: 18px 22px;
	border: 2px solid #aeb9c3;
	border-radius: 7px;
	background: #fff;
	color: #1b1b1b;
	font-family: "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive;
	font-size: clamp(1.65rem, 5vw, 2.65rem);
	font-style: italic;
	line-height: 1.1;
}

.ktv-summary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	margin: 0 0 24px;
	border: 1px solid var(--ktv-line);
	border-radius: 8px;
	background: var(--ktv-line);
}

.ktv-summary > div {
	padding: 13px 15px;
	background: #fff;
}

.ktv-summary small {
	display: block;
	margin-bottom: 3px;
	color: var(--ktv-muted);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.ktv-summary strong {
	display: block;
	overflow-wrap: anywhere;
}

.ktv-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 34px;
}

.ktv-actions--end {
	justify-content: flex-end;
}

.ktv-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 12px 22px;
	border: 2px solid var(--ktv-blue);
	border-radius: 6px;
	background: var(--ktv-blue);
	color: #fff;
	font: inherit;
	font-size: .95rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.ktv-button:hover,
.ktv-button:focus-visible {
	border-color: var(--ktv-blue-dark);
	background: var(--ktv-blue-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ktv-button--secondary {
	background: #fff;
	color: var(--ktv-blue);
}

.ktv-button--secondary:hover,
.ktv-button--secondary:focus-visible {
	background: var(--ktv-blue-soft);
	color: var(--ktv-blue-dark);
}

.ktv-button[disabled] {
	opacity: .6;
	cursor: wait;
	transform: none;
}

.ktv-working,
.ktv-error,
.ktv-result {
	margin: clamp(24px, 6vw, 52px);
	padding: clamp(22px, 5vw, 36px);
	border-radius: 9px;
	text-align: center;
}

.ktv-working {
	background: var(--ktv-blue-soft);
}

.ktv-working h3,
.ktv-result h3 {
	margin: 14px 0 7px;
	color: var(--ktv-blue-dark);
}

.ktv-working p,
.ktv-result p {
	margin: 5px 0;
}

.ktv-spinner {
	display: inline-block;
	width: 42px;
	height: 42px;
	border: 4px solid rgba(23, 61, 105, .2);
	border-top-color: var(--ktv-blue);
	border-radius: 50%;
	animation: ktv-spin .8s linear infinite;
}

.ktv-error {
	border: 1px solid #f3b6b1;
	background: #fff1f0;
	color: var(--ktv-danger);
	font-weight: 700;
}

.ktv-result {
	border: 1px solid #99d2b6;
	background: #effaf4;
	color: #174e35;
}

.ktv-result__reference {
	display: inline-block;
	margin: 12px 0;
	padding: 9px 13px;
	border-radius: 5px;
	background: #fff;
	color: var(--ktv-blue-dark);
	font-size: 1.2rem;
	font-weight: 900;
	letter-spacing: .04em;
}

.ktv-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

@keyframes ktv-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
	.ktv-portal__choices {
		grid-template-columns: 1fr;
	}

	.ktv-portal__choices button {
		min-height: 84px;
	}

	.ktv-progress small {
		display: none;
	}

	.ktv-progress li {
		justify-content: flex-start;
	}

	.ktv-progress li:not(:last-child)::after {
		left: 38px;
		right: 6px;
	}
}

@media (max-width: 640px) {
	.ktv-portal {
		margin: 20px -4px;
	}

	.ktv-card {
		border-radius: 9px;
	}

	.ktv-grid,
	.ktv-grid--address,
	.ktv-choice-grid,
	.ktv-summary {
		grid-template-columns: 1fr;
	}

	.ktv-child-row {
		grid-template-columns: 1fr 42px;
		padding: 12px;
		border: 1px solid var(--ktv-line);
		border-radius: 7px;
		background: #fff;
	}

	.ktv-child-row label {
		grid-column: 1 / -1;
	}

	.ktv-child-row .ktv-icon-button {
		grid-column: 2;
	}

	.ktv-family {
		padding: 16px;
	}

	.ktv-actions {
		flex-direction: column-reverse;
	}

	.ktv-actions .ktv-button {
		width: 100%;
	}

	.ktv-signature canvas {
		height: 165px;
	}

	.ktv-signature__line {
		top: 125px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ktv-portal *,
	.ktv-app * {
		scroll-behavior: auto !important;
		transition: none !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.ktv-portal__choices,
	.ktv-progress,
	.ktv-actions,
	.ktv-signature__tabs,
	.ktv-link-button,
	.ktv-card__header {
		display: none !important;
	}

	.ktv-card {
		border: 0;
		box-shadow: none;
	}
}
