/* ==========================================================================
   Báo Giá Thông Minh - Frontend styles
   Font: Be Vietnam Pro | Icon: Font Awesome
   ========================================================================== */

.bgtm-wrap {
	--bgtm-red: #e53950;
	--bgtm-red-dark: #cc2e44;
	--bgtm-red-soft: #fdeef0;
	--bgtm-red-border: #f7c7cd;
	--bgtm-ink: #1c1c28;
	--bgtm-ink-soft: #6b7280;
	--bgtm-line: #e7e7ec;
	--bgtm-bg-card: #ffffff;
	--bgtm-bg-dark: #15151f;
	--bgtm-radius-lg: 20px;
	--bgtm-radius-md: 14px;
	--bgtm-radius-sm: 10px;

	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--bgtm-ink);
	max-width: 1000px;
	margin: 0 auto;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.5;
}

.bgtm-wrap *,
.bgtm-wrap *::before,
.bgtm-wrap *::after {
	box-sizing: border-box;
}

/* Khiên chắn: chặn theme Flatsome/global CSS ghi đè text-transform, font lên các thẻ văn bản.
   Không đụng color/font-weight/font-size/margin/padding vì các class riêng (title, tag, step-num...)
   phải là nơi quyết định cuối cùng cho các thuộc tính này. */
.bgtm-wrap.bgtm-wrap h1,
.bgtm-wrap.bgtm-wrap h2,
.bgtm-wrap.bgtm-wrap h3,
.bgtm-wrap.bgtm-wrap h4,
.bgtm-wrap.bgtm-wrap h5,
.bgtm-wrap.bgtm-wrap h6,
.bgtm-wrap.bgtm-wrap p,
.bgtm-wrap.bgtm-wrap a,
.bgtm-wrap.bgtm-wrap span,
.bgtm-wrap.bgtm-wrap button,
.bgtm-wrap.bgtm-wrap input,
.bgtm-wrap.bgtm-wrap select,
.bgtm-wrap.bgtm-wrap label,
.bgtm-wrap.bgtm-wrap ul,
.bgtm-wrap.bgtm-wrap li {
	text-transform: none !important;
	letter-spacing: normal;
	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.bgtm-wrap h1,
.bgtm-wrap h2,
.bgtm-wrap h3,
.bgtm-wrap h4,
.bgtm-wrap h5,
.bgtm-wrap h6,
.bgtm-wrap p,
.bgtm-wrap ul,
.bgtm-wrap li {
	margin: 0;
	padding: 0;
}

.bgtm-wrap a {
	text-decoration: none;
}

.bgtm-wrap ul {
	list-style: none;
}

.bgtm-wrap button {
	font-family: inherit;
	cursor: pointer;
}


.bgtm-grid {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 24px;
	align-items: start;
}

.bgtm-card {
	background: var(--bgtm-bg-card);
	border-radius: var(--bgtm-radius-lg);
	box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 12px 32px rgba(20, 20, 30, 0.06);
}

/* ---------- CỘT TRÁI: FORM ---------- */

.bgtm-card--form {
	padding: 28px 28px 32px;
	border: 1px solid var(--bgtm-line);
}

.bgtm-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--bgtm-red);
	margin-bottom: 8px;
}

.bgtm-headline-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.bgtm-title {
	font-size: 23px;
	line-height: 1.32;
	font-weight: 700;
	margin: 0;
	max-width: 500px;
	letter-spacing: -0.01em;
}

.bgtm-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--bgtm-red-soft);
	color: var(--bgtm-red-dark);
	font-size: 13px;
	font-weight: 500;
	padding: 8px 14px;
	border-radius: 999px;
	white-space: nowrap;
	margin-top: 4px;
}

.bgtm-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--bgtm-red);
	box-shadow: 0 0 0 3px rgba(229, 57, 80, 0.18);
}

.bgtm-step {
	margin-bottom: 24px;
}

.bgtm-step:last-child {
	margin-bottom: 0;
}

.bgtm-step__head {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
}

.bgtm-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	border-radius: 6px;
	background: var(--bgtm-ink);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
	flex-shrink: 0;
}

.bgtm-step__label {
	font-size: 14.5px;
	font-weight: 600;
}

.bgtm-options {
	display: grid;
	gap: 12px;
}

.bgtm-options--2col {
	grid-template-columns: repeat(2, 1fr);
}

.bgtm-options--3col {
	grid-template-columns: repeat(3, 1fr);
}

.bgtm-options--providers {
	grid-template-columns: repeat(4, 1fr);
}

.bgtm-option {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	text-align: center;
	background: #fff;
	border: 1.5px solid var(--bgtm-line);
	border-radius: var(--bgtm-radius-md);
	padding: 18px 12px;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
	color: var(--bgtm-ink);
	box-sizing: border-box;
	min-width: 0;
	line-height: 1;
}

.bgtm-option:hover {
	border-color: var(--bgtm-red-border);
}

.bgtm-option:active {
	transform: scale(0.99);
}

.bgtm-option.is-active {
	background: var(--bgtm-red-soft);
	border-color: var(--bgtm-red);
}

.bgtm-option:focus-visible {
	outline: 2px solid var(--bgtm-red);
	outline-offset: 2px;
}

.bgtm-check {
	position: absolute;
	top: 10px;
	right: 10px;
	color: var(--bgtm-line);
	font-size: 16px;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.bgtm-option.is-active .bgtm-check {
	color: var(--bgtm-red);
	opacity: 1;
	transform: scale(1);
}

.bgtm-option__icon {
	font-size: 21px;
	color: var(--bgtm-ink);
}

.bgtm-option__icon--combo {
	display: inline-flex;
	gap: 6px;
	font-size: 17px;
}

.bgtm-option__label {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	max-width: 100%;
	overflow-wrap: break-word;
}

/* Provider buttons (logos) */

.bgtm-option--provider {
	padding: 20px 10px 16px;
}

.bgtm-provider__logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #eef1fb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	box-sizing: border-box;
}

.bgtm-provider__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.bgtm-provider__fallback {
	font-size: 12px;
	font-weight: 700;
	color: #4a5cc9;
	text-transform: lowercase;
	line-height: 1.2;
}

/* Speed buttons */

.bgtm-option--speed {
	align-items: flex-start;
	text-align: left;
	padding: 16px 16px 18px;
	gap: 4px;
	box-sizing: border-box;
}

.bgtm-option__hint {
	position: absolute;
	top: 13px;
	left: 13px;
	color: #c7cad1;
	font-size: 13px;
}

.bgtm-option--speed.is-active .bgtm-option__hint {
	color: var(--bgtm-red);
}

.bgtm-option__title {
	font-size: 15px;
	font-weight: 700;
	margin-top: 13px;
	line-height: 1.3;
	white-space: nowrap;
}

.bgtm-option--speed.is-active .bgtm-option__title {
	color: var(--bgtm-red-dark);
}

.bgtm-option__desc {
	font-size: 12px;
	color: var(--bgtm-ink-soft);
	line-height: 1.45;
	overflow-wrap: break-word;
}

/* ---------- CỘT PHẢI: SUMMARY + FORM ---------- */

.bgtm-card--summary {
	overflow: hidden;
}

.bgtm-summary__banner {
	background: var(--bgtm-bg-dark);
	color: #fff;
	padding: 22px 24px 20px;
}

.bgtm-summary__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(229, 57, 80, 0.18);
	color: #ff8a98;
	font-size: 11.5px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
	white-space: nowrap;
}

.bgtm-summary__title {
	font-size: 17.5px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 8px;
	color: #ffffff !important;
}

.bgtm-summary__desc {
	font-size: 12.5px;
	color: #b9bac4;
	line-height: 1.5;
	margin: 0;
}

.bgtm-summary__body {
	padding: 20px 24px 26px;
}

.bgtm-summary__quote {
	margin-bottom: 20px;
}

.bgtm-summary__quote-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--bgtm-red);
	margin-bottom: 9px;
}

.bgtm-summary__tags {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
}

.bgtm-tag {
	background: #eef1fb;
	color: #3c4ab8;
	font-size: 11.5px;
	font-weight: 600;
	padding: 6px 11px;
	border-radius: 8px;
	white-space: nowrap;
	line-height: 1.4;
}

.bgtm-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bgtm-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bgtm-field__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--bgtm-ink);
}

.bgtm-input {
	display: flex;
	align-items: center;
	gap: 9px;
	border: 1.5px solid var(--bgtm-line);
	border-radius: var(--bgtm-radius-sm);
	padding: 11px 13px;
	background: #fafafb;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
	min-height: 46px;
	width: 100%;
}

.bgtm-input:focus-within {
	border-color: var(--bgtm-red);
	background: #fff;
}

.bgtm-input i {
	color: #aeb0bb;
	font-size: 13px;
	flex-shrink: 0;
}

.bgtm-input input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 13.5px;
	width: 100%;
	min-width: 0;
	color: var(--bgtm-ink);
	font-family: inherit;
	line-height: 1.4;
}

.bgtm-input input::placeholder {
	color: #b3b5c0;
	overflow: visible;
	text-overflow: clip;
}

.bgtm-field__error {
	font-size: 12px;
	color: var(--bgtm-red-dark);
	min-height: 1px;
}

.bgtm-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 11.5px;
	color: var(--bgtm-ink-soft);
	line-height: 1.5;
	cursor: pointer;
}

.bgtm-consent input {
	margin-top: 2px;
	accent-color: var(--bgtm-red);
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.bgtm-consent a {
	color: var(--bgtm-ink);
	font-weight: 600;
	text-decoration: underline;
}

.bgtm-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: var(--bgtm-red);
	color: #fff;
	border: none;
	border-radius: var(--bgtm-radius-sm);
	padding: 14px 18px;
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
	margin-top: 2px;
	box-sizing: border-box;
	white-space: nowrap;
	line-height: 1.2;
}

.bgtm-submit:hover {
	background: var(--bgtm-red-dark);
}

.bgtm-submit:active {
	transform: scale(0.99);
}

.bgtm-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bgtm-submit__hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 11.5px;
	color: var(--bgtm-ink-soft);
	margin: 0;
}

.bgtm-form__feedback {
	font-size: 13px;
	text-align: center;
	border-radius: var(--bgtm-radius-sm);
	padding: 0;
	min-height: 0;
	transition: padding 0.15s ease;
}

.bgtm-form__feedback.is-success {
	padding: 12px;
	background: #eafaf0;
	color: #1f9d55;
}

.bgtm-form__feedback.is-error {
	padding: 12px;
	background: var(--bgtm-red-soft);
	color: var(--bgtm-red-dark);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 980px) {
	.bgtm-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.bgtm-card--form {
		padding: 22px 18px 26px;
	}

	.bgtm-summary__body {
		padding: 20px 18px 24px;
	}

	.bgtm-summary__banner {
		padding: 22px 18px 18px;
	}

	.bgtm-title {
		font-size: 21px;
	}

	.bgtm-options--providers {
		grid-template-columns: repeat(2, 1fr);
	}

	.bgtm-options--3col {
		grid-template-columns: 1fr;
	}

	.bgtm-option__title {
		white-space: normal;
	}

	.bgtm-headline-row {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bgtm-wrap * {
		transition: none !important;
	}
}
