/* ==========================================================================
   GLOBAL COMPACT TYPOGRAPHY & LAYOUT SCALING FOR ACCKIT.COM
   Chuẩn hóa giao diện tinh gọn, vừa vặn tỷ lệ màn hình ở mức zoom 100%
   ========================================================================== */

/* 1. Chuẩn hóa Root Font Size: 1rem = 14px (chuẩn SaaS/E-commerce hiện đại, thay vì 16px to bè mặc định) */
html {
    font-size: 14px !important;
    -webkit-text-size-adjust: 100%;
}

body {
    font-size: 0.9375rem; /* ~13.1px - 14px rất vừa mắt, sắc nét */
    line-height: 1.45;
    color: #334155;
    background-color: #f1f5f9;
}

/* 2. Chuẩn hóa tiêu đề headings để thanh thoát, không chiếm quá nhiều diện tích */
h1, .h1 { font-size: 1.5rem !important; margin-bottom: 0.75rem !important; }
h2, .h2 { font-size: 1.3rem !important; margin-bottom: 0.65rem !important; }
h3, .h3 { font-size: 1.15rem !important; margin-bottom: 0.5rem !important; }
h4, .h4 { font-size: 1.05rem !important; margin-bottom: 0.45rem !important; }
h5, .h5 { font-size: 0.95rem !important; margin-bottom: 0.4rem !important; }
h6, .h6 { font-size: 0.85rem !important; margin-bottom: 0.35rem !important; }

/* 3. Tinh gọn khoảng cách khối & lề đệm để xem được nhiều thông tin hơn */
.content {
    padding: 1rem 1.25rem 0.5rem !important;
}

.content-heading {
    margin-bottom: 0.75rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.block {
    margin-bottom: 1rem !important;
}

.block-header {
    padding: 0.65rem 1rem !important;
}

.block-content {
    padding: 0.85rem 1rem 0.5rem !important;
}

.block-content.block-content-full {
    padding-bottom: 0.85rem !important;
}

/* 4. Tinh gọn Bảng dữ liệu (Table) */
.table th, .table td {
    padding: 0.55rem 0.75rem !important;
    vertical-align: middle !important;
    font-size: 0.875rem !important;
}

/* 5. Tinh gọn Nút bấm (Button) & Form Controls */
.btn {
    font-size: 0.875rem;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
}

.btn-sm, .btn-group-sm > .btn {
    font-size: 0.8rem !important;
    padding: 0.25rem 0.6rem !important;
}

.btn-xs {
    font-size: 0.75rem !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 4px;
}

.btn-lg {
    font-size: 1rem !important;
    padding: 0.5rem 1.25rem !important;
}

.form-control {
    font-size: 0.875rem !important;
    padding: 0.4rem 0.75rem !important;
    height: auto !important;
    min-height: 36px !important;
    border-radius: 6px !important;
}

.form-control-lg {
    font-size: 0.95rem !important;
    min-height: 42px !important;
}

.form-control-sm {
    font-size: 0.8rem !important;
    min-height: 30px !important;
}

/* 6. Tinh gọn Menu Sidebar */
.nav-main-link {
    padding: 0.38rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.nav-main-link-name {
    font-size: 0.85rem !important;
}

.nav-main-heading {
    padding: 0.75rem 0.75rem 0.25rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
}

/* 7. Tinh gọn Badges & Alerts */
.badge {
    font-size: 0.75rem;
    font-weight: 700;
}

.alert {
    padding: 0.65rem 1rem !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.85rem !important;
}

/* ==========================================================================
   ORIGINAL CUSTOM STYLES
   ========================================================================== */

.scroll-down {
    opacity: 1;
    -webkit-transition: all 0.5s ease-in 3s;
    transition: all 0.5s ease-in 3s;
}

.scroll-down {
    /* position: absolute; */
    bottom: 25px;
    left: 45%;
    margin-left: -16px;
    z-index: 2;
    -webkit-animation: bounce 2s infinite 2s;
    animation: bounce 2s infinite 2s;
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
    transform: scale(1);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    60% {
        -webkit-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}

.item-custom {
    min-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.item-custom .footer-btn {
    display: block;
    margin-top: auto;
}

.body-qr {
    display: flex;
    flex-wrap: wrap;
}
.body-qr .item-left {
    flex: 40%;
    background: linear-gradient(134deg, #04a468 0%, #0d788c 100%);
    border-radius: 10px;
    padding: 15px;
}
.body-qr .item-left p {
    font-size: 15px;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px dotted #fff;
}
.body-qr .item-left p span {
    font-weight: 700;
    font-size: 17px;
    margin-left: 10px;
}
.body-qr .item-left p:first-child span {
    margin-left: unset;
}
.body-qr .item-left p:last-child {
    border-bottom: unset;
}
.body-qr .item-left p a {
    color: #ffbc0e;
    font-weight: 700;
}
.body-qr .item-left h3 {
    font-size: 20px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}
.body-qr .item-right {
    flex: 60%;
    padding: 30px;
}
.body-qr .item-right h3 {
    font-size: 20px;
    color: #111036;
    text-align: center;
    font-weight: 700;
}
.body-qr .item-right p {
    font-size: 15px;
    margin: 10px 0 5px 0;
    color: #04a468;
    font-weight: 500;
}
.body-qr .item-right p span {
    font-weight: 700;
    font-size: 17px;
}
.body-qr .item-right .img-item img {
    border-radius: unset;
    position: relative;
    width: 100%;
    background-color: unset;
}
@media (max-width: 992px) {
    .body-qr .item-left,
    .body-qr .item-right {
        flex: 100%;
        padding: 0;
    }
    .body-qr .item-left p,
    .body-qr .item-right p {
        font-size: 12px;
    }
    .body-qr .item-left p span,
    .body-qr .item-right p span {
        font-size: 14px;
    }
    .body-qr .item-left p.content-sub,
    .body-qr .item-right p.content-sub {
        font-size: 10px;
    }
    .body-qr .item-left h3,
    .body-qr .item-right h3 {
        font-size: 17px;
    }
    .body-qr .item-left .img-item,
    .body-qr .item-right .img-item {
        text-align: center;
    }
    .body-qr .item-left .img-item img,
    .body-qr .item-right .img-item img {
        width: 60%;
    }
    .body-qr .item-right {
        padding-top: 20px;
    }
    .body-qr .item-left {
        padding: 5px;
    }
    .body-qr .item-left p {
        padding: 5px;
    }
}

.selectpackage {
    cursor: pointer;
    border: 1px solid black;
    background: #fff;
    margin-bottom: 30px;
    transition: 0.5s;
    border-radius: 0.55rem;
    position: relative;
    width: 100%;
}

.item.item-circle {
    border-radius: 50%;
    border: 2px solid black;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    transition: opacity 0.25s ease-out, -webkit-transform 0.25s ease-out;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    transition: opacity 0.25s ease-out, transform 0.25s ease-out,
        -webkit-transform 0.25s ease-out;
}

.selectpackage:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.custom-control-success .custom-control-label::before {
    background-color: #bd4928;
}
