/* FORM (HTML cũ form.vd-form + Contact Form 7 có html_class="vd-form") */

.vd-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 10px;
}
.vd-form input:not([type="submit"]),
.vd-form select,
.vd-form textarea {
	width: 100%;
	height: 42px;
	padding: 0 16px !important;
	border: 1px solid #EAEAEA !important;
	border-radius: 30px !important;
	background: #fff !important;
	font-family: Inter, sans-serif;
	font-size: 13px;
	color: #3C3C3C;
	box-shadow: none !important;
	outline: 0;
}
.vd-form input:focus,
.vd-form select:focus,
.vd-form textarea:focus { border-color: #04BA71 !important; }
.vd-form textarea {
	grid-column: 1 / -1;
	height: 96px;
	padding: 12px 16px !important;
	border-radius: 8px !important;
	resize: vertical;
}
.vd-form button {
	width: 100%;
	margin-top: 26px;
	padding: 12px 20px;
	border: 0;
	border-radius: 30px;
	background: #09A956;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.vd-form button:hover { background: #04BA71; }
@media (max-width: 767px) {
	.vd-form__grid { grid-template-columns: 1fr; }
}

/* ---------- Contact Form 7 (shortcode có html_class="vd-form …") ----------
   Mỗi ô nằm trong <div class="vd-f vd-f--icon-tên"> để có icon bên trái. */
.vd-form .wpcf7-form-control-wrap { display: block; }
.vd-form .vd-f { position: relative; }
.vd-form .vd-f--full { grid-column: 1 / -1; }
.vd-form .vd-f::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 13px;
	width: 15px;
	height: 15px;
	background: #04BA71;
	-webkit-mask: var(--vd-icon) center / contain no-repeat;
	        mask: var(--vd-icon) center / contain no-repeat;
	z-index: 1;
	pointer-events: none;
}
.vd-form .vd-f:not(.vd-f--noicon) input,
.vd-form .vd-f:not(.vd-f--noicon) select,
.vd-form .vd-f:not(.vd-f--noicon) textarea { padding-left: 38px !important; }
.vd-form select {
	-webkit-appearance: none;
	appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") right 14px center / 14px no-repeat !important;
}
.vd-f--user  { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 4-6 8-6s8 2 8 6'/%3E%3C/svg%3E"); }
.vd-f--phone { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.vd-f--mail  { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.vd-f--gender{ --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='10' cy='14' r='5'/%3E%3Cpath d='M14 10l6-6M15 4h5v5'/%3E%3C/svg%3E"); }
.vd-f--date  { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.vd-f--tooth { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 5.5C10.5 4 8.6 3.5 7 4 4.6 4.7 3.6 7.4 4.3 10c.5 1.7 1.3 3 1.6 4.8.4 2.4.6 5.2 2 5.2 1.6 0 1.4-4.5 4.1-4.5s2.5 4.5 4.1 4.5c1.4 0 1.6-2.8 2-5.2.3-1.8 1.1-3.1 1.6-4.8.7-2.6-.3-5.3-2.7-6-1.6-.5-3.5 0-5 1.5z'/%3E%3C/svg%3E"); }
.vd-f--note  { --vd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }

.vd-form .wpcf7-submit {
	display: block;
	width: 100%;
	margin-top: 26px;
	padding: 12px 20px;
	border: 0;
	border-radius: 30px;
	background: #09A956;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.vd-form .wpcf7-submit:hover { background: #04BA71; }
.vd-form .wpcf7-spinner { position: absolute; }
.vd-form .wpcf7-not-valid-tip { font-size: 12px; margin: 4px 0 0 14px; }
.vd-form .wpcf7-response-output {
	margin: 14px 0 0 !important;
	padding: 8px 12px !important;
	border-radius: 8px;
	font-size: 13px;
}

/* Form gọn 1 cột (VD: "Đăng ký ngay" trang 1001 thắc mắc) – html_class="vd-form vd-form--stack" */
.vd-form--stack .vd-form__grid { grid-template-columns: 1fr; gap: 16px; }
.vd-form--stack .wpcf7-submit {
	width: auto;
	margin: 22px auto 0;
	padding: 10px 26px;
}
