.khf-wrap {
	max-width: 760px;
	margin: 0 auto;
	font-family: inherit;
}

.khf-header {
	display: flex;
	justify-content: center;
	margin-bottom: 28px;
}

.khf-btn {
	cursor: pointer;
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	transition: opacity .15s ease;
}
.khf-btn:hover { opacity: .9; }

.khf-btn-primary {
	background: #d32f2f;
	color: #fff;
}

.khf-btn-sign {
	background: #1b5e20;
	color: #fff;
	width: 100%;
	margin-top: 10px;
}

.khf-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.khf-empty {
	text-align: center;
	color: #777;
}

.khf-card {
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.khf-title {
	margin: 0 0 10px;
	font-size: 19px;
}

.khf-desc {
	color: #444;
	font-size: 14px;
	line-height: 1.9;
	max-height: 8.5em;
	overflow: hidden;
}

.khf-progress-row {
	margin: 14px 0 6px;
}

.khf-progress-bar {
	background: #eee;
	border-radius: 20px;
	height: 12px;
	overflow: hidden;
}

.khf-progress-fill {
	background: linear-gradient(90deg, #d32f2f, #ef5350);
	height: 100%;
	transition: width .4s ease;
}

.khf-progress-label {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: #666;
}

.khf-followup-note {
	margin-top: 10px;
	font-size: 12px;
	color: #888;
}

/* مودال */
.khf-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
}
.khf-modal[hidden] { display: none; }

.khf-modal-box {
	background: #fff;
	border-radius: 12px;
	padding: 26px;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.khf-modal-close {
	position: absolute;
	top: 10px;
	left: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #888;
}

.khf-modal-box h3 {
	margin-top: 0;
}

.khf-note {
	font-size: 13px;
	color: #666;
	background: #f7f7f7;
	padding: 10px 12px;
	border-radius: 8px;
}

.khf-modal-box form label {
	display: block;
	margin: 12px 0 6px;
	font-size: 13px;
	font-weight: 600;
}

.khf-modal-box form input[type="text"],
.khf-modal-box form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}

.khf-submit-btn {
	width: 100%;
	margin-top: 18px;
}

.khf-form-message {
	margin-top: 12px;
	font-size: 13px;
	text-align: center;
}
.khf-form-message.khf-ok { color: #1b5e20; }
.khf-form-message.khf-err { color: #d32f2f; }

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