/* Font tự host (OFL, xem fonts/OFL-*.txt) thay @import Google Fonts của prototype. Khai báo y CSS Google mà prototype
   nạp (mỗi độ đậm một @font-face, cùng file, cùng unicode-range), bỏ bộ cyrillic-ext (trang không có chữ Kirin).
   DM Sans không có bộ tiếng Việt: dấu lùi về Arial, giống prototype. */
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jakarta-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jakarta-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jakarta-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jakarta-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/jakarta-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/jakarta-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/jakarta-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
:root{--red:#bd1f2d;--red-dark:#9e1724;--ink:#22252d;--muted:#737782;--line:#e9e8e5;--bg:#f7f6f4;--soft:#fff5f3;--white:#fff;--shadow:0 16px 40px rgba(34,37,45,.055)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f3a7ad;outline-offset:2px}
[hidden]{display:none!important}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#999ba1}
.eyebrow.red{color:var(--red)}
.page-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 0 18px}
.page-heading h1{font-family:'Plus Jakarta Sans',sans-serif;font-size:clamp(26px,4.5vw,36px);line-height:1.25;letter-spacing:-.055em;margin:11px 0 12px}
.page-heading h1 em{font-style:normal;color:var(--red)}
.page-heading p{color:#797d86;font-size:12px;line-height:1.7;margin:0}
.heading-mark{font-family:'Plus Jakarta Sans',Arial,sans-serif;color:#eed7d8;font-size:70px;line-height:1;font-weight:800;letter-spacing:-.12em;white-space:nowrap}
.heading-mark span{display:block;font-size:15px;letter-spacing:.18em;text-align:right;margin:1px 4px 0 0;text-transform:uppercase}
.journey{display:flex;align-items:center;margin:30px 0 22px}
.journey-item{display:flex;gap:10px;align-items:center;min-width:118px;color:#a3a4a8;font-size:11px;font-weight:800}
.journey-item>span{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;border:1px solid #dfdddb;background:#fff;color:#a0a1a4;font-size:10px;flex:none}
.journey-item.current,.journey-item.done{color:var(--ink)}
.journey-item.current>span{background:var(--red);color:#fff;border-color:var(--red)}
.journey-item.done>span{background:#f8e8e8;color:var(--red);border-color:#e8c5c9}
.journey-item small{color:#a3a4a8;font-size:10px;font-weight:500}
.journey-line{height:1px;background:#dfdddb;flex:1;margin:0 15px 0 6px}
.form-card{background:#fff;border:1px solid #eae7e4;box-shadow:var(--shadow);border-radius:12px;padding:29px 32px 23px}
.card-kicker{font-size:10px;color:var(--red);font-weight:800;letter-spacing:.16em;margin-bottom:9px}
.form-card h2{font-family:'Plus Jakarta Sans',Arial,sans-serif;font-size:22px;line-height:1.3;letter-spacing:-.04em;margin:0 0 8px}
.card-intro{color:#858891;font-size:12px;line-height:1.65;margin:0 0 25px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.field{font-size:11px;color:#41454c;font-weight:800;display:block}
.field span{color:var(--red)}
.field input,.field select{display:block;margin-top:9px;width:100%;height:42px;padding:0 13px;border:1px solid #dedee1;border-radius:7px;background:#fff;color:#30343c;outline:none;font-size:12px;font-weight:500}
.field input:focus,.field select:focus{border-color:var(--red);box-shadow:0 0 0 3px #fbe7e9}
.dob-calendar-option{display:flex;align-items:center;gap:6px;margin-top:8px}
.field input::placeholder{color:#b5b5bb}
.card-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #efefef;padding-top:21px;margin-top:25px}
.card-actions>span{color:#a0a2a7;font-size:10px;line-height:1.5}
.primary,.secondary{border-radius:7px;min-height:39px;padding:0 16px;font-size:11px;font-weight:800;white-space:nowrap}
.primary{background:var(--red);border:1px solid var(--red);color:#fff;box-shadow:0 6px 14px #bd1f2d29}
.primary:hover{background:var(--red-dark)}
.primary span{font-size:15px;vertical-align:-1px;margin-left:12px}
.secondary{background:#fff;border:1px solid #dedee1;color:#666b74}
.secondary:hover{border-color:#888}
.error{margin:14px 0 0;color:#a71f2c;background:#fff0f0;border:1px solid #f0c7cb;border-radius:7px;padding:9px 11px;font-size:11px}
.otp-field{max-width:220px}
.otp-field input{letter-spacing:.2em;font-size:17px}
.consent-list{display:grid;gap:9px}
.consent-item{display:flex;align-items:flex-start;gap:11px;padding:13px;border:1px solid #e8e7e6;border-radius:8px;cursor:pointer}
.consent-item:has(input:checked){border-color:#e8b9bf;background:#fff9f9}
.consent-item input{accent-color:var(--red);margin:2px 0 0;flex:none}
.consent-item strong,.consent-item small{display:block}
.consent-item strong{font-size:11px;color:#363942}
.consent-item small{font-size:10px;color:#90939a;line-height:1.5;margin-top:4px}
.success-card{text-align:center;padding:38px}
#completed-list{list-style:none;padding:0;margin:16px 0;text-align:center}
.success-icon{height:52px;width:52px;display:grid;place-items:center;background:#e6f4e9;color:#3e9656;border-radius:50%;margin:0 auto 17px;font-size:25px}
@media(max-width:700px){
.page-heading{padding-top:12px}
.page-heading h1{font-size:26px}
.heading-mark{display:none}
.page-heading p{max-width:330px}
.journey{margin:24px 0 19px}
.journey-item{min-width:auto;gap:5px;font-size:9px}
.journey-item>span{width:27px;height:27px}
.journey-item small{font-size:8px}
.journey-line{margin:0 5px}
.form-card{padding:21px 18px}
.field-grid{grid-template-columns:1fr;gap:17px}
.card-actions{flex-wrap:wrap}
.card-actions>span{width:100%}
.card-actions .primary{margin-left:auto}
}

.registration{background:#fff;border:1px solid #e8e5e2;border-radius:14px;padding:25px 30px 30px;box-shadow:0 16px 40px rgba(34,37,45,.055)}
.registration .page-heading{padding:4px 0 20px}
.registration .journey{margin:18px 0 23px}
.registration .form-card{box-shadow:none;background:#fff}
.otp-resend{display:flex;justify-content:flex-end;margin-top:15px}
.otp-resend .secondary{color:var(--red);border-color:#d9a5aa;background:#fff}
.otp-resend .secondary:hover:not(:disabled){background:#fff4f4;border-color:var(--red)}
.otp-resend .secondary:disabled{color:#999da5;border-color:#dedee1;background:#f6f6f6}
@media(max-width:700px){
.registration{padding:17px 14px 20px}
.registration .page-heading h1{font-size:24px}
.registration .form-card{padding:20px 15px}
}

.identity-grid{background:#f8f9fb;border:1px solid #eaedf1;border-radius:9px;padding:15px;margin:20px 0 23px}
.identity-grid .field input[readonly]{background:#f1f3f5;border-color:#e2e5e8;color:#555d68;cursor:default}
.student-grid{margin-bottom:25px}
.consent-list{gap:10px}
.consent-item{align-items:flex-start}
.consent-item>span{font-size:12px;line-height:1.6;color:#41454d;font-weight:500}
.consent-item input{margin-top:3px}
@media(max-width:700px){
.identity-grid{padding:12px;margin-top:18px}
.student-grid{margin-bottom:22px}
}

.heading-mark{display:flex;align-items:center;justify-content:center;width:120px;height:110px;flex:none;letter-spacing:normal}
.heading-mark img{width:108px;height:108px;object-fit:contain}
@media(max-width:700px){
.heading-mark{display:none}
}

.registration{font-size:16px}
.registration .eyebrow,.registration .card-kicker{font-size:11px}
.registration .page-heading p{font-size:16px;line-height:1.6}
.registration .journey-item{font-size:12px}
.registration .journey-item small,.registration .journey-item>span{font-size:11px}
.registration .form-card h2{font-size:24px}
.registration .card-intro{font-size:16px}
.registration .field{font-size:15px}
.registration .field input,.registration .field select{font-size:16px;height:52px}
.registration .otp-field input{font-size:18px}
.registration .consent-item{padding:14px 15px}
.registration .consent-item>span{font-size:14px;line-height:1.55}
.registration .consent-item input{width:16px;height:16px;margin-top:3px}
.registration .card-actions>span{font-size:14px}
.registration .primary,.registration .secondary{font-size:16px;min-height:48px}
.registration .error{font-size:15px}
@media(max-width:700px){
.registration .page-heading h1{font-size:26px}
.registration .form-card h2{font-size:23px}
.registration .journey-item{font-size:10px}
.registration .journey-item small{font-size:9px}
}

body{background:transparent;font-size:16px}
.registration{max-width:1000px;margin:0 auto;overflow-wrap:break-word}
.field-grid>*{min-width:0}
.field input,.field select{min-width:0;max-width:100%}

/* otp-ldp: thêm cho bản gọi API thật */
.captcha{margin-top:16px;min-height:0}
.captcha:empty{display:none}   /* không có Turnstile thì không chiếm chỗ, bố cục y prototype */
.primary:disabled{opacity:.6;cursor:wait}
/* Chế độ nhúng ?embed=1 (schema page_embedding): ẩn toàn khối đầu, giữ thanh 3 bước và nội dung */
html[data-embed="1"] .page-heading{display:none}
/* Cửa sổ đọc tài liệu (BLI 1451) */
body.doc-open{overflow:hidden}
#doc-dialog{padding:0;border:0;border-radius:12px;width:min(920px,calc(100vw - 20px));height:calc(100vh - 24px);height:calc(100dvh - 24px);max-height:none;box-shadow:0 24px 60px rgba(0,0,0,.35)}
#doc-dialog::backdrop{background:rgba(20,22,28,.6)}
.doc-box{display:flex;flex-direction:column;height:100%;background:#fff;border-radius:12px;overflow:hidden}
.doc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.doc-head h2{margin:0;font-size:15px}
.doc-body{position:relative;flex:1;min-height:0}
#doc-frame{display:block;width:100%;height:100%;border:0;background:#fff}
#doc-spin{position:absolute;top:50%;left:50%;margin:-18px 0 0 -18px}
/* Trong iframe cha: đặt theo vùng cha đang nhìn thấy (JS đặt top/height), không dùng căn giữa của iframe cao */
#doc-dialog.embedded{--doc-safe-top:76px;--doc-safe-bottom:104px;margin:0 auto;inset:auto 0 auto 0;max-height:none}   /* chiều cao + top do JS đặt theo vùng cha nhìn thấy; lề an toàn đo trên cbcentres.com (QC 1460, 390px): trên = thanh đầu dính 60 + 16; dưới = thanh nổi 46 + nút lên đầu 36 (vùng che 96 từ đáy) + 8 */
/* Vòng tròn chờ dùng chung (BLI 1451 bản 2): hộp tài liệu + nút bước 1/gửi lại. Giảm chuyển động: vẫn hiện, đứng yên. */
.spinner{box-sizing:border-box;width:36px;height:36px;border:4px solid #f0c9cd;border-top-color:var(--red);border-radius:50%;animation:otp-spin .8s linear infinite}
.spinner[hidden]{display:none}
.spinner.sm{display:inline-block;width:14px;height:14px;border-width:2px;margin-left:8px;vertical-align:-2px}
@keyframes otp-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none}}
