/* ═══════════════════════════════════════════════════════════════════
   TheWanderCorp Career — Public Form Stylesheet
   /career/style.css
   ───────────────────────────────────────────────────────────────────
   Design language: Apple HIG influence.
     · Pure monochrome + 1 accent (system blue subtle)
     · SF Pro / system-ui stack
     · Generous whitespace, optical alignment
     · Soft shadows, no harsh borders
     · 16px base, 1.5 line-height
     · prefers-color-scheme: dark aware
     · Mobile-first, breakpoints 480 / 768 / 1024
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Mono palette (light) */
  --bg:        #FBFBFD;
  --bg-elev:  #FFFFFF;
  --bg-soft:  #F5F5F7;
  --ink:      #1D1D1F;
  --ink-2:    #424245;
  --ink-3:    #6E6E73;
  --ink-4:    #86868B;
  --line:     #D2D2D7;
  --line-2:   #E5E5EA;
  /* Accent (Apple system blue, used sparingly) */
  --accent:    #0071E3;
  --accent-dk: #0058B0;
  --accent-lt: #E8F1FD;
  /* Semantic */
  --success:   #1A8917;
  --success-lt:#E6F4E6;
  --warn:      #B25000;
  --warn-lt:   #FFF1E0;
  --danger:    #D70015;
  --danger-lt: #FFE8EA;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);

  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --ease:     cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #000000;
    --bg-elev:  #1C1C1E;
    --bg-soft:  #2C2C2E;
    --ink:      #F5F5F7;
    --ink-2:    #D1D1D6;
    --ink-3:    #98989D;
    --ink-4:    #6E6E73;
    --line:     #38383A;
    --line-2:   #2C2C2E;
    --accent:   #0A84FF;
    --accent-dk:#0071E3;
    --accent-lt:#1A2A40;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.4);
  }
}

html, body { min-height: 100%; background: var(--bg); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
               'Inter', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  padding: 24px 16px;
  padding-top: max(32px, var(--safe-top));
  padding-bottom: max(48px, var(--safe-bottom));
}

/* ───────────────────────────────────────────────────────────────
   Reusable typography
   ─────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

/* ═══ LANDING /career/ ═══════════════════════════════════════════ */
.list-wrap {
  max-width: 720px;
  margin: 32px auto;
  padding: 0;
}
.list-hd {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 8px;
}
.list-hd .eyebrow { justify-content: center; }
.list-hd h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 12px;
  color: var(--ink);
}
.list-hd p {
  font-size: 17px;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.list-stack { display: flex; flex-direction: column; gap: 10px; }
.list-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.list-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: var(--shadow-md);
}
.list-card:active { transform: translateY(0); }
.list-card-ic {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  font-size: 22px;
}
.list-card-body { flex: 1; min-width: 0; }
.list-card-t {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}
.list-card-d {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-card-chev {
  font-size: 22px;
  color: var(--ink-4);
  font-weight: 300;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.list-card:hover .list-card-chev { transform: translateX(4px); color: var(--ink-2); }

.list-empty {
  text-align: center;
  padding: 72px 24px;
  color: var(--ink-3);
  background: var(--bg-elev);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
}
.list-empty-emoji { font-size: 48px; opacity: .4; margin-bottom: 16px; }
.list-empty-t { font-size: 17px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.list-empty-d { font-size: 14px; line-height: 1.5; }

/* ═══ FORM PAGE /career/{slug}/ ═══════════════════════════════════ */
.form-wrap { max-width: 640px; margin: 24px auto; }
.form-hd {
  text-align: center;
  margin-bottom: 36px;
  padding: 0 4px;
}
.form-hd .eyebrow { justify-content: center; }
.form-hd h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin-bottom: 12px;
}
.form-hd p {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto;
}

.preview-banner {
  margin-top: 20px;
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--warn-lt);
  color: var(--warn);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Form card container */
form {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 480px) {
  form { padding: 24px 20px; border-radius: var(--r-lg); }
}

/* ═══ ALERT ════════════════════════════════════════════════════════ */
.alert {
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.alert.err {
  background: var(--danger-lt);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
}
.alert.err strong { display: block; margin-bottom: 6px; font-weight: 600; }
.alert.err ul { margin-left: 20px; line-height: 1.7; }

/* ═══ HONEYPOT ═════════════════════════════════════════════════════ */
.honey {
  position: absolute; left: -9999px; top: -9999px;
  width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}

/* ═══ SECTION HEADER ═══════════════════════════════════════════════ */
.sec {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 32px 0 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}
.sec-desc {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 16px;
  line-height: 1.55;
}
form > .sec:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ═══ FIELD GROUP ══════════════════════════════════════════════════ */
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.005em;
}
.req-star { color: var(--danger); font-weight: 600; margin-left: 2px; }

.fg input[type=text], .fg input[type=tel], .fg input[type=email],
.fg input[type=date], .fg input[type=time], .fg input[type=number],
.fg input[type=url], .fg textarea, .fg select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg-elev);
  color: var(--ink);
  outline: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent);
}
.fg textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.fg input[type=number] { -moz-appearance: textfield; }
.fg input[type=number]::-webkit-outer-spin-button,
.fg input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

/* Select chevron */
.fg select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='none' stroke='%236E6E73' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.fg .hint {
  display: block;
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
  line-height: 1.45;
}

/* iOS: prevent zoom on focus by using 16px input font */
@media (max-width: 480px) {
  .fg input[type=text], .fg input[type=tel], .fg input[type=email],
  .fg input[type=date], .fg input[type=time], .fg input[type=number],
  .fg input[type=url], .fg textarea, .fg select { font-size: 16px; }
}

/* ═══ RADIO / CHECKBOX (card-style) ═══════════════════════════════ */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  cursor: pointer;
  font-weight: 500;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.radio-item:hover { border-color: var(--ink-3); }
.radio-item:has(input:checked) {
  border-color: var(--ink);
  background: var(--bg-soft);
}
.radio-item input {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px; height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}
.radio-item span {
  flex: 1;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}

/* ═══ AGREE (consent box) ═══════════════════════════════════════════ */
.agree-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .15s var(--ease);
}
.agree-item:has(input:checked) { border-color: var(--ink); }
.agree-item input {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--ink);
  cursor: pointer;
}
.agree-item span {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ═══ FILE UPLOAD ══════════════════════════════════════════════════ */
.file-field {
  display: flex; flex-direction: column; gap: 8px;
}
.file-field input[type=file] {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.file-field input[type=file]:hover {
  border-color: var(--ink-3);
  background: var(--bg-soft);
}
.file-field input[type=file]::-webkit-file-upload-button {
  background: var(--ink);
  color: var(--bg-elev);
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
}
.file-status {
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 2px 2px;
  display: flex; align-items: center; gap: 6px;
}
.file-status.ok { color: var(--success); }
.file-status.err { color: var(--danger); }
.file-status code {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* ═══ RATING (★) ═══════════════════════════════════════════════════ */
.rating-group { display: flex; gap: 6px; }
.rating-star {
  background: none; border: none; cursor: pointer;
  font-size: 32px; line-height: 1; padding: 4px;
  color: var(--line);
  font-family: inherit;
  transition: color .12s var(--ease), transform .1s var(--ease);
}
.rating-star:hover { color: var(--ink-3); transform: scale(1.1); }
.rating-star.on { color: var(--ink); }

/* ═══ LINEAR SCALE ═════════════════════════════════════════════════ */
.scale-group {
  display: flex; gap: 6px; flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.scale-item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg-elev);
  cursor: pointer;
  transition: all .12s var(--ease);
  font-weight: 600;
  color: var(--ink-2);
}
.scale-item:has(input:checked) {
  background: var(--ink);
  color: var(--bg-elev);
  border-color: var(--ink);
}
.scale-item input { display: none; }
.scale-item span { font-size: 15px; }
.scale-labels {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-3);
  margin-top: 8px;
  padding: 0 4px;
}

/* ═══ ACTIONS / BUTTONS ════════════════════════════════════════════ */
.actions { margin-top: 32px; display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s var(--ease), transform .1s var(--ease), border-color .15s var(--ease);
  min-height: 44px;
  -webkit-appearance: none;
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary {
  background: var(--ink);
  color: var(--bg-elev);
}
.btn-primary:hover:not(:disabled) { background: var(--ink-2); }
.btn-primary:active:not(:disabled) { transform: scale(.98); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }
.btn-lg { flex: 1; padding: 16px 24px; font-size: 16px; }

.privacy-note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 18px;
  text-align: center;
  line-height: 1.55;
}

/* ═══ FOOTER ═══════════════════════════════════════════════════════ */
.form-foot {
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}
.form-foot a {
  color: var(--ink-3);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s var(--ease);
}
.form-foot a:hover { color: var(--ink); }

/* ═══ HALAMAN TERIMA KASIH ═════════════════════════════════════════ */
.ok-wrap { max-width: 540px; margin: 80px auto 64px; padding: 0 8px; }
.ok-card {
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 56px 40px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.ok-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: var(--bg-soft);
  border-radius: 50%;
}
.ok-card h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.18;
  margin-bottom: 14px;
}
.ok-lead {
  font-size: 16px;
  color: var(--ink-3);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.ok-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ok-id strong {
  font-size: 13.5px;
  color: var(--ink);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.ok-foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-4);
  line-height: 1.55;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ Reduced motion ═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
