﻿/* tnd.com.vn – bảng màu navy + đỏ bordeaux, logo ACA LEGAL từ 20/11/2026 (giống office.tnd.com.vn); biến --gold* nay mang màu bordeaux */
:root {
    --navy-deep: #15253d;
    --navy: #1f3557;
    --navy-2: #2a4568;
    --navy-3: #34507a;
    --gold: #7a1f2e;
    --gold-light: #ecc5cb;
    --bronze: #5c1622;
    --gold-grad: linear-gradient(135deg, #9a3346 0%, #7a1f2e 55%, #631826 100%);
    --accent-text-grad: linear-gradient(135deg, #ffffff 0%, #f3dade 55%, #e3aab4 100%);
    --gold-soft: #f6e9eb;
    --bg: #f6f6f4;
    --card: #ffffff;
    --text: #1d2433;
    --muted: #5f6778;
    --line: #e3e6ec;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: clip; font-family: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--navy-2); }
a:hover { color: var(--bronze); }
h1, h2, h3 { font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Lora", Georgia, serif; line-height: 1.3; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.notice { background: var(--gold-soft); color: #6b4a12; text-align: center; font-size: .85rem; padding: 6px 16px; }

/* Header */
.top { background: #fff; position: sticky; top: 0; z-index: 10; border-bottom: 2px solid var(--gold); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 70px; flex-wrap: wrap; gap: 6px 16px; }
.brand { display: block; padding: 8px 0; text-decoration: none; }
.brand img { height: 56px; width: auto; display: block; }
.wordmark { font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Lora", Georgia, serif; font-weight: 700; letter-spacing: 2px; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--navy); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav a:hover { background: rgba(31,53,87,.07); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--gold-soft); color: var(--bronze); }
.nav-toggle, .nav-toggle-label { display: none; }

/* Hero */
.hero { background: radial-gradient(ellipse at 15% 0%, var(--navy-3) 0%, var(--navy-2) 35%, var(--navy) 65%, var(--navy-deep) 100%); color: #fff; padding: 72px 0 80px; }
.hero h1 { color: #fff; font-size: 2.5rem; max-width: 820px; margin: 10px 0 16px; }
.hero h1 em { font-style: normal; background: var(--accent-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #c9d1e3; max-width: 640px; font-size: 1.08rem; }
/* acalaw.vn: ảnh nền nghề luật đổi theo ngày + lớp phủ navy đậm bên trái để chữ dễ đọc (LS Duy 21/11/2026) */
.hero.hero-photo { background: linear-gradient(90deg, rgba(21,37,61,.95) 0%, rgba(21,37,61,.86) 40%, rgba(21,37,61,.45) 100%), var(--hero-img) center / cover no-repeat, var(--navy); }
.hero.hero-photo { position: relative; }
.hero-credit { position: absolute; right: 14px; bottom: 8px; font-size: .72rem; color: rgba(255,255,255,.7); }
.hero-credit a { color: inherit; text-decoration: underline; }
/* điện thoại: bỏ hẳn khối đầu trang chủ acalaw.vn, trang bắt đầu từ Lĩnh vực (LS Duy 21/11/2026) */
@media (max-width: 680px) { .hero.hero-photo { display: none; } }
.hero .lead { max-width: 760px; }   /* trang chủ: dòng chữ nhỏ gọn trong 2 dòng trên máy tính (LS Duy 20/11/2026) */
.eyebrow { color: var(--gold-light); text-transform: uppercase; font-size: .78rem; letter-spacing: 2px; font-weight: 600; margin: 0; }
.eyebrow.dark { color: var(--bronze); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn { display: inline-block; background: var(--gold-grad); color: #fff; font-weight: 600; padding: 11px 20px; border-radius: 10px; text-decoration: none; border: 0; }
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(236,197,203,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Page head */
.page-head { background: var(--navy); padding: 44px 0 36px; }
.page-head h1 { color: #fff; margin: 6px 0 0; }

/* Blocks */
.block { padding: 56px 0; }
.block.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.head h2 { margin: 4px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid > * { min-width: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; border-top: 3px solid var(--gold); }
.card p { margin: 0; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px; border-left: 3px solid var(--gold); background: var(--bg); border-radius: 0 10px 10px 0; min-width: 0; }
.steps li::before { content: "0" counter(s); font-family: "Montserrat", sans-serif; font-weight: 800; color: var(--bronze); display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.two > * { min-width: 0; }
.prose p { margin: 0 0 1em; }
.values { display: grid; gap: 12px; }
.values div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.values b { display: block; color: var(--navy); }
.values span { color: var(--muted); }
.pending { color: var(--muted); font-style: italic; }
/* Trang /bieu-tuong – lời bình biểu tượng (20/11/2026) */
.symbol { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
.symbol-logo { margin: 0; position: sticky; top: 110px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.symbol-logo img { display: block; width: 100%; height: auto; }
.symbol-text { max-width: 720px; font-size: 1.04rem; line-height: 1.75; text-align: justify; }
.symbol-text p:first-child { font-size: 1.12rem; color: var(--navy); }
.symbol-motto { border-left: 3px solid var(--gold); background: #fff; padding: 14px 18px; border-radius: 0 10px 10px 0; }
@media (max-width: 860px) { .symbol { grid-template-columns: 1fr; gap: 24px; } .symbol-logo { position: static; max-width: 300px; margin: 0 auto; } .symbol-text { text-align: left; } }
.note { color: var(--muted); font-size: .9rem; margin-top: 24px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; color: var(--navy); }
.faq p { margin: 0 0 16px; }
/* Giới thiệu › Câu hỏi thường gặp (acalaw.vn, LS Duy 21/11/2026) */
.values .about-faq { background: none; border: 0; border-radius: 0; padding: 14px 0 0; }
.about-faq h2 { margin: 0 0 12px; font-size: 1.25rem; }
.about-faq .faq b { display: inline; color: var(--navy); }
.faq-steps { margin: -6px 0 16px; padding-left: 22px; }
.faq-steps li { margin-bottom: 6px; }
/* Dịch vụ pháp lý – trang chủ + /dich-vu (acalaw.vn, LS Duy 21/11/2026) */
.svc-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.svc-card:hover { box-shadow: 0 10px 24px rgba(21,37,61,.12); transform: translateY(-2px); }
.svc-card .svc-more { margin-top: auto; padding-top: 10px; color: #7A1F2E; font-weight: 600; font-size: .92rem; }
.svc-list { display: grid; gap: 18px; }
.svc { display: grid; grid-template-columns: 64px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #7A1F2E; border-radius: 12px; padding: 22px 24px; scroll-margin-top: 90px; }
.svc .svc-ico { width: 56px; height: 56px; border-radius: 14px; background: #fdeef1; color: #7A1F2E; display: flex; align-items: center; justify-content: center; }
.svc h2 { margin: 0 0 6px; font-size: 1.3rem; }
.svc .svc-lead { margin: 0 0 10px; color: var(--muted); }
.svc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.svc li { position: relative; padding-left: 22px; }
.svc li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border-left: 2px solid #7A1F2E; border-bottom: 2px solid #7A1F2E; transform: rotate(-45deg); }
.svc-note { color: var(--muted); font-size: .92rem; margin-top: 18px; }
/* tranh minh hoạ tự vẽ cho dịch vụ (LS Duy 21/11/2026) */
.field-card .field-photo { position: relative; }
.svc { grid-template-columns: 64px 1fr 300px; }
.svc .svc-art { position: relative; display: block; border-radius: 10px; overflow: hidden; min-height: 190px; align-self: stretch; }
@media (max-width: 900px) { .svc { grid-template-columns: 64px 1fr; } .svc .svc-art { grid-column: 1 / -1; grid-row: 1; min-height: 160px; } }
@media (max-width: 680px) { .svc { grid-template-columns: 1fr; padding: 18px; } }
.contact { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { margin: 0; font-weight: 500; }

/* Footer */
.foot { background: var(--navy-deep); color: #c9d1e3; padding: 40px 0 16px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-grid > * { min-width: 0; }
.foot h4 { color: var(--gold-light); font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 10px; }
.foot a { display: block; color: #c9d1e3; text-decoration: none; padding: 2px 0; }
.foot a:hover { color: var(--gold-light); }
.foot p { margin: 8px 0 0; }
.foot-logo { display: block; height: 52px; width: auto; }
.foot-logo-dung { height: 120px; }   /* chân trang: logo dọc một màu trắng (LS Duy 20/11/2026) */
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 14px; font-size: .85rem; color: #8f9ab0; }

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .two { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .nav-toggle-label { display: block; color: var(--navy); border: 1px solid var(--gold); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: .9rem; }
    .brand img { height: 46px; }
    .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
    .nav-toggle:checked ~ .nav { display: flex; }
    .hero { padding: 48px 0 56px; }
    .hero h1 { font-size: 1.75rem; }
    h1 { font-size: 1.6rem; }
    .steps { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; gap: 2px; }
    .contact dd { margin-bottom: 10px; }
}
/* Menu Đối tác – trang /khachhang: form đăng nhập khách hàng (20/11/2026) */
.login-card { max-width: 440px; margin: 0 auto; padding: 28px 28px 22px; width: 100%; }
.login-lead { color: var(--navy) !important; font-size: 1.02rem; margin: 0 0 18px !important; }
.login-form { display: flex; flex-direction: column; gap: 6px; }
.login-form label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-top: 6px; }
.login-form input { padding: 11px 12px; border: 1px solid #efc9d1; border-radius: 10px; background: #fdeef1; font: inherit; }
.login-form input:focus { outline: 2px solid rgba(122,31,46,.35); background: #fff6f8; }
.login-form .btn { margin-top: 14px; cursor: pointer; font: inherit; font-weight: 600; }
.login-msg { margin: 10px 0 0 !important; color: #8a5a1c !important; font-size: .9rem; }
.login-foot { margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
/* acalaw.vn: chân trang chỉ còn dòng bản quyền (LS Duy 20/11/2026) */
.foot.foot-min { padding: 18px 0; }
.foot-min .copy { border-top: 0; margin-top: 0; padding-top: 0; }
/* Trang Liên hệ: thông tin lấy từ Thông tin công ty (20/11/2026) */
.contact-name { margin: 0 0 14px; font-size: 1.25rem; color: var(--navy); }
.contact dd.pre { white-space: pre-line; }
/* Trang Liên hệ – form đặt lịch làm việc (20/11/2026; tạm thời chưa gửi) */
.booking-card { margin-top: 28px; padding: 24px; }
.booking-card h2 { margin: 0 0 4px; font-size: 1.2rem; color: var(--navy); }
.booking-lead { margin: 0 0 16px !important; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.bk-grid > label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.bk-grid .bk-wide { grid-column: 1 / -1; }
.booking-form input:not([type=checkbox]):not([type=radio]), .booking-form select, .booking-form textarea { padding: 10px 12px; border: 1px solid #efc9d1; border-radius: 10px; background: #fdeef1; font: inherit; font-weight: 400; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: 2px solid rgba(122,31,46,.35); background: #fff6f8; }
.bk-radios { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 400; }
.bk-radios label { display: inline-flex; gap: 6px; align-items: center; color: var(--ink, #1c2534); }
.bk-consent { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 12px; font-size: .88rem; color: var(--muted); }
.booking-form .btn { cursor: pointer; font: inherit; font-weight: 600; }
.booking-msg { margin: 10px 0 0 !important; color: #8a5a1c !important; font-size: .9rem; }
.req { color: #b4232c; }
/* gửi form thật (LS Duy 21/11/2026): ngày + giờ gộp một ô, ô bẫy máy gửi rác ẩn, thông báo xanh/đỏ */
.bk-when { display: grid; grid-template-columns: 1fr 104px; gap: 8px; font-weight: 400; }
.bk-when input, .bk-when select { min-width: 0; width: 100%; box-sizing: border-box; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-msg.ok { color: #1f6b3a !important; font-weight: 600; }
.booking-msg.err { color: #b4232c !important; }
.booking-form .btn:disabled { opacity: .7; cursor: default; }
@media (max-width: 640px) { .bk-grid { grid-template-columns: 1fr; } }
/* Trang Đối tác: form bên trái, ảnh chân dung nửa người luật sư bên phải (20/11/2026) */
.partner-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 380px); justify-content: center; align-items: center; gap: 48px; }
.partner-wrap .login-card { margin: 0; }
.partner-photo { margin: 0; }
.partner-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; border-radius: 16px; box-shadow: 0 12px 32px rgba(21,37,61,.18); }
.partner-photo-empty { width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; border: 2px dashed #d9c2c8; background: linear-gradient(180deg, #fff, #f7eef0); display: flex; align-items: center; justify-content: center; color: #a58b92; font-size: .9rem; }
.login-lead a { font-weight: 600; }
@media (max-width: 820px) { .partner-wrap { grid-template-columns: minmax(0, 440px); gap: 28px; } .partner-photo { max-width: 320px; margin: 0 auto; } }
.partner-photo-logo { width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(21,37,61,.10); display: flex; align-items: center; justify-content: center; padding: 36px; box-sizing: border-box; }
.partner-photo .partner-photo-logo img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; display: block; }
/* Trang Liên hệ rộng hơn để dòng Trụ sở nằm trên một dòng trên máy tính (LS Duy 20/11/2026) */
.contact-wrap { max-width: 1100px; }
.contact-wrap .contact dt { white-space: nowrap; }
/* icon trước từng mục thông tin liên hệ (LS Duy 21/11/2026): ô tròn nền kem, nét bordeaux */
.contact-ico { align-items: start; }
.contact-ico dd { padding-top: 5px; }
.contact-ico dt { display: flex; align-items: center; gap: 10px; }
.contact-ico .ci { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f6efe3; color: #7A1F2E; border: 1px solid #ead9bd; }
.contact-ico .ci svg { display: block; }
@media (max-width: 640px) { .contact-ico dt { margin-top: 8px; } .contact-ico dd { padding-left: 42px; } }
@media (max-width: 640px) { .contact-wrap .contact dt { white-space: normal; } }
/* Trang Giới thiệu – icon cho 3 giá trị (Tabler Icons, 20/11/2026) */
.values .value-item { display: flex; gap: 14px; align-items: flex-start; }
.values .value-item > div { background: none; border: 0; border-radius: 0; padding: 0; min-width: 0; }
.values .value-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fdeef1; color: #7A1F2E; display: flex; align-items: center; justify-content: center; }
.values .value-ico svg { width: 26px; height: 26px; display: block; }
.values .value-item b { margin-bottom: 2px; }
/* Trang Giới thiệu: cột phải giữ chiều cao tự nhiên khi đoạn giới thiệu bên trái dài (20/11/2026) */
.two > .values { align-self: start; align-content: start; }
/* Trang Giới thiệu: logo dọc dưới 3 giá trị, chỉ trên máy tính (20/11/2026) */
.values .values-logo { background: none; border: 0; padding: 28px 24px 0; text-align: center; }
.values .values-logo img { width: 72%; max-width: 280px; height: auto; display: inline-block; }
@media (max-width: 900px) { .values .values-logo { display: none; } }
/* Lĩnh vực: icon cho từng thẻ (Tabler Icons, 20/11/2026) */
.field-card .field-ico { width: 46px; height: 46px; border-radius: 12px; background: #fdeef1; color: #7A1F2E; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.field-card .field-ico svg { width: 26px; height: 26px; display: block; }
/* Menu trên cùng có icon (Tabler Icons, 20/11/2026) */
.nav a { display: inline-flex; align-items: center; gap: 6px; }
.nav a .nav-ico { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav a[aria-current="page"] .nav-ico { opacity: 1; }
/* Ô lĩnh vực: viền đỏ phía trên dày hơn (LS Duy 20/11/2026) */
.card.field-card { border-top-width: 5px; }
/* thẻ lĩnh vực có ảnh đại diện (acalaw.vn, LS Duy 21/11/2026): ảnh tràn trên cùng, icon đè lên mép dưới ảnh */
.card.field-card.has-photo { padding-top: 0; overflow: hidden; }
.field-card .field-photo { display: block; margin: 0 -20px; height: 150px; overflow: hidden; background: #e9e4dc; }
.field-card .field-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.field-card.has-photo:hover .field-photo img { transform: scale(1.04); }
/* tranh unDraw cho 4 dịch vụ (LS Duy 21/11/2026): nền kem vàng nhạt, tranh vừa khung không cắt */
.svc-card .field-photo { background: linear-gradient(135deg, #faf6ee 0%, #efe5d1 100%); }
.field-card .field-photo img.svc-ill, .svc .svc-art img.svc-ill { object-fit: contain; padding: 14px 18px; box-sizing: border-box; }
.svc .svc-art { background: linear-gradient(135deg, #faf6ee 0%, #efe5d1 100%); }
.svc .svc-art img.svc-ill { position: absolute; inset: 0; width: 100%; height: 100%; display: block; padding: 18px; }
.field-card.has-photo .field-ico { position: relative; margin-top: -23px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(21,37,61,.12); }
.field-card.field-featured.has-photo .field-ico { border-color: #7A1F2E; background: #9a3346; }
/* Ô lĩnh vực đặc biệt "Pháp chế thuê ngoài" (LS Duy 20/11/2026) */
.card.field-card.field-featured { background: linear-gradient(160deg, #8e2a3b 0%, #7A1F2E 55%, #5e1622 100%); border-color: #5e1622; color: #fff; box-shadow: 0 10px 26px rgba(122,31,46,.28); }
.field-featured h3 { color: #fff; }
.card.field-featured p { color: #f3dade; }
.field-featured .field-ico { background: rgba(255,255,255,.16); color: #fff; }
/* Trang Liên hệ: logo dọc bên phải khối thông tin (LS Duy 20/11/2026) */
.contact-top { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: center; }
.contact-logo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; display: flex; align-items: center; justify-content: center; align-self: stretch; margin-top: 44px; }
.contact-logo img { width: 100%; height: auto; display: block; }
@media (max-width: 820px) { .contact-top { grid-template-columns: 1fr; gap: 16px; } .contact-logo { order: -1; margin-top: 0; max-width: 200px; } }
/* ===== Tin tức pháp luật (/tin-tuc, LS Duy 21/11/2026) ===== */
.news-head-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.news-sub { color: #c9d1e3; margin: 8px 0 0; }
.news-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px 14px; min-width: min(380px, 100%); color: #8a5a6a; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.news-search input { border: 0; outline: 0; font: inherit; flex: 1; min-width: 0; background: transparent; color: var(--navy); }
.news-block { padding-top: 28px; }
.news-demo-note { display: flex; gap: 8px; align-items: center; background: #fff7e6; color: #8a5a1c; border: 1px solid #f1dcae; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 0 0 18px; }
.news-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.news-chips .chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.news-chips .chip span { background: #f1f3f7; border-radius: 999px; padding: 0 8px; font-size: .78rem; color: var(--muted); }
.news-chips .chip:hover { border-color: #7A1F2E; color: #7A1F2E; }
.news-chips .chip.on { background: #7A1F2E; border-color: #7A1F2E; color: #fff; }
.news-chips .chip.on span { background: rgba(255,255,255,.2); color: #fff; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21,37,61,.12); }
.news-thumb { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); overflow: hidden; }
.news-thumb::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.news-thumb::before { content: ""; position: absolute; left: -30px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.06); }
.news-thumb-ico { position: relative; z-index: 1; display: flex; }
.cat-navy { background: linear-gradient(135deg, #2a4568, #1F3557 60%, #15253d); }
.cat-red { background: linear-gradient(135deg, #9a3346, #7A1F2E 60%, #5e1622); }
.cat-gold { background: linear-gradient(135deg, #c79a4a, #a77a2c 60%, #845d1c); }
.cat-teal { background: linear-gradient(135deg, #2f7f86, #1f6168 60%, #164a50); }
.cat-plum { background: linear-gradient(135deg, #6c4a86, #553770 60%, #402858); }
.news-tag { position: absolute; left: 14px; top: 14px; z-index: 2; background: rgba(255,255,255,.95); color: var(--navy); font-size: .74rem; font-weight: 700; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px; }
.news-demo { position: absolute; right: 14px; top: 14px; z-index: 2; background: #fff7e6; color: #8a5a1c; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.news-title { font-size: 1.05rem; line-height: 1.4; margin: 0; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-sum { margin: 0; color: #4a5568; font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: #7A1F2E; font-weight: 600; font-size: .88rem; text-decoration: none; }
.news-more:hover { gap: 8px; }
.news-card.news-featured { grid-column: 1 / -1; flex-direction: row; }
.news-featured .news-thumb { width: 44%; height: auto; min-height: 260px; flex: none; }
.news-featured .news-body { padding: 26px 28px; justify-content: center; }
.news-featured .news-title { font-size: 1.45rem; -webkit-line-clamp: 4; }
.news-featured .news-sum { font-size: .98rem; -webkit-line-clamp: 5; }
.news-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.news-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.side-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; color: var(--navy); }
.side-box h3 svg { color: #7A1F2E; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: var(--navy); padding: 8px 4px; cursor: pointer; border-bottom: 1px dashed var(--line); text-align: left; }
.side-cats li:last-child button { border-bottom: 0; }
.side-cats button:hover { color: #7A1F2E; }
.side-cats b { margin-left: auto; font-weight: 600; color: var(--muted); font-size: .85rem; }
.side-cats .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.side-latest { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.side-latest li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; line-height: 1.4; color: #2d3748; }
.side-latest li:last-child { border-bottom: 0; }
.side-latest li span { flex: none; background: #fdeef1; color: #7A1F2E; font-weight: 700; font-size: .75rem; border-radius: 6px; padding: 2px 6px; height: fit-content; }
.side-cta { background: linear-gradient(160deg, #1F3557, #15253d); color: #fff; border-radius: 14px; padding: 22px; text-align: center; }
.side-cta svg { color: #f2c6ce; }
.side-cta h3 { color: #fff; margin: 8px 0 6px; font-size: 1.08rem; }
.side-cta p { color: #c9d1e3; font-size: .88rem; margin: 0 0 14px; }
@media (max-width: 1000px) { .news-layout { grid-template-columns: 1fr; } .news-side { position: static; } }
@media (max-width: 680px) { .news-grid { grid-template-columns: 1fr; } .news-card.news-featured { flex-direction: column; } .news-featured .news-thumb { width: 100%; min-height: 180px; } .news-featured .news-title { font-size: 1.2rem; } }
.news-demo-note svg { flex: none; }
.side-cats button.on { color: #7A1F2E; font-weight: 600; }
.side-cats .side-ico { width: 26px; height: 26px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.side-cats .side-ico svg { display: block; }
/* ô tìm tin gọn hơn (LS Duy 21/11/2026) */
.news-search { min-width: 0; width: 280px; max-width: 100%; padding: 7px 12px; border-radius: 10px; gap: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.news-search input { font-size: .9rem; }
/* Tin tức: ô tìm ở đầu cột phải, bỏ dải xanh (LS Duy 21/11/2026) */
.news-side .news-search { width: 100%; box-shadow: none; border: 1px solid var(--line); color: #8a5a6a; }
.news-side .news-search:focus-within { border-color: #7A1F2E; box-shadow: 0 0 0 3px rgba(122,31,46,.12); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Tin tức – liên kết thẻ + trang chi tiết /tin-tuc/{slug} (LS Duy 21/11/2026) */
a.news-thumb { text-decoration: none; }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: #7A1F2E; }
.side-latest li a { color: inherit; text-decoration: none; }
.side-latest li a:hover { color: #7A1F2E; }
.side-cats a { display: flex; align-items: center; gap: 10px; color: var(--navy); padding: 8px 4px; border-bottom: 1px dashed var(--line); text-decoration: none; }
.side-cats li:last-child a { border-bottom: 0; }
.side-cats a:hover, .side-cats a.on { color: #7A1F2E; }
.side-cats a.on { font-weight: 600; }
.nd { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 30px 30px; }
.nd-crumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.nd-crumb a { color: var(--muted); text-decoration: none; }
.nd-crumb a:hover { color: #7A1F2E; }
.nd-crumb span { margin: 0 4px; }
.nd-tags { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.nd-cat { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.news-demo.nd-demo { position: static; }
.nd-title { font-size: 1.85rem; line-height: 1.3; color: var(--navy); margin: 0 0 12px; }
.nd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }
.nd-meta span { display: inline-flex; align-items: center; gap: 6px; }
.nd-banner { position: relative; height: 220px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.92); overflow: hidden; margin-bottom: 22px; }
.nd-banner::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.08); }
.nd-banner::before { content: ""; position: absolute; left: -40px; top: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.06); }
.nd-content { font-size: 1.04rem; line-height: 1.75; color: #2d3748; }
.nd-lead { font-size: 1.1rem; margin: 0 0 14px; }
.nd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.nd-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.btn.ghost-dark { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost-dark:hover { color: #7A1F2E; border-color: #7A1F2E; filter: none; }
.nd-related-h { font-size: 1.15rem; color: var(--navy); margin: 26px 0 12px; }
.nd-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nd-rel-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.nd-rel-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(21,37,61,.1); }
.nd-rel-thumb { height: 80px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); }
.nd-rel-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.nd-rel-body small { color: var(--muted); font-size: .76rem; }
.nd-rel-body b { font-size: .9rem; line-height: 1.4; color: var(--navy); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
form.news-search { margin: 0; }
@media (max-width: 680px) { .nd { padding: 18px; } .nd-title { font-size: 1.4rem; } .nd-banner { height: 150px; } .nd-related { grid-template-columns: 1fr; } }
/* Trang chuyên mục tin /tin-tuc/chuyen-muc/{cm} (LS Duy 21/11/2026) */
.cm-head { display: flex; align-items: center; gap: 18px; color: #fff; border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; position: relative; overflow: hidden; }
.cm-head::after { content: ""; position: absolute; right: -50px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cm-ico { width: 58px; height: 58px; border-radius: 14px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; flex: none; }
.cm-head h1 { color: #fff; margin: 2px 0 2px; font-size: 1.6rem; }
.cm-head p { margin: 0; color: rgba(255,255,255,.8); font-size: .9rem; }
.cm-crumb { font-size: .82rem; color: rgba(255,255,255,.75); }
.cm-crumb a { color: #fff; text-decoration: none; }
.cm-empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 36px 24px; text-align: center; color: var(--muted); }
.cm-empty svg { color: #c9a0aa; }
/* Ảnh đại diện tin tự vẽ – NewsArt (LS Duy 21/11/2026) */
.has-art { position: relative; overflow: hidden; }
.has-art::before, .has-art::after { display: none; }
.news-art, .news-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.news-thumb.has-art { height: 170px; }
.news-featured .news-thumb.has-art { height: auto; min-height: 280px; }
/* ảnh chụp chuyên mục (acalaw.vn) có logo mờ ACA LEGAL ở góc dưới phải: neo ảnh về góc dưới phải để khung nào
   (đứng, ngang dẹt như banner chi tiết) bị cắt thì cắt phía trên/trái, luôn thấy đủ logo (LS Duy 21/11/2026) */
.news-photo { object-position: 100% 100%; }
.news-card:hover .news-art { transform: scale(1.04); }
.news-art { transition: transform .4s ease; }
.nd-banner.has-art { height: 300px; }
.nd-rel-thumb.has-art { height: 96px; }
.nd-content p { margin: 0 0 12px; }
.nd-content .nd-li { position: relative; padding-left: 20px; }
.nd-content .nd-li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: #7A1F2E; }
.nd-content .nd-note { margin-top: 18px; padding: 12px 14px; background: #f6f7fa; border-left: 3px solid #b8975a; border-radius: 8px; font-size: .88rem; line-height: 1.6; color: #5a6475; }
@media (max-width: 680px) { .nd-banner.has-art { height: 200px; } .news-featured .news-thumb.has-art { min-height: 200px; } }
/* Trang chi tiết dịch vụ /dich-vu/{key} (LS Duy 21/11/2026) */
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .eyebrow a:hover { text-decoration: underline; }
.svd { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.svd-short { font-family: "Lora", serif; font-size: 1.25rem; color: var(--navy); margin: 0 0 10px; }
.svd .svc-lead { color: var(--muted); margin: 0 0 18px; }
.svd-h { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 0 0 12px; }
.svd-h svg { color: #7A1F2E; }
.svd-points { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 10px; }
.svd-points li { position: relative; padding: 12px 14px 12px 40px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.svd-points li::before { content: ""; position: absolute; left: 16px; top: 1.15em; width: 10px; height: 5px; border-left: 2px solid #7A1F2E; border-bottom: 2px solid #7A1F2E; transform: rotate(-45deg); }
.svd-main .btn { margin-top: 6px; }
.svd-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.svd-art { position: relative; height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #faf6ee 0%, #efe5d1 100%); }
.svd-art img.svc-ill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; box-sizing: border-box; }
.svd-others { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.svd-others a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; color: var(--navy); text-decoration: none; font-weight: 500; }
.svd-others a:hover { background: #fdeef1; color: #7A1F2E; }
.svc-ico-s { width: 30px; height: 30px; border-radius: 8px; background: #fdeef1; color: #7A1F2E; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; }
#dat-lich { scroll-margin-top: 90px; }
@media (max-width: 900px) { .svd { grid-template-columns: 1fr; } .svd-side { position: static; } .svd-art { height: 200px; } }.svc-title-link { color: inherit; text-decoration: none; }
.svc-title-link:hover { color: #7A1F2E; }
.svc .svc-detail { display: inline-block; margin-top: 12px; color: #7A1F2E; font-weight: 600; text-decoration: none; }
.svc .svc-detail:hover { text-decoration: underline; }
/* Chuyển ngôn ngữ VI / EN / 中文 – acalaw.vn (LS Duy 21/11/2026) */
.lang-sw { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.lang-sw a { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.4; }
.lang-sw a:hover { background: #fdeef1; color: #7A1F2E; }
.lang-sw a.on { background: #7A1F2E; color: #fff; }
.news-lang-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #f6efe3; border: 1px solid #ead9bd; color: var(--navy); font-size: .92rem; }
@media (max-width: 700px) { .lang-sw { order: 2; } .nav-toggle-label { order: 3; } .nav { order: 4; } }
/* Lĩnh vực trong trang Giới thiệu (LS Duy 21/11/2026) */
#linh-vuc { scroll-margin-top: 110px; }

/* Trang /dich-vu gọn: mỗi hàng 3 thẻ (LS Duy 21/11/2026) – tranh trên, icon + tên, mô tả, danh sách việc chữ nhỏ */
.svc-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.svc-grid .svc { grid-template-columns: 1fr; gap: 0; padding: 0; border-left: 0; border-top: 4px solid #7A1F2E; overflow: hidden; display: flex; flex-direction: column; }
.svc-grid .svc .svc-art { order: -1; min-height: 0; height: 150px; border-radius: 0; flex: 0 0 auto; }
.svc-grid .svc .svc-art img.svc-ill { padding: 12px; }
.svc-grid .svc .svc-ico { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.svc-grid .svc > div { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.svc-grid .svc h2 { font-size: 1.08rem; margin: 0 0 6px; }
.svc-grid .svc .svc-lead { font-size: .9rem; margin: 0 0 10px; }
.svc-grid .svc ul { gap: 4px; font-size: .86rem; }
.svc-grid .svc li { padding-left: 18px; }
.svc-grid .svc li::before { width: 7px; height: 4px; top: .6em; }
.svc-grid .svc .svc-detail { margin-top: auto; padding-top: 12px; font-size: .9rem; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }/* thẻ dịch vụ ngắn gọn, cả thẻ là link (LS Duy 21/11/2026) */
.svc-grid .svc-link { color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.svc-grid .svc-link:hover { box-shadow: 0 10px 24px rgba(21,37,61,.12); transform: translateY(-2px); }
.svc-grid .svc-link:hover h2 { color: #7A1F2E; }
.svc-grid .svc-link .svc-lead { color: var(--muted); }
.svc-grid .svc-link:hover .svc-detail { text-decoration: underline; }
/* trang chủ acalaw.vn: Dịch vụ pháp lý + Lĩnh vực 3 cột (LS Duy 21/11/2026) */
.grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid.grid-3 { grid-template-columns: 1fr; } }

/* ảnh chụp dịch vụ (LS Duy 23/11/2026): tràn khung, không đệm */
.field-card .field-photo img.svc-photo, .svc .svc-art img.svc-photo, .svd-art img.svc-photo, .svc-grid .svc .svc-art img.svc-photo { object-fit: cover; padding: 0; }
.svd-art:has(img.svc-photo) { height: 280px; }
.svd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Căn chỉnh chung cho điện thoại – mọi trang (LS Duy 23/11/2026) =====
   Đầu trang gọn 1 hàng (logo · ngôn ngữ · Menu), lề hai bên đều 16px, bớt khoảng trắng trên/dưới, chữ dài tự xuống dòng. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 700px) {
  html { overflow-x: hidden; }   /* chốt chặn: không phần nào được kéo trang rộng hơn màn hình (24/11/2026) */
  .wrap { padding: 0 16px; }
  .bar { flex-wrap: wrap; min-height: 60px; gap: 8px; }
  .brand { flex: 1 1 0; min-width: 0; padding: 6px 0; }
  .brand img { height: auto; max-height: 42px; max-width: 100%; }
  .lang-sw { flex: 0 0 auto; }
  .lang-sw a { padding: 4px 8px; }
  .nav-toggle-label { flex: 0 0 auto; padding: 5px 10px; }
  .page-head { padding: 26px 0 22px; }
  .page-head h1 { font-size: clamp(1.35rem, 6vw, 1.6rem); }
  .block { padding: 32px 0; }
  .head { margin-bottom: 16px; }
  h1, h2, h3, p, li, dd, summary, .card { overflow-wrap: anywhere; }
  .contact, .card, .svc, .nd { max-width: 100%; }
  /* form đặt lịch (Liên hệ, chi tiết dịch vụ): ô ngày không được đẩy rộng quá màn hình máy nhỏ */
  .booking-card { padding: 18px 16px; }
  .booking-card h2 { font-size: min(1.5rem, calc((100vw - 66px) / 15.5)); white-space: nowrap; }   /* 1 dòng (LS Duy 23/11/2026) */
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-grid > *, .bk-grid input, .bk-grid select, .bk-grid textarea { min-width: 0; max-width: 100%; }
  .bk-when { grid-template-columns: minmax(0, 1fr) 96px; }
  .bk-grid input, .bk-grid select, .bk-grid textarea { font-size: 16px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 12px; }
  .brand img { max-height: 36px; }
  .lang-sw a { padding: 3px 6px; font-size: .74rem; }
  .nav-toggle-label { padding: 4px 8px; font-size: .85rem; }
}
.btn.btn-video { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #2a4568 0%, #1f3557 55%, #15253d 100%); color: #fff; box-shadow: 0 6px 16px rgba(21,37,61,.25); }
.btn.btn-video svg { flex: 0 0 auto; color: #e3cfa5; }
.btn.btn-video:hover { color: #fff; filter: brightness(1.12); }
.btn.btn-icon { display: inline-flex; align-items: center; gap: 8px; }
.btn.btn-icon svg { flex: 0 0 auto; color: #e3cfa5; }
/* màn cảm ơn đầy màn hình sau khi gửi thành công (LS Duy 23/11/2026) */
/* co giãn theo mọi điện thoại (LS Duy 23/11/2026): cỡ chữ/icon tính theo bề ngang máy, không vượt viền, máy thấp/xoay ngang thì cuộn được */
/* 24/11/2026: vẫn tràn trên máy thật → dùng top/left/right/bottom (iPhone đời cũ không hiểu "inset"), rộng tối đa 100vw,
   tiêu đề được phép xuống dòng (máy bật cỡ chữ lớn trong Cài đặt thì 1 dòng sẽ tràn), mọi chữ tự ngắt dòng */
.mw-thanks { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100vw; height: 100%; overflow-x: hidden; z-index: 100; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; box-sizing: border-box; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: linear-gradient(160deg, #2a4568 0%, #1f3557 50%, #15253d 100%); color: #fff; text-align: center; animation: mwIn .25s ease-out; }
.mw-thanks[hidden] { display: none; }
.mw-thanks-box { margin: auto; width: 100%; max-width: 420px; min-width: 0; box-sizing: border-box; }
.mw-thanks-ico { width: clamp(64px, 22vw, 96px); height: clamp(64px, 22vw, 96px); margin: 0 auto clamp(12px, 4vw, 18px); border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.mw-thanks-ico svg { width: 58%; height: 58%; }
.mw-thanks h2 { color: #fff; font-size: min(2.4rem, calc((100vw - 32px) / 9.5)); margin: 0 0 12px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.mw-thanks p { color: #e6ebf5; font-size: clamp(.98rem, 4.4vw, 1.2rem); line-height: 1.55; margin: 0 0 clamp(18px, 6vw, 28px); overflow-wrap: anywhere; }
.mw-thanks-close { display: block; width: 100%; box-sizing: border-box; padding: 14px; font-size: 1.05rem; }
@keyframes mwIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
/* ===== Trang chủ acalaw.vn trên điện thoại: form đặt lịch 3 bước (LS Duy 23/11/2026) – Views/Home/_DatLichWizard.cshtml =====
   Chỉ hiện ≤680px; các khối trang chủ có lớp .m-hide thì ẩn. Mọi kích thước dùng clamp()/auto-fill để co giãn theo từng dòng máy. */
.mwiz { display: none; }
@media (max-width: 680px) {
  .m-hide { display: none !important; }
  .mwiz { display: block; padding: clamp(14px, 4vw, 24px) 0 clamp(24px, 7vw, 40px); }
  /* tiêu đề luôn 1 dòng: cỡ chữ co theo bề ngang máy (LS Duy 23/11/2026) */
  .mwiz-title { font-size: min(1.6rem, calc((100vw - 32px) / 15.5)); white-space: nowrap; margin: 0 0 12px; color: var(--navy); line-height: 1.25; }
  .mw-step h2 { font-size: clamp(1.05rem, 4.6vw, 1.3rem); margin: 0 0 12px; color: #7A1F2E; }   /* câu hỏi mỗi bước màu đỏ bordeaux theo tone (LS Duy 23/11/2026) */
  /* ô ảnh: tự chia cột theo bề rộng máy (máy 320px → 2 cột, máy ngang/to → 3 cột) */
  .mw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 42vw), 1fr)); gap: clamp(8px, 2.6vw, 14px); }
  /* ô = ảnh ở trên (căn giữa, không bị nhãn che) + thanh tên ở dưới, căn giữa, luôn cao 2 dòng để các ô đều nhau (LS Duy 23/11/2026) */
  .mw-tile { position: relative; display: flex; flex-direction: column; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: #1f3557; cursor: pointer; box-shadow: 0 4px 12px rgba(21,37,61,.12); -webkit-tap-highlight-color: transparent; font: inherit; }
  .mw-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; object-position: center center; background: #efe5d1; }
  .mw-tile span { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; min-height: calc(2.5em + 14px); padding: 7px 8px; box-sizing: border-box; color: #fff; font-weight: 700; font-size: clamp(.8rem, 3.6vw, .98rem); line-height: 1.25; background: linear-gradient(135deg, #2a4568 0%, #1f3557 55%, #15253d 100%); }
  .mw-tile.mw-field { background: linear-gradient(135deg, #faf6ee 0%, #efe5d1 100%); }
  .mw-tile:active { transform: scale(.98); }
  .mw-tile.sel { border-color: #7A1F2E; box-shadow: 0 0 0 3px rgba(122,31,46,.25); }
  .mw-tile.sel::after { content: "✓"; position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 50%; background: #7A1F2E; color: #fff; display: grid; place-items: center; font-weight: 700; }
  .mw-skip, .mw-back { display: block; width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px dashed #c9b88f; background: #fff; color: var(--navy); font: inherit; font-size: .95rem; cursor: pointer; }
  .mw-skip-red { border: 0; background: var(--gold-grad); color: #fff; font-weight: 700; font-size: 1rem; padding: 14px 12px; box-shadow: 0 8px 20px rgba(122,31,46,.25); }   /* LS Duy 23/11/2026 */
  .mw-back { border: 0; background: transparent; color: #7A1F2E; font-weight: 600; text-align: left; padding-left: 0; }
  .mw-picked { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .mw-picked button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; font: inherit; cursor: pointer; min-width: 0; }
  .mw-picked small { display: block; color: #8a8174; font-size: .74rem; }
  .mw-picked b { display: block; color: var(--navy); font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }   /* xuống dòng, không cắt chữ (LS Duy 23/11/2026) */
  .mw-picked i { font-style: normal; color: #7A1F2E; font-size: .78rem; font-weight: 600; }
  .mw-f { display: block; margin-bottom: 12px; }
  .mw-f > span { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
  /* chữ trong ô nhập ≥16px để iPhone không tự phóng to */
  .mw-f input, .mw-f select, .mw-f textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #d8cfbf; border-radius: 10px; background: #fff; color: var(--navy); }
  .mw-f input:focus, .mw-f select:focus, .mw-f textarea:focus { outline: none; border-color: #7A1F2E; box-shadow: 0 0 0 3px rgba(122,31,46,.15); }
  .mw-when { display: flex; flex-wrap: wrap; gap: 8px; }
  .mw-when input { flex: 1 1 150px; min-width: 0; }
  .mw-when select { flex: 1 1 100px; min-width: 0; }
  .mw-modes { display: flex; flex-wrap: wrap; gap: 8px; }
  /* 24/11/2026: ô radio ẩn trước đây "position:absolute" không có khung chứa → nằm lệch ra ngoài, kéo trang rộng ~540px
     (máy Samsung LS Duy: màn cảm ơn tràn khổ). Nay ghim ô radio vào trong nhãn của nó. */
  .mw-modes label { flex: 1 1 auto; position: relative; min-width: 0; }
  .mw-modes input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
  .mw-modes span { display: block; text-align: center; padding: 10px 12px; border: 1px solid #d8cfbf; border-radius: 999px; background: #fff; font-size: .92rem; cursor: pointer; }
  .mw-modes input:checked + span { background: #1f3557; border-color: #1f3557; color: #fff; }
  .mw-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: #5d574e; margin: 4px 0 14px; }
  .mw-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; accent-color: #7A1F2E; }
  .mw-submit { display: block; width: 100%; padding: 14px; font-size: 1.05rem; box-shadow: 0 8px 20px rgba(122,31,46,.25); }
}
@media (max-width: 340px) { .mw-picked { grid-template-columns: 1fr; } }

/* logo chìm góc trên phải ảnh lĩnh vực (LS Duy 23/11/2026): phủ bằng CSS bám mép khung, không nằm trong SVG nữa vì khung 150px cắt mất phần trên của ảnh */
/* ảnh đại diện Dịch vụ pháp lý cũng có logo chìm như vậy (LS Duy 23/11/2026): trang chủ, /dich-vu, trang chi tiết */
.field-card .field-photo:has(img[src*="/linh-vuc/"])::after,
.field-card .field-photo:has(img[src*="/dich-vu/"])::after,
.svc .svc-art:has(img[src*="/dich-vu/"])::after,
.svd-art:has(img[src*="/dich-vu/"])::after { content: ""; position: absolute; top: 8px; right: 10px; width: 30%; max-width: 150px; aspect-ratio: 905 / 268; background: url(img/aca-logo-ngang-v3.png) no-repeat right top / contain; opacity: .38; pointer-events: none; }
