/* ============================================
   Jingles Pet Foods — Careers (kerja.jinglespet.com)
   ============================================ */
:root {
  --bg: #0f0f0f;
  --bg-2: #161616;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --brand: #f59e0b;
  --brand-2: #fbbf24;
  --brand-ink: #1a1206;
  --ok: #22c55e;
  --err: #f87171;
  --radius: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(245, 158, 11, 0.3); }
*:focus-visible { outline: 2px solid rgba(245, 158, 11, 0.7); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 24px rgba(245, 158, 11, .25); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-wa { background: #25d366; color: #06290f; }
.btn-wa:hover { background: #3be07a; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }

/* ---- Navbar ---- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled, .nav.solid {
  background: rgba(15,15,15,.88);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand span { font-size: 15px; letter-spacing: -.01em; }

/* ---- Hero ---- */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,.55) 0%, rgba(15,15,15,.35) 35%, rgba(15,15,15,.92) 75%, var(--bg) 100%);
}
.hero-content { position: relative; padding-top: 120px; padding-bottom: 48px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.35);
  color: var(--brand-2); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.hero h1 { font-size: clamp(52px, 14vw, 112px); line-height: .92; letter-spacing: -.04em; margin: 18px 0 16px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.salary-box {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px;
  padding: 16px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 24px;
}
.salary-box b { font-size: clamp(24px, 7vw, 34px); letter-spacing: -.02em; }
.salary-box b.hl { color: var(--brand); }
.salary-box small { color: var(--faint); font-size: 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 150px; max-width: 220px; }

/* ---- Sections ---- */
section.block { padding: 72px 0; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
h2 { font-size: clamp(30px, 7vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 14px; font-weight: 800; }
h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 28px; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fact small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.fact b { font-size: 18px; }

.shifts { display: grid; gap: 12px; }
.shift { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shift .when { color: var(--muted); font-size: 14px; }
.shift b { font-size: 16px; white-space: nowrap; }
.day-label { color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 -2px; }

.grid-3 { display: grid; gap: 14px; }
.duty-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.duty-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.duty-list li { color: var(--muted); font-size: 15px; }
.duty-list b { color: var(--text); }

.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: 0 0 62%; max-width: 300px; scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: 18px; background: var(--card); }
.gallery figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.checks .ico { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,158,11,.15); color: var(--brand); font-size: 14px; font-weight: 800; }
.checks b { display: block; }
.checks span.muted { font-size: 14px; }

.perks { display: grid; gap: 12px; }
.perk .emoji { font-size: 26px; margin-bottom: 8px; }
.perk p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- Apply section ---- */
.apply-section { padding: 72px 0 96px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.form-card { background: var(--card-strong); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; }

/* ---- Form ---- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--brand); }
.field label .opt { color: var(--faint); font-weight: 500; }
.input {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: 500 16px var(--font); /* 16px prevents iOS zoom */
  color: var(--text); background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: rgba(255,255,255,.3); }
.input:focus { outline: none; border-color: rgba(245,158,11,.7); box-shadow: 0 0 0 3px rgba(245,158,11,.18); }
.input[aria-invalid="true"] { border-color: var(--err); }
select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f59e0b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
select.input option { background: #1a1a1a; color: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.hint { font-size: 13px; color: var(--faint); margin-top: 6px; }
.field-err { font-size: 13px; color: var(--err); margin-top: 6px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.file-zone {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 60px; border-radius: 14px;
  border: 1.5px dashed rgba(255,255,255,.2); background: rgba(0,0,0,.25); cursor: pointer;
}
.file-zone:hover, .file-zone.drag { border-color: rgba(245,158,11,.6); background: rgba(245,158,11,.05); }
.file-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-zone .ico { flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(245,158,11,.14); color: var(--brand); font-size: 18px; }
.file-zone .txt { font-size: 14px; color: var(--muted); min-width: 0; }
.file-zone .txt b { color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-clear { position: relative; z-index: 2; margin-left: auto; background: none; border: 0; color: var(--faint); font-size: 22px; cursor: pointer; padding: 4px 8px; }

.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin: 6px 0 14px; }
.progress div { height: 100%; width: 0; background: var(--brand); transition: width .2s; }

.form-error { background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); color: #fecaca; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.recaptcha-note { text-align: center; color: var(--faint); font-size: 12px; margin: 12px 0 0; }
.recaptcha-note a { color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(26,18,6,.3); border-top-color: var(--brand-ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.state { text-align: center; padding: 18px 4px; }
.state .big { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.state h3 { font-size: 24px; margin-bottom: 8px; }
.state p { color: var(--muted); margin: 0 0 20px; }
.skeleton { height: 52px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Hide reCAPTCHA v3 badge (the required notice is shown under the button). */
.grecaptcha-badge { visibility: hidden !important; }

/* ---- Sticky mobile CTA (index) ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,15,15,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.show { transform: none; }
.sticky-cta .s-txt { flex: 1; font-size: 13px; color: var(--muted); line-height: 1.3; }
.sticky-cta .s-txt b { color: var(--text); font-size: 15px; display: block; }

/* ---- Floating WhatsApp button ---- */
.wa-fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .2s ease, bottom .3s ease;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:focus-visible { outline: 3px solid rgba(37,211,102,.6); outline-offset: 3px; }
/* Lift above the sticky "Apply Now" bar on phones */
body.sticky-on .wa-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  body.sticky-on .wa-fab { bottom: 24px; }
  .wa-fab { right: 24px; bottom: 24px; }
}

/* ---- Footer ---- */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.socials { display: flex; gap: 16px; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--brand); }

/* ---- Fade-in ---- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.fade.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
}

/* ============ apply-crew.html (ad landing) ============ */
.lp-head { padding: 12px 0 0; }
.lp-hero { padding: 12px 0 4px; }
.lp-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; font-size: clamp(30px, 9vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin: 4px 0 2px; font-weight: 800; }
.lp-title .pill { font-size: 11px; padding: 4px 10px; letter-spacing: .06em; }
.lp-sub { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.lp-salary { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; padding: 10px 14px; border-radius: 14px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); margin-bottom: 10px; }
.lp-salary b { font-size: 22px; letter-spacing: -.02em; }
.lp-salary .arrow { color: var(--brand); font-weight: 800; }
.lp-salary small { color: var(--muted); font-size: 13px; flex-basis: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--card); border: 1px solid var(--line); }
.lp-reqs { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; line-height: 1.45; }
.lp-reqs b { color: var(--brand); display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

/* ---- Larger screens ---- */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 32px; }
  .gallery figure { flex-basis: 260px; }
}
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(3, 1fr); }
  .checks { grid-template-columns: 1fr 1fr; }
  .two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
  .sticky-cta { display: none; }
  .hero-content { padding-bottom: 72px; }
}
