/* Casa Kalm intake — cream, olive, dark. Square edges, readable type. */

.cki-panel,
.cki-panel *,
.cki-dialog,
.cki-dialog * {
	box-sizing: border-box;
}

.cki-panel,
.cki-dialog {
	font-family: "Jost", "Gill Sans", "Trebuchet MS", sans-serif;
	color: #3a3728;
}

.cki-logo {
	display: block;
	height: 84px;
	width: auto;
	max-width: 168px;
	object-fit: contain;
	filter: brightness(0) saturate(100%);
}

.cki-kicker {
	font-family: "Jost", "Gill Sans", sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #3a3728;
	margin: 0 0 10px;
}

.cki-panel {
	max-width: 640px;
	margin: 36px auto 72px;
	padding: 12px 20px 24px;
	text-align: center;
	color: #3a3728;
}

.cki-panel .cki-logo {
	margin: 0 auto 18px;
}

.cki-panel .cki-kicker {
	display: inline-block;
	border: 1px solid #897e4f;
	padding: 8px 18px;
	color: #3a3728;
}

.cki-panel h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: clamp(2rem, 4vw, 3rem);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.15;
	margin: 22px 0 16px;
	color: #3a3728;
}

.cki-panel p {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #3a3728;
	max-width: 460px;
	margin: 0 auto 26px;
}

button.cki-launch,
button.cki-next,
button.cki-submit,
button.cki-back,
button.cki-clear,
button.cki-x,
.cki-scale button {
	cursor: pointer;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
	appearance: none;
}

.cki-launch,
.cki-back {
	display: inline-block;
	padding: 14px 28px;
	border: 1.5px solid #3a3728;
	background: transparent;
	color: #3a3728;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
}

.cki-launch:hover,
.cki-back:hover,
.cki-launch:focus-visible,
.cki-back:focus-visible {
	background: #3a3728;
	color: #f4f1ec;
}

.cki-next,
.cki-submit {
	padding: 14px 28px;
	border: 1.5px solid #3a3728;
	background: #3a3728;
	color: #f4f1ec;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.2;
}

.cki-next:hover,
.cki-submit:hover,
.cki-next:focus-visible,
.cki-submit:focus-visible {
	background: #211f16;
	border-color: #211f16;
}

.cki-next:disabled,
.cki-submit:disabled {
	opacity: 0.55;
	cursor: wait;
}

.cki-modal[hidden],
.cki-dialog [hidden] {
	display: none !important;
}

.cki-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.cki-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 26, 18, 0.62);
}

.cki-dialog {
	position: relative;
	z-index: 1;
	width: min(860px, 100%);
	max-height: min(920px, calc(100vh - 24px));
	background: #f4f1ec;
	color: #3a3728;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 70px rgba(28, 26, 18, 0.35);
}

.cki-head {
	position: relative;
	text-align: center;
	padding: 22px 56px 12px;
	flex: 0 0 auto;
}

.cki-head .cki-logo {
	margin: 0 auto 8px;
	height: 64px;
}

.cki-head h2 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 6px;
	line-height: 1.1;
	color: #3a3728;
}

.cki-dates {
	margin: 0;
	font-size: 0.92rem;
	letter-spacing: 0.06em;
	color: #3a3728;
}

.cki-x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #3a3728;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.cki-progress {
	height: 2px;
	background: rgba(137, 126, 79, 0.28);
	margin: 16px auto 8px;
	max-width: 420px;
}

.cki-progress span {
	display: block;
	height: 100%;
	width: 20%;
	background: #897e4f;
}

.cki-stepindex {
	margin: 0;
	font-size: 0.82rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #3a3728;
}

.cki-form {
	display: flex;
	flex-direction: column;
	min-height: 0;
	flex: 1;
}

.cki-steps {
	overflow: auto;
	padding: 8px 32px 12px;
	min-height: 0;
	flex: 1;
}

.cki-step h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.55rem, 2.4vw, 2rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 8px 0 8px;
	line-height: 1.15;
	color: #3a3728;
}

.cki-intro {
	margin: 0 0 22px;
	font-size: 1.02rem;
	line-height: 1.6;
	color: #3a3728;
	max-width: 62ch;
}

.cki-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

.cki-span {
	grid-column: 1 / -1;
}

.cki-label {
	display: block;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: #3a3728;
	margin-bottom: 6px;
}

.cki-req {
	color: #897e4f;
}

.cki-help {
	margin: -2px 0 8px;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #4a4638;
}

.cki-field input[type="text"],
.cki-field input[type="email"],
.cki-field input[type="tel"],
.cki-field input[type="date"],
.cki-field input[type="datetime-local"],
.cki-field textarea,
.cki-other {
	width: 100%;
	box-sizing: border-box;
	background: #ffffff;
	color: #3a3728;
	border: 1px solid #cfc6b4;
	padding: 12px 14px;
	font: 400 1rem/1.45 "Jost", "Gill Sans", "Trebuchet MS", sans-serif;
	border-radius: 0;
}

.cki-field textarea {
	resize: vertical;
	min-height: 88px;
}

.cki-field input:focus,
.cki-field textarea:focus,
.cki-other:focus,
.cki-scale button:focus-visible,
.cki-check input:focus-visible {
	outline: 2px solid #3a3728;
	outline-offset: 1px;
	border-color: #3a3728;
}

.cki-field input::placeholder,
.cki-field textarea::placeholder,
.cki-other::placeholder {
	color: #5c574c;
}

.cki-checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.cki-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	background: #ffffff;
	border: 1px solid #cfc6b4;
	padding: 12px 12px;
	cursor: pointer;
	font-size: 0.98rem;
	line-height: 1.4;
	color: #3a3728;
}

.cki-check input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: #3a3728;
	flex: 0 0 auto;
}

.cki-check:has(input:checked),
.cki-check.is-on {
	border-color: #3a3728;
	background: #fffdf8;
}

.cki-other {
	margin-top: 10px;
}

.cki-other[hidden] {
	display: none;
}

.cki-scale {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 6px;
}

.cki-scale button {
	min-height: 46px;
	background: #ffffff;
	border: 1px solid #cfc6b4;
	color: #3a3728;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.25rem;
	cursor: pointer;
}

.cki-scale button[aria-checked="true"] {
	background: #3a3728;
	border-color: #3a3728;
	color: #f4f1ec;
}

.cki-scale-legend {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #3a3728;
}

.cki-scale-legend span:last-child {
	text-align: right;
}

.cki-note {
	background: #ffffff;
	border-left: 3px solid #897e4f;
	padding: 14px 16px;
}

.cki-note p {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-style: italic;
	font-size: 1.15rem;
	line-height: 1.45;
	color: #3a3728;
}

.cki-ack {
	align-items: flex-start;
}

.cki-pad {
	position: relative;
	height: 170px;
	background: #ffffff;
	border: 1px solid #cfc6b4;
}

.cki-pad canvas {
	width: 100%;
	height: 100%;
	display: block;
	touch-action: none;
	cursor: crosshair;
	background: #ffffff;
}

.cki-sign-hint {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 28px;
	border-bottom: 1px solid rgba(137, 126, 79, 0.8);
	padding-bottom: 6px;
	color: #5c574c;
	font-size: 0.92rem;
	pointer-events: none;
}

.cki-pad.is-signed .cki-sign-hint {
	display: none;
}

.cki-clear {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #3a3728;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cki-field.is-invalid input,
.cki-field.is-invalid textarea,
.cki-field.is-invalid .cki-checks,
.cki-field.is-invalid .cki-pad,
.cki-field.is-invalid .cki-scale {
	border-color: #8a3a32;
}

.cki-field.is-invalid .cki-check {
	border-color: #8a3a32;
}

.cki-error {
	margin: 6px 0 0;
	color: #8a3a32;
	font-size: 0.92rem;
	line-height: 1.4;
}

.cki-banner {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #8a3a32;
	color: #8a3a32;
	font-size: 0.98rem;
}

.cki-banner[hidden] {
	display: none;
}

.cki-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 32px 18px;
	border-top: 1px solid rgba(137, 126, 79, 0.35);
	flex: 0 0 auto;
}

.cki-autosave {
	margin: 0;
	font-size: 0.82rem;
	color: #4a4638;
	max-width: 24ch;
	line-height: 1.35;
}

.cki-actions {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.cki-hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cki-success {
	text-align: center;
	padding: 28px 12px 12px;
}

.cki-success h3 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: 2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 12px;
}

.cki-success p {
	font-size: 1.05rem;
	line-height: 1.6;
	max-width: 46ch;
	margin: 0 auto 22px;
	color: #3a3728;
}

html.cki-lock,
html.cki-lock body {
	overflow: hidden;
}

body.cki-page,
body.cki-page .site-content,
body.cki-page #page,
body.cki-page .ast-plain-container,
body.cki-page .site-main {
	background: #f4f1ec;
}

body.cki-page .entry-header {
	display: none;
}

@media (max-width: 720px) {
	.cki-dialog {
		max-height: calc(100vh - 12px);
		max-height: calc(100dvh - 12px);
	}

	.cki-head {
		padding: 16px 44px 8px;
	}

	.cki-head .cki-logo {
		height: 52px;
	}

	.cki-steps,
	.cki-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.cki-grid,
	.cki-checks {
		grid-template-columns: 1fr;
	}

	.cki-scale {
		grid-template-columns: repeat(5, 1fr);
	}

	.cki-scale-legend {
		flex-direction: column;
		gap: 6px;
	}

	.cki-scale-legend span:last-child {
		text-align: left;
	}

	.cki-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.cki-actions {
		width: 100%;
	}

	.cki-actions button {
		flex: 1;
	}

	.cki-autosave {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cki-launch,
	.cki-next,
	.cki-submit,
	.cki-back {
		transition: none;
	}
}
