/* Caring Alliance Case Manager frontend styles */

.cacm-card {
	background: #ffffff;
	border: 1px solid #e1e8ed;
	border-radius: 8px;
	padding: 24px 28px;
	max-width: 820px;
	margin: 0 auto 24px;
	box-shadow: 0 1px 3px rgba(20, 61, 92, 0.06);
}

.cacm-card h3 {
	color: #1a5276;
	font-size: 22px;
	margin: 0 0 14px;
}

.cacm-card h4 {
	color: #1a5276;
	font-size: 16px;
	margin: 22px 0 8px;
}

.cacm-form .cacm-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}

.cacm-form .cacm-row .cacm-field {
	flex: 1 1 220px;
}

.cacm-form .cacm-field {
	margin-bottom: 16px;
}

.cacm-form label,
.cacm-form legend {
	display: block;
	font-weight: 600;
	color: #2b2b2b;
	margin-bottom: 6px;
	font-size: 15px;
}

.cacm-form input[type="text"],
.cacm-form input[type="email"],
.cacm-form input[type="tel"],
.cacm-form input[type="search"],
.cacm-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c9d4dc;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #fbfcfd;
}

.cacm-form input:focus,
.cacm-form textarea:focus {
	outline: none;
	border-color: #1a5276;
	box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.15);
	background: #ffffff;
}

.cacm-form textarea {
	resize: vertical;
}

.cacm-form fieldset.cacm-fieldset {
	border: 1px solid #c9d4dc;
	border-radius: 6px;
	padding: 12px 14px 6px;
	margin-bottom: 16px;
	background: #fbfcfd;
}

.cacm-radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400 !important;
	margin-right: 20px;
}

.cacm-radio input {
	margin: 0;
}

.cacm-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-weight: 400 !important;
	font-size: 14px;
	line-height: 1.5;
}

.cacm-check input[type="checkbox"] {
	margin-top: 4px;
}

.cacm-button {
	background: #1a5276;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 12px 26px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
	font-family: inherit;
	display: inline-block;
	text-decoration: none;
}

.cacm-button:hover,
.cacm-button:focus {
	background: #143d5c;
	color: #ffffff;
}

.cacm-button-small {
	padding: 6px 14px;
	font-size: 13px;
}

.cacm-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	width: 1px;
	opacity: 0;
}

.cacm-success {
	border: 1px solid #b7d7b9;
	background: #eef6ef;
}

.cacm-error {
	border-left: 4px solid #d4a017;
	background: #fdf7e8;
	padding: 12px 16px;
	border-radius: 0 6px 6px 0;
	margin-bottom: 16px;
}

.cacm-error p {
	margin: 4px 0;
}

.cacm-notice {
	background: #f2f6f9;
	border: 1px solid #c9d4dc;
	padding: 12px 16px;
	border-radius: 6px;
	max-width: 820px;
	margin: 0 auto 24px;
}

.cacm-alert {
	background: #fdeaea;
	border-left: 4px solid #b32d2e;
	padding: 10px 14px;
	border-radius: 0 6px 6px 0;
	font-weight: 600;
	color: #7a1f21;
}

.cacm-status-line {
	font-size: 16px;
}

.cacm-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: #e2e8ec;
	color: #1a5276;
}

.cacm-badge-received {
	background: #fdf7e8;
	color: #8a6a10;
}

.cacm-badge-acknowledged {
	background: #e7f0f7;
	color: #1a5276;
}

.cacm-badge-investigating {
	background: #1a5276;
	color: #ffffff;
}

.cacm-badge-findings {
	background: #143d5c;
	color: #ffffff;
}

.cacm-badge-closed {
	background: #eef6ef;
	color: #2e5d33;
}

.cacm-timeline ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid #d4a017;
}

.cacm-timeline li {
	position: relative;
	padding: 0 0 16px 18px;
}

.cacm-timeline li::before {
	content: "";
	position: absolute;
	left: -6px;
	top: 5px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #1a5276;
}

.cacm-timeline-date {
	display: block;
	font-size: 13px;
	color: #888;
}

.cacm-timeline-text {
	display: block;
	color: #2b2b2b;
}

.cacm-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.cacm-table th {
	text-align: left;
	padding: 8px 10px;
	background: #1a5276;
	color: #ffffff;
	font-weight: 600;
	border-bottom: none;
}

.cacm-table td {
	padding: 10px;
	border-bottom: 1px solid #e1e8ed;
	vertical-align: middle;
}

.cacm-table a.cacm-button {
	color: #ffffff;
}

.cacm-defs {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 10px;
}

.cacm-defs dt {
	flex: 0 0 140px;
	font-weight: 600;
	color: #555;
	padding: 4px 0;
}

.cacm-defs dd {
	flex: 1;
	margin: 0;
	padding: 4px 0;
	color: #2b2b2b;
}

.cacm-details-text {
	background: #f2f6f9;
	border-radius: 6px;
	padding: 14px 16px;
	white-space: pre-wrap;
	color: #2b2b2b;
}

.cacm-tracker-result {
	margin-bottom: 20px;
}

@media (max-width: 600px) {
	.cacm-card {
		padding: 18px 16px;
	}
}
