/* =========================================================
   style.css — SACT Pro Trader Selection
   Nội dung <main> (header/footer có file riêng: header.css,
   footer.css). Trang không dùng breadcrumb.

   Cấu trúc file:
   1. Reset & typography (biến :root và .container nằm ở header.css)
   2. Hero banner
   3. Tabs
   4. Khối text + hình (dùng chung mọi tab)
   5. Các gói tham gia — tab Tổng quan (.navpkg-*)
   6. Các gói tham gia — tab Đăng ký (.regpkg-*) + trạng thái đã chọn
   7. Form đăng ký (.navform-*)
   8. Tab Quy tắc giao dịch (bảng chữ + accordion 13 điều khoản)
   9. Nút & modal "Thanh toán lệ phí thi"
   10. Khối "Bạn cần hỗ trợ thêm?"
   11. RESPONSIVE (gộp toàn bộ @media theo breakpoint)
   ========================================================= */

/* =========================================================
   1. ROOT & RESET
   ========================================================= */
* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro",sans-serif;
    color: #13243a;
    line-height: 1.55
}

h2 {
    font-size: 34px;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--blue);
    margin: 0 0 18px;
    font-weight: 900
}

    h2 em {
        font-style: normal;
        color: var(--cyan)
    }

/* =========================================================
   2. HERO BANNER (khung ảnh đầu bài)
   ========================================================= */
.gioithieu-hero-frame {
    width: 100%;
    min-height: 380px;
    overflow: hidden;
    border-radius: 10px;
}

    .gioithieu-hero-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* =========================================================
   3. TABS
   ========================================================= */
.gioithieu-section {
    background: #fff;
    padding: 30px 0 60px;
}

.gioithieu-page-title {
    color: var(--ink);
    font-size: 30px;
    font-weight: 800;
    text-transform: none;
    margin: 0 0 26px;
}

.gioithieu-tabs-sticky {
    position: sticky;
    top: var(--header-h, 70px);
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 24px;
}

.gioithieu-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f2f4f7;
    border-radius: 8px;
    overflow: hidden;
}

.gioithieu-tab {
    flex: 1;
    text-align: center;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: #475467;
    cursor: pointer;
    transition: .25s;
}

    .gioithieu-tab.is-active {
        background: var(--lightblue);
        color: #101828;
    }

    .gioithieu-tab:hover:not(.is-active) {
        background: #e4e7ec;
    }

.gioithieu-tab-content {
    display: none;
}

    .gioithieu-tab-content.is-active {
        display: block;
    }

/* =========================================================
   4. KHỐI TEXT + HÌNH (dùng chung mọi tab)
   ========================================================= */
.gioithieu-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

    .gioithieu-block + .gioithieu-block {
        margin-top: 60px;
    }

.gioithieu-block-reverse .gioithieu-block-text {
    order: 2;
}

.gioithieu-block-reverse .gioithieu-block-media {
    order: 1;
}

.gioithieu-block-text h3 {
    color: var(--blue);
    font-size: 24px;
    font-weight: 800;
    text-transform: none;
    margin: 0 0 18px;
}

.gioithieu-block-text p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0 0 16px;
}

    .gioithieu-block-text p:last-child {
        margin-bottom: 0;
    }

/* Bảng trong khối text (vd: Lộ trình 2 vòng) */
.gioithieu-table-wrap {
    overflow-x: auto;
    margin: 0 0 16px;
}

.gioithieu-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    font-size: 13px;
}

    .gioithieu-table th,
    .gioithieu-table td {
        padding: 10px 12px;
        text-align: center;
        border-bottom: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

        .gioithieu-table th:last-child,
        .gioithieu-table td:last-child {
            border-right: 0;
        }

    .gioithieu-table thead th {
        background: #c7d3f8;
        color: var(--ink);
        font-weight: 800;
    }

    .gioithieu-table tbody td {
        color: var(--muted);
    }

        .gioithieu-table tbody td:first-child {
            background: #eaf5ff;
            color: var(--ink);
            font-weight: 700;
            text-align: left;
        }

    .gioithieu-table tbody tr:last-child td {
        border-bottom: 0;
    }

.gioithieu-block-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
}

    .gioithieu-block-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* =========================================================
   5. CÁC GÓI THAM GIA — TAB TỔNG QUAN (.navpkg-*)
   Cột 5 phần: 1.5 title | 3.5 swiper card, không gap
   ========================================================= */
.navpkg-block.gioithieu-block {
    grid-template-columns: 3fr 5fr;
    align-items: stretch;
}

.navpkg-right {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr;
    gap: 0;
    overflow: hidden;
}

/* ---- Cột title (1.5 phần) ---- */
.navpkg-legend {
    display: grid;
    border-radius: 15px;
    grid-template-rows: 84px repeat(7, 46px) 104px;
    row-gap: 0;
    padding: 20px 24px 24px;
}

.navpkg-legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

    .navpkg-legend-row:last-of-type {
        border-bottom: 0;
    }

    .navpkg-legend-row span {
        color: black;
        font-size: 13px;
        font-weight: 700;
    }

.navpkg-legend-foot {
    align-self: start;
    margin: 24px 0 0;
    color: #7c8ba1;
    font-size: 12px;
}

/* ---- Cột swiper card (3.5 phần) ---- */
.navpkg-swiper-wrap {
    position: relative;
    padding: 0 24px 24px 0;
    min-width: 0;
}

.navpkg-swiper {
    overflow: hidden;
}

/* ---- Nút mũi tên chuyển gói ---- */
.navpkg-nav {
    position: absolute;
    top: calc((100% - 24px) / 2);
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.7);
    color: var(--blue);
    box-shadow: 0 6px 16px rgba(7, 59, 120, .28);
    cursor: pointer;
    transition: background .25s, color .25s, transform .25s;
}

.navpkg-nav:hover {
    background: var(--cyan);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

    .navpkg-nav:focus-visible {
        outline: 2px solid var(--cyan);
        outline-offset: 2px;
    }

.navpkg-prev {
    left: -20px;
}

.navpkg-next {
    right: 4px;
}

.navpkg-card {
    position: relative;
    display: grid;
    grid-template-rows: 84px repeat(7, 46px) 104px;
    row-gap: 0;
    background: linear-gradient(0deg, #092650, var(--blue));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
}

.navpkg-card-tag,
.regpkg-card-tag {
    position: absolute;
    top: 14px;
    right: 18px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.navpkg-card-head,
.regpkg-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.navpkg-card-label,
.regpkg-card-label {
    display: block;
    color: #a1a7b1;
    font-size: 12px;
    margin-bottom: 6px;
}

.navpkg-card-amount,
.regpkg-card-amount {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.navpkg-card-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #aeb8c7;
    font-size: 12px;
}

    .navpkg-card-steps b {
        color: #fff;
        font-weight: 700;
        margin-left: 5px;
    }

.navpkg-card-value {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.navpkg-card-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(34,197,94,.15);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
}

.navpkg-card-footer {
    align-self: start;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.navpkg-card-price,
.regpkg-card-price {
    text-align: center;
    color: var(--cyan);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 14px;
}

.navpkg-card-cta {
    display: block;
    text-align: center;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    background: var(--cyan);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

    .navpkg-card-cta:hover {
        background: var(--blue);
    }

/* =========================================================
   6. CÁC GÓI THAM GIA — TAB ĐĂNG KÝ (.regpkg-*)
   ========================================================= */

/* ---- Trạng thái 1: chọn gói — cột 1.5fr title | 5.5fr swiper ---- */
.regpkg-right {
    display: grid;
    grid-template-columns: 1.5fr 5.5fr;
    gap: 0;
}

.regpkg-legend {
    display: grid;
    grid-template-rows: 84px repeat(7, 46px) 100px;
    row-gap: 0;
    padding: 20px 36px 24px 0;
}

.regpkg-legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--line);
}

    .regpkg-legend-row:last-of-type {
        border-bottom: 0;
    }

    .regpkg-legend-row::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--cyan);
        flex-shrink: 0;
    }

    .regpkg-legend-row span {
        color: var(--ink);
        font-size: 13px;
        font-weight: 700;
    }

.regpkg-legend-foot {
    align-self: flex-start;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.regpkg-swiper-wrap {
    padding: 0 0 24px;
    min-width: 0;
}

.regpkg-swiper {
    overflow: visible;
    height: auto;
}

    .regpkg-swiper .swiper-wrapper {
        height: auto;
        align-items: stretch;
    }

    .regpkg-swiper .swiper-slide {
        height: auto;
    }

.regpkg-card {
    position: relative;
    display: grid;
    grid-template-rows: 84px repeat(7, 46px) 100px;
    row-gap: 0;
    background: linear-gradient(0deg, #092650, var(--blue));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .regpkg-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 30px rgba(7,86,175,.25);
    }

.regpkg-card-footer {
    align-self: flex-start;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.regpkg-card-cta {
    display: block;
    width: 100%;
    text-align: center;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    background: var(--cyan);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
}

    .regpkg-card-cta:hover {
        background: #0f68c9;
    }

/* ---- Trạng thái 2: đã chọn gói — legend+card trái (2.5) : form phải (4.5) ---- */
.regpkg-chosen:not([hidden]) {
    display: grid;
    grid-template-columns: 2.5fr 4.5fr;
    gap: 40px;
    align-items: start;
}

.regpkg-chosen-left {
    position: sticky;
    top: calc(var(--header-h, 70px) + 90px);
}

.regpkg-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 0;
}

    .regpkg-back:hover {
        color: var(--cyan);
    }

.regpkg-chosen-card .regpkg-card {
    cursor: default;
}

    .regpkg-chosen-card .regpkg-card:hover {
        transform: none;
        box-shadow: none;
    }

.regpkg-chosen-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    align-items: start;
}

.regpkg-form-title {
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    text-transform: none;
    margin: 0 0 20px;
}

    .regpkg-form-title span {
        color: var(--cyan);
    }

/* =========================================================
   7. FORM ĐĂNG KÝ (CF7: SACT Pro Trader Selection)
   ========================================================= */
.navform-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 15px 35px rgba(7,86,175,.1);
}

.navform-intro {
    color: var(--ink);
    font-size: 15px;
    margin: 0 0 24px;
}

.navform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-bottom: 24px;
}

.navform-field-full {
    grid-column: 1 / -1;
}

.navform-field label {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

    .navform-field label span {
        color: #ff6b6b;
    }

.navform-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px 16px;
    font: inherit;
    font-size: 14px;
    color: #13243a;
    background: #fff;
}

    .navform-input::placeholder {
        color: #98a2b3;
    }

    .navform-input:focus {
        outline: 2px solid var(--cyan);
        outline-offset: 1px;
    }

.navform-textarea {
    min-height: 100px;
    resize: vertical;
}

.navform-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 12px 16px;
    background: var(--light);
}

.navform-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.navform-upload-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.navform-upload-name {
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navform-upload.has-file .navform-upload-name {
    color: var(--ink);
    font-weight: 600;
}

.navform-hint {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.navform-submit {
    font-family: "Be Vietnam Pro";
    display: block;
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 10px;
    padding: 16px;
    background: var(--cyan);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
}

    .navform-submit:hover {
        background: var(--blue);
    }

/* =========================================================
   8. TAB QUY TẮC GIAO DỊCH
   ========================================================= */
/* ---- Bảng 2 cột dạng chữ (bảng xử lý vi phạm) ---- */
.gioithieu-table--text tbody td:first-child {
    width: 46%;
}

.gioithieu-table--text thead th:not(:first-child) {
    text-align: left;
}

.gioithieu-table--text tbody td:not(:first-child) {
    color: #344054;
    font-weight: 500;
    text-align: left;
}

/* ---- Accordion "Xem đầy đủ 13 điều khoản" ---- */
.rules-full {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15,72,145,.1);
}

    .rules-full > summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 22px;
        background: linear-gradient(180deg,#0f68c9,var(--blue));
        color: #fff;
        font-size: 17px;
        font-weight: 800;
        cursor: pointer;
        list-style: none;
    }

        .rules-full > summary::-webkit-details-marker,
        .rules-item > summary::-webkit-details-marker {
            display: none;
        }

        .rules-full > summary i {
            width: 10px;
            height: 10px;
            border-right: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(45deg);
            transition: transform .25s;
            flex-shrink: 0;
        }

    .rules-full[open] > summary i {
        transform: rotate(-135deg);
    }

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: #f4f8ff;
}

.rules-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

    .rules-item > summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        color: var(--ink);
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

        .rules-item > summary > span:nth-child(2) {
            flex: 1;
        }

        .rules-item > summary i {
            width: 8px;
            height: 8px;
            border-right: 2px solid var(--ink);
            border-bottom: 2px solid var(--ink);
            transform: rotate(45deg);
            transition: transform .25s;
            flex-shrink: 0;
        }

    .rules-item[open] > summary i {
        transform: rotate(-135deg);
    }

    .rules-item p {
        margin: 0;
        padding: 0 16px 16px 56px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.7;
    }

.rules-item-num {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cyan);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

/* =========================================================
   9. NÚT & MODAL "THANH TOÁN LỆ PHÍ THI"
   ========================================================= */
.regpkg-form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

    .regpkg-form-title-row .regpkg-form-title {
        margin: 0;
    }

.regpkg-pay-btn {
    font-family: "Be Vietnam Pro";
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    padding: 15px 26px;
    background: linear-gradient(135deg, #07b47e, #34d399);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(7,180,126,.45);
    animation: regpkg-pay-shake 2.4s ease-in-out infinite;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .regpkg-pay-btn:hover {
        animation: none;
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 14px 32px rgba(7,180,126,.55);
    }

    .regpkg-pay-btn::before {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 15px;
        background: linear-gradient(135deg, #07b47e, #34d399);
        opacity: .5;
        filter: blur(10px);
        z-index: -1;
        animation: regpkg-pay-glow 2.4s ease-in-out infinite;
    }

.regpkg-pay-btn-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: regpkg-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes regpkg-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,.6);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(255,255,255,0);
    }
}

@keyframes regpkg-pay-shake {
    0%, 75%, 100% {
        transform: rotate(0) scale(1);
    }

    78% {
        transform: rotate(-4deg) scale(1.03);
    }

    82% {
        transform: rotate(4deg) scale(1.03);
    }

    86% {
        transform: rotate(-3deg) scale(1.02);
    }

    90% {
        transform: rotate(2deg) scale(1.01);
    }

    94% {
        transform: rotate(0) scale(1);
    }
}

@keyframes regpkg-pay-glow {
    0%, 100% {
        opacity: .35;
    }

    50% {
        opacity: .65;
    }
}

/* ---- Ô vuông "Thanh toán" cố định (top/right do main.js đặt) ---- */
.regpkg-pay-float {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 90;
    width: 64px;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #07b47e, #34d399);
    color: #fff;
    font-family: "Be Vietnam Pro";
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(7,180,126,.4);
    opacity: 0;
    visibility: hidden;
    transform: scale(.6);
    transform-origin: top right;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

    .regpkg-pay-float.is-visible {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

        .regpkg-pay-float.is-visible:hover {
            transform: translateY(-2px);
        }

.regpkg-pay-float-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
}

.regpay-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,10,25,.75);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .regpay-modal.is-open {
        display: flex;
    }

.regpay-modal-box {
    position: relative;
    width: 100%;
    max-width: 570px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    box-shadow: 0 25px 60px rgba(0,0,0,.4);
}

.regpay-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--light);
    color: var(--ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: .25s;
}

    .regpay-modal-close:hover {
        background: var(--cyan);
        color: #fff;
    }

.regpay-modal-qr {
    width: 300px;
    aspect-ratio: 1;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}

    .regpay-modal-qr img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.regpay-modal-info-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px;
}

.regpay-modal-info ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

    .regpay-modal-info ul b {
        color: var(--ink);
        font-weight: 700;
    }

.regpay-highlight {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 700;
}

/* =========================================================
   10. KHỐI "BẠN CẦN HỖ TRỢ THÊM?" (dùng chung cuối trang)
   ========================================================= */
.support-section {
    background: #f4f8ff;
    padding: 30px 0;
}

.support-card {
    background: linear-gradient(135deg, #092650, var(--blue));
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: 0 20px 45px rgba(7,86,175,.18);
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 50px;
    align-items: center;
}

.support-intro {
    color: #fff;
}

.support-title {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    text-transform: none;
    margin: 0 0 16px;
}

.support-desc {
    color: #d6e3f1;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 24px;
}

.support-hotline {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .support-hotline span {
        color: #a8c4e8;
        font-size: 13px;
        font-weight: 600;
    }

    .support-hotline a {
        color: var(--cyan);
        font-size: 30px;
        font-weight: 800;
        text-decoration: none;
    }

        .support-hotline a:hover {
            color: #85e4ff;
        }

.support-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.support-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .support-field label {
        color: #d6e3f1;
        font-size: 13px;
        font-weight: 600;
    }

        .support-field label span {
            color: #ff6b6b;
        }

    .support-field input,
    .support-field select {
        border: 0;
        border-radius: 8px;
        padding: 13px 16px;
        font-size: 14px;
        color: #13243a;
        background: #fff;
    }

        .support-field input::placeholder {
            color: #98a2b3;
        }

.support-submit {
    font-family: "Be Vietnam Pro";
    grid-column: 1 / -1;
    border: 0;
    border-radius: 8px;
    padding: 15px 26px;
    background: var(--cyan);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: .3s;
}

    .support-submit:hover {
        background: #85e4ff;
        color: #002b45;
    }


/* =========================================================
   KHỐI "CẦN TƯ VẤN THÊM?" — CTA liên hệ Zalo
   ========================================================= */
.support-cta {
    background: linear-gradient(135deg, #092650, var(--blue));
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 20px 45px rgba(7,86,175,.18);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

    .support-cta .support-title {
        margin: 0 0 14px;
    }

    .support-cta .support-desc {
        margin: 0;
    }

        .support-cta .support-desc b {
            color: #fff;
        }

.support-cta-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.support-zalo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    padding: 15px 30px;
    background: #0068ff;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,104,255,.4);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .support-zalo-btn img {
        width: 38px;
        height: 38px;
        object-fit: contain;
    }

    .support-zalo-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(0,104,255,.5);
    }

.support-cta .support-hotline {
    align-items: center;
    margin-top: 20px;
}

@media (max-width: 600px) {
    .support-cta {
        padding: 36px 24px;
    }

    .support-zalo-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   THÔNG BÁO eKYC (tab Đăng ký tham gia) — 2 cột 2:1
   ========================================================= */
.regpkg-ekyc {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 20px;
}

.regpkg-ekyc-text p {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
}

.regpkg-ekyc-apps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.regpkg-ekyc-app {
    display: block;
    width:150px;
    height: auto;
    border-radius: 5px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .regpkg-ekyc-app:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(7,86,175,.15);
    }

    .regpkg-ekyc-app img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

@media (max-width: 600px) {
    .regpkg-ekyc {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .regpkg-ekyc-apps {
        flex-direction: row;
    }

    .regpkg-ekyc-app {
        flex: 1;
    }
}

/* =========================================================
   11. RESPONSIVE (gộp toàn bộ @media theo breakpoint — đặt
   SAU mọi rule gốc ở trên để cascade không đổi kết quả)
   ========================================================= */

@media (max-width: 1200px) {
    .support-card {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 991px) {

    /* ---- Hero ---- */
    .gioithieu-hero-frame {
        height: 300px;
    }

    /* ---- Khối text+hình ---- */
    .gioithieu-block {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .gioithieu-block-reverse .gioithieu-block-text,
    .gioithieu-block-reverse .gioithieu-block-media {
        order: initial;
    }

    /* ---- Các gói tham gia — tab Tổng quan ---- */
    .navpkg-block.gioithieu-block {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .navpkg-right {
        grid-template-columns: 1fr;
    }

    .navpkg-legend {
        grid-template-rows: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 22px;
        padding: 24px 20px;
    }

    .navpkg-legend-spacer {
        display: none;
    }

    .navpkg-legend-row {
        border-bottom: 0;
        padding-bottom: 0;
        flex: 1 1 45%;
    }

    .navpkg-legend-foot {
        flex: 1 1 100%;
    }

    .navpkg-swiper-wrap {
        padding: 0 20px 24px;
    }

    .navpkg-prev {
        left: 0;
    }

    .navpkg-next {
        right: 0;
    }

    /* ---- Các gói tham gia — tab Đăng ký ---- */
    .regpkg-right {
        grid-template-columns: 1fr;
    }

    .regpkg-legend {
        grid-template-rows: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 22px;
        padding: 0 0 20px;
    }

    .regpkg-legend-row {
        border-bottom: 0;
        flex: 1 1 45%;
    }

    .regpkg-legend-foot {
        flex: 1 1 100%;
    }

    .regpkg-chosen:not([hidden]) {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .regpkg-chosen-left {
        position: static;
    }

    .regpkg-chosen-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gioithieu-hero-frame {
        height: 220px;
    }

    .gioithieu-tab {
        padding: 14px 8px;
        font-size: 13px;
    }

    .gioithieu-page-title {
        font-size: 24px;
    }

    .navform-box {
        padding: 22px;
    }

    .navform-grid {
        grid-template-columns: 1fr;
    }

    .rules-item p {
        padding-left: 16px;
    }

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

@media (max-width: 600px) {
    .support-form {
        grid-template-columns: 1fr;
    }

    .support-card {
        padding: 30px 24px;
    }

    .regpkg-form-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .regpkg-pay-btn {
        width: 100%;
        justify-content: center;
    }

    .regpkg-pay-float {
        width: 56px;
        height: 56px;
    }

    .navpkg-legend-row {
        flex: 1 1 100%;
    }

    /* ---- Mobile: gộp legend vào từng card (.navpkg-card & .regpkg-card) ---- */

    .navpkg-legend,
    .regpkg-legend {
        display: none;
    }

    .navpkg-right,
    .regpkg-right {
        grid-template-columns: 1fr;
    }

    .navpkg-swiper-wrap,
    .regpkg-swiper-wrap {
        padding: 0;
    }

    .navpkg-nav {
        top: 62px;
        width: 34px;
        height: 34px;
    }

    .navpkg-prev {
        left: 8px;
    }

    .navpkg-next {
        right: 8px;
    }

    .navpkg-card,
    .regpkg-card {
        display: block;
        padding: 24px;
    }

    .navpkg-card-head,
    .regpkg-card-head {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 16px;
    }

    .navpkg-card-footer,
    .regpkg-card-footer {
        display: flex;
        flex-direction: column;
        gap: 12px;
        border-top: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        padding-top: 0;
        padding-bottom: 20px;
        margin-bottom: 16px;
    }

    .navpkg-card-price,
    .regpkg-card-price {
        margin: 0;
    }

    .navpkg-card-steps {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 10px;
        padding: 10px 0;
        margin: 0;
        border-bottom: 1px dashed rgba(255,255,255,.15);
    }

        .navpkg-card-steps::before {
            content: attr(data-label);
            grid-column: 1;
            grid-row: 1 / 3;
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            line-height: 1.3;
        }

        .navpkg-card-steps > span {
            grid-column: 2;
            display: block;
            text-align: right;
            font-size: 13px;
            color: #aeb8c7;
            margin: 2px 0;
        }

    .navpkg-card-value {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        font-size: 13px;
        font-weight: 400;
        padding: 12px 0;
        margin: 0;
        border-bottom: 1px dashed rgba(255,255,255,.15);
    }

        .navpkg-card-value:last-of-type {
            border-bottom: 0;
        }

        .navpkg-card-value::before {
            content: attr(data-label);
            color: #fff;
            font-weight: 800;
            font-size: 13px;
        }
}

@media (max-width: 480px) {
    .gioithieu-hero-frame {
        height: 180px;
    }

    .regpay-modal-box {
        padding: 26px 20px 22px;
    }

    .regpay-modal-qr {
        width: 180px;
    }
}


/* =========================================================
   12. WORDPRESS: Contact Form 7 + thanh admin bar
   ========================================================= */
.navform-box .wpcf7-form-control-wrap { display: block; }
.navform-box .wpcf7 form { margin: 0; }
.navform-box .wpcf7-not-valid-tip { color: #dc2626; font-size: 12px; margin-top: 6px; display: block; }
.navform-box .wpcf7-response-output { margin: 20px 0 0; border-radius: 10px; font-size: 14px; }
.navform-box .wpcf7-spinner { display: block; margin: 12px auto 0; }
.navform-box input[type="submit"].navform-submit { font-family: "Be Vietnam Pro"; }

.admin-bar .site-header { top: 32px; }
.admin-bar .gioithieu-tabs-sticky { top: calc(var(--header-h, 70px) + 32px); }
@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar .gioithieu-tabs-sticky { top: calc(var(--header-h, 70px) + 46px); }
}
@media (max-width: 600px) {
    /* admin bar trên mobile không cố định -> không cần bù */
    .admin-bar .site-header { top: 0; }
    .admin-bar .gioithieu-tabs-sticky { top: var(--header-h, 70px); }
}
/* Fix: để input file phủ theo .navform-upload thay vì thẻ bọc của CF7 */
.navform-upload .wpcf7-form-control-wrap {
    position: static;
}

.navform-upload .navform-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* =========================================================
   13. HIỆU ỨNG HIỆN DẦN KHI CUỘN (class .reveal do main.js thêm)
   ========================================================= */

/* Các khối thông thường: trồi lên + phóng nhẹ */
.reveal {
    opacity: 0;
    transform: translateY(70px) scale(.96);
    transition: opacity 1s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* Khối chữ + hình: khối cha giữ nguyên, 2 cột con tự trượt vào */
.gioithieu-block.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.gioithieu-block.reveal .gioithieu-block-text,
.gioithieu-block.reveal .gioithieu-block-media,
.gioithieu-block.reveal .navpkg-right {
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}

/* Khối thường: chữ từ trái, hình từ phải */
.gioithieu-block.reveal .gioithieu-block-text {
    transform: translateX(-80px);
}

.gioithieu-block.reveal .gioithieu-block-media,
.gioithieu-block.reveal .navpkg-right {
    transform: translateX(80px) scale(.92);
    transition-delay: .2s;
}

/* Khối đảo: ngược lại */
.gioithieu-block-reverse.reveal .gioithieu-block-text {
    transform: translateX(80px);
}

.gioithieu-block-reverse.reveal .gioithieu-block-media {
    transform: translateX(-80px) scale(.92);
}

/* Khi hiện ra */
.gioithieu-block.reveal.is-visible .gioithieu-block-text,
.gioithieu-block.reveal.is-visible .gioithieu-block-media,
.gioithieu-block.reveal.is-visible .navpkg-right {
    opacity: 1;
    transform: none;
}

/* Màn hình nhỏ (chữ và hình xếp dọc): trượt từ dưới lên */
@media (max-width: 991px) {
    .gioithieu-block.reveal .gioithieu-block-text,
    .gioithieu-block-reverse.reveal .gioithieu-block-text {
        transform: translateY(50px);
    }

    .gioithieu-block.reveal .gioithieu-block-media,
    .gioithieu-block-reverse.reveal .gioithieu-block-media,
    .gioithieu-block.reveal .navpkg-right {
        transform: translateY(50px) scale(.94);
    }
}

/* Người dùng tắt chuyển động trên máy: hiện luôn */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .gioithieu-block.reveal .gioithieu-block-text,
    .gioithieu-block.reveal .gioithieu-block-media,
    .gioithieu-block.reveal .navpkg-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =========================================================
   14. BANNER: ẢNH RIÊNG CHO ĐIỆN THOẠI
   ========================================================= */
.gioithieu-hero-frame picture {
    display: block;
    height: 100%;
}

@media (max-width: 768px) {
    /* Có ảnh điện thoại: để ảnh tự cao theo tỉ lệ, không cắt */
    .gioithieu-hero-frame.has-mobile {
        height: auto;
        min-height: 0;
    }

    .gioithieu-hero-frame.has-mobile img {
        height: auto;
        object-fit: contain;
    }
}

/* =========================================================
   15. NHIỀU TAB (> 4): thanh tab cuộn ngang
   ========================================================= */
.gioithieu-tabs.is-scroll {
    overflow-x: auto;
    scrollbar-width: none;
}

.gioithieu-tabs.is-scroll::-webkit-scrollbar {
    display: none;
}

.gioithieu-tabs.is-scroll .gioithieu-tab {
    flex: 1 0 auto;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 16px;
}
