/* SW QAPage Schema – Frontend (SonWeb) */
.swqa-block {
	margin: 40px 0;
	color: var(--swqa-text, #1f2937);
	font-size: 16px;
	line-height: 1.7;
}
.swqa-block * { box-sizing: border-box; }
.swqa-block-title {
	font-size: 24px;
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--swqa-primary, #0f62fe);
	display: inline-block;
}

/* Câu hỏi */
.swqa-question {
	display: flex;
	gap: 14px;
	padding: 18px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--swqa-primary, #0f62fe);
	border-radius: var(--swqa-radius, 10px);
	margin-bottom: 22px;
}
.swqa-q-icon {
	flex: 0 0 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--swqa-primary, #0f62fe);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}
.swqa-q-name { margin: 0 0 6px; font-size: 19px; line-height: 1.45; }
.swqa-q-text { margin: 0 0 8px; color: #4b5563; }
.swqa-q-meta { margin: 0; font-size: 13px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 14px; }
.swqa-q-meta .swqa-total { font-weight: 600; color: var(--swqa-primary, #0f62fe); }

/* Câu trả lời */
.swqa-answers { display: flex; flex-direction: column; gap: 14px; }
.swqa-answer {
	position: relative;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: var(--swqa-radius, 10px);
}
.swqa-answer.is-hidden { display: none; }
.swqa-answer.is-accepted {
	border-color: var(--swqa-accent, #0f9d58);
	background: #f6fdf9;
	box-shadow: 0 1px 3px rgba(15, 157, 88, .12);
}
.swqa-badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--swqa-accent, #0f9d58);
	border-radius: 20px;
}
.swqa-a-text p { margin: 0 0 10px; }
.swqa-a-text p:last-child { margin-bottom: 0; }
.swqa-a-meta {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed #e5e7eb;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #6b7280;
}
.swqa-avatar {
	width: 26px; height: 26px;
	border-radius: 50%;
	background: var(--swqa-primary, #0f62fe);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-transform: uppercase;
}
.swqa-a-meta .swqa-author { font-weight: 600; color: #374151; }
.swqa-upvote { margin-left: auto; color: var(--swqa-accent, #0f9d58); font-weight: 600; }

.swqa-more {
	margin-top: 14px;
	width: 100%;
	padding: 11px 16px;
	background: #fff;
	border: 1px solid var(--swqa-primary, #0f62fe);
	color: var(--swqa-primary, #0f62fe);
	border-radius: var(--swqa-radius, 10px);
	font-weight: 600;
	cursor: pointer;
	transition: .18s;
}
.swqa-more:hover { background: var(--swqa-primary, #0f62fe); color: #fff; }

/* Form */
.swqa-form-wrap {
	margin-top: 26px;
	padding: 18px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: var(--swqa-radius, 10px);
}
.swqa-form-title { margin: 0 0 12px; font-size: 17px; }
.swqa-form textarea,
.swqa-form input[type="text"],
.swqa-form input[type="email"] {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
}
.swqa-form textarea:focus,
.swqa-form input:focus { outline: none; border-color: var(--swqa-primary, #0f62fe); }
.swqa-form-row { display: flex; gap: 10px; margin-top: 10px; }
.swqa-form-row > * { flex: 1; }
.swqa-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.swqa-submit {
	margin-top: 12px;
	padding: 11px 26px;
	background: var(--swqa-primary, #0f62fe);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: .18s;
}
.swqa-submit:hover { filter: brightness(.92); }
.swqa-submit[disabled] { opacity: .6; cursor: not-allowed; }
.swqa-msg { margin: 10px 0 0; font-size: 14px; min-height: 20px; }
.swqa-msg.is-ok { color: var(--swqa-accent, #0f9d58); }
.swqa-msg.is-error { color: #dc2626; }

/* FAQ */
.swqa-faq-list { display: flex; flex-direction: column; gap: 10px; }
.swqa-faq-item { border: 1px solid #e5e7eb; border-radius: var(--swqa-radius, 10px); overflow: hidden; background: #fff; }
.swqa-faq-q {
	width: 100%;
	text-align: left;
	padding: 14px 44px 14px 16px;
	background: #f8fafc;
	border: none;
	font-size: 16px;
	font-weight: 600;
	color: inherit;
	cursor: pointer;
	position: relative;
	font-family: inherit;
}
.swqa-chevron {
	position: absolute;
	right: 16px; top: 50%;
	width: 9px; height: 9px;
	margin-top: -6px;
	border-right: 2px solid var(--swqa-primary, #0f62fe);
	border-bottom: 2px solid var(--swqa-primary, #0f62fe);
	transform: rotate(45deg);
	transition: .2s;
}
.swqa-faq-q[aria-expanded="true"] .swqa-chevron { transform: rotate(-135deg); margin-top: -2px; }
.swqa-faq-a { display: none; padding: 14px 16px; border-top: 1px solid #e5e7eb; }
.swqa-faq-item.is-open .swqa-faq-a { display: block; }

@media (max-width: 600px) {
	.swqa-form-row { flex-direction: column; }
	.swqa-block-title { font-size: 21px; }
	.swqa-q-name { font-size: 17px; }
}
