.khv-checker-wrap {
	--khv-accent: #b4770a;
	max-width: 560px;
	margin: 0 auto;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	text-align: center;
}
.khv-checker-wrap * {
	box-sizing: border-box;
}
.khv-checker-logo {
	display: block;
	max-width: 110px;
	height: auto;
	margin: 0 auto 12px;
}
.khv-checker-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	text-align: center;
}
.khv-checker-wrap .khv-check-form,
.khv-checker-wrap .khv-result-container,
.khv-checker-wrap .khv-error,
.khv-checker-wrap .khv-loading {
	text-align: left;
}
.khv-input-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
}
/*
 * Selector .khv-checker-wrap .khv-check-form input.khv-phone-input dùng để tăng độ ưu tiên
 * (specificity) + !important trên các thuộc tính kích thước, vì nhiều theme WordPress có sẵn
 * CSS chung cho thẻ <input> (padding/chiều cao lớn cho form liên hệ...) có thể đè lên style
 * mặc định của ô nhập, khiến ô bị giãn cao bất thường trên di động.
 */
.khv-checker-wrap .khv-check-form input.khv-phone-input {
	box-sizing: border-box !important;
	display: block !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	flex: 1 1 220px;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #111827 !important;
	outline: none;
	transition: border-color 0.15s ease;
	min-width: 0;
}
.khv-checker-wrap .khv-check-form input.khv-phone-input:focus {
	border-color: var(--khv-accent) !important;
}
.khv-checker-wrap .khv-check-form button.khv-btn {
	box-sizing: border-box !important;
	display: inline-flex !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	margin: 0 !important;
	line-height: 1.4 !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
	flex-shrink: 0;
	white-space: nowrap;
}
/* Style chung cho các nút/liên kết dạng .khv-btn nằm ngoài form tra cứu (VD: nút "Xem thông tin chi tiết"). */
.khv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}
.khv-btn:hover {
	opacity: 0.9;
}
.khv-btn--primary {
	background: var(--khv-accent);
	color: #fff;
}
.khv-btn--outline {
	background: transparent;
	color: var(--khv-accent);
	border: 1.5px solid var(--khv-accent);
}
.khv-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}
.khv-loading[hidden] {
	display: none;
}
.khv-loading {
	margin-top: 14px;
	font-size: 14px;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 8px;
}
.khv-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid #d1d5db;
	border-top-color: var(--khv-accent);
	border-radius: 50%;
	display: inline-block;
	animation: khv-spin 0.7s linear infinite;
}
@keyframes khv-spin {
	to { transform: rotate(360deg); }
}
.khv-error {
	margin-top: 14px;
	padding: 12px 14px;
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 10px;
	font-size: 14px;
}
.khv-result {
	margin-top: 18px;
	padding: 18px;
	border-radius: 12px;
	animation: khv-fade-in 0.2s ease;
}
@keyframes khv-fade-in {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}
.khv-result--found {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}
.khv-result--warning {
	background: #fef2f2;
	border: 1px solid #fecaca;
}
.khv-result--unavailable {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 14px;
	line-height: 1.6;
}
.khv-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 12px;
}
.khv-badge--ok {
	background: #16a34a;
	color: #fff;
}
.khv-badge--warn {
	background: #dc2626;
	color: #fff;
}
.khv-badge--info {
	background: #64748b;
	color: #fff;
}
.khv-badge .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}
.khv-staff-card {
	display: flex;
	gap: 14px;
	align-items: center;
}
.khv-staff-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.khv-staff-name {
	margin: 0 0 4px;
	font-size: 17px;
	color: #064e3b;
}
.khv-staff-meta {
	margin: 0 0 4px;
	font-size: 13px;
	color: #4b5563;
}
.khv-staff-phone {
	margin: 0;
	font-size: 14px;
	color: #111827;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}
.khv-staff-phone a,
.khv-phone-chip a {
	color: inherit;
	text-decoration: none;
}
.khv-staff-phone a:hover,
.khv-phone-chip a:hover {
	text-decoration: underline;
}
.khv-staff-content,
.khv-staff-excerpt {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #bbf7d0;
	font-size: 14px;
	color: #1f2937;
	line-height: 1.6;
}
.khv-warning-title {
	margin: 0 0 8px;
	font-size: 16px;
	color: #7f1d1d;
}
.khv-warning-message {
	font-size: 14px;
	color: #7f1d1d;
	line-height: 1.6;
}
.khv-warning-message p:first-child {
	margin-top: 0;
}
.khv-hotline {
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #7f1d1d;
	display: flex;
	align-items: center;
	gap: 4px;
}
.khv-hotline a {
	color: #b91c1c;
	text-decoration: underline;
}

/* Trang chi tiết nhân viên (single) */
.khv-single-wrap {
	max-width: 760px;
	margin: 40px auto;
	padding: 0 16px;
}
.khv-single-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 28px;
}
.khv-single-logo {
	display: block;
	max-width: 96px;
	height: auto;
	margin: 0 0 14px;
}
.khv-single-head {
	display: flex;
	gap: 18px;
	align-items: center;
	margin: 12px 0 20px;
}
.khv-single-avatar img {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
}
.khv-single-name {
	margin: 0 0 6px;
	font-size: 24px;
}
.khv-staff-phone-list {
	margin: 8px 0 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.khv-phone-chip {
	background: #f3f4f6;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.khv-phone-chip em {
	color: #6b7280;
	font-style: normal;
}
.khv-single-content {
	line-height: 1.7;
	font-size: 15px;
	border-top: 1px solid #e5e7eb;
	padding-top: 20px;
}

@media (max-width: 480px) {
	.khv-checker-wrap {
		max-width: 100%;
		padding: 16px;
		border-radius: 12px;
	}
	.khv-checker-logo {
		max-width: 84px;
	}
	.khv-checker-title {
		font-size: 16px;
	}
	.khv-input-row {
		flex-direction: column;
	}
	/*
	 * NGUYÊN NHÂN THẬT SỰ của lỗi "ô nhập bị giãn cao trên di động": input có
	 * flex: 1 1 220px (ăn theo trục chính khi .khv-input-row xếp hàng ngang, tức
	 * là chiều RỘNG tối thiểu 220px). Nhưng ở đây .khv-input-row đổi sang
	 * flex-direction: column, nên trục chính đổi thành CHIỀU DỌC — cùng giá trị
	 * flex-basis 220px đó lại biến thành CHIỀU CAO tối thiểu 220px, làm ô nhập
	 * bị giãn cao bất thường. Phải reset flex-basis về "auto" khi xếp dọc.
	 */
	.khv-checker-wrap .khv-check-form input.khv-phone-input {
		flex: none !important;
		font-size: 16px !important; /* >=16px để iOS Safari không tự zoom khi focus vào ô nhập */
	}
	.khv-checker-wrap .khv-check-form button.khv-btn {
		width: 100%;
	}
	.khv-staff-card,
	.khv-single-head {
		flex-direction: column;
		align-items: flex-start;
	}
}
