/* HMA parent leave page (members.hmabjj.com.au). Phase 4, 18 Nov 2026. Matches the approved mockup. */

:root{--ink:#111827;--muted:#6b7280;--line:#e5e7eb;--btn:#c0560a;--accent:#e9741a;--tint:#fdeee0;--bg:#fff}
*{box-sizing:border-box}
button,input,textarea{font-family:inherit}
body{margin:0;font-family:"Poppins","Noto Sans SC","PingFang SC",sans-serif;color:var(--ink);background:#f3f4f6;font-size:16px}
.phone{max-width:430px;margin:0 auto;background:var(--bg);min-height:calc(100vh - 46px);display:flex;flex-direction:column;position:relative}
.scr{display:flex;flex-direction:column;flex:1;padding:14px 20px 24px}
/* headers */
.top{display:flex;justify-content:flex-end;align-items:center;min-height:44px;font-size:15px}
.top a,.lnk{color:var(--ink);text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:10px 4px}
.logo{display:block;margin:4px auto 22px;width:55%;max-width:215px}
.logo.sm{width:42%;max-width:170px;margin-bottom:16px}
.bar{display:flex;align-items:center;justify-content:space-between;min-height:48px;margin:0 -6px 6px}
.back{display:flex;align-items:center;gap:2px;background:none;border:0;font-size:16px;color:var(--ink);padding:10px 8px;cursor:pointer;min-height:48px}
.back svg{width:22px;height:22px;stroke:var(--ink);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.mini{width:34px;height:34px;margin-right:6px}
h1{font-size:22px;line-height:1.35;margin:0 0 8px;font-weight:600}
.sub{color:var(--muted);font-size:15px;margin:0 0 20px;line-height:1.55}
.who{font-size:15px;color:var(--muted);margin:0 0 16px}
.who b{color:var(--ink);font-weight:600}
/* forms */
label.f{display:block;font-size:15px;font-weight:600;margin:0 0 6px}
label.f i{font-style:normal;color:var(--btn)}
label.f em{font-style:normal;font-weight:400;color:var(--muted);font-size:14px}
input.t,textarea{width:100%;font-size:18px;height:54px;padding:0 14px;border:1.5px solid #d1d5db;border-radius:12px;outline:none;background:#fff}
textarea{height:88px;padding:12px 14px;font-size:16px;resize:none}
input.t:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #fde3cc}
.hint{font-size:14px;color:var(--muted);margin:6px 0 18px;min-height:20px}
.hint.ok{color:#047857;font-weight:500}
.err{font-size:14px;color:#b91c1c;margin:6px 0 18px}
.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;background:var(--btn);color:#fff;border:0;border-radius:14px;padding:12px 16px;font-size:17px;font-weight:600;cursor:pointer;text-align:center}
.btn.out{background:#fff;color:var(--btn);border:2px solid var(--btn)}
.btn:disabled{background:#d1d5db;color:#fff;cursor:default}
.btn+.btn{margin-top:12px}
.secure{display:flex;gap:6px;justify-content:center;align-items:center;color:#4b5563;font-size:14px;margin:20px 0 0}
.secure svg{width:15px;height:15px;stroke:#4b5563;fill:none;stroke-width:2}
.foot{margin-top:auto;padding-top:36px;display:flex;justify-content:center;gap:32px;font-size:14px}
.foot a{color:#4b5563;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:12px 4px}
.langs{display:flex;flex-direction:column;gap:14px;margin-top:8px}
.langs .btn{font-size:20px;min-height:64px}
/* home */
.kids{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 8px}
.kid{display:flex;align-items:center;gap:6px;border:1.5px solid #d1d5db;border-radius:999px;padding:0 16px;min-height:44px;font-size:15px;background:#fff;cursor:pointer}
.kid svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:3;display:none}
.kid.on{background:var(--btn);color:#fff;border-color:var(--btn);font-weight:600}
.kid.on svg{display:block}
.ktype{font-size:14px;color:var(--muted);margin:0 0 16px}
.menu{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-bottom:14px}
.item{display:flex;align-items:center;gap:14px;padding:0 12px 0 16px;min-height:82px;border-bottom:1px solid var(--line);cursor:pointer;width:100%;background:#fff;border-left:0;border-right:0;border-top:0;text-align:left;color:var(--ink)}
.item:last-child{border-bottom:0}
.item:active{background:#fafafa}
.ic{flex:0 0 44px;height:44px;border-radius:50%;background:var(--tint);display:flex;align-items:center;justify-content:center}
.ic svg{width:22px;height:22px;stroke:var(--accent);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tx{flex:1;min-width:0;padding:14px 0}
.tx b{display:block;font-size:17px;font-weight:600}
.tx small{display:block;color:var(--muted);font-size:14px;line-height:1.4;margin-top:2px}
.chev{width:20px;height:20px;stroke:#9ca3af;fill:none;stroke-width:2.2;flex:0 0 20px}
.cnt{display:inline-block;background:var(--tint);color:#9a3f05;border-radius:999px;padding:0 9px;font-size:13px;font-weight:600;margin-left:8px;vertical-align:2px;line-height:22px}
.note{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.55;margin:4px 0 0}
.note.grey{background:#f9fafb;border-color:var(--line);color:#374151}
/* class cards */
.cards{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.cc{display:flex;align-items:center;gap:14px;border:1.5px solid var(--line);border-radius:16px;padding:12px 14px;min-height:72px;background:#fff;cursor:pointer;text-align:left;width:100%;color:var(--ink)}
.cc .box{flex:0 0 26px;height:26px;border:2px solid #9ca3af;border-radius:8px;display:flex;align-items:center;justify-content:center}
.cc .box svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:3;display:none}
.cc.on{background:var(--tint);border-color:var(--btn)}
.cc.on .box{background:var(--btn);border-color:var(--btn)}
.cc.on .box svg{display:block}
.cc .ct{flex:1;min-width:0}
.cc .ct b{display:block;font-size:16.5px;font-weight:600}
.cc .ct span{display:block;font-size:14.5px;color:#374151;margin-top:2px}
.cc .ct small{display:block;font-size:13.5px;color:var(--muted);margin-top:4px;line-height:1.4}
.cc.dis{background:#f9fafb;cursor:default}
.cc.dis .ct b,.cc.dis .ct span{color:#6b7280}
.cc.dis .box{border-color:#d1d5db;background:#f3f4f6}
.tag{display:inline-block;font-size:13px;font-weight:600;border-radius:999px;padding:2px 10px;white-space:nowrap}
.tag.few{background:#fef3c7;color:#92400e}
.tag.full{background:#e5e7eb;color:#374151}
.tag.or{background:var(--tint);color:#9a3f05}
.tag.gr{background:#dcfce7;color:#166534}
.tag.gy{background:#f3f4f6;color:#4b5563}
.tag.bl{background:#e0f2fe;color:#075985}
.cc .side{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.sml{background:none;border:0;color:var(--btn);font-size:14.5px;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:10px 0;min-height:44px;cursor:pointer}
.day{font-size:14px;font-weight:600;color:var(--muted);margin:8px 2px 2px}
/* sticky action */
.sticky{position:sticky;bottom:0;background:linear-gradient(rgba(255,255,255,0),#fff 22%);padding:22px 0 6px;margin-top:auto}
/* success */
.done{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:20px}
.bigok{width:84px;height:84px;border-radius:50%;background:#dcfce7;display:flex;align-items:center;justify-content:center;margin:10px 0 18px}
.bigok svg{width:44px;height:44px;stroke:#16a34a;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.sum{width:100%;border:1px solid var(--line);border-radius:16px;padding:14px 16px;text-align:left;margin:6px 0 18px}
.sum .r{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:15px;border-bottom:1px solid #f3f4f6}
.sum .r:last-child{border-bottom:0}
.sum .r span{color:var(--muted)}
.sum .r b{font-weight:600;text-align:right}
.q{font-size:18px;font-weight:600;margin:4px 0 14px}
/* sheet */
/* **FIXED 18 Nov: fixed to the screen, so the confirm box shows even when the page was scrolled down (was absolute: grey screen, box off screen)** */
.shade{position:fixed;inset:0;background:rgba(17,24,39,.45);display:flex;align-items:flex-end;justify-content:center;z-index:50}
.sheet{background:#fff;width:100%;max-width:430px;max-height:90vh;overflow-y:auto;border-radius:20px 20px 0 0;padding:22px 20px calc(26px + env(safe-area-inset-bottom))}
.sheet h2{font-size:20px;margin:0 0 14px;font-weight:600}
/* reason cards */
.reasons{display:flex;gap:10px;margin-bottom:18px}
.rc{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:14px;padding:14px 6px;min-height:84px;background:#fff;cursor:pointer;font-size:15px;color:var(--ink);position:relative}
.rc svg{width:24px;height:24px;stroke:var(--accent);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rc.on{background:var(--tint);border-color:var(--btn);font-weight:600}
.rc .tk{position:absolute;top:6px;right:6px;width:20px;height:20px;border-radius:50%;background:var(--btn);display:none;align-items:center;justify-content:center}
.rc .tk svg{width:12px;height:12px;stroke:#fff;stroke-width:3.5}
.rc.on .tk{display:flex}
.two{display:flex;gap:10px}
.two>div{flex:1;min-width:0}
.req{font-size:13.5px;color:var(--muted);margin:-8px 0 16px}
/* requests */
.rq{display:flex;gap:12px;align-items:center;border:1.5px solid var(--line);border-radius:16px;padding:14px;min-height:78px;cursor:pointer;background:#fff;width:100%;text-align:left;color:var(--ink)}
.rq .ic{flex-basis:40px;height:40px}
.rq .ct{flex:1;min-width:0}
.rq .ct b{font-size:16px;font-weight:600}
.rq .ct span{display:block;font-size:14.5px;color:#374151;margin-top:2px}
.rq .ct small{display:block;font-size:13.5px;color:var(--muted);margin-top:3px}
.sec{font-size:15px;font-weight:600;margin:18px 0 8px}
/* empty */
.empty{border:1.5px dashed #d1d5db;border-radius:16px;padding:26px 18px;text-align:center;margin:8px 0 20px}
.empty .ic{margin:0 auto 12px;width:56px;height:56px}
.empty b{display:block;font-size:18px;margin-bottom:8px}
.empty p{margin:0;color:#374151;font-size:15px;line-height:1.6}
/* help */
.contact{border:1px solid var(--line);border-radius:16px;padding:16px;margin-bottom:18px}
.contact .em{font-size:18px;font-weight:600;margin:4px 0 2px;word-break:break-all}
.todo{display:inline-block;background:#fee2e2;color:#991b1b;font-size:12.5px;border-radius:6px;padding:1px 8px;margin-left:6px;font-weight:600;vertical-align:2px}
details{border-bottom:1px solid var(--line)}
summary{list-style:none;cursor:pointer;padding:16px 4px;font-weight:600;font-size:16px;display:flex;justify-content:space-between;align-items:center;min-height:56px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";color:var(--accent);font-size:22px;font-weight:500}
details[open] summary::after{content:"\2212"}
details p{margin:0 4px 16px;color:#374151;font-size:15px;line-height:1.65}
ol.terms{padding-left:22px;margin:0;color:#374151;font-size:15px;line-height:1.7}
ol.terms li{margin-bottom:10px}
/* tighter spacing (18 Nov feedback) */
.scr{padding:8px 16px 16px}
h1{font-size:20px;margin:0 0 6px}
.sub{font-size:14.5px;margin:0 0 12px;line-height:1.5}
.who{margin:0 0 10px;font-size:14.5px}
.logo{margin:2px auto 14px;width:48%;max-width:190px}
.logo.sm{width:32%;max-width:130px;margin:0 auto 8px}
/* **19 Nov (Vicki, option A): logo bigger with more space below; same size on the language, login and home pages** */
.logo,.logo.sm{width:58%;max-width:220px;margin:6px auto 22px}
.top{min-height:36px}
.bar{min-height:44px;margin:0 -6px 0}
.back{min-height:44px;padding:8px}
.mini{width:28px;height:28px}
.btn{min-height:50px;font-size:16.5px}
.btn+.btn{margin-top:10px}
input.t{height:50px}
textarea{height:72px}
.hint{margin:4px 0 12px}
.err{margin:4px 0 12px}
.item{min-height:68px}
.tx{padding:10px 0}
.ic{flex-basis:40px;height:40px}
.menu{margin-bottom:10px}
.kids{margin:2px 0 6px}
.kid{min-height:40px}
.ktype{margin:0 0 10px}
.cards{gap:8px;margin-bottom:12px}
.cc{min-height:58px;padding:9px 12px;border-radius:14px}
.rq{min-height:64px;padding:10px 12px;border-radius:14px}
.sec{margin:12px 0 6px}
.sum{padding:8px 14px;margin:4px 0 12px}
.sum .r{padding:6px 0}
.done{padding-top:4px}
.bigok{width:64px;height:64px;margin:4px 0 10px}
.bigok svg{width:34px;height:34px}
.q{margin:2px 0 10px}
.foot{padding-top:20px;gap:14px;flex-wrap:nowrap;font-size:13px;white-space:nowrap;align-items:center}
.foot a{padding:12px 0}
.tx small{font-size:13px;margin-top:1px}
.tx b{font-size:16.5px}
.secure{margin-top:12px}
.langs .btn{min-height:56px}
.reasons{margin-bottom:12px}
.rc{min-height:72px;padding:10px 6px}
.sticky{padding-top:14px}
.note{padding:10px 12px}
.contact{padding:12px 14px;margin-bottom:12px}
summary{padding:12px 4px;min-height:48px}
.empty{padding:18px 14px;margin:4px 0 14px}


/* Page-only additions (not in the mockup) */
.phone{min-height:100dvh}
.msgbox{border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.5;margin:0 0 12px}
.msgbox.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.msgbox.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.loading{text-align:center;color:var(--muted);font-size:15px;padding:40px 0}
.spin{width:28px;height:28px;border:3px solid var(--tint);border-top-color:var(--accent);border-radius:50%;margin:0 auto 12px;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.small{font-size:13px;color:var(--muted)}
.rule{font-size:13px;color:var(--muted);margin-top:10px}
