/**
 * Quote Contact Section ("Liên hệ báo giá", trang chủ). Toàn bộ giá trị --quote-* là
 * CSS custom property do tmnhanphat_render_quote_css_vars() sinh ra, gắn bằng
 * wp_add_inline_style() trong inc/enqueue.php (PROJECT_RULES.md mục 22) — file này
 * KHÔNG hardcode giá trị người dùng đổi được trong Customizer.
 *
 * Layout 50/50 Desktop (grid 1fr 1fr), Tablet/Mobile xếp dọc. Heading bên phải tái
 * sử dụng .review-home__heading (gạch đôi đỏ/xanh) — chỉ override màu span + căn lề.
 */

.quote-home {
	position: relative;
	margin-block: var(--quote-margin, 0);
	padding-block: 70px;
	background-color: var(--quote-bg, #ffffff);
	background-image: var(--quote-bg-image, none);
	background-size: cover;
	background-position: center;
	padding-top: 120px;
}

.quote-home__container {
	max-width: var(--quote-container-width, var(--container-max-width));
}

/* Form và nội dung liên hệ có nhịp thị giác cân bằng trên màn hình lớn. */
.quote-home__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: clamp(56px, 6vw, 92px);
	align-items: start;
}

/* ==================== LEFT: CONSULTATION FORM ==================== */
.quote-form--card {
	max-width: 560px;
	border: 1px solid #E5EAF1;
	border-radius: 10px;
	background: #F7F9FC;
	box-shadow: none;
	padding: 40px;
}

.quote-form__header {
	margin-bottom: 18px;
}

.quote-form__header-icon {
	display: none;
}

.quote-form__title {
	margin: 0 0 8px;
	padding: 0;
	color: #0875C1;
	font-size: clamp(26px, calc(34 * var(--fig1px)), 34px);
	font-weight: 700;
	line-height: 1.2;
}

.quote-form__title::after {
	display: none;
}

.quote-form__intro {
	margin: 0;
	color: #40516B;
	font-size: 16px;
	line-height: 1.5;
}

.quote-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

/* ==================== FIELD ==================== */
.quote-field {
	position: relative;
	gap: 5px;
}

.quote-field--email,
.quote-field--textarea {
	grid-column: 1 / -1;
}

.quote-field__icon {
	position: static;
	display: inline-flex;
	color: #0875C1;
	pointer-events: none;
}

.quote-field__input {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	border: 1px solid #C8D4E3;
	border-radius: 6px;
	background-color: #ffffff;
	color: #1F2937;
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-field__input::placeholder {
	color: #8A9CB8;
}

.quote-field__label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 7px;
	color: #34445D;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.quote-field__textarea {
	height: auto;
	min-height: 91px;
	padding: 13px;
	resize: vertical;
	line-height: 1.5;
}

.quote-field__select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	/* Mũi tên select tự vẽ (SVG data-uri) — không phụ thuộc icon ngoài. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239CA3AF' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 36px;
}

/* Focus: viền + quầng màu Primary. */
.quote-field__input:focus {
	outline: none;
	border-color: #0875C1;
	box-shadow: 0 0 0 3px rgb(8 117 193 / 0.14);
}

/* Trạng thái lỗi (JS gắn .has-error lên .quote-field). */
.quote-field.has-error .quote-field__input {
	border-color: #E31F2B;
}

.quote-field__error {
	display: none;
	margin-top: 5px;
	color: #DC2626;
	font-size: 12px;
	line-height: 1.4;
}

.quote-field.has-error .quote-field__error {
	display: block;
}

/* ==================== SUBMIT ==================== */
.quote-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	margin-top: 18px;
	border: 0;
	border-radius: 6px;
	background: #0875C1;
	box-shadow: 0 7px 14px rgb(8 117 193 / 0.18);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.15s ease;
}

.quote-form__submit:hover,
.quote-form__submit:focus-visible {
	background: #046AB5;
}

.quote-form__submit:active {
	transform: translateY(1px);
}

.quote-form__submit-icon {
	display: inline-flex;
}

/* ==================== VERIFY ==================== */
.quote-form__verify {
	display: none;
}

.quote-form__verify-icon {
	display: inline-flex;
	color: #2ECC71;
}

.quote-form__verify-icon svg {
	width: 16px;
	height: 16px;
}

.quote-form__notice {
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
}

.quote-form__notice.is-success {
	background-color: rgb(46 204 113 / 0.15);
	color: #A7F3D0;
}

/* ==================== RIGHT: COMPANY INFO ==================== */
.quote-info {
	max-width: 620px;
	margin: 0;
	padding-top: 8px;
	text-align: left;
}

.quote-info__logo {
	display: none;
}

.quote-info__logo-img {
	width: var(--quote-logo-width, 137px);
	height: auto;
}

.quote-info__heading {
	margin: 0 0 16px;
	font-size: clamp(42px, calc(58 * var(--fig1px)), 62px);
	font-weight: 800;
	line-height: 1.14;
}

/* Cặp vạch ĐÃ BỎ — heading dùng TYPOGRAPHY làm điểm nhấn (chuẩn hoá Design System). */

.quote-info__heading-blue {
	color: var(--quote-heading-blue, #046AB5);
}

.quote-info__heading-red {
	color: var(--quote-heading-red, #E31F2B);
}

.quote-info__description {
	max-width: 570px;
	margin: 0 0 26px;
	color: #4B5563;
	font-size: 16px;
	line-height: 1.65;
}

.quote-info__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.quote-info__item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 14px 0;
	border-bottom: 1px solid #DCE3EC;
	text-align: left;
}

.quote-info__item:first-child {
	padding-top: 0;
}

.quote-info__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.quote-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background-color: #ffffff;
	border: 1px solid #D8E2EE;
	color: #0875C1;
	box-shadow: 0 5px 12px rgb(30 64 102 / 0.12);
}

.quote-info__content {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.quote-info__label {
	color: #046AB5;
	font-size: 18px;
	font-weight: 700;
}

.quote-info__value {
	color: #4B5563;
	font-size: 16px;
	line-height: 1.5;
	word-break: break-word;
}

a.quote-info__value {
	color: #4B5563;
	/* Màu chữ nội dung trong section quote. */
	transition: color 0.2s ease;
}

a.quote-info__value:hover,
a.quote-info__value:focus-visible {
	color: var(--quote-heading-blue, #046AB5);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {

	/* Tablet: xếp dọc — Form trên, Company Info dưới. */
	.quote-home__grid {
		grid-template-columns: 1fr;
		gap: 40px;
		align-items: stretch;
	}

	.quote-info {
		max-width: 100%;
		margin-inline: 0;
		padding-top: 0;
	}

	.quote-form--card {
		max-width: none;
	}
}

@media (max-width: 599px) {
	.quote-home__grid {
		gap: 32px;
	}

	.quote-form--card {
		padding: 24px;
	}

	.quote-form__fields {
		grid-template-columns: 1fr;
	}

	.quote-form__intro {
		font-size: 14px;
	}

	.quote-info__heading {
		font-size: clamp(36px, 11vw, 46px);
	}

	.quote-info__icon {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {

	.quote-field__input,
	.quote-form__submit,
	a.quote-info__value {
		transition: none;
	}
}