/* =========================================================================
   THS4.0 – Trang Liên hệ (/page/lien-he)
   Scope toàn bộ dưới .ths-contact để không ảnh hưởng trang khác.
   Màu thương hiệu: đỏ #D7261E (gradient #C11019→#B60C13), navy #1F3451.
   ========================================================================= */

.ths-contact {
    --thc-red: #D7261E;
    --thc-red-dark: #B90F16;
    --thc-grad: linear-gradient(225deg, #C11019 0%, #B60C13 100%);
    --thc-navy: #1F3451;
    --thc-ink: #16223a;
    --thc-mut: #5b6577;
    --thc-line: #e5eaf5;
    --thc-bg: #f7fafe;
    --thc-card: #ffffff;
    --thc-radius: 18px;
    --thc-shadow: 0 1px 2px rgba(16, 34, 58, .06), 0 10px 30px rgba(16, 34, 58, .06);
    --thc-shadow-hover: 0 12px 34px rgba(215, 38, 30, .16);

    color: var(--thc-ink);
    background: var(--thc-bg);
    font-size: 16px;
    line-height: 1.6;
    overflow: clip;
}

.ths-contact *,
.ths-contact *::before,
.ths-contact *::after {
    box-sizing: border-box;
}

.ths-contact img {
    max-width: 100%;
    height: auto;
}

/* ---- Section scaffold ---------------------------------------------------- */
.thc-section {
    padding: clamp(40px, 6vw, 76px) 0;
}

.thc-section--tint {
    background:
        radial-gradient(1200px 400px at 100% -10%, #fff4f4 0, transparent 60%),
        var(--thc-bg);
}

.thc-head {
    max-width: 720px;
    margin: 0 auto clamp(24px, 4vw, 44px);
    text-align: center;
}

.thc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--thc-red-dark);
    background: #fdecec;
    border: 1px solid #f6d4d4;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.thc-h2 {
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    color: var(--thc-ink);
}

.thc-lead {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--thc-mut);
    margin: 0;
}

/* ---- Buttons ------------------------------------------------------------- */
.thc-btn {
    --_bg: var(--thc-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    white-space: nowrap;
}

.thc-btn--primary {
    background: var(--thc-grad);
    color: #fff;
    box-shadow: 0 10px 20px rgba(185, 15, 22, .22);
}

.thc-btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(185, 15, 22, .3);
}

.thc-btn--navy {
    background: var(--thc-navy);
    color: #fff;
    box-shadow: 0 10px 20px rgba(31, 52, 81, .24);
}

.thc-btn--navy:hover {
    color: #fff;
    transform: translateY(-2px);
}

.thc-btn--ghost {
    background: #fff;
    color: var(--thc-red-dark);
    border-color: var(--thc-line);
}

.thc-btn--ghost:hover {
    border-color: var(--thc-red);
    color: var(--thc-red-dark);
    transform: translateY(-2px);
}

.thc-btn--block {
    width: 100%;
}

.thc-btn--sm {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 10px;
}

/* Accessible focus ring cho mọi phần tử tương tác */
.ths-contact a:focus-visible,
.ths-contact button:focus-visible,
.ths-contact input:focus-visible,
.ths-contact select:focus-visible,
.ths-contact textarea:focus-visible,
.ths-contact [tabindex]:focus-visible {
    outline: 3px solid rgba(215, 38, 30, .45);
    outline-offset: 2px;
    border-radius: 10px;
}

/* ---- Hero ---------------------------------------------------------------- */
.thc-hero {
    position: relative;
    background:
        radial-gradient(900px 500px at 12% -20%, #fde7e7 0, transparent 55%),
        radial-gradient(900px 600px at 110% 10%, #eef3fb 0, transparent 55%),
        var(--thc-bg);
    padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 64px);
    overflow: clip;
}

.thc-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.thc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--thc-red-dark);
    background: #fff;
    border: 1px solid #f4d3d3;
    padding: 7px 14px;
    border-radius: 999px;
    box-shadow: var(--thc-shadow);
    margin-bottom: 18px;
}

.thc-hero__title {
    font-size: clamp(28px, 4.4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--thc-ink);
}

.thc-hero__title .thc-hl {
    color: var(--thc-red);
}

.thc-hero__desc {
    font-size: clamp(16px, 1.7vw, 19px);
    color: var(--thc-mut);
    margin: 0 0 26px;
    max-width: 46ch;
}

.thc-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero visual: logo + icon kênh (không dùng ảnh bản quyền) */
.thc-hero__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
}

.thc-hero__card {
    position: relative;
    width: min(360px, 100%);
    background: #fff;
    border: 1px solid var(--thc-line);
    border-radius: 24px;
    padding: 30px 26px;
    box-shadow: var(--thc-shadow);
    text-align: center;
    z-index: 2;
}

.thc-hero__logo {
    max-height: 60px;
    width: auto;
    margin: 0 auto 16px;
}

.thc-hero__qrmark {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 14px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: var(--thc-navy);
    background: linear-gradient(135deg, #f5f8fd, #eef3fb);
    border: 1px solid var(--thc-line);
    font-size: 74px;
}

.thc-hero__cardtext {
    font-weight: 700;
    color: var(--thc-ink);
}

.thc-hero__cardsub {
    font-size: 14px;
    color: var(--thc-mut);
}

.thc-hero__chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--thc-line);
    box-shadow: var(--thc-shadow);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 14px;
    z-index: 3;
}

.thc-hero__chip i {
    font-size: 18px;
}

.thc-hero__chip--zalo {
    top: 6%;
    left: -4%;
    color: #0068ff;
}

.thc-hero__chip--fb {
    bottom: 12%;
    left: -6%;
    color: #1877f2;
}

.thc-hero__chip--tiktok {
    top: 18%;
    right: -4%;
    color: #111;
}

/* ---- Quick channel cards ------------------------------------------------- */
.thc-grid {
    display: grid;
    gap: 20px;
}

.thc-grid--channels {
    grid-template-columns: repeat(3, 1fr);
}

.thc-channel {
    position: relative;
    display: flex;
    gap: 18px;
    background: var(--thc-card);
    border: 1px solid var(--thc-line);
    border-radius: var(--thc-radius);
    padding: 26px 24px 22px;
    box-shadow: var(--thc-shadow);
    transition: transform .28s cubic-bezier(.22, .61, .36, 1),
                box-shadow .28s ease, border-color .28s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
}

/* Thanh gradient trượt vào trên đỉnh card */
.thc-channel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--thc-ch-accent, var(--thc-grad));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
    z-index: 1;
}

.thc-channel:hover::before { transform: scaleX(1); }

/* Vầng màu mờ toả từ góc icon khi hover */
.thc-channel::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--thc-ch-tint, rgba(215, 38, 30, .10)), transparent);
    opacity: 0;
    transition: opacity .35s ease, transform .45s ease;
    transform: scale(.7);
    pointer-events: none;
    z-index: -1;
}

.thc-channel:hover::after { opacity: 1; transform: scale(1.15); }

.thc-channel:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(16, 34, 58, .14);
    color: inherit;
}

/* Màu accent theo từng kênh (đổ vào ::before, icon, giá trị) */
.thc-channel--zalo   { --thc-ch-accent: linear-gradient(90deg, #0068ff, #38a1ff); --thc-ch-tint: rgba(0, 104, 255, .12); }
.thc-channel--fb     { --thc-ch-accent: linear-gradient(90deg, #1877f2, #57a2ff); --thc-ch-tint: rgba(24, 119, 242, .12); }
.thc-channel--tiktok { --thc-ch-accent: linear-gradient(90deg, #111, #555);       --thc-ch-tint: rgba(17, 17, 17, .10); }
.thc-channel--navy   { --thc-ch-accent: linear-gradient(90deg, #1F3451, #3e5e8e); --thc-ch-tint: rgba(31, 52, 81, .12); }

.thc-channel__icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 23px;
    color: #fff;
    background: var(--thc-grad);
    box-shadow: 0 8px 18px rgba(185, 15, 22, .25);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}

.thc-channel:hover .thc-channel__icon {
    transform: scale(1.1) rotate(-6deg);
}

.thc-channel__icon--navy   { background: linear-gradient(135deg, #1F3451, #33517d); box-shadow: 0 8px 18px rgba(31, 52, 81, .3); }
.thc-channel__icon--zalo   { background: linear-gradient(135deg, #0068ff, #2e8bff); box-shadow: 0 8px 18px rgba(0, 104, 255, .3); }
.thc-channel__icon--fb     { background: linear-gradient(135deg, #1877f2, #4d97ff); box-shadow: 0 8px 18px rgba(24, 119, 242, .3); }
.thc-channel__icon--tiktok { background: linear-gradient(135deg, #111, #3a3a3a);    box-shadow: 0 8px 18px rgba(17, 17, 17, .3); }

.thc-channel__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.thc-channel__title {
    display: block;
    font-size: 17.5px;
    font-weight: 800;
    margin: 0 0 3px;
    letter-spacing: -.01em;
}

.thc-channel__value {
    display: block;
    font-weight: 700;
    font-size: 15px;
    color: var(--thc-red-dark);
    word-break: break-word;
    margin-bottom: 6px;
}

.thc-channel__desc {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: var(--thc-mut);
    margin: 0 0 12px;
}

.thc-channel__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    font-weight: 700;
    font-size: 14px;
    color: var(--thc-red-dark);
    position: relative;
    padding-bottom: 2px;
}

/* Gạch chân trượt dưới CTA */
.thc-channel__cta::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
    border-radius: 2px;
}

.thc-channel:hover .thc-channel__cta::after { transform: scaleX(1); }

.thc-channel__cta i { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.thc-channel:hover .thc-channel__cta i { transform: translateX(5px); }

/* ---- QR section ---------------------------------------------------------- */
.thc-qr-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.thc-qr-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--thc-line);
    background: #fff;
    color: var(--thc-navy);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .18s ease;
}

.thc-qr-tab:hover {
    border-color: var(--thc-red);
    color: var(--thc-red-dark);
}

.thc-qr-tab[aria-selected="true"] {
    background: var(--thc-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(185, 15, 22, .22);
}

.thc-qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.thc-qr-card {
    display: flex;
    flex-direction: column;
    background: var(--thc-card);
    border: 1px solid var(--thc-line);
    border-radius: var(--thc-radius);
    padding: 18px;
    box-shadow: var(--thc-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.thc-qr-card:hover {
    transform: translateY(-5px);
    border-color: #f3d2d2;
    box-shadow: var(--thc-shadow-hover);
}

.thc-qr-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.thc-qr-card__ic {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 17px;
    background: var(--thc-navy);
}

.thc-qr-card__ic--zalo { background: #0068ff; }
.thc-qr-card__ic--facebook { background: #1877f2; }
.thc-qr-card__ic--tiktok { background: #111; }

.thc-qr-card__channel {
    font-size: 13px;
    color: var(--thc-mut);
    font-weight: 600;
}

.thc-qr-card__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.thc-qr-figure {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--thc-line);
    cursor: zoom-in;
}

.thc-qr-figure__btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    line-height: 0;
}

.thc-qr-figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
}

.thc-qr-figure__zoom {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(22, 34, 58, .72);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.thc-qr-card:hover .thc-qr-figure__zoom { opacity: 1; }

.thc-qr-card__desc {
    font-size: 13.5px;
    color: var(--thc-mut);
    margin: 12px 0 14px;
    flex: 1 0 auto;
}

.thc-qr-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.thc-qr-card__actions .thc-btn { flex: 1; }

.thc-iconbtn {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--thc-line);
    background: #fff;
    color: var(--thc-navy);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .18s ease;
}

.thc-iconbtn:hover {
    border-color: var(--thc-red);
    color: var(--thc-red-dark);
}

/* ---- Form + business layout --------------------------------------------- */
.thc-two {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(22px, 3vw, 40px);
    align-items: start;
}

.thc-panel {
    background: var(--thc-card);
    border: 1px solid var(--thc-line);
    border-radius: 22px;
    padding: clamp(22px, 3vw, 34px);
    box-shadow: var(--thc-shadow);
}

.thc-panel__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}

.thc-panel__sub {
    color: var(--thc-mut);
    margin: 0 0 22px;
}

.thc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.thc-field {
    margin-bottom: 16px;
}

.thc-label {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    margin-bottom: 7px;
    color: var(--thc-ink);
}

.thc-label .req { color: var(--thc-red); }

.thc-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--thc-ink);
    background: #fff;
    border: 1.5px solid var(--thc-line);
    border-radius: 12px;
    transition: border-color .16s ease, box-shadow .16s ease;
    font-family: inherit;
}

textarea.thc-control {
    min-height: 120px;
    resize: vertical;
}

.thc-control:focus {
    border-color: var(--thc-red);
    box-shadow: 0 0 0 3px rgba(215, 38, 30, .14);
    outline: none;
}

.thc-control::placeholder { color: #9aa4b5; }

.thc-control.is-invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .12);
}

.thc-error {
    display: block;
    color: #e11d48;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.thc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    font-size: 14px;
    color: var(--thc-mut);
}

.thc-check input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--thc-red);
    flex: 0 0 auto;
}

/* honeypot */
.thc-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.thc-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 600;
}

.thc-alert--ok {
    background: #e9f9ef;
    border: 1px solid #b7e6c8;
    color: #157347;
}

.thc-alert--err {
    background: #fdeaea;
    border: 1px solid #f4c4c4;
    color: #c0341d;
}

.thc-alert i { font-size: 20px; margin-top: 1px; }

.thc-btn--loading .thc-btn__idle { display: none; }
.thc-btn__busy { display: none; align-items: center; gap: 8px; }
.thc-btn--loading .thc-btn__busy { display: inline-flex; }

.thc-spin {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: thc-spin .7s linear infinite;
}

@keyframes thc-spin { to { transform: rotate(360deg); } }

/* ---- Business info + map ------------------------------------------------- */
.thc-biz__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.thc-biz__item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.thc-biz__ic {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--thc-red-dark);
    background: #fdecec;
    border: 1px solid #f6d4d4;
}

.thc-biz__k {
    font-size: 13px;
    color: var(--thc-mut);
    font-weight: 600;
}

.thc-biz__v {
    font-weight: 700;
    color: var(--thc-ink);
    word-break: break-word;
}

.thc-biz__v a { color: var(--thc-red-dark); text-decoration: none; }
.thc-biz__v a:hover { text-decoration: underline; }

.thc-map {
    margin-top: 18px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--thc-line);
    background: #eef2f8;
    aspect-ratio: 16 / 10;
}

.thc-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ---- FAQ ----------------------------------------------------------------- */
.thc-faq {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.thc-faq__item {
    background: #fff;
    border: 1px solid var(--thc-line);
    border-radius: 14px;
    box-shadow: var(--thc-shadow);
    overflow: hidden;
}

.thc-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: transparent;
    border: 0;
    text-align: left;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--thc-ink);
    cursor: pointer;
}

.thc-faq__q i {
    flex: 0 0 auto;
    color: var(--thc-red);
    transition: transform .25s ease;
}

.thc-faq__item.is-open .thc-faq__q i { transform: rotate(180deg); }

.thc-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.thc-faq__a-in {
    padding: 0 20px 18px;
    color: var(--thc-mut);
}

/* ---- Final CTA ----------------------------------------------------------- */
.thc-final {
    position: relative;
    background: var(--thc-navy);
    background-image:
        radial-gradient(600px 240px at 8% 0%, rgba(215, 38, 30, .55) 0, transparent 60%),
        radial-gradient(700px 300px at 100% 100%, rgba(215, 38, 30, .35) 0, transparent 55%);
    color: #fff;
    border-radius: 24px;
    padding: clamp(30px, 4vw, 52px);
    text-align: center;
    overflow: hidden;
}

.thc-final__title {
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 800;
    margin: 0 0 10px;
}

.thc-final__desc {
    color: rgba(255, 255, 255, .86);
    font-size: clamp(15px, 1.6vw, 18px);
    max-width: 620px;
    margin: 0 auto 26px;
}

.thc-final__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.thc-final .thc-btn--ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}

.thc-final .thc-btn--ghost:hover {
    background: rgba(255, 255, 255, .2);
    border-color: #fff;
}

/* ---- QR lightbox (overlay tự dựng, không phụ thuộc Bootstrap) ------------ */
.thc-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.thc-lb.is-open { display: flex; }

.thc-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 32, .62);
    backdrop-filter: blur(2px);
    animation: thc-fade .2s ease;
}

.thc-lb__panel {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
    z-index: 1;
    animation: thc-pop .2s ease;
}

@keyframes thc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes thc-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

.thc-lb__body {
    padding: 30px 22px 22px;
    text-align: center;
}

.thc-lb__img {
    width: min(340px, 78vw);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid var(--thc-line);
    background: #fff;
    margin: 0 auto 16px;
    display: block;
}

.thc-lb__title { font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.thc-lb__desc { color: var(--thc-mut); margin: 0 0 18px; }
.thc-lb__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.thc-lb__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: #f1f3f7;
    color: var(--thc-ink);
    display: grid;
    place-items: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
}

.thc-lb__close:hover { background: #e6e9ef; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .thc-qr-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .thc-hero__grid { grid-template-columns: 1fr; }
    .thc-hero__visual { order: -1; min-height: 0; margin-bottom: 6px; }
    .thc-hero__chip { display: none; }
    .thc-two { grid-template-columns: 1fr; }
    .thc-grid--channels { grid-template-columns: repeat(2, 1fr); }
    .thc-qr-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .ths-contact { font-size: 15.5px; }
    .thc-grid--channels { grid-template-columns: 1fr; }
    .thc-qr-grid { grid-template-columns: 1fr; }
    .thc-form-row { grid-template-columns: 1fr; }
    .thc-hero__actions .thc-btn,
    .thc-final__actions .thc-btn { width: 100%; }
    .thc-hero__chip { display: none; }
}

/* ---- Motion: scroll reveal (độc lập, không phụ thuộc WOW/animate.css) ---- */
.ths-contact.thc-reveal-on .thc-anim {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.ths-contact.thc-reveal-on .thc-anim--zoom  { transform: scale(.92); }
.ths-contact.thc-reveal-on .thc-anim--left  { transform: translateX(-30px); }
.ths-contact.thc-reveal-on .thc-anim--right { transform: translateX(30px); }

.ths-contact.thc-reveal-on .thc-anim.is-in {
    opacity: 1;
    transform: none;
}

/* ---- Micro-interactions & subtle ambient motion ------------------------- */
@media (prefers-reduced-motion: no-preference) {

    /* Hero: quầng sáng gradient trôi rất nhẹ */
    .thc-hero::before {
        content: "";
        position: absolute;
        inset: -25% -10% auto -10%;
        height: 75%;
        background: radial-gradient(closest-side, rgba(215, 38, 30, .14), transparent 70%);
        filter: blur(8px);
        animation: thc-drift 16s ease-in-out infinite alternate;
        pointer-events: none;
        z-index: 0;
    }
    .thc-hero > .container { position: relative; z-index: 1; }

    @keyframes thc-drift {
        0%   { transform: translate(-4%, 0)   scale(1);    opacity: .75; }
        100% { transform: translate(7%, 5%)   scale(1.14); opacity: 1; }
    }

    /* Hero card + chip: bồng bềnh nhẹ */
    .thc-hero__card        { animation: thc-float 7s   ease-in-out infinite; }
    .thc-hero__chip--zalo  { animation: thc-float 5.5s ease-in-out infinite; }
    .thc-hero__chip--fb    { animation: thc-float 6.5s ease-in-out .4s infinite; }
    .thc-hero__chip--tiktok{ animation: thc-float 6s   ease-in-out .2s infinite; }

    @keyframes thc-float {
        0%, 100% { transform: translateY(0); }
        50%      { transform: translateY(-7px); }
    }

    /* Ô QR minh hoạ trong hero: vòng pulse mềm (KHÔNG phải QR thật) */
    .thc-hero__qrmark::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        animation: thc-pulse 2.8s ease-out infinite;
    }
    @keyframes thc-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(215, 38, 30, .30); }
        70%  { box-shadow: 0 0 0 14px rgba(215, 38, 30, 0); }
        100% { box-shadow: 0 0 0 0 rgba(215, 38, 30, 0); }
    }

    /* Nút chính: hiệu ứng ánh sáng lướt khi hover */
    .thc-btn--primary { position: relative; overflow: hidden; }
    .thc-btn--primary::after {
        content: "";
        position: absolute;
        top: 0;
        left: -130%;
        width: 55%;
        height: 100%;
        background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
        transform: skewX(-18deg);
        transition: left .6s ease;
        pointer-events: none;
    }
    .thc-btn--primary:hover::after { left: 150%; }

    /* Icon mũi tên ở kênh nhanh nhích nhẹ khi hover đã có; thêm cho card QR CTA */
    .thc-qr-card:hover .thc-qr-card__ic { transform: translateY(-2px); }
    .thc-qr-card__ic { transition: transform .2s ease; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .ths-contact *,
    .ths-contact *::before,
    .ths-contact *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .thc-btn:hover,
    .thc-channel:hover,
    .thc-qr-card:hover { transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE POLISH — audit PC/Tablet/Mobile (2026-08-03)
   PC + Tablet đạt chuẩn sẵn (0 tràn ngang, grid tự xếp đúng)
   ═══════════════════════════════════════════════════════════ */

/* iOS auto-zoom: input/select/textarea dưới 16px bị phóng to trang khi focus */
@media (max-width: 767px) {
    .thc-hero input, .thc-hero select, .thc-hero textarea,
    .thc-section input, .thc-section select, .thc-section textarea {
        font-size: 16px !important;
    }
}

/* Link email/điện thoại: mở rộng vùng chạm (đang ~19px, chuẩn ≥24px) */
@media (max-width: 767px) {
    .thc-hero a[href^="mailto:"], .thc-section a[href^="mailto:"],
    .thc-hero a[href^="tel:"], .thc-section a[href^="tel:"] {
        display: inline-block; padding: 4px 2px; margin: -4px -2px;
    }
}
