/* vieclam.chaoyue.vn — màu thương hiệu Đỏ #BF2026 · Xanh #175386 · Be #FBEED3 (chỉ làm điểm nhấn), chữ Bricolage Grotesque */
:root{--red:#BF2026;--red-d:#9E1A20;--blue:#175386;--blue-d:#103E66;--be:#FBEED3;--ink:#16263A;--ink2:#4A5868;--line:#E4E0D8;--bg:#FFFFFF;--soft:#F5F6F8;
 --f:'Bricolage Grotesque',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;--r:14px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--ink);font:400 17px/1.55 var(--f);font-variation-settings:'wdth' 100}
img{max-width:100%;display:block}
a{color:var(--blue)}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}
h1,h2,h3{margin:0;line-height:1.05;letter-spacing:-.01em}

/* thanh trên */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:800}
.brand img{width:36px;height:36px;border-radius:9px}
.brand span{display:flex;flex-direction:column;line-height:1.05;font-size:17px;white-space:nowrap}
.brand small{font-weight:500;font-size:13px;color:var(--ink2)}
.call .ln{display:none}
.call{font-weight:700;font-size:14px;text-decoration:none;color:var(--red);border:1.5px solid var(--red);border-radius:999px;padding:7px 14px;white-space:nowrap}

/* nút */
.btn{appearance:none;font:inherit;font-weight:700;font-size:16px;line-height:1.2;border-radius:999px;padding:12px 20px;border:1.5px solid var(--ink);background:#fff;color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:48px;text-align:center}
.btn:hover{background:var(--soft)}
.btn.pri{background:var(--red);border-color:var(--red);color:#fff}
.btn.pri:hover{background:var(--red-d);border-color:var(--red-d)}
.btn.big{font-size:18px;padding:15px 26px;min-height:56px}
.btn[disabled]{opacity:.55;cursor:progress}

/* mở đầu: dàn nhân sự đứng sát nhau trên dải đỏ như quầy cửa hàng */
.hero{position:relative;overflow:hidden;padding:36px 16px 0;background:#fff}
.hero-text{max-width:640px;position:relative;z-index:2}
.hero h1{font-size:min(9.4vw,104px);font-weight:800;font-variation-settings:'wdth' 85;line-height:1;color:var(--ink);letter-spacing:-.02em;margin-bottom:22px}
.hero h1 span{display:block;white-space:nowrap}
.crew{display:flex;align-items:flex-end;justify-content:center;margin:34px -16px 0;padding:0 8px;position:relative;z-index:1}
.crew::after{content:"";position:absolute;left:0;right:0;bottom:0;height:34%;background:var(--red);z-index:-1}
.mate{position:relative;flex:0 1 300px;margin:0 -1%;text-decoration:none;display:flex;flex-direction:column;align-items:center}
.mate img{width:100%;height:auto;aspect-ratio:11/12;object-fit:contain;object-position:bottom;transform-origin:bottom center;transition:transform .25s ease}
.mate span{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);background:#fff;color:var(--ink);font-weight:800;font-size:clamp(12px,2.9vw,16px);padding:4px 9px;border-radius:999px;white-space:nowrap;box-shadow:0 2px 0 var(--red-d)}
.mate:hover img,.mate:focus-visible img{transform:scale(1.04)}
.mate:nth-child(odd){z-index:2}
@media (prefers-reduced-motion:no-preference){
 .mate img{animation:rise .7s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i) * 90ms + 150ms)}
 @keyframes rise{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
}

/* danh sách vị trí */
.list{padding:40px 16px 24px;max-width:1120px;margin:0 auto}
.list-head{display:flex;flex-direction:column;gap:14px;margin-bottom:8px}
.list-head h2{font-size:clamp(30px,6vw,48px);font-weight:800;font-variation-settings:'wdth' 80}
.jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;margin-top:18px}
.job{display:flex;flex-direction:column;min-width:0}
.job-photo{background:var(--blue);border-radius:var(--r);display:flex;align-items:flex-end;justify-content:center;aspect-ratio:1/1;overflow:hidden}
.job:nth-child(4n+2) .job-photo,.job:nth-child(4n+3) .job-photo{background:var(--red)}
.job-photo img{height:94%;width:auto;max-width:100%;object-fit:contain}
.job-body{display:flex;flex-direction:column;flex:1;padding-top:12px}
.job h3{font-size:clamp(19px,5vw,34px);font-weight:800;font-variation-settings:'wdth' 82;line-height:1.08}
.hook{display:none;color:var(--ink2);margin:8px 0 0;max-width:36em}
.pay{display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0 10px}
.pay div{border-left:3px solid var(--red);padding:0 0 0 8px}
.pay div+div{border-left-color:var(--blue)}
.pay dt{font-size:12.5px;font-weight:600;color:var(--ink2);line-height:1.3}
.pay dt span{display:none}
.pay dd{margin:2px 0 0;font-size:clamp(16px,4.4vw,30px);font-weight:800;font-variation-settings:'wdth' 85;line-height:1.12;font-variant-numeric:tabular-nums}
.pay small{display:block;font-size:12.5px;font-weight:600;color:var(--red);margin-top:2px;font-variation-settings:'wdth' 100;line-height:1.3}
.where{font-size:12.5px;color:var(--ink2);margin:0 0 12px;display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.where .lbl{background:none;padding:0;font-weight:500;width:100%}
.where span{background:var(--be);color:var(--ink);border-radius:5px;padding:2px 6px;font-weight:600}
.acts{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.acts .btn{width:100%;font-size:14px;padding:9px 10px;min-height:42px}
.btn.ghost{border-color:transparent;background:none;color:var(--blue);text-decoration:underline;text-underline-offset:3px;min-height:36px;padding:4px 6px}
.btn.ghost:hover{background:var(--soft)}

/* sau khi đăng ký: đúng là một quy trình theo thứ tự */
.how{max-width:1120px;margin:0 auto;padding:30px 16px 50px}
.how h2{font-size:clamp(26px,5vw,38px);font-weight:800;font-variation-settings:'wdth' 80;margin-bottom:18px}
.how ol{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:s}
.how li{counter-increment:s;display:grid;grid-template-columns:44px 1fr;gap:2px 12px;align-items:start}
.how li::before{content:counter(s);grid-row:span 2;width:40px;height:40px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800}
.how b{font-size:18px}
.how li span{color:var(--ink2)}
.foot{background:var(--ink);color:#C9D2DC;padding:26px 16px calc(26px + env(safe-area-inset-bottom));font-size:15px}
.foot p{margin:4px auto;max-width:1120px}
.foot b{color:#fff}
.foot a{color:#fff}

/* bảng chi tiết / form: bottom sheet trên điện thoại, hộp giữa màn hình trên máy tính */
/* bảng trượt: chiều cao theo phần màn hình nhìn thấy (dvh — Safari iPhone tính vh cả phần bị thanh địa chỉ che); thanh trên có nút × luôn hiện, chỉ phần nội dung cuộn */
.sheet{position:fixed;inset:0;height:100%;height:100dvh;z-index:50;background:rgba(16,30,46,.55);display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-box{position:relative;background:#fff;width:100%;max-width:640px;max-height:calc(100vh - 56px);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;border-radius:20px 20px 0 0}
.sheet-bar{flex:none;display:flex;justify-content:flex-end;align-items:center;padding:10px 12px 2px;position:relative;background:#fff}
.grab{position:absolute;left:50%;top:8px;transform:translateX(-50%);width:40px;height:5px;border-radius:3px;background:#D5D9DF}
.sheet-in{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 18px calc(24px + env(safe-area-inset-bottom))}
@media (prefers-reduced-motion:no-preference){.sheet:not([hidden]) .sheet-box{animation:up .25s ease-out}@keyframes up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}}
.x{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--soft);font-size:24px;line-height:1;cursor:pointer;color:var(--ink);z-index:2}
.jd h2,.sheet h2{font-size:28px;font-weight:800;font-variation-settings:'wdth' 85}
.jd h3{font-size:18px;font-weight:800;margin:20px 0 6px;color:var(--blue)}
.jd ul{margin:0;padding-left:20px}
.jd li{margin:3px 0}
.shifts{width:100%;border-collapse:collapse;margin-top:12px;font-size:15px}
.shifts th{text-align:left;font-size:13px;font-weight:600;color:var(--ink2);border-bottom:1.5px solid var(--ink);padding:6px 6px 6px 0}
.shifts td{border-bottom:1px solid var(--line);padding:9px 6px 9px 0;vertical-align:top}
.shifts td span{display:block;color:var(--ink2)}
.shifts .num{text-align:right;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.shifts th:not(:first-child){text-align:right}
.jd .acts{margin-top:22px}
/* điện thoại: mỗi dòng ca thành một khối — tên ca, khung giờ ở trên; lương và thưởng hai cột bên dưới */
@media (max-width:599px){.shifts thead{display:none}.shifts tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;border-bottom:1px solid var(--line);padding:11px 0}.shifts td{border:0;padding:0}.shifts td:first-child{grid-column:1/-1}.shifts td span{display:inline}.shifts td span+span::before{content:' · '}.shifts td b{display:block}.shifts .num{text-align:left;font-size:16px}.shifts .num::before{content:attr(data-l);display:block;font-size:12.5px;font-weight:600;color:var(--ink2)}}

.form{display:grid;gap:14px;margin-top:14px}
.form .sub{color:var(--ink2);margin:4px 0 0}
.fld{display:grid;gap:6px}
.fld>span,.fld legend{font-weight:700;font-size:15px}
.fld-h{margin:6px 0 -4px;font-weight:800;font-size:18px;color:var(--blue)}
fieldset.fld{border:0;padding:0;margin:0}
.in{font:inherit;font-size:17px;width:100%;border:1.5px solid #C9CED6;border-radius:10px;padding:12px 13px;background:#fff;color:var(--ink);min-height:50px}
.in:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(23,83,134,.18)}
textarea.in{min-height:80px;resize:vertical}
.opts{display:grid;gap:8px}
.opt{display:flex;gap:10px;align-items:flex-start;border:1.5px solid #C9CED6;border-radius:10px;padding:11px 12px;cursor:pointer;background:#fff}
.opt input{margin:3px 0 0;width:20px;height:20px;accent-color:var(--red);flex:none}
.opt b{display:block;font-size:16px}
.opt small{display:block;color:var(--ink2);font-size:14px}
.opt:has(input:checked){border-color:var(--red);background:#FFF6F6}
.two{display:grid;grid-template-columns:1fr;gap:14px}
.agree{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:var(--ink2)}
.agree input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--red);flex:none}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.err{color:var(--red);font-weight:600;min-height:1.2em;margin:0}
.done{text-align:center;padding:16px 0 6px}
.done .tick{width:72px;height:72px;margin:0 auto 14px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;font-size:40px;font-weight:800}
.done p{color:var(--ink2);font-size:17px}

@media (min-width:480px){.call .ln{display:inline}}
@media (min-width:720px){
 .hero{padding:56px 32px 0}
 .mate span{padding:5px 12px;bottom:12px}
 .crew{margin:40px -32px 0}
 .list,.how{padding-left:32px;padding-right:32px}
 .jobs{gap:40px 28px;margin-top:24px}
 .job-photo{aspect-ratio:4/3}
 .job-body{padding-top:16px}
 .hook{display:block}
 .pay{grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}
 .pay div{border-left-width:4px;padding-left:12px}
 .pay dt,.pay small,.where{font-size:14px}
 .pay dd{font-size:clamp(20px,2.3vw,28px)}
 .pay dt span{display:inline}
 .where .lbl{width:auto;margin-right:4px}
 .acts{flex-direction:row;flex-wrap:wrap;gap:10px}
 .acts .btn{width:auto;font-size:16px;padding:12px 20px;min-height:48px}
 .acts .btn.pri{flex:1 1 auto}
 .how ol{grid-template-columns:repeat(3,1fr);gap:24px}
 .sheet{align-items:center;padding:24px}
 .sheet-box{border-radius:20px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px)}
 .sheet-in{padding:0 28px 28px}
 .grab{display:none}
 .two{grid-template-columns:1fr 1fr}
}
@media (min-width:1024px){
 .hero{padding:64px max(32px,calc((100vw - 1120px)/2 + 32px)) 0}
 .hero-text{max-width:none}
 .hero h1{font-size:min(7.4vw,104px);margin-bottom:28px}
 .crew{margin:44px calc(-1 * max(32px,calc((100vw - 1120px)/2 + 32px))) 0}
 .mate{flex-basis:340px}
}
