/* Form đặt lịch tư vấn – dùng chung cho trang Liên hệ và popup (bộ màu thương hiệu) */
.lms-booking-form { --g: var(--brand-green, #2E7D32); --gd: var(--brand-green-dark, #1B5E20); --gt: var(--brand-green-tint, #EAF3EC);
	--c: var(--brand-cta, #D84315); --cd: var(--brand-cta-dark, #BF360C); --ink: var(--brand-ink, #1F2A24); --muted: var(--brand-muted, #66756C); --line: var(--brand-line, #E9E3D9);
	color: var(--ink); }
.lms-booking-form form[hidden], .lms-booking-form .lmsb-done[hidden] { display: none; }

.lmsb-field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.lmsb-field label, .lmsb-field legend { display: block; margin: 0 0 6px; padding: 0; font-weight: 600; font-size: .92rem; color: var(--ink); }
.lmsb-field em { font-weight: 400; color: var(--muted); font-style: normal; }
.lmsb-field input[type=text], .lmsb-field input[type=tel], .lmsb-field input[type=email], .lmsb-field select, .lmsb-field textarea {
	width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; font-family: inherit; color: var(--ink); box-shadow: none; }
.lmsb-field textarea { resize: vertical; min-height: 64px; }
.lmsb-field input:focus, .lmsb-field select:focus, .lmsb-field textarea:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px rgba(46, 125, 50, .15); }
.lmsb-field .is-bad { border-color: var(--c); }
.lmsb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lmsb-err { display: block; color: var(--c); font-size: .84rem; margin-top: 4px; }
.lmsb-err:empty { display: none; }
.lmsb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Chủ đề (nút chọn nhanh) */
.lmsb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lmsb-chip input, .lmsb-time input { position: absolute; opacity: 0; pointer-events: none; }
.lmsb-chip span, .lmsb-time span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; user-select: none; }
.lmsb-chip span:hover, .lmsb-time span:hover { border-color: var(--g); }
.lmsb-chip input:checked + span, .lmsb-time input:checked + span { background: var(--g); border-color: var(--g); color: #fff; font-weight: 600; }
.lmsb-chip input:focus-visible + span, .lmsb-time input:focus-visible + span { outline: 3px solid rgba(46, 125, 50, .35); outline-offset: 2px; }

/* Giờ hẹn */
.lmsb-times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lmsb-times:empty::after { content: 'Ngày này đã kín lịch, bạn chọn ngày khác nhé.'; color: var(--muted); font-size: .88rem; }
.lmsb-time span { min-width: 64px; text-align: center; padding: 8px 12px; }

.lmsb-formerr { background: var(--brand-cta-tint, #FBE9E4); color: var(--cd); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }
.lmsb-formerr[hidden] { display: none; }
.lmsb-submit { display: block; width: 100%; padding: 14px 20px; border: 0; border-radius: 999px; background: var(--c); color: #fff; font-size: 1.02rem; font-weight: 700; font-family: inherit; cursor: pointer; box-shadow: 0 8px 20px rgba(216, 67, 21, .22); transition: background .15s, transform .15s; }
.lmsb-submit:hover { background: var(--cd); transform: translateY(-1px); }
.lmsb-submit[disabled] { opacity: .65; cursor: default; transform: none; }
.lmsb-note { margin: 12px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.55; text-align: center; }
.lmsb-note i { margin-right: 4px; color: var(--g); }

/* Màn hình xác nhận */
.lmsb-done { text-align: center; padding: 18px 6px 8px; }
.lmsb-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; font-size: 28px; margin: 0 auto 14px; }
.lmsb-done h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--gd); font-weight: 700; }
.lmsb-done p { margin: 0 0 10px; color: var(--muted); line-height: 1.6; }
.lmsb-done-contact a { display: inline-block; margin: 4px 4px 0; padding: 10px 20px; border-radius: 999px; background: var(--gt); color: var(--gd); font-weight: 700; text-decoration: none; }
.lmsb-done-contact a:hover { background: var(--g); color: #fff; }

@media (max-width: 560px) {
	.lmsb-two { grid-template-columns: 1fr; gap: 0; }
}
