/* CK_FILE_VER: 1.2.0 */
/* ==========================================================================
   Carroll's Kitchen referrals — 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-ref-form {
	max-width: 720px;
	margin: 1.5rem 0;
}

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

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

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

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

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

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

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

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

.ck-ref-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-ref-note p { margin: 0; }
.ck-ref-note--urgent {
	background: #fdf1ee;
	border-left-color: #b3261e;
}

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

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

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

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

/* Running total: sticks to the bottom of the screen while scoring. */
.ck-ref-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, #241A1D);
	border-radius: 4px;
	font-weight: 700;
	padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.ck-ref-score strong { font-size: 1.25em; margin-left: 0.25rem; }
