/* Bổ sung cho giao diện foryou.vn (public/foryou/css): phần riêng của trang tuyển dụng. */

/* Menu header (desktop): mục đang xem tô màu + gạch chân như hover của foryou.vn */
.header__main .menu__list > li.active > a { color: var(--main-cl); font-weight: 500; }
.header__main .menu__list > li.active > a::before { width: calc(100% - 28px); }
.header__main .menu__list .menu-ngoai { font-size: 12px; margin-left: 6px; opacity: .6; }
html { scroll-behavior: smooth; }
#vi-tri, #quy-trinh { scroll-margin-top: 100px; }

/* Danh sách vị trí: ô đang chọn */
.ujob-hd-item { cursor: pointer; }
.ujob-hd-item.active { border-color: var(--main-cl); background-color: #f9fcff; }
.ujob-hd-item .ujob-hd-tag li { display: inline-block; font-size: 12px; padding: 2px 10px; margin: 0 6px 0 0; border-radius: 99px; background: #e5f0ff; color: var(--main-cl); }
.ujob-empty { padding: 24px; text-align: center; color: #a6a6a6; }
.ujob-text .ujob-noidung ul, .ujob-text .ujob-noidung ol { padding-left: 20px; }
.ujob-text .ujob-noidung ul li { list-style: disc; }
.ujob-text .ujob-noidung ol li { list-style: decimal; }
.ujob-text .ujob-noidung p { margin-bottom: 6px; }
.ujob-btn-apply { margin-top: 24px; cursor: pointer; }

/* Popup ứng tuyển */
body.active-modal { overflow: hidden; }
.modal .modal-title { margin: 15px 15px 0; font-size: 20px; font-weight: 700; }
.modal .modal-title span { color: var(--main-cl); }
.form-group label .form-note { display: inline; font-weight: 400; }

/* Popup nhỏ: các ô xếp dọc */
.modal.modal-sm { width: 420px; max-width: calc(100% - 30px); }
.modal-sm .form-group.full { margin-bottom: 12px; }
.modal-sm .form-group input { padding: 10px 12px; border-radius: 8px; }

/* CV: 1 nút đính kèm gọn */
.form-group label.cv-nut { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 9px 12px; border: 1px dashed #b9d4ff; border-radius: 8px; background: #f9fcff; color: var(--main-cl); font-weight: 500; cursor: pointer; transition: .2s; }
.cv-nut:hover { border-color: var(--main-cl); background: #e5f0ff; }
.cv-nut small { color: #a6a6a6; font-weight: 400; font-size: 12px; }
.cv-file-chon { align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #b9d4ff; border-radius: 12px; background: #f9fcff; }
.cv-file-chon > .fa { font-size: 30px; color: var(--main-cl); }
.cv-file-chon .fa-file-pdf-o { color: #e53935; }
.cv-file-ten { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cv-file-ten b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-file-ten small { color: #a6a6a6; }
.cv-file-xoa { width: 32px; height: 32px; border: none; border-radius: 50%; background: #fff; color: #e53935; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.cv-file-xoa:hover { background: #ffebee; }
.form-note { font-size: 13px; color: #a6a6a6; margin-top: 4px; }
.req { color: #e53935; }
.submit-btn:disabled { opacity: .6; cursor: wait; }

/* ===== Trang làm bài test ===== */
.uv-page { padding: 110px 0 40px; background: #f6f7fa; }
.uv-wrap { width: min(100%, 880px); margin: 0 auto; }

/* Thẻ thông tin ứng tuyển */
.uv-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #0052cc 0%, var(--main-cl) 55%, #3d8bff 100%); box-shadow: 0 10px 30px rgba(0, 104, 255, .25); }
.uv-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.uv-hero-nhan { margin: 0 0 2px; font-size: 14px; opacity: .85; }
.main-under .uv-hero-ten { margin: 0 0 12px; font-size: 30px; font-weight: 900; color: #fff; }
.uv-chip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.uv-chip li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 14px; background: rgba(255, 255, 255, .16); }
.uv-chip li.xong .fa { color: #9df59a; }
.uv-hero-trai { position: relative; z-index: 1; flex: 1; min-width: 0; }
.uv-hero .uv-hero-sua.ujob-btn-apply { width: auto; margin: 0; }
.uv-hero-sua { position: relative; z-index: 1; flex: none; padding: 9px 18px; border: none; border-radius: 99px; background: #fff; color: var(--main-cl); font-weight: 500; cursor: pointer; transition: .2s; }
.uv-hero-sua:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }

.uv-hero + .uv-card { margin-top: 20px; }

/* Các bước */
.uv-steps { display: flex; gap: 12px; margin: 20px 0; padding: 0; counter-reset: none; }
.uv-steps li { flex: 1; list-style: none; }
.uv-steps a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 16px; border: 2px solid transparent; border-radius: 16px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 4px 20px rgba(0, 0, 0, .05); transition: .2s; }
.uv-steps a:hover { border-color: #b9d4ff; }
.uv-step-so { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; color: #a6a6a6; font-weight: 700; }
.uv-step-chu { display: flex; flex-direction: column; line-height: 1.3; }
.uv-step-chu small { font-size: 12px; color: #a6a6a6; }
.uv-steps li.dang a { border-color: var(--main-cl); }
.uv-steps li.dang .uv-step-so { background: var(--main-cl); color: #fff; }
.uv-steps li.dang small { color: var(--main-cl); }
.uv-steps li.xong .uv-step-so { background: #54bc4b; color: #fff; }
.uv-steps li.xong small { color: #3e9a36; }

/* Khung bài */
.uv-card { padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.uv-card-dau { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.main-under .uv-card-dau h3 { margin: 0 0 4px; font-size: 24px; }
.uv-card-dau p { margin: 0; color: #707070; font-size: 14px; }
.uv-card-dau .fa { color: var(--main-cl); margin-right: 4px; }

/* Câu hỏi */
.uv-cau { padding: 20px; margin-bottom: 16px; border: 1px solid #eaeaea; border-left: 4px solid #eaeaea; border-radius: 14px; transition: .2s; }
.uv-cau:last-child { margin-bottom: 0; }
.uv-cau.da-tra-loi { border-left-color: var(--main-cl); }
.uv-cau.thieu { border-color: #ffcdd2; border-left-color: #e53935; background: #fffafa; }
.uv-cau-dau { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.uv-cau-so { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #e5f0ff; color: var(--main-cl); font-weight: 700; font-size: 14px; }
.uv-cau.da-tra-loi .uv-cau-so { background: var(--main-cl); color: #fff; }
.uv-cau-hoi { margin: 3px 0 0; font-size: 16px; font-weight: 500; line-height: 1.5; }
.uv-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 400; vertical-align: 2px; background: #fff4e0; color: #b26a00; }
.uv-dap-an { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uv-da { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 14px; border: 1.5px solid #e0e0e0; border-radius: 12px; cursor: pointer; user-select: none; transition: .15s; }
.uv-da:hover { border-color: #8fbaff; background: #f9fcff; }
.uv-da input { position: absolute; opacity: 0; pointer-events: none; }
.uv-da-chu { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #cfcfcf; color: #707070; font-size: 13px; font-weight: 700; transition: .15s; }
.uv-da.nhieu .uv-da-chu { border-radius: 7px; }
.uv-da-nd { font-size: 15px; font-weight: 400; line-height: 1.45; }
/* Màu / hình của đáp án: nằm cuối dòng, sau nội dung */
.uv-da-mau { flex: none; margin-left: auto; width: 26px; height: 26px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .15); }
.uv-da-hinh { flex: none; margin-left: auto; height: 40px; max-width: 72px; object-fit: contain; border-radius: 6px; }
.uv-da-mau + .uv-da-hinh { margin-left: 0; }
.uv-da.chon, .uv-da:has(input:checked) { border-color: var(--main-cl); background: #e5f0ff; }
.uv-da.chon .uv-da-chu, .uv-da:has(input:checked) .uv-da-chu { border-color: var(--main-cl); background: var(--main-cl); color: #fff; }
.uv-da:has(input:focus-visible) { outline: 2px solid #8fbaff; outline-offset: 2px; }
.uv-tu-luan { width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 12px; resize: vertical; transition: .15s; }
.uv-tu-luan:focus { outline: none; border-color: var(--main-cl); box-shadow: 0 0 0 3px #e5f0ff; }

/* Thanh tiến độ + nộp bài (dính đáy) */
.uv-nop { padding: 12px 0; margin-top: 20px; }
.uv-nop-trong { width: min(100%, 880px); margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.uv-tien-do { flex: 1; }
.uv-tien-do p { margin: 0 0 6px; font-size: 14px; }
.uv-tien-do b { color: var(--main-cl); }
.uv-tien-do-thanh { height: 8px; border-radius: 99px; background: #f0f0f0; overflow: hidden; }
.uv-tien-do-thanh span { display: block; width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3d8bff, var(--main-cl)); transition: width .3s; }
.uv-nop .submit-btn { flex: none; padding: 11px 28px; }

/* Kết quả / thông báo */
.uv-ketqua { padding: 20px 10px; text-align: center; }
.main-under .uv-ketqua h4 { margin: 16px 0 6px; font-size: 22px; }
.uv-ketqua p { margin: 0; color: #707070; }
.uv-ketqua-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #e8f7e6; color: #54bc4b; font-size: 34px; }
.uv-ketqua .uv-ghi-chu { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 10px; background: #e5f0ff; color: var(--main-cl); font-size: 14px; }
.uv-ketqua.loi .uv-ketqua-icon { background: #ffebee; color: #e53935; }
.uv-ketqua.trong .uv-ketqua-icon { background: #f0f0f0; color: #a6a6a6; }
.uv-diem { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(var(--main-cl) calc(var(--diem) * 1%), #f0f0f0 0); }
.uv-diem span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: #fff; font-size: 32px; font-weight: 900; color: var(--main-cl); line-height: 1; }
.uv-diem small { font-size: 12px; font-weight: 400; color: #a6a6a6; margin-top: 4px; }
.uv-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.uv-actions a, .uv-actions button { text-decoration: none; }

@media (max-width: 768px) {
    .uv-page { padding-top: 24px; padding-bottom: 100px; }
    .uv-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
    .main-under .uv-hero-ten { font-size: 24px; }
    .uv-steps { gap: 6px; }
    .uv-steps a { flex-direction: column; gap: 4px; padding: 10px 4px; text-align: center; }
    .uv-step-chu b { font-size: 14px; }
    .uv-card { padding: 16px; }
    .uv-cau { padding: 14px; }
    .uv-dap-an { grid-template-columns: 1fr; }
    .uv-nop-trong { gap: 12px; }
    .uv-nop .submit-btn { padding: 10px 18px; }
}

/* Loading */
#id_load { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .5); align-items: center; justify-content: center; }
#id_load.show { display: flex; }
#id_load .fa { font-size: 48px; color: #fff; }

/* ===== Trang vị trí tuyển dụng - mobile ===== */
.ujob-btn-apply-tren { margin: -14px 0 6px; }
.umvs-bai-test { margin-top: 12px; font-size: 14px; color: #707070; }
.umvs-bai-test a { color: var(--main-cl); font-weight: 500; text-decoration: underline; }

@media (max-width: 768px) {
    /* Vị trí: 3 ô / hàng, nhiều hơn xuống hàng 2; dính trên cùng khi cuộn qua ô tìm kiếm */
    .ujob .ujob-head {
        position: sticky; top: 0; z-index: 20;
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
        width: auto; max-height: none; overflow: visible;
        margin: 0 -15px 16px; padding: 10px 15px; border-radius: 0;
        background: rgba(246, 247, 250, .96); backdrop-filter: blur(6px);
    }
    .ujob .ujob-head .ujob-hd-item { width: auto; margin: 0 !important; padding: 10px 6px; gap: 0; justify-content: center; text-align: center; border-radius: 12px; }
    .ujob-hd-item .ujob-hd-day, .ujob-hd-item .ujob-hd-tag { display: none; }
    .ujob-hd-item .ujob-hd-tt { margin: 0; font-size: 13px; line-height: 1.3; }
    .ujob .ujob-head .ujob-hd-item.active { background-color: var(--main-cl); border-color: var(--main-cl); }
    .ujob .ujob-head .ujob-hd-item.active .ujob-hd-tt { color: #fff; }
    .ujob .ujob-head .ujob-empty { grid-column: 1 / -1; padding: 8px; }

    /* Chưa chọn vị trí thì chưa hiện nội dung */
    .ujob .ujob-box.chua-chon { display: none; }
}

@media (max-width: 768px) {
    /* Footer menu mobile: mục đang xem (Tuyển dụng) có chữ + icon màu chủ đạo */
    .header__sp .menu__list > li.active > a { color: var(--main-cl); font-weight: 700; }
    .header__sp .menu__list > li.active:not(.menu-top) > a::before {
        filter: invert(27%) sepia(96%) saturate(3600%) hue-rotate(210deg) brightness(100%) contrast(106%);
    }

    /* Bỏ phần giới thiệu + tìm kiếm; chỉ giữ lối vào bài test */
    #mainvisual.under-visual { padding: 16px 0 0; background: none; }
    #mainvisual .umvs-title, #mainvisual .umvs-label, #mainvisual .umvs-desc,
    #mainvisual .umvs-img { display: none; }
    #mainvisual .umvs-bai-test { margin: 0; }

    /* Bỏ khung tên bộ phận, nút "Ứng tuyển ngay" lên dòng đầu */
    .ujob .ujob-bhead { display: none; }
    .ujob-btn-apply-tren { margin: 0 0 12px; }
}
