/* ============================================================================
 * declare-parcel.css — MOBILE Source-of-Truth for
 * modules/shipping/pages/declare-parcel.html (แจ้งพัสดุล่วงหน้า)
 * ----------------------------------------------------------------------------
 * De-inlined verbatim from the page's single <style> (go-live combine-pass
 * 2026-07-19). Phone view is byte-equivalent. Accent PRESERVED = orange
 * (--sun #FF7A1A / --sun-deep #EF5F06) per the page's own :root — do NOT recolor.
 * Template-carried classes kept verbatim (conservative; unused ones have no
 * render effect). Desktop light-2026 layer = declare-parcel.desktop.css (>=768).
 * ========================================================================== */

:root{--sun:#FF7A1A;--sun-deep:#EF5F06;--gold:#E0982E;--cream:#FBF7F2;--cream-2:#F3ECE3;
--paper:#fff;--ink:#2A2016;--ink-2:#6E5C4C;--muted:#9A8b7c;--line:#EAE4DB;
--leaf:#1E9E6A;--leaf-soft:#E7F6EE;--sky:#3B6FD4;--fd:'Mitr',sans-serif;--fb:'Prompt',sans-serif;
--sh:0 12px 34px -22px rgba(110,70,32,.5)}
*{box-sizing:border-box}html,body{overflow-x:hidden}
body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--fb);font-size:14px;padding-bottom:86px}
header{position:sticky;top:0;z-index:60;background:#fff;border-bottom:1px solid var(--line)}
.hd{display:flex;align-items:center;gap:10px;padding:10px 14px;max-width:1180px;margin:0 auto}
.hbk{width:38px;height:38px;border:none;border-radius:12px;background:var(--cream-2);color:var(--sun-deep);display:grid;place-items:center;cursor:pointer;flex:none}
.hbk svg{width:20px;height:20px}
.logo{display:flex;align-items:center;gap:7px;font-family:var(--fd);font-weight:600;font-size:16px;color:var(--ink);text-decoration:none}
.logo .mark{width:28px;height:28px;border-radius:9px;background:linear-gradient(135deg,var(--sun),var(--sun-deep));color:#fff;display:grid;place-items:center;font-size:15px}
.logo small{font-size:10px;color:var(--sun-deep);font-weight:500;margin-left:2px;letter-spacing:.03em}
.hsp{flex:1}
.hcall{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(120deg,var(--sun),var(--sun-deep));color:#fff;border:none;border-radius:12px;padding:9px 13px;font-family:var(--fd);font-size:13px;text-decoration:none}
.hcall svg{width:15px;height:15px}
.hero{background:radial-gradient(125% 120% at 50% -12%,#3E2C1B,#1C120A);color:#fff;padding:22px 16px 24px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(255,138,43,.26),transparent 70%);pointer-events:none}
.hero::before{content:"";position:absolute;left:-52px;bottom:-66px;width:178px;height:178px;border-radius:50%;background:radial-gradient(circle,rgba(30,158,106,.15),transparent 72%);pointer-events:none}
.hero .wrap{max-width:1180px;margin:0 auto;position:relative;z-index:1}
.hero .eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);border-radius:99px;padding:5px 11px;font-family:var(--fd)}
.hero .eyebrow svg{width:14px;height:14px}
.hero h1{font-family:var(--fd);font-weight:600;font-size:24px;margin:11px 0 6px;letter-spacing:.1px}
.hero p{margin:0;font-size:13px;color:rgba(255,255,255,.74);max-width:640px;line-height:1.65}
.secsub{font-size:12px;color:var(--muted);margin:3px 0 12px;padding-left:13px}
.rrow{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px dashed var(--line);font-size:13.5px}
.rrow:last-child{border-bottom:none}
.rrow .rl{color:var(--ink-2)}.rrow .rv{font-family:var(--fd);font-weight:500;text-align:right}
.rrow .rv.n{font-weight:600;color:var(--sun-deep)}
.steps{display:grid;gap:0;margin-top:6px}
.step{display:flex;gap:12px;padding:11px 0;border-bottom:1px dashed var(--line)}
.step:last-child{border-bottom:none}
.step .no{width:30px;height:30px;border-radius:10px;background:linear-gradient(135deg,var(--sun),var(--sun-deep));color:#fff;display:grid;place-items:center;font-family:var(--fd);font-weight:600;font-size:14px;flex:none}
.step b{font-family:var(--fd);font-weight:600;font-size:14px;display:block}
.step span{font-size:12.5px;color:var(--ink-2);line-height:1.6}
table.rate{width:100%;border-collapse:collapse;font-size:13px;margin-top:6px}
table.rate th{background:var(--cream-2);color:var(--sun-deep);font-family:var(--fd);font-weight:600;padding:9px 8px;text-align:left;font-size:12.5px}
table.rate td{padding:9px 8px;border-bottom:1px solid var(--line)}
table.rate td.n{font-family:var(--fd);font-weight:600;color:var(--sun-deep)}
.note{display:flex;gap:9px;background:#FFF3F0;border:1px solid #FFD4C9;border-radius:13px;padding:11px 13px;font-size:12.5px;color:#8A3D12;margin-top:12px;line-height:1.6}
.note svg{width:16px;height:16px;flex:none;margin-top:1px;color:var(--sun-deep)}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;border:none;border-radius:13px;background:linear-gradient(120deg,var(--sun),var(--sun-deep));color:#fff;font-family:var(--fd);font-weight:500;font-size:14.5px;cursor:pointer;text-decoration:none;margin-top:14px;box-shadow:0 10px 20px -12px rgba(216,25,11,.9)}
.btn.ghost{background:#fff;color:var(--sun-deep);border:1.5px solid var(--sun);box-shadow:none}
.btn svg{width:17px;height:17px}
.btn:active{transform:scale(.98)}
.field{margin-top:11px}
.field label{display:block;font-size:12px;color:var(--ink-2);font-family:var(--fd);margin-bottom:5px}
.field input,.field select{width:100%;height:44px;border:1.5px solid var(--line);border-radius:12px;padding:0 13px;font-family:var(--fb);font-size:14px;background:#fff;color:var(--ink)}
.field input:focus,.field select:focus{outline:none;border-color:var(--sun);box-shadow:0 0 0 3px rgba(255,61,46,.14)}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-family:var(--fd);background:var(--leaf-soft);color:var(--leaf);border-radius:99px;padding:4px 10px}
.pill.warn{background:#FFF3E3;color:#B5620A}
.addrbox{border:1.5px dashed var(--sun);background:var(--cream);border-radius:14px;padding:13px;margin-top:10px;font-size:13px;line-height:1.75}
.addrbox b{font-family:var(--fd)}
.copybtn{display:inline-flex;align-items:center;gap:6px;border:none;border-radius:10px;background:var(--cream-2);color:var(--sun-deep);font-family:var(--fd);font-size:12.5px;padding:8px 12px;cursor:pointer;margin-top:9px}
.copybtn svg{width:14px;height:14px}
.tl{margin-top:8px}
.tli{display:flex;gap:11px;padding:9px 0;position:relative}
.tli::before{content:"";position:absolute;left:8px;top:30px;bottom:-6px;width:2px;background:var(--line)}
.tli:last-child::before{display:none}
.tli .dot{width:18px;height:18px;border-radius:50%;background:var(--leaf);flex:none;display:grid;place-items:center;color:#fff;margin-top:2px}
.tli .dot svg{width:10px;height:10px}
.tli.now .dot{background:var(--sun);box-shadow:0 0 0 4px rgba(255,61,46,.18)}
.tli.pending .dot{background:#E7D6CE}
.tli b{font-family:var(--fd);font-weight:600;font-size:13.5px;display:block}
.tli span{font-size:12px;color:var(--ink-2)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media(max-width:560px){.grid2{grid-template-columns:1fr}}
.cmpcard{border:1.5px solid var(--line);border-radius:14px;padding:13px;background:#fff}
.cmpcard.hot{border-color:var(--sun);background:var(--cream)}
.cmpcard h3{margin:0 0 4px;font-family:var(--fd);font-weight:600;font-size:15px;display:flex;align-items:center;gap:7px}
.cmpcard h3 svg{width:17px;height:17px;color:var(--sun-deep)}
.cmpcard .price{font-family:var(--fd);font-weight:700;color:var(--sun-deep);font-size:16px;margin:6px 0 2px}
.cmpcard small{color:var(--muted);font-size:11.5px}
.toastx{position:fixed;left:50%;bottom:108px;transform:translateX(-50%) translateY(8px);background:#2A2016;color:#fff;font-size:13px;padding:11px 18px;border-radius:12px;z-index:400;opacity:0;transition:.22s;pointer-events:none;font-family:var(--fb)}
.toastx.on{opacity:1;transform:translateX(-50%)}
a:focus-visible,button:focus-visible{outline:2.5px solid var(--sun);outline-offset:2px;border-radius:8px}
@media(prefers-reduced-motion:reduce){.btn:active{transform:none}}

/* ==== V2 — animation + detail components (WO: เพิ่ม detail/animation/icon) ==== */
@keyframes xfadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes xfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
@keyframes xpulse{0%,100%{box-shadow:0 0 0 0 rgba(255,61,46,.35)}50%{box-shadow:0 0 0 9px rgba(255,61,46,0)}}
@keyframes xsheen{0%{transform:translateX(-130%) skewX(-18deg)}100%{transform:translateX(230%) skewX(-18deg)}}
@keyframes xpop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
.card{animation:xfadeUp .55s cubic-bezier(.2,.7,.3,1) both}
.card:nth-of-type(1){animation-delay:.05s}.card:nth-of-type(2){animation-delay:.14s}
.card:nth-of-type(3){animation-delay:.23s}.card:nth-of-type(4){animation-delay:.32s}
.card:nth-of-type(5){animation-delay:.41s}.card:nth-of-type(6){animation-delay:.5s}
.hero .xblob{position:absolute;border-radius:50%;background:radial-gradient(circle,rgba(255,150,70,.3),transparent 70%);animation:xfloat 7s ease-in-out infinite;pointer-events:none}
.hero .chero{position:relative;z-index:1;display:flex;align-items:flex-start;gap:14px}
.hero .cti{flex:1;min-width:0}
.hero .hicon{flex:none;width:66px;height:66px;border-radius:20px;background:linear-gradient(150deg,rgba(255,122,26,.95),rgba(239,95,6,.92));display:grid;place-items:center;color:#fff;box-shadow:0 14px 24px -10px rgba(239,95,6,.7);position:relative;animation:xpop .6s .2s both,xfloat 6s 1s ease-in-out infinite}
.hero .hicon svg{width:34px;height:34px}
.hero .hicon .db{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;background:var(--leaf);border:2.5px solid #241610;display:grid;place-items:center}
.hero .hicon .db svg{width:12px;height:12px;color:#fff}
.hchips{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px;position:relative;z-index:1}
.hchip{display:inline-flex;align-items:center;gap:6px;font-family:var(--fd);font-weight:400;font-size:11.5px;padding:5px 11px;border-radius:99px}
.hchip svg{width:13px;height:13px;flex:none}
.hchip.g{background:rgba(30,158,106,.22);color:#83E9BA;border:1px solid rgba(30,158,106,.42)}
.hchip.o{background:rgba(255,122,26,.22);color:#FFC48A;border:1px solid rgba(255,122,26,.42)}
.hchip.b{background:rgba(59,111,212,.22);color:#9EC1FF;border:1px solid rgba(59,111,212,.42)}
@media(max-width:520px){.hero .hicon{width:54px;height:54px;border-radius:16px}.hero .hicon svg{width:28px;height:28px}}
.tli.now .dot{animation:xpulse 1.8s ease-out infinite}
.step .no{transition:transform .18s}
.step:hover .no{transform:scale(1.12) rotate(-4deg)}
.btn{position:relative;overflow:hidden}
.btn::after{content:"";position:absolute;top:0;bottom:0;width:38%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:translateX(-130%) skewX(-18deg)}
@media(hover:hover){.btn:hover::after{animation:xsheen .8s ease}}
.iconrow{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px;margin-top:6px}
.ich{display:flex;flex-direction:column;align-items:center;gap:7px;background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:13px 8px;text-align:center;transition:transform .16s,box-shadow .16s}
@media(hover:hover){.ich:hover{transform:translateY(-4px);box-shadow:0 14px 24px -16px rgba(180,50,20,.5)}}
.ich .ico{width:40px;height:40px;border-radius:13px;background:linear-gradient(135deg,var(--sun),var(--sun-deep));color:#fff;display:grid;place-items:center}
.ich .ico svg{width:21px;height:21px}
.ich b{font-family:var(--fd);font-weight:600;font-size:12.5px}
.ich span{font-size:10.8px;color:var(--muted);line-height:1.45}
details.qax{border:1px solid var(--line);border-radius:13px;background:#fff;margin-top:9px;overflow:hidden;transition:border-color .15s}
details.qax summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;padding:12px 14px;font-family:var(--fd);font-weight:500;font-size:13.5px}
details.qax summary::-webkit-details-marker{display:none}
details.qax summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--sun-deep);border-bottom:2px solid var(--sun-deep);transform:rotate(45deg);margin-left:auto;transition:transform .2s;flex:none}
details.qax[open]{border-color:#F3B9A8}
details.qax[open] summary::after{transform:rotate(-135deg)}
details.qax .qa-b{padding:0 14px 13px;font-size:12.8px;color:var(--ink-2);line-height:1.7}
.exbox{border:1.5px dashed var(--sun);background:var(--cream);border-radius:14px;padding:13px;margin-top:10px;font-size:13px}
.exbox b{font-family:var(--fd);color:var(--sun-deep)}
.exbox .exr{display:flex;justify-content:space-between;padding:5px 0;border-bottom:1px dashed var(--line)}
.exbox .exr:last-child{border-bottom:none;font-family:var(--fd);font-weight:600;color:var(--sun-deep)}
.ctstrip{display:flex;gap:10px;align-items:center;background:radial-gradient(130% 130% at 0% 0%,#3E2C1B,#20160F);border-radius:18px;padding:15px 16px;color:#fff;margin-top:14px;box-shadow:var(--sh)}
.ctstrip .ci{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.14);display:grid;place-items:center;flex:none}
.ctstrip .ci svg{width:21px;height:21px}
.ctstrip b{font-family:var(--fd);font-weight:600;font-size:14px;display:block}
.ctstrip span{font-size:11.5px;color:rgba(255,255,255,.7)}
.ctstrip a{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:6px;background:#fff;color:var(--sun-deep);border-radius:11px;padding:10px 14px;font-family:var(--fd);font-size:13px;text-decoration:none}
.ctstrip a svg{width:15px;height:15px}
@media(prefers-reduced-motion:reduce){
 .card,.hero .hicon,.hero .xblob,.tli.now .dot{animation:none}
 .btn::after{display:none}.step:hover .no,.ich:hover{transform:none}
}
/* ==== V3 hero redesign — coffee theme + vibrant badges ==== */
.hero{padding-bottom:20px}
.hero .en{font-family:var(--fb);font-weight:400;font-size:14px;color:rgba(255,255,255,.5);letter-spacing:.3px}
.hfeats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:16px;position:relative;z-index:1}
.hfeat{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:15px;padding:11px 10px}
.hfeat .fi{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;color:#fff;margin-bottom:8px;box-shadow:0 8px 16px -8px rgba(0,0,0,.5)}
.hfeat .fi svg{width:19px;height:19px}
.hfeat.g .fi{background:linear-gradient(135deg,#25C98A,#12945F)}
.hfeat.o .fi{background:linear-gradient(135deg,#FF9A3D,#EF5F06)}
.hfeat.b .fi{background:linear-gradient(135deg,#5A93F7,#2E63C8)}
.hfeat.p .fi{background:linear-gradient(135deg,#BB82F2,#8A4FD0)}
.hfeat.r .fi{background:linear-gradient(135deg,#FF6B5E,#E23A2E)}
.hfeat b{display:block;font-family:var(--fd);font-weight:600;font-size:12px;color:#fff;line-height:1.3}
.hfeat span{display:block;font-size:10px;color:rgba(255,255,255,.6);line-height:1.4;margin-top:2px}
.hprice{display:flex;align-items:center;gap:11px;margin-top:12px;background:linear-gradient(100deg,rgba(255,122,26,.22),rgba(255,122,26,.04));border:1px solid rgba(255,180,120,.32);border-radius:14px;padding:10px 13px;position:relative;z-index:1}
.hprice .hp-ic{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--sun),var(--sun-deep));display:grid;place-items:center;color:#fff;flex:none}
.hprice .hp-ic svg{width:19px;height:19px}
.hprice .hp-l{font-size:10.5px;color:rgba(255,255,255,.6);display:block}
.hprice .hp-v{font-family:var(--fd);font-weight:700;font-size:19px;color:#fff}
.hprice .hp-v small{font-size:11px;font-weight:400;color:rgba(255,255,255,.6)}
.hprice .hp-badge{margin-left:auto;flex:none;font-family:var(--fd);font-size:10.5px;background:var(--leaf);color:#fff;border-radius:99px;padding:5px 10px}
.hfeat{animation:xpop .5s both}
.hfeat:nth-child(1){animation-delay:.25s}.hfeat:nth-child(2){animation-delay:.34s}.hfeat:nth-child(3){animation-delay:.43s}
@media(prefers-reduced-motion:reduce){.hfeat{animation:none}}
