/* ==========================================================================
   Kenco Enterprise Suite – CSS giao diện RFQ (nút + modal + form)
   Chỉ style các class do plugin tự sinh (tiền tố .kenco-). KHÔNG đụng selector
   của theme/WooCommerce. CSS thẻ sản phẩm nằm ở flatsome-child/kenco-custom-style.css.
   ========================================================================== */

/* Phần tử [hidden] luôn ẩn dù có display riêng */
.kenco-modal-backdrop [hidden] { display: none !important; }

/* ---- Nút mở RFQ ---- */
.kenco-btn-rfq {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 10px 22px;
	background: #c2410c; color: #fff; border: 0; border-radius: 8px;
	font-family: inherit; font-weight: 800; font-size: 13px; line-height: 1.2; letter-spacing: .6px; text-transform: uppercase;
	cursor: pointer; transition: background-color .2s ease;
}
.kenco-btn-rfq:hover { background: #9a3412; }
.kenco-btn-rfq:focus-visible { outline: 3px solid #005bac; outline-offset: 2px; }
.kenco-btn-block { display: flex; width: 100%; }
.kenco-card-actions { padding: 0 16px 16px; }
.kenco-single-actions { margin-top: 16px; }

/* ---- Modal ---- */
html.kenco-lock { overflow: hidden; }
.kenco-modal-backdrop {
	display: none;
	position: fixed; inset: 0; z-index: 100000;
	align-items: center; justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, .6);
}
.kenco-modal-backdrop.is-active { display: flex; }
.kenco-modal {
	box-sizing: border-box;
	width: 100%; max-width: 640px;
	max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 24px;
	background: #fff; color: #0f172a;
	border-radius: 14px;
	box-shadow: 0 25px 60px rgba(15, 23, 42, .35);
}
.kenco-modal *, .kenco-modal *::before, .kenco-modal *::after { box-sizing: border-box; }
.kenco-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.kenco-badge-pill {
	display: inline-block; margin-bottom: 6px; padding: 3px 10px;
	background: #e0f0ff; color: #003d75; border-radius: 999px;
	font-size: 11px; font-weight: 800; letter-spacing: .6px;
}
.kenco-modal-title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; color: #0f172a; }
.kenco-close-circle {
	flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: #f1f5f9; color: #334155; border: 0; border-radius: 50%;
	font-size: 16px; line-height: 1; cursor: pointer;
}
.kenco-close-circle:hover { background: #e2e8f0; }
.kenco-close-circle:focus-visible { outline: 3px solid #005bac; outline-offset: 2px; }

/* ---- Form ---- */
.kenco-input-group { margin-bottom: 14px; }
.kenco-input-group label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: #334155; }
.kenco-required { color: #b91c1c; }
.kenco-modal .kenco-form-input {
	display: block; width: 100%; margin: 0;
	padding: 10px 12px; min-height: 44px;
	background: #fff; color: #0f172a;
	border: 1px solid #94a3b8; border-radius: 8px;
	font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.4; box-shadow: none;
}
.kenco-modal textarea.kenco-form-input { min-height: 80px; resize: vertical; }
.kenco-modal .kenco-form-input:focus { outline: 3px solid rgba(0, 91, 172, .35); border-color: #005bac; }
.kenco-modal .kenco-form-input.is-invalid { border-color: #b91c1c; background: #fef2f2; }
.kenco-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.kenco-fieldset { margin: 4px 0 14px; padding: 12px 14px 2px; border: 1px solid #e2e8f0; border-radius: 10px; }
.kenco-fieldset legend { padding: 0 6px; font-size: 13px; font-weight: 800; color: #0f172a; }
.kenco-fieldset legend small { font-weight: 400; color: #64748b; }
.kenco-consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 13px; line-height: 1.45; }
.kenco-consent input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }

/* Ô chống spam (honeypot): ẩn khỏi mắt người và trình đọc màn hình */
.kenco-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kenco-form-status { margin: 4px 0 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.4; }
.kenco-status-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.kenco-status-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.kenco-form-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.kenco-btn-cancel, .kenco-btn-submit {
	min-height: 44px; padding: 10px 22px; border-radius: 8px;
	font-family: inherit; font-weight: 800; font-size: 13px; line-height: 1.2; letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
}
.kenco-btn-cancel { background: #fff; color: #334155; border: 1px solid #94a3b8; }
.kenco-btn-submit { background: #005bac; color: #fff; border: 1px solid #005bac; }
.kenco-btn-submit:hover { background: #003d75; }
.kenco-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.kenco-btn-cancel:focus-visible, .kenco-btn-submit:focus-visible { outline: 3px solid #005bac; outline-offset: 2px; }

@media (max-width: 576px) {
	.kenco-modal { padding: 18px 16px; }
	.kenco-grid-2 { grid-template-columns: minmax(0, 1fr); }
	.kenco-form-buttons { flex-direction: column-reverse; }
	.kenco-form-buttons button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kenco-btn-rfq { transition: none; } }
