@font-face {
	font-family: 'Jost';
	src: url('../fonts/jost-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Jost';
	src: url('../fonts/jost-latin-ext.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--kct-blue:        #98B5D3;
	--kct-blue-soft:   #D7E4F0;
	--kct-ink:         #000000;
	--kct-ink-2:       #111111;
	--kct-ink-3:       #4A4A4A;
	--kct-line:        #DDDDDD;
	--kct-line-2:      #CCCCCC;
	--kct-paper:       #FFFFFF;
	--kct-error:       #A43A3A;
	--kct-radius:      3px;
}

body#waiver,
body#confirm {
	font-family: 'proxima-nova', 'Jost', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, sans-serif;
	color: var(--kct-ink-2);
	background: #A8C8E0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
}

body#waiver::before,
body#confirm::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #A8C8E0;
	background-image: url('../img/bg-body.jpg');
	background-size: cover;
	background-position: center bottom;
	background-repeat: no-repeat;
	z-index: -1;
}

body .kct-stage,
body#confirm .kct-stage {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 44px 24px 56px;
	padding-left: max(24px, env(safe-area-inset-left));
	padding-right: max(24px, env(safe-area-inset-right));
	box-sizing: border-box;
}

body .kct-shell {
	width: 100%;
	max-width: 680px;
	min-width: 0;
	overflow-wrap: break-word;
	box-sizing: border-box;
}

body .kct-card {
	background: rgba(255, 255, 255, 0.9);
	border-radius: var(--kct-radius);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.20),
	            0 3px 12px -4px rgba(0, 0, 0, 0.07);
	padding: 48px 48px 40px;
	box-sizing: border-box;
}

body .kct-head {
	text-align: center;
	margin-bottom: 34px;
}

body .kct-waiver {
	background: transparent;
}

body .kct-title {
	margin: 0;
	font-family: 'proxima-nova', 'Jost', 'Avenir Next', Avenir, sans-serif;
	font-size: 44px;
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -0.018em;
	color: var(--kct-ink);
}

body .kct-hash {
	color: var(--kct-blue);
	font-weight: 400;
}

body .kct-subtitle {
	margin: 18px 0 0;
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--kct-ink-3);
}

body .kct-waiver-intro {
	margin: 0 0 22px;
	font-size: 17px;
	font-weight: 500;
	color: var(--kct-ink);
}

body .kct-clauses {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
}

body .kct-clauses li {
	position: relative;
	padding: 0 0 0 26px;
	margin-bottom: 16px;
	font-size: 15px;
	line-height: 1.62;
	color: var(--kct-ink-2);
}

body .kct-clauses li:last-child {
	margin-bottom: 0;
}

body .kct-clauses li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 11px;
	width: 12px;
	height: 1px;
	background: var(--kct-blue);
}

body .kct-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px 32px;
	margin-bottom: 36px;
}

body .kct-field label {
	display: block;
	margin-bottom: 8px;
	padding-left: 10px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kct-ink-3);
}

body .kct-field input {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 10px;
	border: 0;
	border-bottom: 1px solid var(--kct-line);
	border-radius: 2px 2px 0 0;
	background: rgba(255, 255, 255, 0.75);
	font-family: inherit;
	font-size: 18px;
	font-weight: 400;
	color: var(--kct-ink);
	box-shadow: none;
	transition: border-color 0.2s ease, background 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

body .kct-field input:focus {
	outline: 0;
	background: rgba(255, 255, 255, 0.92);
	border-bottom-color: var(--kct-ink);
}

body .kct-field input.is-wrong {
	border-bottom-color: var(--kct-error);
}

body .kct-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

body .kct-consent {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 38px;
	padding: 18px 20px;
	background: rgba(255, 255, 255, 0.75);
	border-radius: var(--kct-radius);
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

body .kct-consent.is-wrong {
	box-shadow: inset 0 0 0 1px var(--kct-error);
}

body .kct-consent input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

body .kct-box {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	margin-top: 1px;
	border: 1px solid var(--kct-line-2);
	border-radius: 2px;
	background: #fff;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

body .kct-box::after {
	content: '';
	position: absolute;
	left: 8px;
	top: 3px;
	width: 7px;
	height: 13px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0.4);
	opacity: 0;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

body .kct-consent input:checked ~ .kct-box {
	background: var(--kct-ink);
	border-color: var(--kct-ink);
}

body .kct-consent input:checked ~ .kct-box::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

body .kct-consent-txt {
	font-size: 15px;
	line-height: 1.5;
	color: var(--kct-ink);
	padding-top: 2px;
}

body .kct-sign {
	margin-bottom: 34px;
}

body .kct-sign-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 10px;
}

body .kct-sign-label {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kct-ink-3);
}

body .kct-clear {
	border: 0;
	background: none;
	padding: 6px 2px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--kct-ink-3);
	cursor: pointer;
	transition: color 0.2s ease;
}

body .kct-clear:hover,
body .kct-clear:active {
	color: var(--kct-ink);
}

body .kct-pad {
	position: relative;
	height: 210px;
	background: var(--kct-paper);
	border: 1px solid var(--kct-line);
	border-radius: var(--kct-radius);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

body .kct-pad.is-wrong {
	border-color: var(--kct-error);
}

body .kct-pad canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: crosshair;
	position: relative;
	z-index: 2;
}

body .kct-pad-line {
	position: absolute;
	left: 34px;
	right: 34px;
	bottom: 46px;
	height: 1px;
	background: var(--kct-line);
	z-index: 1;
}

body .kct-pad-hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kct-ink-3);
	opacity: 0.7;
	z-index: 1;
	pointer-events: none;
}

body .kct-alert {
	margin: 0 0 30px;
	padding: 15px 18px;
	background: rgba(164, 58, 58, 0.07);
	border-left: 2px solid var(--kct-error);
	font-size: 14px;
	color: var(--kct-error);
}

body .kct-error {
	margin: 0 0 18px;
	font-size: 14px;
	color: var(--kct-error);
	text-align: center;
}

body .kct-submit {
	display: block;
	width: 100%;
	height: 62px;
	border: 0;
	border-radius: var(--kct-radius);
	background: var(--kct-ink);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.20em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

body .kct-submit:hover {
	background: #333333;
}

body .kct-submit:active {
	background: #000000;
}

body .kct-submit.is-sending {
	opacity: 0.55;
	cursor: default;
}

body .kct-logo {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin: 0 auto 30px;
}

body#confirm .kct-card {
	text-align: center;
	padding: 72px 56px 48px;
}

body#confirm .kct-check {
	width: 82px;
	height: 82px;
	margin: 0 auto 34px;
	border-radius: 50%;
	border: 1px solid var(--kct-line-2);
	display: flex;
	align-items: center;
	justify-content: center;
}

body#confirm .kct-check svg {
	width: 34px;
	height: 34px;
	stroke: var(--kct-ink);
	stroke-width: 1.6;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body#confirm .kct-done-title {
	margin: 0 0 18px;
	font-size: 34px;
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--kct-ink);
}

body#confirm .kct-done-name {
	margin: 0 0 26px;
	font-size: 19px;
	color: var(--kct-ink-2);
}

body#confirm .kct-done-txt {
	margin: 0 auto 38px;
	max-width: 440px;
	font-size: 16px;
	line-height: 1.62;
	color: var(--kct-ink-2);
}

body#confirm .kct-meta {
	margin: 0 0 40px;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kct-ink-3);
}

body#confirm .kct-next {
	display: inline-block;
	min-width: 280px;
	height: 58px;
	line-height: 58px;
	padding: 0 34px;
	border-radius: var(--kct-radius);
	background: var(--kct-ink);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.20em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s ease;
}

body#confirm .kct-next:hover,
body#confirm .kct-next:focus {
	background: #333333;
	color: #fff;
	text-decoration: none;
}

body#confirm .kct-countdown {
	margin: 22px 0 0;
	font-size: 12px;
	letter-spacing: 0.10em;
	color: var(--kct-ink-3);
}

@media (max-width: 834px) {
	body .kct-stage { padding: 32px 20px 44px; }
	body .kct-card  { padding: 40px 38px 36px; }
	body .kct-title { font-size: 40px; }
}

@media (max-width: 600px) {
	body .kct-stage  { padding: 20px 14px 32px; }
	body .kct-card   { padding: 32px 24px 28px; }
	body .kct-title    { font-size: 32px; }
	body .kct-subtitle { font-size: 14px; letter-spacing: 0.18em; }
	body .kct-fields { grid-template-columns: 1fr; gap: 22px; }
	body .kct-pad    { height: 180px; }
	body .kct-clauses li { font-size: 14px; }
	body#confirm .kct-card       { padding: 48px 24px 32px; }
	body#confirm .kct-done-title { font-size: 27px; }
}

@media (max-height: 700px) and (min-width: 835px) {
	body .kct-head { padding-bottom: 26px; margin-bottom: 26px; }
	body .kct-pad  { height: 170px; }
}

