/* Cổng tư vấn viên + trang đánh giá. Dùng biến màu của theme VinFast Market nếu có. */
.vfm {
	--vb: var(--brand, #1464f4);
	--vink: var(--ink, #0e1320);
	--vmuted: var(--muted, #667085);
	--vline: var(--line, #e5e8ef);
	--vcard: var(--card, #fff);
	--vbg2: var(--surface-2, #f4f6fa);
	max-width: 760px; margin: 0 auto; font-size: 15px; line-height: 1.55; color: var(--vink);
}
.vfm *, .vfm *::before, .vfm *::after { box-sizing: border-box; }
.vfm h2 { font-size: 1.4rem; margin: 0 0 .4em; }
.vfm h3 { font-size: 1.1rem; margin: 0 0 .7em; }
.vfm p { margin: 0 0 .6em; }

.vfm-card { background: var(--vcard); border: 1px solid var(--vline); border-radius: 16px; padding: 20px; margin: 0 0 16px; box-shadow: 0 8px 24px rgba(16, 24, 40, .06); }
.vfm-intro { padding: 22px 20px; border-radius: 16px; background: linear-gradient(135deg, #0b2d6b, #1464f4); color: #fff; margin: 0 0 16px; }
.vfm-intro h2 { color: #fff; }
.vfm-intro p { opacity: .9; }
.vfm-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 4px; }

.vfm-tabs__list { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--vbg2); border: 1px solid var(--vline); margin: 0 0 16px; overflow-x: auto; }
.vfm-tabs__list button { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--vmuted); cursor: pointer; white-space: nowrap; }
.vfm-tabs__list button[aria-selected="true"] { background: var(--vcard); color: var(--vink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.vfm-tabs__list small { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: var(--vline); font-size: .72rem; }

.vfm-form { display: grid; gap: 14px; }
.vfm-form--tight { gap: 10px; margin-top: 10px; }
.vfm-field { display: grid; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.vfm-field > span, .vfm-field legend { font-size: .85rem; font-weight: 600; padding: 0; }
.vfm-field small { color: var(--vmuted); font-weight: 400; }
.vfm input[type="text"], .vfm input[type="tel"], .vfm input[type="email"], .vfm input[type="password"],
.vfm input[type="datetime-local"], .vfm select, .vfm textarea {
	width: 100%; min-height: 46px; padding: .65em .85em; border: 1px solid var(--vline); border-radius: 12px;
	background: var(--vcard); color: var(--vink); font: inherit;
}
.vfm textarea { min-height: 70px; resize: vertical; }
.vfm input:focus, .vfm select:focus, .vfm textarea:focus { outline: 0; border-color: var(--vb); box-shadow: 0 0 0 3px rgba(20, 100, 244, .15); }
.vfm select:disabled { opacity: .6; }
.vfm input[type="file"] { width: 100%; font: inherit; padding: 10px; border: 1px dashed var(--vline); border-radius: 12px; }
.vfm-combo__box { position: relative; }
.vfm-combo__label { font-size: .85rem; font-weight: 600; }
.vfm-combo input.is-invalid { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, .15); }
.vfm-combo__list {
	position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none;
	max-height: min(320px, 50vh); overflow-y: auto; background: var(--vcard); border: 1px solid var(--vline); border-radius: 12px;
	box-shadow: 0 16px 40px rgba(16, 24, 40, .16); -webkit-overflow-scrolling: touch;
}
.vfm-combo__opt { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.vfm-combo__opt strong { font-size: .95rem; }
.vfm-combo__opt span { font-size: .8rem; color: var(--vmuted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vfm-combo__opt:hover, .vfm-combo__opt.is-active { background: rgba(20, 100, 244, .08); }
.vfm-combo__empty { padding: 12px; font-size: .88rem; color: var(--vmuted); }
.vfm-grid2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .vfm-grid2 { grid-template-columns: 1fr 1fr; } }
.vfm-choices { display: grid; gap: 8px; }
.vfm-choices--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vfm-choice { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--vline); border-radius: 12px; cursor: pointer; }
.vfm-choice:has(input:checked) { border-color: var(--vb); background: rgba(20, 100, 244, .06); }
.vfm-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--vmuted); }
.vfm-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }

.vfm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: .6em 1.2em; border: 1.5px solid var(--vb); border-radius: 12px; background: var(--vb); color: #fff !important; font: inherit; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.vfm-btn:disabled { opacity: .6; cursor: wait; }
.vfm-btn--ghost { background: transparent; color: var(--vink) !important; border-color: var(--vline); }
.vfm-btn--sm { min-height: 38px; padding: .4em .9em; font-size: .9rem; }
.vfm-btn--block { width: 100%; }
.vfm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vfm-inline { display: flex; gap: 8px; margin-top: 8px; }
.vfm-muted { color: var(--vmuted); font-size: .88rem; }

.vfm-alert { padding: 12px 14px; border-radius: 12px; background: var(--vbg2); border: 1px solid var(--vline); margin: 0 0 14px; }
.vfm-alert--error { background: #fdecec; border-color: #f5b5b5; color: #8a1f11; }
.vfm-alert--error ul { margin: 0; padding-left: 18px; }
.vfm-alert--ok { background: #e7f8ee; border-color: #a7e3bf; color: #0a5c2b; }
.vfm-warn { color: #8a5a00; background: #fff5de; border-radius: 10px; padding: 8px 10px; font-size: .88rem; margin: 8px 0; }

.vfm-profile__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.vfm-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.vfm-badge { padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--vbg2); }
.vfm-badge--active { background: #d1f5dc; color: #0a5c2b; }
.vfm-badge--pending { background: #fff4d6; color: #7a5200; }
.vfm-badge--locked, .vfm-badge--rejected { background: #fde2e1; color: #8a1f11; }
.vfm-badge--tier { background: rgba(20, 100, 244, .12); color: var(--vb); }
.vfm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.vfm-stats div { background: var(--vbg2); border-radius: 12px; padding: 10px; text-align: center; }
.vfm-stats strong { display: block; font-size: 1.15rem; }
.vfm-stats span { font-size: .72rem; color: var(--vmuted); }
@media (max-width: 480px) { .vfm-stats { grid-template-columns: 1fr 1fr; } }
.vfm-chip { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--vbg2); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.vfm-chip--ok { background: #d1f5dc; color: #0a5c2b; }

.vfm-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: vfmc; }
.vfm-check li { position: relative; padding-left: 40px; }
.vfm-check li::before { counter-increment: vfmc; content: counter(vfmc); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--vbg2); font-weight: 700; font-size: .85rem; }
.vfm-check li.is-done::before { content: "✓"; background: #12a150; color: #fff; }
.vfm-check li > strong { display: block; margin-bottom: 4px; }

.vfm-leads { display: grid; gap: 12px; }
.vfm-lead { background: var(--vcard); border: 1px solid var(--vline); border-radius: 16px; padding: 16px; }
.vfm-lead--waiting { border-color: var(--vb); box-shadow: 0 0 0 3px rgba(20, 100, 244, .12); }
.vfm-lead__head { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.vfm-lead__who { margin: 0; }
.vfm-lead__note { background: var(--vbg2); border-radius: 10px; padding: 8px 10px; font-size: .9rem; margin: 10px 0; }
.vfm-countdown { font-weight: 700; color: #b54708; margin: 6px 0; }
.vfm-countdown.is-late { color: #8a1f11; }
.vfm-history { margin-top: 10px; font-size: .85rem; }
.vfm-history summary { cursor: pointer; color: var(--vb); font-weight: 600; }
.vfm-history ul { padding-left: 18px; margin: 8px 0 0; }
.vfm-history time { color: var(--vmuted); }
.vfm-empty { padding: 24px; text-align: center; color: var(--vmuted); background: var(--vbg2); border-radius: 14px; margin: 0; }
.vfm-center { text-align: center; }

.vfm-toast { position: fixed; left: 50%; bottom: 90px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: #0e1320; color: #fff; font-size: .92rem; transition: .25s; }
.vfm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.vfm-toast.is-ok { background: #0a5c2b; }
.vfm-toast.is-err { background: #8a1f11; }

/* Báo giá gửi khách */
.vfm-quotes .vfm-sm { font-size: .88rem; }
.vfm-quote-out { margin-top: 14px; padding: 12px; border: 1px solid #cfe0ff; background: #f2f7ff; border-radius: 10px; }
.vfm-quote-out input { width: 100%; padding: 9px 10px; border: 1px solid var(--vfm-line, #e5e8ef); border-radius: 8px; font: inherit; margin: 6px 0 8px; }
.vfm-quote-ok { margin: 0; font-weight: 700; color: #0b7a3b; }
.vfm-quote-h { margin: 20px 0 8px; font-size: .95rem; }
.vfm-quote-list { list-style: none; margin: 0; padding: 0; }
.vfm-quote-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--vfm-line, #e5e8ef); }

.vfm-quote-row { padding: 10px 12px; margin-bottom: 10px; border: 1px solid var(--vfm-line, #e5e8ef); border-radius: 10px; background: #fafbfe; }
.vfm-quote-del { margin-top: 2px; padding: 0; border: 0; background: none; color: #b32d2e; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }

/* Các khoản giảm thêm trong một hàng xe */
.vfm-giam { margin-top: 6px; }
.vfm-giam__title { display: block; font-size: .82rem; font-weight: 600; color: var(--vfm-muted, #667085); margin-bottom: 6px; }
.vfm-giam__row { display: grid; grid-template-columns: 1fr 130px 28px; gap: 6px; align-items: center; margin-bottom: 6px; }
.vfm-giam.is-nhieu-xe .vfm-giam__row { grid-template-columns: 1fr 120px 130px 28px; }
.vfm-giam__row select { padding: 8px 6px; border: 1px solid var(--vfm-line, #e5e8ef); border-radius: 8px; font: inherit; font-size: .88rem; }
.vfm-giam__row select[hidden] { display: none; }
.vfm-giam__row input { width: 100%; padding: 8px 10px; border: 1px solid var(--vfm-line, #e5e8ef); border-radius: 8px; font: inherit; font-size: .92rem; }
.vfm-giam__row input[data-g="tien"] { text-align: right; font-variant-numeric: tabular-nums; }
.vfm-giam__x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f4f6fa; color: #b32d2e; font-size: 1.1rem; line-height: 1; cursor: pointer; }
