/* ==========================================================
   Bar B Q Plaza Careers — theme "มาเป็น #ทีมGON"
   Brand colours from BBQ_COLOR_Preview + recruitment poster
   ========================================================== */
:root {
  --gon: #90d81e;          /* Gon — main background */
  --kata: #004635;         /* Kata — headline / dark blocks */
  --wakame: #012a14;
  --bokchoy: #007931;
  --kalumplee: #94e4a7;
  --sauce: #492c2a;        /* outline colour on poster */
  --khaopod: #f7e600;
  --butter: #f8ef7e;       /* yellow pill on poster */
  --prik: #d12d26;

  --bg: #fbf8ec;           /* cream (poster footer) */
  --ink: #0f2a1f;
  --ink-2: #44574d;
  --line: rgba(73, 44, 42, .16);

  --border: 3px solid var(--sauce);
  --pop: 6px 6px 0 var(--sauce);
  --pop-sm: 4px 4px 0 var(--sauce);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --dots: radial-gradient(rgba(0,70,53,.6) 1.2px, transparent 1.4px);

  --f-display: "Kanit", "Anuphan", system-ui, sans-serif;
  --f-body: "Anuphan", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
main:focus { outline: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.dotted { position: relative; }
.dotted::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: var(--dots); background-size: 22px 22px; pointer-events: none; }
.dotted > * { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--kata); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: var(--border);
  background: var(--b); color: var(--c); box-shadow: var(--pop-sm);
  font-family: var(--f-display); font-weight: 600; font-size: 17px;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--pop); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sauce); }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gon { --b: var(--gon); --c: var(--wakame); }
.btn-butter { --b: var(--butter); --c: var(--wakame); }
.btn-white { --b: #fff; --c: var(--kata); }
.btn-line { --b: #06c755; --c: #fff; min-height: 46px; font-size: 16px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 12px var(--gutter) auto; z-index: 50; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 6px 6px 8px; background: #fff; border: var(--border); border-radius: 999px; box-shadow: var(--pop-sm);
  transition: transform .45s var(--ease);
}
.nav.is-hidden { transform: translateY(-160%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--kata); }
.brand-text small { font-size: 12px; font-weight: 700; color: var(--bokchoy); }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--kata); transition: background .2s; }
.nav-links a:hover { background: var(--butter); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 360px) { .brand-text small { display: none; } }

/* ---------- Hero (poster style) ---------- */
.hero { overflow: hidden; background: var(--gon); padding: clamp(96px, 13vw, 136px) 0 0; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.hero-inner { display: grid; justify-items: center; }
.hero-badge { width: min(300px, 64vw); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.stage { width: 100%; max-width: 980px; margin-top: 4px; }
.mascot { position: relative; z-index: 1; width: min(540px, 90%); margin: 0 auto -8px; transform-origin: 50% 100%; animation: peek 1s var(--bounce) both .1s; }
@keyframes peek { from { transform: translateY(40%) scale(.9); opacity: 0; } }
.sign {
  position: relative; z-index: 2; background: #fff; border: 6px solid var(--sauce); border-bottom: 0;
  border-radius: 32px 32px 0 0; padding: clamp(22px, 4vw, 44px) clamp(16px, 4vw, 48px) clamp(26px, 4vw, 40px); text-align: center;
}
.sign-kicker { margin: 0; font-family: var(--f-display); font-weight: 800; color: var(--kata); font-size: clamp(32px, 6.2vw, 70px); line-height: 1.08; }
.sign-title {
  margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.08; letter-spacing: -.01em;
  font-size: clamp(44px, 10vw, 120px); color: var(--gon);
  text-shadow: 0 3px 0 #fff, 0 8px 18px rgba(0,70,53,.22);
}
.sign-sub { position: relative; display: inline-block; margin: 8px 0 0; font-size: clamp(20px, 3vw, 32px); font-weight: 500; }
.bubble {
  position: absolute; right: -150px; top: -10px; transform: rotate(-6deg);
  padding: 6px 16px; border: 2.5px solid var(--sauce); border-radius: 18px; background: #fff;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(15px, 1.8vw, 20px); white-space: nowrap;
  animation: wobble 2.8s ease-in-out infinite;
}
@keyframes wobble { 50% { transform: rotate(-2deg) scale(1.05); } }
@media (max-width: 860px) { .bubble { position: static; display: inline-block; margin: 10px 0 0 8px; } }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); max-width: 720px; margin: clamp(18px, 3vw, 30px) auto 0; }
.pay-item { display: flex; flex-direction: column; gap: 8px; }
.pay-label { padding: 8px 12px; border-radius: 999px; background: var(--butter); font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 2.4vw, 26px); color: var(--wakame); }
.pay-value { padding: 10px 12px; border-radius: 16px; background: var(--kata); border: 3px solid var(--sauce); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.6vw, 28px); line-height: 1.2; }
@media (max-width: 520px) { .pay { grid-template-columns: 1fr; } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 3px dashed var(--line); margin-top: clamp(24px, 3vw, 34px); padding-top: 18px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 4.4vw, 46px); line-height: 1.1; color: var(--kata); }
.stat span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.stat + .stat { border-left: 3px dashed var(--line); }

/* Marquee */
.marquee { position: relative; z-index: 3; background: var(--kata); color: var(--gon); overflow: hidden; white-space: nowrap; padding: 14px 0; border-top: 6px solid var(--sauce); }
.marquee-track { display: inline-flex; gap: 36px; animation: marquee 30s linear infinite; padding-left: 36px; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); display: inline-flex; align-items: center; gap: 36px; }
.marquee span::after { content: "✦"; font-size: .7em; color: var(--butter); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 4vw, 44px); }
.kicker { display: inline-flex; align-items: center; padding: 4px 14px; border-radius: 999px; background: var(--butter); border: 2px solid var(--sauce); font-size: 14px; font-weight: 700; color: var(--wakame); }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 6vw, 72px); line-height: 1.08; margin: 12px 0 0; color: var(--kata); }
.h2 em { font-style: normal; color: var(--bokchoy); }
.why .h2 em { color: #fff; }
.lead { max-width: 440px; margin: 0; color: var(--ink-2); font-size: 17px; }

/* ---------- Job cards ---------- */
.jobs-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.job-card { grid-column: span 2; }
.job-card:nth-child(1), .job-card:nth-child(2) { grid-column: span 3; }
@media (max-width: 960px) { .jobs-grid { grid-template-columns: 1fr 1fr; } .job-card, .job-card:nth-child(2) { grid-column: span 1; } .job-card:nth-child(1) { grid-column: span 2; } }
@media (max-width: 600px) { .jobs-grid { grid-template-columns: 1fr; gap: 18px; } .job-card, .job-card:nth-child(1) { grid-column: span 1; } }
.job-card {
  display: flex; flex-direction: column; gap: 16px; padding: 10px 10px 20px;
  border-radius: var(--radius-lg); background: #fff; border: var(--border); box-shadow: var(--pop);
  color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.job-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--sauce); }
.job-card:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--sauce); }
.job-card .media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; border: 2px solid var(--sauce); background: var(--gon); }
.job-card:nth-child(1) .media, .job-card:nth-child(2) .media { aspect-ratio: 16 / 8; }
.job-card .img { position: absolute; inset: 0; background: center/cover no-repeat; transition: transform .8s var(--ease); }
.job-card:hover .img { transform: scale(1.06); }
.job-tag { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--butter); border: 2px solid var(--sauce); color: var(--wakame); }
.job-tag.pt { background: var(--kalumplee); }
.job-body { padding: 0 8px; display: flex; flex-direction: column; flex: 1; }
.job-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.job-card h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; margin: 0; color: var(--kata); }
.job-go { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gon); border: var(--border); color: var(--wakame); font-size: 22px; font-weight: 700; transition: transform .4s var(--bounce); }
.job-card:hover .job-go { transform: rotate(-30deg) scale(1.08); }
.job-pay { display: inline-block; align-self: flex-start; margin-top: 8px; padding: 2px 12px; border-radius: 10px; background: var(--kata); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.job-card p { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-2); }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--bg); border: 2px solid var(--line); }
@media (max-width: 600px) { .job-card .media, .job-card:nth-child(1) .media, .job-card:nth-child(2) .media { aspect-ratio: 16 / 9; } .job-go { width: 44px; height: 44px; font-size: 18px; } }

/* ---------- Benefits ---------- */
.why { background: var(--gon); border-radius: var(--radius-xl); overflow: hidden; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }
.perk { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius-md); background: #fff; border: var(--border); box-shadow: var(--pop-sm); transition: transform .3s var(--bounce); }
.perk:hover { transform: rotate(-1.2deg) translateY(-3px); }
.perk .ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--butter); border: 2px solid var(--sauce); }
.perk h4 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--kata); }
.quals { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 22px; border-radius: var(--radius-md); background: var(--kata); color: #fff; border: var(--border); box-shadow: var(--pop-sm); }
.quals b { font-family: var(--f-display); font-size: 21px; color: var(--gon); margin-right: 6px; }
.quals span { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 600; }

.life { margin-top: clamp(32px, 5vw, 56px); overflow: hidden; }
.life-track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; padding: 6px 0 10px; }
.life:hover .life-track { animation-play-state: paused; }
.life img { height: clamp(170px, 24vw, 280px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); border: var(--border); box-shadow: var(--pop-sm); background: #fff; }
.life img:nth-child(odd) { transform: rotate(-1.5deg); }
.life img:nth-child(even) { transform: rotate(1.5deg); }

/* ---------- Steps / contact ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: var(--border); box-shadow: var(--pop-sm); }
.step .n { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--gon); border: var(--border); font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--wakame); }
.step h4 { margin: 14px 0 4px; font-family: var(--f-display); font-weight: 700; font-size: 24px; color: var(--kata); }
.step p { margin: 0; color: var(--ink-2); }
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.contact-card { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px); padding-right: clamp(24px, 22vw, 240px); border-radius: var(--radius-lg); background: var(--kata); color: #fff; border: var(--border); box-shadow: var(--pop); }
.contact-card h3 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.1; color: var(--gon); }
.contact-card p { margin: 10px 0 0; color: rgba(255,255,255,.85); }
.phones { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.phone { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; color: var(--kata); text-decoration: none; font-weight: 700; border: var(--border); transition: transform .25s var(--bounce); }
.phone:hover { transform: translateY(-2px); }
.phone i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gon); font-style: normal; border: 2px solid var(--sauce); }
.phone small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12px; line-height: 1.2; }
.contact-card .gon-peek { position: absolute; right: -40px; bottom: -36px; width: 260px; transform: rotate(-8deg); }
@media (max-width: 800px) { .contact-card { padding-right: clamp(24px, 4vw, 44px); padding-bottom: 150px; } .contact-card .gon-peek { width: 210px; right: -30px; bottom: -50px; } }
.line-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: var(--border); box-shadow: var(--pop); text-align: center; }
.line-card > a:first-of-type { display: block; width: min(220px, 64%); }
.line-card img { width: 100%; border-radius: 14px; }
.line-card h4 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--kata); }
.line-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Page header (job / apply) ---------- */
.page-head { overflow: hidden; padding: clamp(100px, 13vw, 128px) 0 clamp(28px, 4vw, 48px); background: var(--gon); border-radius: 0 0 var(--radius-xl) var(--radius-xl); border-bottom: 6px solid var(--sauce); }
.page-head .img { position: absolute; right: var(--gutter); bottom: -14px; width: min(28vw, 320px); aspect-ratio: 1; border-radius: var(--radius-lg); background: center/cover no-repeat; border: var(--border); box-shadow: var(--pop); transform: rotate(5deg); }
@media (max-width: 760px) { .page-head .img { width: 112px; top: 92px; bottom: auto; right: 16px; } }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; border-radius: 999px; background: #fff; border: 2px solid var(--sauce); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--kata); }
.back:hover { background: var(--butter); }
.page-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 7.2vw, 92px); line-height: 1.06; margin: 16px 0 0; max-width: 66%; color: var(--kata); }
@media (max-width: 760px) { .page-head h1 { max-width: calc(100% - 124px); font-size: clamp(32px, 9vw, 52px); } }
.page-head .desc { margin: 10px 0 0; max-width: 560px; font-size: 17px; color: var(--wakame); }
@media (max-width: 760px) { .page-head .desc { max-width: 100%; } }
.page-head .job-meta { margin-top: 16px; padding-top: 0; }
.page-head .chip { background: #fff; border-color: var(--sauce); }
.page-head .chip.dark { background: var(--kata); color: #fff; }

/* ---------- Job detail + branches ---------- */
.job-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; padding: 32px 0 80px; }
@media (max-width: 960px) { .job-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; } .job-layout .side-card { order: 2; } .job-layout .side-card > .btn { display: none; } }
.side-card { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: var(--border); box-shadow: var(--pop-sm); }
@media (max-width: 960px) { .side-card { position: static; } }
.side-card h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; font-size: 20px; color: var(--kata); }
.side-card ul { margin: 0 0 16px; padding: 0; list-style: none; }
.side-card li { position: relative; padding: 4px 0 4px 26px; font-size: 15px; color: var(--ink-2); }
.side-card li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 12px; border-radius: 50%; background: var(--gon); border: 2px solid var(--sauce); }
.side-pay { margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--kata); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 20px; }
.side-pay small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 13px; color: var(--gon); }
details.side-more summary { cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 18px; color: var(--kata); list-style: none; display: flex; justify-content: space-between; }
details.side-more summary::-webkit-details-marker { display: none; }
details.side-more summary::after { content: "+"; font-size: 22px; line-height: 1; }
details.side-more[open] summary { margin-bottom: 14px; }
details.side-more[open] summary::after { content: "–"; }
@media (min-width: 961px) { details.side-more summary { display: none; } }
.branch-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border-radius: 999px; border: var(--border); background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: box-shadow .2s; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px rgba(144,216,30,.6); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--sauce); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--sauce); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.chip-btn[aria-pressed="true"] { background: var(--kata); color: #fff; }
.branch-count { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.branch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.branch { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-md); background: #fff; border: var(--border); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.branch:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-sm); }
.branch-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.branch h4 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--kata); }
.branch .loc { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.seats { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--butter); border: 2px solid var(--sauce); color: var(--wakame); font-weight: 700; font-size: 13px; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--ink-2); }
.badge.new { background: var(--khaopod); color: var(--wakame); }
.badge.ss { background: var(--kata); color: var(--gon); }
.branch .btn { margin-top: auto; box-shadow: none; border-width: 2px; }
.branch .btn:hover { box-shadow: none; transform: none; filter: brightness(1.05); }
.empty { padding: 40px 20px; text-align: center; border-radius: var(--radius-lg); background: #fff; border: 3px dashed var(--line); }
.empty h4 { margin: 0 0 6px; font-family: var(--f-display); font-size: 22px; color: var(--kata); }
.any-branch { margin-top: 20px; padding: 18px 22px; border-radius: var(--radius-md); background: var(--butter); border: var(--border); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.any-branch p { margin: 0; font-weight: 600; }

/* ---------- Form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding: 32px 0 120px; }
@media (max-width: 960px) { .form-wrap { grid-template-columns: minmax(0, 1fr); padding-bottom: 40px; } .form-aside { display: none; } }
.form-card { padding: clamp(20px, 3.5vw, 40px); border-radius: var(--radius-lg); background: #fff; border: var(--border); box-shadow: var(--pop); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset + .fieldset { margin-top: 34px; padding-top: 30px; border-top: 3px dashed var(--line); }
.legend { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--kata); }
.legend .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gon); border: 2.5px solid var(--sauce); color: var(--wakame); font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field + .field, .grid-2 + .field, .field + .grid-2, .grid-2 + .grid-2 { margin-top: 16px; }
.grid-2 > .field { margin-top: 0; }
.label { font-weight: 700; font-size: 15px; }
.label .req { color: var(--prik); }
.label .opt { font-weight: 500; color: var(--ink-2); font-size: 13px; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 2px solid rgba(73,44,42,.35); background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23492c2a' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sauce); box-shadow: 0 0 0 4px rgba(144,216,30,.6); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .field.has-error .seg span { border-color: var(--prik); }
.err { display: none; font-size: 13.5px; font-weight: 700; color: var(--prik); }
.field.has-error .err { display: block; }
.hint { font-size: 13px; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.seg label { position: relative; min-width: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 14px; border-radius: 999px; border: 2px solid rgba(73,44,42,.35); background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; text-align: center; transition: all .2s; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(144,216,30,.6); }
.seg input:checked + span { background: var(--gon); border-color: var(--sauce); color: var(--wakame); box-shadow: 3px 3px 0 var(--sauce); }
.seg .lgbt input:checked + span { background: linear-gradient(90deg, #d12d26, #fe622d, #f7e600, #1fbe60, #67a0f7, #0131a3); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-md); border: 2.5px dashed rgba(73,44,42,.4); background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.is-over { border-color: var(--sauce); background: #f1f9e2; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--gon); border: 2px solid var(--sauce); font-size: 24px; }
.drop b { display: block; font-size: 15.5px; word-break: break-all; }
.drop small { color: var(--ink-2); }
.drop .remove { position: relative; z-index: 2; margin-left: auto; border: 2px solid var(--sauce); background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; cursor: pointer; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--kata); }
.consent span { font-size: 14.5px; }
.form-aside { position: sticky; top: 96px; }
.form-aside .gon-aside { position: relative; z-index: 1; width: 170px; margin: 0 auto -8px; }
.form-aside .side-card { position: relative; z-index: 2; top: 0; }
.summary-pos { font-family: var(--f-display); font-weight: 700; font-size: 26px; line-height: 1.15; margin: 10px 0 12px; color: var(--kata); }
.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 2px dashed var(--line); font-size: 15px; }
.summary-row span:first-child { color: var(--ink-2); }
.summary-row b { text-align: right; }
.submit-bar { margin-top: 28px; }
@media (max-width: 960px) {
  .submit-bar { position: sticky; bottom: 0; z-index: 20; margin: 28px calc(-1 * clamp(20px, 3.5vw, 40px)) calc(-1 * clamp(20px, 3.5vw, 40px)); padding: 14px clamp(20px, 3.5vw, 40px) calc(14px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 2px dashed var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Success ---------- */
.success { overflow: hidden; min-height: 100svh; display: grid; place-items: end center; padding: 104px var(--gutter) 0; background: var(--gon); border-radius: 0 0 var(--radius-xl) var(--radius-xl); text-align: center; }
.success-inner { width: 100%; max-width: 760px; }
.success .mascot { width: min(400px, 84%); }
.success .sign h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 7vw, 76px); line-height: 1.1; color: var(--kata); }
.success .sign p { max-width: 520px; margin: 12px auto 0; color: var(--ink-2); font-size: 17px; }
.ref { display: inline-block; margin-top: 18px; padding: 10px 22px; border-radius: var(--radius-md); background: var(--butter); border: 2.5px dashed var(--sauce); }
.ref small { display: block; font-size: 13px; color: var(--ink-2); }
.ref b { font-family: var(--f-display); font-size: 26px; letter-spacing: .06em; color: var(--kata); }

/* ---------- Footer ---------- */
.footer { background: var(--kata); color: #fff; margin-top: -40px; padding: 104px 0 32px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.footer-badge { width: min(400px, 84%); height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 32px; padding-top: 26px; border-top: 2px dashed rgba(255,255,255,.22); }
.footer h4 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 700; color: var(--gon); font-size: 18px; }
.footer p { margin: 0; color: rgba(255,255,255,.8); font-size: 15px; }
.footer a { color: #fff; font-weight: 700; }
.footer-copy { margin-top: 30px !important; font-size: 13px !important; color: rgba(255,255,255,.5) !important; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); z-index: 100; transform: translate(-50%, -240%); visibility: hidden; padding: 12px 20px; border-radius: 999px; background: var(--prik); color: #fff; font-weight: 700; border: var(--border); box-shadow: var(--pop-sm); transition: transform .45s var(--bounce), visibility .45s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.view-enter { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
[hidden] { display: none !important; }
