﻿.cacbuoc.hidden {
    display: none;
}

.cacbuoc {
    display: block;
}


.progress-container {
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: #888;
}

    .progress-steps li.active {
        color: #7FCA27;
        font-weight: 600;
    }

.progress-line {
    position: relative;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 8px;
}

.progress-fill {
    position: absolute;
    height: 4px;
    background: #7FCA27;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.reject-section img {
    width: 100px;
    height: auto;
    border-radius: 8px;
}

.reject-item {
    text-align: center;
    /*max-width: 120px;*/
}

.note-list {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.upload-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 16px;
}

.upload-box {
    text-align: center;
}

    .upload-box img {
        width: 225px;
        border: 1px dashed #ccc;
        border-radius: 8px;
        margin-bottom: 8px;
        padding: 20px 30px;
        background: #fafafa;
    }

    .upload-box span {
        display: block;
        font-size: 14px;
        color: black;
    }

.upload-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.upload-box {
    text-align: center;
}

.upload-label {
    cursor: pointer;
    display: inline-block;
    position: relative;
}

.upload-overlay {
    position: relative;
    display: inline-block;
}

    .upload-overlay .img {
        width: 225px;
        border: 1px dashed #ccc;
        border-radius: 8px;
        padding: 20px 30px;
        background: #fafafa;
        transition: all 0.3s ease;
        border-radius: 8px !important;
        object-fit: cover;
    }

/* Mặt nạ làm mờ và icon */
.overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 2;
}

.upload-icon {
    width: 20px;
    height: 20px;
    filter: none;
    z-index: 3;
    position: relative;
}

/* Hover hiệu ứng */
.upload-overlay:hover .overlay-mask {
    opacity: 1;
}

.upload-box span {
    display: block;
    font-size: 14px;
    color: black;
}

.overlay-content {
    text-align: center;
    color: #fff;
}

.upload-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 8px;
}

.overlay-content p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Hiệu ứng hover */
.upload-overlay:hover .overlay-mask {
    opacity: 1;
    cursor: pointer;
}

.upload-overlay .img {
    width: 225px; /* cố định chiều rộng */
    height: 140px; 
    border: 1px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    object-fit: cover; /* cắt ảnh vừa khung, không méo */
    transition: all 0.3s ease;
}

.modal-xxl {
    max-width: 30%; /* lớn hơn modal-xl */
}

.btn-close-custom {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    .btn-close-custom img {
        width: 15px;
        height: 15px;
    }

.progress-container {
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.progress-line {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #7FCA27;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.modal-header {
    color: #000;
    font-size: 16px;
    font-weight: 700;
    background: #fff;
    border-bottom: 1px solid rgba(204, 206, 208, 0.50);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.progress-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Danh sách các bước */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

    .progress-steps li {
        text-align: center;
        flex: 1;
        position: relative;
    }

/* Tên bước */
.step-title {
    display: block;
    margin-bottom: 6px;
}

/* Vòng tròn chứa số */
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Thanh ngang */
.progress-line {
    position: absolute;
    top: 32px; /* canh với vòng tròn */
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    z-index: 1;
}

/* Phần fill màu xanh */
.progress-fill {
    height: 4px;
    background: #7FCA27;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Khi bước active */
.progress-steps li.active .step-circle,
.progress-steps li.active ~ li .step-circle {
    border-color: #ccc;
    background-color: #fff;
    color: #555;
}

/* Các bước đã hoàn thành hoặc đang active */
.progress-steps li.active .step-circle,
.progress-steps li.completed .step-circle {
    background-color: #7FCA27;
    border-color: #7FCA27;
    color: #fff;
}

/* Khi hover (nếu cần hiệu ứng nhẹ) */
.step-circle:hover {
    transform: scale(1.1);
}

.progress-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Danh sách các bước */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

    .progress-steps li {
        text-align: center;
        flex: 1;
        position: relative;
    }

/* Tên bước */
.step-title {
    display: block;
    margin-bottom: 6px;
}

/* Vòng tròn chứa số */
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Thanh ngang */
.progress-line {
    position: absolute;
    top: 32px; /* canh với vòng tròn */
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    z-index: 1;
}

/* Phần fill màu xanh */
.progress-fill {
    height: 4px;
    background: #7FCA27;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Khi bước active */
.progress-steps li.active .step-circle,
.progress-steps li.active ~ li .step-circle {
    border-color: #ccc;
    background-color: #fff;
    color: #555;
}

/* Các bước đã hoàn thành hoặc đang active */
.progress-steps li.active .step-circle,
.progress-steps li.completed .step-circle {
    background-color: #7FCA27;
    border-color: #7FCA27;
    color: #fff;
}

/* Khi hover (nếu cần hiệu ứng nhẹ) */
.step-circle:hover {
    transform: scale(1.1);
}

.progress-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

/* Danh sách các bước */
.progress-steps {
    display: flex;
    justify-content: space-between; /* 1 bên trái, 1 bên phải */
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

    /* Mỗi bước */
    .progress-steps li {
        text-align: center;
        flex: 1;
        position: relative;
    }

/* Tên bước */
.step-title {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Vòng tròn chứa số */
.step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: #fff;
    color: #555;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Thanh ngang */
.progress-line {
    position: absolute;
    top: 38px; /* nằm giữa các vòng tròn */
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    z-index: 1;
}

/* Phần fill màu xanh */
.progress-fill {
    height: 4px;
    background: #7FCA27;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Các bước đã hoàn thành hoặc đang active */
.progress-steps li.active .step-circle,
.progress-steps li.completed .step-circle {
    background-color: #7FCA27;
    border-color: #7FCA27;
    color: #fff;
}

/* Hover nhẹ */
.step-circle:hover {
    transform: scale(1.1);
}

.reject-section {
    font-family: Arial, sans-serif;
}

.reject-title {
    font-size: 14px;
    font-weight: 600;
}

.reject-examples {
    display: flex;
    justify-content: space-between; /* chia đều 3 ô */
    background: #F8F8F8;
    border-radius: 8px;
    padding: 10px; /* khoảng cách giữa khung và ảnh */
}

.reject-item {
    flex: 1; /* chia đều không gian cho 3 ô */
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 10px; /* padding giữa các ô */
}

.reject-image {
    position: relative;
    border: 1.5px dashed #ff4d4f;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    display: inline-block;
}

    .reject-image img:first-child {
        width: 120px;
        height: auto;
        display: block;
        border-radius: 4px;
    }

.reject-icon {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 22px;
}

.note-list {
    font-size: 14px;
    font-weight: 500;
    color: #858383;
}

.cut-image {
    transform: translateX(31px);
    clip-path: inset(0 20px 0 0);
}

#backxn_2:hover
{
    opacity: inherit;
}

/* ===== Popup eKYC - Không tìm thấy camera ===== */
.popup-ekyc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center; /* 👈 Giúp popup nằm giữa dọc */
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    /* Khối popup chính */
    .popup-ekyc .popup {
        background: #fff;
        border-radius: 10px;
        width: 420px;
        max-width: 90%;
        padding: 24px 30px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        position: relative;
        text-align: center;
        animation: popupFadeIn 0.25s ease;
    }

/* Hiệu ứng hiện popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Nút đóng (x) */
.popup-ekyc .popup .close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

    .popup-ekyc .popup .close::before,
    .popup-ekyc .popup .close::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 18px;
        background: #999;
        top: 1px;
        left: 9px;
    }

    .popup-ekyc .popup .close::before {
        transform: rotate(45deg);
    }

    .popup-ekyc .popup .close::after {
        transform: rotate(-45deg);
    }

    .popup-ekyc .popup .close:hover::before,
    .popup-ekyc .popup .close:hover::after {
        background: #333;
    }

/* Tiêu đề */
.popup-ekyc .subject {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Vùng nội dung */
.popup-ekyc .center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* QR code */
.popup-ekyc #qrcode img {
    width: 180px;
    height: 180px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 10px;
}

/* Ảnh minh họa */
.popup-ekyc .guide {
    width: 240px;
    margin: 15px 0;
}

/* Link tìm kiếm camera */
.popup-ekyc .link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

    .popup-ekyc .link:hover {
        text-decoration: underline;
    }

/* Màu đỏ tiêu đề */
.text-color-red {
    color: #e74c3c;
}

.face_icon {
    display: flex;
    justify-content: space-around; /* hoặc space-between / center */
    align-items: center;
    gap: 20px; /* khoảng cách giữa các item */
    flex-wrap: nowrap; /* không xuống hàng */
    margin-top: 10px;
}

    .face_icon .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 14px;
        color: #333;
    }

        .face_icon .item img {
            width: 80px;
            height: 80px;
            margin-bottom: 5px;
        }

.note_container {
    display: flex;
    align-items: flex-start; /* hoặc center nếu muốn căn giữa dọc */
    gap: 40px; /* khoảng cách giữa ảnh và nội dung */
    margin-top: 25px;
}

    .note_container img.img_center {
        width: 100px; /* tùy chỉnh kích thước ảnh */
        height: auto;
    }

.note_content {
    flex: 1; /* chiếm phần còn lại */
}

    .note_content p.css1 {
        font-weight: 600;
        margin-bottom: 8px;
    }

    .note_content ul.check {
        margin: 0;
        padding-left: 20px;
    }
