/* ============================================================
   Mèo Vay — register.css (trang đăng ký + màn phân tích + form liên hệ)
   ============================================================ */

/* ---------- Flow header (dùng chung dang-ky + de-xuat) ---------- */
.vm-flow-header {
	background: rgba(255, 255, 255, .95);
	box-shadow: 0 1px 0 rgba(31, 34, 39, .08);
	position: sticky;
	top: 0;
	z-index: 50;
}
.vm-flow-hd {
	max-width: 1100px;
	padding: 12px 32px;
}
.vm-steps {
	display: flex;
	align-items: center;
	gap: 22px;
}
.vm-step {
	display: flex;
	align-items: center;
	gap: 8px;
}
.vm-step-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--vm-font-head);
	font-weight: 700;
	font-size: 13px;
	background: #FFFFFF;
	color: #9AA1AB;
	border: 1.5px solid var(--vm-border-chip);
	box-sizing: border-box;
	flex: none;
}
.vm-step span {
	font-size: 13px;
	font-weight: 600;
	color: #9AA1AB;
}
.vm-step.is-active .vm-step-dot {
	background: var(--vm-yellow);
	color: var(--vm-ink);
	border-color: var(--vm-yellow);
}
.vm-step.is-done .vm-step-dot {
	background: #DFF0DC;
	color: #2E6B3C;
	border-color: #BFDDB9;
}
.vm-step.is-active span,
.vm-step.is-done span {
	color: var(--vm-ink);
}
.vm-steps .vm-line {
	width: 34px;
	height: 2px;
	background: var(--vm-border-chip);
	border-radius: 2px;
}
.vm-flow-safe {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vm-green);
}

/* ---------- Form đăng ký ---------- */
.vm-reg-wrap {
	padding: 42px 24px 20px;
	display: flex;
	justify-content: center;
}
.vm-reg-box {
	width: 720px;
	max-width: 100%;
	position: relative;
}
.vm-reg-cat {
	position: absolute;
	top: -42px;
	right: 44px;
	height: 82px;
	width: auto;
	transform: rotate(5deg);
}
.vm-reg-card {
	position: relative;
	background: #FFFFFF;
	border: 1px solid var(--vm-border-card);
	border-radius: var(--vm-r-card);
	padding: 24px 34px 22px;
	box-shadow: 0 30px 60px -35px rgba(31, 34, 39, .35);
}
.vm-reg-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.vm-reg-head h1 {
	font-family: var(--vm-font-head);
	font-weight: 800;
	font-size: 24px;
	line-height: 1.15;
	color: var(--vm-ink);
	margin: 0;
}
.vm-reg-amount {
	display: flex;
	align-items: baseline;
	gap: 7px;
	font-size: 13px;
	color: #4B5563;
}
.vm-reg-amount-label { font-weight: 500; }
.vm-reg-amount-val {
	font-family: var(--vm-font-head);
	font-weight: 700;
	font-size: 15.5px;
	color: var(--vm-ink);
}
.vm-reg-amount a {
	font-size: 12.5px;
	font-weight: 600;
}
.vm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.vm-reg-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
	margin-top: 18px;
}
.vm-field label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #6B7280;
	margin-bottom: 5px;
}
.vm-field input[type=text],
.vm-field input[type=email],
.vm-field input[type=tel],
.vm-field textarea {
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	padding: 0 16px;
	background: #F5F6F8;
	border: 1.5px solid var(--vm-border-input);
	border-radius: 12px;
	font-family: var(--vm-font-body);
	font-size: 14.5px;
	color: var(--vm-ink);
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.vm-field textarea {
	height: auto;
	min-height: 110px;
	padding: 12px 16px;
	resize: vertical;
}
.vm-field input:focus,
.vm-field textarea:focus {
	border-color: var(--vm-yellow);
	box-shadow: var(--vm-focus-ring);
	background: #FFFFFF;
}
.vm-field input::placeholder,
.vm-field textarea::placeholder { color: #9AA1AB; }
.vm-field.has-error input,
.vm-field.has-error textarea,
.vm-field.has-error .vm-phone-wrap {
	border-color: var(--vm-error);
}
.vm-field-error {
	font-size: 12px;
	font-weight: 500;
	color: var(--vm-error);
	margin: 4px 0 0;
}
.vm-agree-error { margin-left: 30px; margin-top: 6px; }
.vm-phone-wrap {
	display: flex;
	align-items: center;
	height: 46px;
	background: #F5F6F8;
	border: 1.5px solid var(--vm-border-input);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.vm-phone-wrap:focus-within {
	border-color: var(--vm-yellow);
	box-shadow: var(--vm-focus-ring);
	background: #FFFFFF;
}
.vm-phone-wrap > span {
	flex: none;
	padding: 0 12px 0 16px;
	font-size: 14.5px;
	font-weight: 600;
	color: #6B7280;
	border-right: 1.5px solid var(--vm-border-chip);
}
/* Selector thắng .vm-field input[type=tel] (0,2,1) — input trong khung +84 phải "trần". */
.vm-field .vm-phone-wrap input[type=tel] {
	flex: 1;
	min-width: 0;
	width: auto;
	height: 100%;
	padding: 0 14px;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	font-family: var(--vm-font-body);
	font-size: 14.5px;
	color: var(--vm-ink);
	outline: none;
}
.vm-field .vm-phone-wrap input[type=tel]:focus {
	background: transparent;
	border: none;
	box-shadow: none;
}
.vm-agree {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 16px;
	cursor: pointer;
	user-select: none;
}
.vm-agree-box {
	flex: none;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	border: 2px solid var(--vm-yellow);
	background: var(--vm-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
	transition: all .15s ease;
	box-sizing: border-box;
}
.vm-agree input:not(:checked) ~ .vm-agree-box {
	background: #FFFFFF;
	border-color: #D3D8DE;
}
.vm-agree input:not(:checked) ~ .vm-agree-box svg { visibility: hidden; }
.vm-agree.has-error input:not(:checked) ~ .vm-agree-box { border-color: var(--vm-error); }
.vm-agree-text {
	font-size: 12.5px;
	line-height: 1.55;
	color: #4B5563;
}
.vm-agree-text a {
	color: var(--vm-pink);
	font-weight: 600;
	text-decoration: none;
}
.vm-reg-submit {
	margin-top: 16px;
	height: 50px;
	font-size: 15.5px;
	width: 100%;
}
.vm-reg-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 10px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--vm-muted);
	text-align: center;
}
.vm-reg-secure svg { flex: none; }

/* ---------- Màn phân tích ---------- */
.vm-analyzing {
	padding: 70px 24px 110px;
	display: flex;
	justify-content: center;
}
.vm-analyzing-inner {
	width: 520px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.vm-analyzing-viz {
	position: relative;
	width: 300px;
	height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vm-analyzing-ring {
	position: absolute;
	inset: 0;
	animation: vmSpin 2.6s linear infinite;
}
.vm-analyzing-viz img {
	width: 210px;
	height: auto;
	animation: vmFloat 3.2s ease-in-out infinite;
}
.vm-analyzing h1 {
	font-family: var(--vm-font-head);
	font-weight: 700;
	font-size: 27px;
	color: var(--vm-ink);
	margin: 26px 0 0;
	min-height: 38px;
}
.vm-analyzing p {
	font-size: 14px;
	color: var(--vm-sub);
	margin: 8px 0 0;
}
.vm-an-bar {
	width: 340px;
	max-width: 100%;
	height: 10px;
	background: #E4E7EB;
	border-radius: var(--vm-r-pill);
	margin-top: 24px;
	overflow: hidden;
}
.vm-an-bar-fill {
	height: 100%;
	background: var(--vm-yellow);
	border-radius: var(--vm-r-pill);
	transition: width 1s cubic-bezier(.3, .7, .4, 1);
}
.vm-an-steps {
	display: grid;
	gap: 10px;
	margin-top: 28px;
	text-align: left;
}
.vm-an-step {
	display: flex;
	align-items: center;
	gap: 10px;
}
.vm-an-wait {
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px dashed #C3C9D1;
	animation: vmSpin 3s linear infinite;
	box-sizing: border-box;
}
.vm-an-check { display: inline-flex; flex: none; }
.vm-an-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--vm-muted);
}
.vm-an-step.is-done .vm-an-wait { display: none; }
.vm-an-step.is-done .vm-an-label { color: var(--vm-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.vm-reg-card { padding: 22px 20px 20px; }
	.vm-reg-grid { grid-template-columns: 1fr; }
	.vm-reg-cat { right: 16px; }
	.vm-flow-safe { display: none; }
}
