/* CK_FILE_VER: 1.1.0 */
/* ==========================================================================
   Carroll's Kitchen catering — front-end form styles.

   Plain and high-contrast. Case managers fill this in between appointments,
   often on a phone. Colours come from the Carroll's Kitchen theme tokens when
   the theme is active, with fallbacks so the form still reads without it.
   ========================================================================== */

.ck-cat-form {
	max-width: 720px;
	margin: 1.5rem 0;
}

.ck-cat-heading {
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--ck-pine, #1E3B33);
	font-size: 1.15rem;
}
.ck-cat-heading:first-child { margin-top: 0; }

.ck-cat-field { margin-bottom: 1.15rem; }

.ck-cat-label,
.ck-cat-group legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.ck-cat-req {
	font-weight: 400;
	color: #7a2f22;
	font-size: 0.88em;
}

.ck-cat-help {
	font-size: 0.9rem;
	color: #4a524e;
	margin: 0 0 0.4rem;
	line-height: 1.5;
}

.ck-cat-form input[type="text"],
.ck-cat-form input[type="email"],
.ck-cat-form input[type="tel"],
.ck-cat-form input[type="date"],
.ck-cat-form select,
.ck-cat-form textarea {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #9aa6a0;
	border-radius: 4px;
	font: inherit;
	background: #fff;
	color: #1a1c20;
}
.ck-cat-form input:focus,
.ck-cat-form select:focus,
.ck-cat-form textarea:focus {
	outline: 3px solid var(--ck-pine, #1E3B33);
	outline-offset: 1px;
	border-color: var(--ck-pine, #1E3B33);
}
.ck-cat-form input[type="file"] {
	padding: 0.5rem 0;
	font: inherit;
}

.ck-cat-group {
	border: 1px solid #d5ddd8;
	border-radius: 4px;
	padding: 0.9rem 1rem;
	margin: 0;
}
.ck-cat-option {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.35rem 0;
	font-weight: 400;
	cursor: pointer;
	line-height: 1.45;
}
.ck-cat-option input { margin-top: 0.25rem; flex: 0 0 auto; }

/* The honeypot. Hidden from people without being hidden from a bot's parser. */
.ck-cat-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ck-cat-note {
	background: #f3f7f5;
	border-left: 4px solid var(--ck-pine, #1E3B33);
	padding: 0.9rem 1.15rem;
	margin: 1.25rem 0;
	border-radius: 0 4px 4px 0;
}
.ck-cat-note p { margin: 0; }
.ck-cat-note--urgent {
	background: #fdf1ee;
	border-left-color: #b3261e;
}

.ck-cat-notice {
	padding: 1rem 1.25rem;
	margin: 1.25rem 0;
	border-radius: 4px;
	border-left: 4px solid;
}
.ck-cat-notice p:last-child { margin-bottom: 0; }
.ck-cat-notice--ok { background: #eaf4ef; border-left-color: #1f5f5b; }
.ck-cat-notice--error { background: #fdf1ee; border-left-color: #b3261e; }
.ck-cat-notice--warn { background: #fdf6e8; border-left-color: #b8860b; }
.ck-cat-notice ul { margin: 0.5rem 0 0 1.25rem; }
.ck-cat-notice__admin {
	font-size: 0.9rem;
	border-top: 1px dashed #c5cfca;
	padding-top: 0.7rem;
	margin-top: 0.9rem;
	color: #4a524e;
}

.ck-cat-actions { margin-top: 1.75rem; }
.ck-cat-submit {
	background: var(--ck-butter, #F55E62);
	color: var(--ck-on-butter, #1A1F1C);
	border: 0;
	border-radius: 4px;
	padding: 0.85rem 1.75rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ck-cat-submit:hover { background: var(--ck-ink, #241A1D); color: #fff; }
.ck-cat-submit:focus-visible {
	outline: 3px solid var(--ck-butter, #F2C14E);
	outline-offset: 2px;
}
.ck-cat-submit[disabled] { opacity: 0.6; cursor: progress; }

.ck-cat-privacy {
	font-size: 0.9rem;
	color: #4a524e;
	margin: 0.75rem 0 0;
	line-height: 1.5;
}

/* ---------- Stability Program Assessment ---------- */
.ck-cat-heading--4 {
	font-size: 1.05rem;
	border-bottom-width: 1px;
	margin-top: 1.5rem;
}
.ck-cat-group--score { padding: 0.6rem 1rem; }
.ck-cat-group--score legend { font-size: 0.95rem; padding: 0 0.25rem; }
.ck-cat-mode { font-weight: 400; color: #4a524e; font-size: 0.88em; }
.ck-cat-group--score .ck-cat-option { justify-content: flex-start; }
.ck-cat-group--score .ck-cat-option span:first-of-type { flex: 1; }
.ck-cat-pts {
	flex: 0 0 auto;
	font-size: 0.82rem;
	color: #4a524e;
	white-space: nowrap;
	padding-left: 0.5rem;
}
.ck-cat-option--clear { color: #4a524e; font-size: 0.92rem; }

/* Running total: sticks to the bottom of the screen while scoring. */
.ck-cat-score {
	position: sticky;
	bottom: 0;
	z-index: 5;
	margin: 1.25rem 0 0;
	padding: 0.75rem 1rem;
	background: var(--ck-pine, #BC7E8E);
	color: var(--ck-on-pine, #1A1F1C);
	border-radius: 4px;
	font-weight: 700;
	padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.ck-cat-score strong { font-size: 1.25em; margin-left: 0.25rem; }

/* ---------- Catering menu picker ---------- */
.ck-cat-menu { border: 1px solid #d5ddd8; border-radius: 4px; padding: 0.25rem 1rem 0.75rem; }
.ck-cat-menu__head { font-weight: 700; margin: 0.9rem 0 0.3rem; color: var(--ck-primary-text, #7A3E4C); }
.ck-cat-menu__row { display: grid; grid-template-columns: 1fr auto 5rem; gap: 0.75rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid #eee; }
.ck-cat-menu__row label { font-weight: 400; margin: 0; }
.ck-cat-menu__price { font-size: 0.9rem; color: #4a524e; white-space: nowrap; }
.ck-cat-form .ck-cat-menu__row input[type="number"], .ck-cat-form input[type="number"] { width: 100%; padding: 0.5rem; border: 1px solid #9aa6a0; border-radius: 4px; font: inherit; }
.ck-cat-score__note { font-weight: 400; font-size: 0.85em; opacity: 0.85; margin-left: 0.35rem; }
@media (max-width: 30rem) { .ck-cat-menu__row { grid-template-columns: 1fr 4.5rem; } .ck-cat-menu__price { grid-column: 1; grid-row: 2; } }
