:root {
    --tsl-blue: #0969e8;
    --tsl-navy: #062e62;
    --tsl-deep: #00264e;
    --tsl-cyan: #18a8ff;
    --tsl-text: #024492;
    --tsl-muted: #5d708b;
    --tsl-border: #dce8f7;
    --tsl-bg: #f4f8fd;
    --tsl-white: #fff;
    --tsl-radius: 10px;
    --tsl-shadow: 0 8px 24px rgba(3, 45, 99, .09);
    --tsl-container: 1320px
}

*,
*:before,
*:after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--tsl-text);
    background: #fff;
    font-family: var(--tsl-font-body, Arial, sans-serif);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased
}

body.menu-open {
    overflow: hidden
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
textarea {
    font: inherit
}

.tsl-container {
    width: min(var(--tsl-container), calc(100% - 48px));
    margin-inline: auto
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.screen-reader-text:focus {
    clip: auto !important;
    width: auto;
    height: auto;
    margin: 12px;
    padding: 12px;
    background: #fff;
    color: #000;
    z-index: 1000
}

.tsl-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid var(--tsl-blue);
    border-radius: 7px;
    background: var(--tsl-blue);
    color: #fff;
    font-weight: 700;
    transition: background-color .2s, border-color .2s, color .2s
}

.tsl-button svg,
.text-link svg,
.section-heading>a svg {
    width: 17px;
    height: 17px
}

.tsl-button:hover,
.tsl-button:focus-visible {
    background: #0054c5;
    border-color: #0054c5
}

.tsl-button--outline {
    background: #fff;
    color: var(--tsl-blue)
}

.tsl-button--outline:hover {
    color: #fff
}

.tsl-button--small {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 15px
}

.tsl-button--white {
    background: #fff;
    border-color: #fff;
    color: var(--tsl-blue)
}

.tsl-button--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .7)
}

:focus-visible {
    outline: 3px solid rgba(24, 168, 255, .48);
    outline-offset: 3px
}

.site-main.content-layout {
    padding-block: 48px;
    min-height: 55vh
}

.content-layout h1 {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.16
}

.content-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--tsl-border)
}

.site-footer {
    color: #fff
}

.footer-main {
    background: linear-gradient(120deg, #063b75, #00234a);
    padding: 55px 0 45px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, 1fr);
    gap: 48px
}

.footer-logo img {
    max-height: 58px;
    width: auto
}

.footer-brand strong {
    font-size: 28px
}

.footer-brand p {
    max-width: 350px;
    color: #c7d8ed
}

.footer-column h2 {
    font-size: 15px;
    letter-spacing: .04em;
    margin: 5px 0 18px
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #c7d8ed
}

.footer-column li {
    margin: 8px 0
}

.footer-bottom {
    background: #001e3e;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 15px 0;
    color: #9db5d0;
    font-size: 15px
}

.footer-bottom .tsl-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px
}

.footer-bottom ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0
}
@media(max-width:1024px) {
    
}
@media(max-width:1024px) {
    .tsl-container {
        width: min(100% - 36px, var(--tsl-container))
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px
    }
}

@media(max-width:768px) {
    body {
        font-size: 16px
    }

    .tsl-container {
        width: min(100% - 28px, var(--tsl-container))
    }

    .footer-main {
        padding: 42px 0 32px
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .footer-column {
        border-top: 1px solid rgba(255, 255, 255, .15);
        padding-top: 18px
    }

    .footer-bottom .tsl-container {
        align-items: flex-start;
        flex-direction: column
    }

    .footer-bottom ul {
        flex-wrap: wrap
    }
}

@media(max-width:480px) {
    .tsl-container {
        width: min(100% - 22px, var(--tsl-container))
    }

    .tsl-button {
        width: 100%
    }
}


body {
    font-family: var(--tsl-font-body, Arial, sans-serif)
}

@keyframes phone-pulse {
    0% {
        box-shadow: 0 0 0 0 #062e62;
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(146, 117, 116, 0);
    }
}

/* ---------------------------------------------------------------
   Dải cuộn ngang dùng chung (tab chuyên mục, slider đối tác, ...)
   Điều khiển bằng [data-tsl-rail] trong theme.js.
   --------------------------------------------------------------- */
.tsl-rail {
    min-width: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
}

.tsl-rail::-webkit-scrollbar {
    display: none
}

.tsl-rail>* {
    scroll-snap-align: start
}

.tsl-rail.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none
}

.tsl-rail-arrow {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid #bdd8f4;
    border-radius: 50%;
    background: var(--tsl-white);
    color: #166dca;
    cursor: pointer;
    box-shadow: 0 4px 13px rgba(18, 93, 170, .1);
    transition: .2s
}

.tsl-rail-arrow:hover:not(:disabled) {
    border-color: var(--tsl-blue);
    background: var(--tsl-blue);
    color: var(--tsl-white)
}

.tsl-rail-arrow:disabled {
    opacity: .45;
    cursor: default
}

.tsl-rail-arrow[hidden] {
    display: none
}

.tsl-rail-arrow svg {
    width: 17px
}

.tsl-rail-arrow--prev svg,
.tsl-rail-arrow[data-tsl-rail-prev] svg {
    transform: rotate(180deg)
}

@media (prefers-reduced-motion: reduce) {
    .tsl-rail {
        scroll-behavior: auto
    }
}

/* ---------------------------------------------------------------
   Khối "Nhận demo & báo giá" dùng chung cho nhiều trang.
   Render bằng tsl_quote_section() trong inc/quote-section.php.
   Đặt --tsl-quote-margin để chỉnh khoảng cách trên/dưới theo ngữ cảnh.
   --------------------------------------------------------------- */
.tsl-quote {
    position: relative;
    display: grid;
    grid-template-columns: 1.8fr .9fr;
    gap: 38px;
    overflow: hidden;
    margin: var(--tsl-quote-margin, 58px) 0 0;
    padding: 22px 24px 22px 36px;
    border-radius: 22px;
    background: #06489f;
    color: var(--tsl-white);
    box-shadow: 0 16px 38px rgba(3, 66, 154, .2)
}

.tsl-quote:before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1, 48, 117, .96) 0%, rgba(2, 70, 154, .74) 48%, rgba(4, 79, 170, .25));
    content: ""
}

/*
 * Chỉ khi có ảnh nền mới thêm lớp var(--quote-bg). Nếu gộp chung một khai báo,
 * var() không tồn tại sẽ làm hỏng cả declaration và mất luôn gradient.
 */
.tsl-quote--has-bg:before {
    background: linear-gradient(90deg, rgba(1, 48, 117, .96) 0%, rgba(2, 70, 154, .74) 48%, rgba(4, 79, 170, .25)), var(--quote-bg) center/cover no-repeat
}

.tsl-quote__copy,
.tsl-quote__form {
    position: relative;
    z-index: 1
}

.tsl-quote__copy {
    padding: 26px 0
}

.tsl-quote__copy>span {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .12em
}

.tsl-quote__copy h2 {
        margin: 10px 0;
    color: var(--tsl-white);
    font-size: clamp(34px, 3.7vw, 30px);
    line-height: 1.4;
}

.tsl-quote__copy>p {
    max-width: 580px;
    margin: 0;
    color: #d9eaff;
    font-size: 15px;
    line-height: 1.55
}

.tsl-quote__copy>div {
    display: flex;
    gap: 28px;
    margin: 28px 0
}

.tsl-quote__copy>div>span {
    display: flex;
    align-items: center;
    gap: 10px
}

.tsl-quote__copy>div svg {
    width: 45px;
    height: 45px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%
}

.tsl-quote__copy>div b {
    display: flex;
    flex-direction: column;
    font-size: 15px
}

.tsl-quote__copy>div small {
    margin-top: 3px;
    color: #cde4ff;
    font-weight: 400
}

.tsl-quote blockquote {
    max-width: 600px;
    margin: 0;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    font-size: 15px
}

.tsl-quote blockquote footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: #9fd0ff;
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .02em
}

.tsl-quote blockquote footer:before {
    width: 20px;
    height: 1px;
    flex: none;
    background: currentColor;
    content: ""
}

.tsl-quote__form {
    padding: 22px;
    border-radius: 17px;
    background: var(--tsl-white);
    color: #09275a;
    box-shadow: 0 12px 30px rgba(0, 37, 94, .18)
}

.tsl-quote__form h3 {
    margin: 0;
    font-size: 18px
}

.tsl-quote__form>p {
    margin: 5px 0 14px;
    color: #7185a0;
    font-size: 15px
}

.tsl-quote__form label {
    height: 45px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    margin-bottom: 8px;
    border: 1px solid #d9e6f3;
    border-radius: 9px
}

.tsl-quote__form label svg {
    width: 17px;
    margin: auto;
    color: #325276
}

.tsl-quote__form input,
.tsl-quote__form textarea {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #09275a;
    font: inherit;
    resize: none
}

.tsl-quote__form textarea {
    padding-top: 12px
}

.tsl-quote__form>input[name="website"] {
    position: absolute;
    left: -9999px
}

.tsl-quote__form>button,
.tsl-quote__form>a {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 800
}

.tsl-quote__form>button {
    width: 100%;
    border: 0;
    background: #0873e8;
    color: var(--tsl-white);
    cursor: pointer
}

.tsl-quote__form>a {
    margin-top: 8px;
    border: 1px solid #8abcf4;
    color: #0873e8
}

.tsl-quote__form>button svg,
.tsl-quote__form>a svg {
    width: 17px
}

.tsl-quote__form>small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 9px;
    color: #778ba5;
    font-size: 15px
}

.tsl-quote__form>small svg {
    width: 13px
}

.tsl-quote__form output {
    display: block;
    min-height: 17px;
    margin-top: 8px;
    color: #17864d;
    font-size: 15px;
    text-align: center
}

.tsl-quote__form output.is-error {
    color: #d52d42
}

.tsl-quote__form.is-loading button {
    opacity: .65;
    cursor: wait
}

/* Không có form thì phần nội dung chiếm trọn chiều ngang. */
.tsl-quote--no-form {
    grid-template-columns: 1fr
}

@media(max-width:1050px) {
    .tsl-quote {
        grid-template-columns: 1.3fr 1fr
    }

    .tsl-quote--no-form {
        grid-template-columns: 1fr
    }
}

@media(max-width:700px) {
    .tsl-quote {
        grid-template-columns: 1fr;
        margin-top: var(--tsl-quote-margin-mobile, 38px);
        padding: 18px;
        gap: 18px
    }

    .tsl-quote__copy {
        padding: 10px 0
    }

    .tsl-quote__copy h2 {
        font-size: 38px
    }

    .tsl-quote__copy>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin: 22px 0
    }

    .tsl-quote__form {
        padding: 18px
    }
}

