/* IVC Malaysia Passport Renewal — shared styles */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:#fff;font-family:'Raleway',system-ui,sans-serif;color:#2B3236;line-height:1.55}
a{color:#0E4A50}a:hover{color:#007A80}
img{max-width:100%}
summary{cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";float:right;font-size:22px;line-height:1;color:#007A80;transition:transform .25s ease}
details[open] summary::after{transform:rotate(45deg)}

/* animations */
@keyframes up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.fu{animation:up .7s cubic-bezier(.2,.7,.2,1) both}.d1{animation-delay:.1s}.d2{animation-delay:.2s}.d3{animation-delay:.3s}.d4{animation-delay:.4s}
.pop{animation:pop .5s cubic-bezier(.2,.7,.2,1) both}
.lift{transition:transform .2s ease,box-shadow .2s ease}
@media (hover:hover){
  .lift:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(14,74,80,.2)}
  .card{transition:transform .25s ease,box-shadow .25s ease}
  .card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(14,74,80,.12)}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* eligibility checker */
.q-text{margin:0 0 8px;font-size:15px;font-weight:600}
.yn-row{display:flex;gap:10px}
.yn{flex:1;min-height:44px;border-radius:10px;font:inherit;font-weight:700;font-size:15px;cursor:pointer;border:2px solid #0E4A50;background:#fff;color:#0E4A50}
.yn[aria-pressed="true"]{background:#0E4A50;color:#fff}
.result{margin-top:22px;padding:18px;border-radius:12px}
.result.ok{background:#E6F4EA;color:#14532D}
.result.no{background:#FFF6E0;color:#5C3D00}
.result p{margin:0}.result .t{font-weight:800;font-size:17px;margin-bottom:6px}
.linkbtn{margin-top:16px;background:none;border:none;padding:8px 0;color:#4A5A70;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.btn{display:inline-block;min-height:48px;padding:12px 24px;border:none;border-radius:10px;font:inherit;font-weight:700;font-size:16px;text-decoration:none;cursor:pointer}
.btn-primary{background:#FFCC33;color:#1F2A2E}
.btn-outline{background:#fff;color:#0E4A50;border:2px solid #0E4A50}
.btn[disabled]{opacity:.6;cursor:wait}

/* application form */
.steps{list-style:none;margin:0 0 28px;padding:0;display:flex;gap:8px}
.steps li{flex:1;display:flex;justify-content:center}
.step-btn{display:flex;flex-direction:column;align-items:center;gap:6px;min-height:44px;padding:4px 8px;background:none;border:none;font:inherit;cursor:pointer}
.step-btn[disabled]{cursor:default}
.step-dot{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;background:#E4E9F0;color:#5B6B80;transition:background .3s ease,color .3s ease}
.step-lbl{font-size:13px;font-weight:500;color:#5B6B80}
.step-btn.active .step-dot{background:#0E4A50;color:#fff}.step-btn.active .step-lbl{font-weight:700;color:#0E4A50}
.step-btn.done .step-dot{background:#2F6B3A;color:#fff}
.bar{height:4px;background:#E4E9F0;border-radius:4px;margin:-12px 0 28px;overflow:hidden}
.bar span{display:block;height:100%;width:0;background:#01B0AD;border-radius:4px;transition:width .45s cubic-bezier(.2,.7,.2,1)}
.panel{display:none}.panel.on{display:block;animation:up .45s cubic-bezier(.2,.7,.2,1) both}
.fields{display:flex;flex-wrap:wrap;gap:18px 20px}
.f{flex:1 1 240px;min-width:0}.f.full{flex-basis:100%}
.f label{display:block;font-weight:600;font-size:14px;margin-bottom:6px}
.f input,.f select{width:100%;min-height:46px;border:1px solid #C8D2DF;border-radius:10px;padding:0 12px;font:inherit;font-size:15px;background:#fff}
.f input[type=file]{border-style:dashed;padding:10px 12px;font-size:14px}
.f input:focus,.f select:focus{outline:3px solid #01B0AD55;border-color:#007A80}
.f .hint{margin:6px 0 0;font-size:13px;color:#5B6B80}
.f .ok{margin:6px 0 0;font-size:13px;color:#2F6B3A}
.f .bad{margin:6px 0 0;font-size:13px;color:#8A1C1C}
.msg{margin:20px 0 0;padding:14px 16px;border-radius:10px;font-size:14px}
.msg.warn{background:#FFF6E0;color:#5C3D00}.msg.err{background:#FDECEC;color:#8A1C1C}
.info{margin-top:20px;padding:18px 20px;border-radius:12px;font-size:14px;background:#F4F7FB}
.info.teal{background:#E6F7F7}
.review div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #EEF2F6;font-size:15px}
.review span{color:#5B6B80}
.pay{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;margin-top:20px;padding:20px;border:2px solid #01B0AD;border-radius:14px}
.pay img{width:220px;height:auto;border-radius:8px}
.pay .amt{font-size:28px;font-weight:800;color:#0E4A50;margin:4px 0 12px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nav-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:28px}

/* phones */
@media (max-width:600px){
  h1{font-size:36px!important}
  h2{font-size:26px!important}
  .pay img{width:100%;max-width:260px}
}

/* PayNow QR */
.qr{width:240px;height:240px;background:#fff;border-radius:12px;padding:10px;border:1px solid #E4E9F0;flex:none}
.qr svg{width:100%;height:100%;display:block}
.waiting{display:flex;align-items:center;gap:10px;margin:18px 0 0;font-weight:700;color:#0E4A50}
.spin{width:18px;height:18px;border-radius:50%;border:3px solid #CDEDEC;border-top-color:#01B0AD;animation:spin 1s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.paid-flash{color:#2F6B3A}

/* site header + navigation (all pages) */
html{scroll-padding-top:90px}
.site-header{background:#fff;border-bottom:3px solid #01B0AD;position:sticky;top:0;z-index:50}
.hdr{max-width:1200px;margin:0 auto;padding:14px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{height:40px;width:auto;display:block}
.brand span{font-weight:700;font-size:16px;padding-left:12px;border-left:2px solid #D5DDE3;color:#3F3F3F}
.site-nav{display:flex;align-items:center;gap:22px;font-size:15px;font-weight:500}
.site-nav a{text-decoration:none;color:#0E4A50;padding:6px 0;border-bottom:2px solid transparent}
.site-nav a:hover{color:#007A80}
.site-nav a[aria-current=page]{font-weight:700;border-bottom-color:#01B0AD}
.site-nav .nav-cta{background:#FFCC33;color:#1F2A2E;padding:12px 20px;border-radius:10px;font-weight:700;border-bottom:none}
.menu-btn{display:none;min-height:44px;padding:0 16px;border:2px solid #0E4A50;border-radius:10px;background:#fff;color:#0E4A50;font:inherit;font-weight:700;cursor:pointer}
@media (max-width:960px){
  .menu-btn{display:block}
  .site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 20px;border-bottom:3px solid #01B0AD;box-shadow:0 14px 28px rgba(0,0,0,.1)}
  .site-nav.open{display:flex;animation:up .25s ease both}
  .site-nav a{padding:14px 0;border-bottom:1px solid #EEF2F6}
  .site-nav a[aria-current=page]{border-bottom-color:#EEF2F6;color:#007A80}
  .site-nav .nav-cta{margin-top:14px;text-align:center}
}
@media (max-width:400px){.brand span{display:none}}

/* page banner + call-to-action band */
.page-banner{background:#0E4A50;color:#fff}
.page-banner>div{max-width:1200px;margin:0 auto;padding:56px 24px}
.page-banner h1{margin:0 0 12px;font-size:44px;line-height:1.1;font-weight:800}
.page-banner p{margin:0;font-size:19px;color:#C9D6E8;max-width:640px}
.cta-band{background:#0E4A50;color:#fff}
.cta-band>div{max-width:1200px;margin:0 auto;padding:64px 24px}
.cta-band h2{margin:0 0 10px;font-size:32px;font-weight:800}
.cta-band p{margin:0 0 24px;color:#C9D6E8;font-size:17px}
.cta-row{display:flex;flex-wrap:wrap;gap:12px}
.btn-ghost{background:transparent;color:#fff;border:2px solid #fff}

/* ===== phones: tighter spacing, bigger tap targets ===== */
@media (max-width:600px){
  [style*="padding: 80px 24px"],[style*="padding: 72px 24px"],[style*="padding: 64px 24px"]{padding-top:44px!important;padding-bottom:44px!important;padding-left:20px!important;padding-right:20px!important}
  [style*="padding: 56px 24px"],[style*="padding: 40px 24px"],[style*="padding: 32px 24px 80px"]{padding-top:32px!important;padding-bottom:40px!important;padding-left:20px!important;padding-right:20px!important}
  .page-banner>div{padding:36px 20px}.page-banner h1{font-size:32px!important}.page-banner p{font-size:17px}
  .cta-band>div{padding:40px 20px}.cta-band h2{font-size:26px}
  [style*="padding: 32px"]{padding:22px!important}
  [style*="font-size: 34px"]{font-size:26px!important}
  [style*="font-size: 19px"]{font-size:17px!important}
  [style*="flex: 1 1 220px"]{flex:1 1 40%!important}
  [style*="gap: 40px"]{gap:24px!important}
  #top .fu.d3 a,.cta-row .btn,#contact .lift{flex:1 1 100%;text-align:center}
  .cta-row{flex-direction:column}
  #check{padding:22px!important}
  .hdr{padding:12px 20px}.brand img{height:34px}
  #app{padding:20px!important}
  #app~aside{order:-1;padding:16px 18px!important}
  #app~aside h2{font-size:16px!important}#app~aside>p:last-child{display:none}
  .step-lbl{font-size:12px}.step-dot{width:32px;height:32px}
  .nav-row .btn{flex:1 1 auto}
  .pay{padding:16px}.qr{width:100%;max-width:260px;height:auto;aspect-ratio:1;margin:0 auto}
}

/* ===== polish animations (transform/opacity only; off with reduced motion) ===== */
.js .rv{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1)}
.js .rv.in{opacity:1;transform:none}
@supports (animation-timeline: view()){.js .rv{animation:none}}
.site-header{transition:box-shadow .3s ease}
.site-header.scrolled{box-shadow:0 6px 20px rgba(14,74,80,.12)}
.btn,.yn,.lift,.step-btn,.menu-btn{-webkit-tap-highlight-color:transparent}
.btn:active,.yn:active,.lift:active,.menu-btn:active{transform:scale(.97)}
.yn[aria-pressed="true"]{animation:pop .25s ease both}
/* stamp ring in dark banners */
#top,.page-banner{position:relative;overflow:hidden}
#top>div,.page-banner>div{position:relative;z-index:1}
#top::before,.page-banner::before{content:"";position:absolute;width:520px;height:520px;right:-140px;top:-120px;border-radius:50%;border:2px dashed rgba(1,176,173,.35);animation:turn 80s linear infinite;pointer-events:none}
#top::after,.page-banner::after{content:"";position:absolute;width:340px;height:340px;right:-50px;top:-30px;border-radius:50%;border:1px solid rgba(255,204,51,.22);animation:turn 120s linear infinite reverse;pointer-events:none}
.page-banner::before{width:360px;height:360px;right:-120px;top:-140px}.page-banner::after{width:220px;height:220px;right:-40px;top:-70px}
@keyframes turn{to{transform:rotate(360deg)}}
@media (max-width:600px){#top::before{width:320px;height:320px;right:-150px;top:-90px}#top::after{width:200px;height:200px;right:-90px;top:-40px}}
/* FAQ */
details[open]>p{animation:up .35s ease both}
summary{transition:color .2s}summary:hover{color:#007A80}
/* checkout */
.qr{animation:ring 2.2s ease-out infinite}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(1,176,173,.45)}80%,100%{box-shadow:0 0 0 16px rgba(1,176,173,0)}}
.paid-flash{animation:pop .4s ease both}
.tick{width:64px;height:64px;margin:0 0 16px;display:block}
.tick circle{stroke-dasharray:180;stroke-dashoffset:180;animation:draw .6s ease-out .15s forwards}
.tick path{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .35s ease-out .7s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.f input,.f select{transition:border-color .2s,box-shadow .2s}
.f input:focus,.f select:focus{box-shadow:0 0 0 4px rgba(1,176,173,.18)}
@media (prefers-reduced-motion:reduce){.js .rv{opacity:1;transform:none;transition:none}.tick circle,.tick path{stroke-dashoffset:0}}

/* ===== hover effects for everything clickable (mouse/trackpad only) ===== */
.btn,#top .fu.d3 a,.cta-row a,#contact a[href*="wa.me"],#check a,.site-nav a,details,.yn,.step-dot,.card,.review div,.f input,.f select,a{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease,color .2s ease,background-size .25s ease}
@media (hover:hover){
  .btn:hover,#top .fu.d3 a:hover,.cta-row a:hover,#contact a[href*="wa.me"]:hover,#check a:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(14,74,80,.22)}
  .btn-outline:hover{background:#E6F7F7}
  .btn-ghost:hover,#top .fu.d3 a[href*="wa.me"]:hover{background:rgba(255,255,255,.1)}
  .site-nav a:not(.nav-cta){background:linear-gradient(#01B0AD,#01B0AD) left bottom/0 2px no-repeat}
  .site-nav a:not(.nav-cta):hover{background-size:100% 2px}
  .site-nav .nav-cta:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(14,74,80,.2)}
  .brand:hover img{transform:scale(1.04)}.brand img{transition:transform .25s ease}
  details:hover{border-color:#01B0AD!important;transform:translateY(-2px);box-shadow:0 8px 20px rgba(14,74,80,.08)}
  .yn:hover{background:#E6F7F7}.yn[aria-pressed="true"]:hover{background:#0E4A50}
  .step-btn:not([disabled]):hover .step-dot{transform:scale(1.1)}
  [style*="flex: 1 1 220px"]:hover p:first-child{color:#007A80}
  [style*="padding: 20px 28px"]:hover{background:#F4FBFB}
  #contact a:not([href*="wa.me"]):hover,footer a:hover{color:#fff}
  .linkbtn:hover{color:#0E4A50}
}
@media (hover:hover){.js details.rv.in:hover{transform:translateY(-2px)}.js .card.rv.in:hover{transform:translateY(-4px)}}
/* floating WhatsApp button (all pages) */
.wa-float{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:10px;background:#1FAF5A;color:#fff;text-decoration:none;font-weight:700;font-size:15px;padding:13px 20px 13px 16px;border-radius:999px;box-shadow:0 8px 24px rgba(10,52,57,.28);transition:transform .2s ease,box-shadow .2s ease}
.wa-float svg{width:24px;height:24px;flex:none}
.wa-float:focus-visible{outline:3px solid #FFCC33;outline-offset:3px}
@media (hover:hover){.wa-float:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(10,52,57,.34)}}
.js .wa-float{animation:waIn .5s ease 1.2s both}
@keyframes waIn{from{opacity:0;transform:translateY(16px) scale(.9)}to{opacity:1;transform:none}}
footer{padding-bottom:72px}
@media (max-width:600px){.wa-float{right:14px;bottom:14px;padding:14px}.wa-float span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}}
/* guide tables become stacked cards on phones */
@media (max-width:600px){
  .gtable thead{display:none}
  .gtable,.gtable tbody,.gtable tr,.gtable td{display:block;width:100%;box-sizing:border-box}
  .gtable tr{padding:10px 0;border-bottom:1px solid #E4E9F0}
  .gtable tr:last-child{border-bottom:0}
  .gtable td{border:0!important;padding:3px 16px!important;word-break:break-word}
  .gtable td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:#6B7A90;margin-top:4px}
  .gtable td:first-child{font-weight:700;color:#0E4A50}
}
