/* ==========================================================================
   Tư Vấn Đổi Gói - Frontend styles
   Font: Be Vietnam Pro | Icon: Font Awesome
   ========================================================================== */

.tvdg-wrap {
	--tvdg-navy: #16234c;
	--tvdg-navy-soft: #2a3a68;
	--tvdg-red: #c8273d;
	--tvdg-red-dark: #ad1f33;
	--tvdg-input-bg: #eef0f8;
	--tvdg-ink: #1c1c28;
	--tvdg-ink-soft: #b9c0da;
	--tvdg-radius-lg: 22px;
	--tvdg-radius-sm: 10px;

	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--tvdg-ink);
	max-width: 980px;
	margin: 0 auto;
	box-sizing: border-box;
}

.tvdg-wrap *,
.tvdg-wrap *::before,
.tvdg-wrap *::after {
	box-sizing: border-box;
}

.tvdg-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #fff;
	border-radius: var(--tvdg-radius-lg);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 18px 40px rgba(20, 20, 30, 0.10);
}

.tvdg-panel {
	padding: 44px 40px;
}

/* ---------- CỘT TRÁI ---------- */

.tvdg-panel--dark {
	background: var(--tvdg-navy);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tvdg-title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #fff;
}

.tvdg-desc {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--tvdg-ink-soft);
	margin: 0 0 32px;
	max-width: 360px;
}

.tvdg-benefits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tvdg-benefit {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tvdg-benefit__icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--tvdg-navy-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
}

.tvdg-benefit__text {
	font-size: 14px;
	font-weight: 500;
	color: #e3e6f3;
}

/* ---------- CỘT PHẢI ---------- */

.tvdg-panel--light {
	background: #fff;
}

.tvdg-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tvdg-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tvdg-field__label {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--tvdg-ink);
}

.tvdg-input {
	border: none;
	outline: none;
	background: var(--tvdg-input-bg);
	border-radius: var(--tvdg-radius-sm);
	padding: 14px 16px;
	font-size: 14px;
	font-family: inherit;
	color: var(--tvdg-ink);
	width: 100%;
	transition: box-shadow 0.15s ease;
}

.tvdg-input::placeholder {
	color: #9a9fb8;
}

.tvdg-input:focus {
	box-shadow: 0 0 0 2px var(--tvdg-red);
}

.tvdg-select-wrap {
	position: relative;
	display: block;
	width: 100%;
}

.tvdg-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	-ms-appearance: none;
	cursor: pointer;
	display: block;
	width: 100%;
	box-sizing: border-box;
	line-height: 1.4;
	min-height: 48px;
	padding: 14px 44px 14px 16px !important;
	background-image: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

/* Bỏ mũi tên mặc định của IE/Edge cũ */
.tvdg-select::-ms-expand {
	display: none;
}

.tvdg-select__chevron {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	font-size: 12px;
	color: #6b7099;
	pointer-events: none;
}

.tvdg-select option {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-size: 14px;
	color: var(--tvdg-ink);
	white-space: normal;
}

.tvdg-field__error {
	font-size: 12px;
	color: var(--tvdg-red-dark);
	min-height: 1px;
}

.tvdg-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--tvdg-red);
	color: #fff;
	border: none;
	border-radius: var(--tvdg-radius-sm);
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
	margin-top: 4px;
}

.tvdg-submit:hover {
	background: var(--tvdg-red-dark);
}

.tvdg-submit:active {
	transform: scale(0.99);
}

.tvdg-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.tvdg-form__feedback {
	font-size: 13px;
	text-align: center;
	border-radius: var(--tvdg-radius-sm);
	padding: 0;
	min-height: 0;
	transition: padding 0.15s ease;
}

.tvdg-form__feedback.is-success {
	padding: 12px;
	background: #eafaf0;
	color: #1f9d55;
}

.tvdg-form__feedback.is-error {
	padding: 12px;
	background: #fdeef0;
	color: var(--tvdg-red-dark);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 760px) {
	.tvdg-card {
		grid-template-columns: 1fr;
	}

	.tvdg-panel {
		padding: 32px 24px;
	}

	.tvdg-desc {
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvdg-wrap * {
		transition: none !important;
	}
}
