/* sdental.vn v2 — bổ sung nhỏ trên nền CSS gốc (Flatsome). Không đổi bố cục các khối cũ. */

/* Như web cũ (thêm 01/11): H1 trang chủ dạng dòng nhỏ, H1 trang con */
h1.holy-h1 { font-size: 1.2em; } .holy-page-title { margin: 0 0 16px; }
h1.holy-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #555; margin: 0 0 6px; text-align: center; }
/* H1 trong nội dung cũ đã hạ thành H2 (chuẩn 1 H1/trang) nhưng giữ cỡ chữ như H1 cũ */
h2.sd-h1 { font-size: 1.7em; line-height: 1.3; }
@media (max-width: 549px) { h2.sd-h1 { font-size: 1.4em; } }
/* H1 mới thêm cho SEO ở chỗ web cũ dùng H2 → giữ cỡ chữ H2 */
h1.sd-as-h2 { font-size: 1.6em; line-height: 1.3; }
@media (max-width: 549px) { h1.sd-as-h2 { font-size: 1.2em; } }
/* Tiêu đề không để 1 chữ lẻ rơi xuống dòng */
.section-title-main, .post-title, .entry-title, .card-header h3, h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* Popup đăng ký: vị trí như web cũ */
.pum-container { top: 197.01px !important; }
.wpcf7 form .wpcf7-response-output { margin: 2em 0em 1em; padding: 0.6em 1em; border: 2px solid #ffffff; border-color: #ffffff; background: #ffff; text-align: center; font-size: 1.2rem; font-weight: bold; }
.wpcf7-response-output:empty { display: none; }
textarea::placeholder { color: #888; font-style: italic; font-size: 16px; }
.wpcf7-not-valid-tip { color: red; font-size: 12px; }
/* Ảnh trượt cột phải (thay metaslider cũ) */
.widget .slider.sd-side-slider { width: 296px; max-width: none; padding: 0 0 20.6px 11px; box-sizing: border-box; }   /* như metaslider cũ: ảnh rộng 285px, lệch 11px, khối cao ảnh + 20px */
.sd-side-slider .sd-side-slide { width: 100%; }
.page-right-sidebar .widget .slider.sd-side-slider { padding: 10.6px 0 8.4px 11px; }   /* trang bác sĩ: metaslider cũ lệch ảnh 10,6px từ trên, khối cao 292px */

/* ---------- Khối Đặt lịch (khối cuối trang chủ) — giữ giao diện đã duyệt ---------- */
#dat-lich.sd-book { --a: #c8102e; --ink: #2a1215; --mut: #6e5a5c; --line: rgba(42,18,21,.12); --tint: #fcecee;
  background: var(--tint); padding: clamp(44px, 5.5vw, 80px) 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
#dat-lich .sd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
#dat-lich .sd-head { text-align: center; max-width: 760px; margin: 0 auto clamp(24px, 3vw, 40px); }
#dat-lich .sd-eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--a); margin-bottom: 1em; }
#dat-lich .sd-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
#dat-lich h2 { font-family: "Lexend", "Be Vietnam Pro", sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); text-transform: none; }
#dat-lich h2 em { font-style: normal; color: var(--a); }
#dat-lich .sd-muted { color: var(--mut); margin: 0 auto; }
#dat-lich .sd-muted a { color: var(--a); }
#dat-lich .sd-form { display: grid; gap: clamp(20px, 3vw, 40px); background: #fff; border-radius: 23px; padding: clamp(20px, 3.5vw, 44px); box-shadow: 0 22px 50px -24px rgba(74,13,22,.35); text-align: left; }
@media (min-width: 980px) { #dat-lich .sd-form { grid-template-columns: 1fr 1fr; } }
#dat-lich .sd-form > div { display: grid; gap: 12px; align-content: start; }
#dat-lich h3 { font-size: 1.1rem; margin: 0; color: var(--ink); }
#dat-lich label { font-size: .85rem; font-weight: 600; margin: 0; color: var(--ink); }
#dat-lich input, #dat-lich select, #dat-lich textarea { width: 100%; min-height: 50px; height: auto; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink); box-shadow: none; }
#dat-lich textarea { min-height: 90px; }
#dat-lich input[readonly] { background: var(--tint); }
#dat-lich input:focus, #dat-lich select:focus, #dat-lich textarea:focus { outline: 2px solid var(--a); outline-offset: 1px; }
#dat-lich .sd-hp { position: absolute; left: -9999px; }
#dat-lich .sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--a); color: #fff; font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; transition: filter .3s; margin: 0; }
#dat-lich .sd-btn:hover { filter: brightness(.92); }
#dat-lich .sd-fine { font-size: .8rem; color: var(--mut); margin: 0; }
#dat-lich .sd-ok { display: flex; gap: 14px; align-items: flex-start; background: #ecf8f1; border: 1px solid #b7e2c8; color: #14532d; border-radius: 14px; padding: 16px 18px; margin: 0 auto 20px; max-width: 760px; }
#dat-lich .bk__days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
#dat-lich .bk__days button { flex: none; width: 64px; padding: 10px 0; margin: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; gap: 2px; scroll-snap-align: start; color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.2; min-height: 0; font-weight: 400; }
#dat-lich .bk__days b { font-size: 1.3rem; } #dat-lich .bk__days small { font-size: .72rem; color: var(--mut); }
#dat-lich .bk__days [aria-pressed="true"], #dat-lich .bk__slots [aria-pressed="true"] { background: var(--a); border-color: var(--a); color: #fff; }
#dat-lich .bk__days [aria-pressed="true"] small { color: inherit; opacity: .85; }
#dat-lich .bk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 14px 0 8px; }
#dat-lich .bk__slots button { min-height: 46px; margin: 0; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.1; padding: 0; }
#dat-lich .bk__slots button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
#dat-lich .bk__pick { font-size: .9rem; margin: 0; }
/* H3 cũ được nâng thành H2 cho chuẩn SEO (bài không có H2): giữ cỡ chữ H3 của giao diện */
h2.sd-h3 { font-size: 1.25em; }
@media (max-width: 549px) { h2.sd-h3 { font-size: 1em; } }
