/**
 * Dự toán Bê tông khí chưng áp (AAC)
 */

.acc-aac-estimator {
	--acc-estimator-primary: var(--fs-color-primary, var(--primary-color, #446084));
	--acc-estimator-dark: #4a4a4a;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px 40px;
}

.acc-aac-estimator__title {
	margin: 0;
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
	color: var(--acc-estimator-dark);
}

.acc-aac-estimator__title-bar {
	display: block;
	width: 48px;
	height: 3px;
	margin: 10px auto 16px;
	background: var(--acc-estimator-primary);
	border-radius: 2px;
}

.acc-aac-estimator__intro {
	margin: 0 0 24px;
	text-align: center;
	font-size: 0.9rem;
	color: rgba(0, 0, 0, 0.65);
}

.acc-aac-estimator__notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 4px;
	background: #fff8e1;
	border: 1px solid #ffe082;
	font-size: 0.85rem;
	color: #6d4c00;
}

.acc-aac-estimator__form-row {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
	gap: 14px;
	align-items: end;
	margin-bottom: 24px;
}

.acc-aac-estimator__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--acc-estimator-dark);
}

.acc-aac-estimator__field input,
.acc-aac-estimator__field select {
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 4px;
	font-size: 0.875rem;
	background: #fff;
}

.acc-aac-estimator__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: var(--acc-estimator-dark);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.acc-aac-estimator__submit:hover,
.acc-aac-estimator__submit:focus {
	opacity: 0.9;
}

.acc-aac-estimator__table-wrap {
	overflow-x: auto;
	margin-bottom: 20px;
}

.acc-aac-estimator__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.acc-aac-estimator__table thead th {
	padding: 12px 14px;
	background: var(--acc-estimator-dark);
	color: #fff;
	font-weight: 600;
	text-align: left;
}

.acc-aac-estimator__table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--acc-estimator-dark);
}

.acc-aac-estimator__table tbody tr:last-child td {
	border-bottom: 0;
}

.acc-aac-estimator__summary {
	text-align: right;
	margin-bottom: 24px;
}

.acc-aac-estimator__total {
	margin: 0 0 6px;
	font-size: 0.95rem;
}

.acc-aac-estimator__total strong {
	color: #c62828;
	font-size: 1.05rem;
}

.acc-aac-estimator__per-m2 {
	margin: 0;
	font-size: 0.9rem;
	color: var(--acc-estimator-dark);
}

.acc-aac-estimator__notes {
	margin: 0;
	padding: 0;
	list-style: none;
}

.acc-aac-estimator__notes li {
	position: relative;
	margin-bottom: 10px;
	padding-left: 28px;
	font-size: 0.82rem;
	line-height: 1.55;
	color: rgba(0, 0, 0, 0.7);
}

.acc-aac-estimator__notes li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--acc-estimator-primary);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}

@media (max-width: 991px) {
	.acc-aac-estimator__form-row {
		grid-template-columns: 1fr 1fr;
	}

	.acc-aac-estimator__field--btn {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.acc-aac-estimator__form-row {
		grid-template-columns: 1fr;
	}

	.acc-aac-estimator__submit {
		width: 100%;
	}
}
