/* =====================================================================
   SPMB SMK Negeri 3 Sigli — Sistem Desain
   Palet: biru gelap (abyss/navy) dipadu biru air laut (sea)
   ===================================================================== */

/* ── 1. Token ──────────────────────────────────────────────────────── */
:root {
  /* Biru gelap — dasar antarmuka */
  --abyss:      #030B1A;
  --navy-900:   #061A33;
  --navy-800:   #0A2547;
  --navy-700:   #0F3462;
  --navy-600:   #14457F;

  /* Biru air laut — aksen */
  --sea-700:    #086A80;
  --sea-600:    #0B7A8F;
  --sea-500:    #12A0BC;
  --sea-400:    #24BEDA;
  --sea-300:    #5AD7ED;
  --sea-200:    #9BE9F7;

  /* Netral */
  --paper:      #F6FAFD;
  --mist:       #DCE9F2;
  --slate:      #8CA6BE;
  --slate-dim:  #5E7A94;

  /* Semantik */
  --amber:      #F2B441;
  --green:      #34D399;
  --rose:       #FB7185;

  /* Peran warna (mode gelap adalah bawaan situs publik) */
  --bg:         var(--abyss);
  --bg-elev:    #071F3B;
  --bg-card:    rgba(10, 37, 71, .55);
  --line:       rgba(90, 215, 237, .16);
  --line-soft:  rgba(90, 215, 237, .08);
  --text:       #E8F3FA;
  --text-dim:   #9DB6CC;
  --text-mute:  #6F8CA6;

  /* Bentuk & gerak */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-xl: 32px;
  --pad:  clamp(1.25rem, 4vw, 2.5rem);
  --gut:  clamp(1.25rem, 5vw, 4rem);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t:    .45s var(--ease);

  --shadow-soft: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 50px -24px rgba(0,0,0,.9);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.06) inset, 0 32px 70px -30px rgba(0,0,0,.95);

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── 2. Dasar ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Tekstur latar: dua sorotan biru laut + kisi halus */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 40rem at 82% -8%,  rgba(18,160,188,.20), transparent 62%),
    radial-gradient(46rem 36rem at 6%  18%,  rgba(20, 69,127,.30), transparent 60%),
    radial-gradient(40rem 30rem at 50% 108%, rgba(11,122,143,.16), transparent 60%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(90,215,237,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,215,237,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 85%);
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--sea-300); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sea-200); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.022em;
}

input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--sea-500);
  cursor: pointer;
}

::selection { background: var(--sea-500); color: #02121C; }

:focus-visible {
  outline: 2px solid var(--sea-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 3. Tata letak ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.stack   { display: flex; flex-direction: column; gap: 1rem; }
.row     { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer  { flex: 1 1 auto; }

/* ── 4. Kepala bagian ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea-300);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sea-400));
}

.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  margin-block: .75rem .9rem;
}
.sec-head p { color: var(--text-dim); font-size: 1.02rem; }

/* Nomor bagian sebagai motif desain */
.sec-num {
  position: absolute;
  top: clamp(2rem, 5vw, 3.5rem);
  right: var(--gut);
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(90, 215, 237, .13);
  pointer-events: none;
  user-select: none;
}

/* ── 5. Tombol ─────────────────────────────────────────────────────── */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.5rem;
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  --btn-fg: #02121C;
  background: linear-gradient(135deg, var(--sea-300), var(--sea-500));
  border-color: transparent;
  box-shadow: 0 12px 34px -14px rgba(36, 190, 218, .85);
}
.btn--primary:hover { box-shadow: 0 20px 44px -16px rgba(36, 190, 218, .95); }

.btn--ghost { background: rgba(255,255,255,.03); }
.btn--ghost:hover { background: rgba(90,215,237,.10); border-color: rgba(90,215,237,.35); }

.btn--solid {
  --btn-fg: var(--text);
  background: var(--navy-700);
  border-color: rgba(90,215,237,.22);
}
.btn--solid:hover { background: var(--navy-600); }

.btn--danger { --btn-fg: #2A0A10; background: var(--rose); border-color: transparent; }
.btn--ok     { --btn-fg: #04231A; background: var(--green); border-color: transparent; }
.btn--sm     { padding: .55rem 1rem; font-size: .84rem; }
.btn--block  { width: 100%; }

/* ── 6. Kartu ──────────────────────────────────────────────────────── */
.card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card--hover:hover {
  transform: translateY(-6px);
  border-color: rgba(90,215,237,.34);
  box-shadow: var(--shadow-lift);
}
/* Kilau tipis di tepi atas kartu */
.card--glow::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,215,237,.6), transparent);
  border-radius: inherit;
}

.card__ico {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  color: var(--sea-300);
  background: linear-gradient(150deg, rgba(36,190,218,.18), rgba(20,69,127,.28));
  border: 1px solid rgba(90,215,237,.22);
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.card p  { color: var(--text-dim); font-size: .94rem; }

/* ── 7. Lencana ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .3rem .72rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--wait { color: var(--amber);   background: rgba(242,180,65,.10); }
.badge--ok   { color: var(--sea-300); background: rgba(90,215,237,.10); }
.badge--pass { color: var(--green);   background: rgba(52,211,153,.10); }
.badge--alt  { color: #C4B5FD;        background: rgba(196,181,253,.10); }
.badge--fail { color: var(--rose);    background: rgba(251,113,133,.10); }

/* ── 8. Bilah navigasi ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(3, 11, 26, .82);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav__in {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: .8rem; color: var(--text); }
/* Lambang sekolah — bisa berupa <img> maupun <svg> cadangan.
   Ukurannya ditentukan lewat inline style dari logo_spmb(), aturan di sini
   hanya menjadi jaring pengaman bila style itu tidak ikut terpasang. */
.brand__mark {
  width: 42px;
  height: auto;
  flex: none;
  object-fit: contain;
}
.brand__txt strong {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.brand__txt span {
  display: block;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sea-300);
}

.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: .55rem .9rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text); background: rgba(90,215,237,.08); }
.nav__links a.is-active { color: var(--sea-300); }
.nav__links a.is-active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 2px;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--sea-400);
}

.nav__cta { margin-left: .5rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav__links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
    padding: 1rem var(--gut) 1.75rem;
    background: rgba(4, 15, 33, .97);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: .85rem 1rem; font-size: 1rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: .6rem 0 0; }
  .btn.nav__cta { width: 100%; }
}

/* ── 9. Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2.15rem, 5.6vw, 4rem);
  margin-block: 1.1rem 1.3rem;
}
.hero h1 .accent {
  background: linear-gradient(105deg, var(--sea-200), var(--sea-400) 45%, var(--sea-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--text-dim);
}
.hero__acts { margin-top: 2rem; gap: .85rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
}
.hero__meta > div {
  flex: 1 1 130px;
  padding-right: 1.25rem;
}
.hero__meta > div + div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line-soft);
}
.hero__meta b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--sea-300);
}
.hero__meta span {
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* Kartu status melayang di sisi kanan hero */
.hero__panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: linear-gradient(158deg, rgba(15,52,98,.72), rgba(6,26,51,.86));
  border: 1px solid rgba(90,215,237,.20);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero__panel::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(90,215,237,.5), transparent 40%, transparent 65%, rgba(18,160,188,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero__panel h3 { font-size: 1.05rem; }

.pulse {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
}
.pulse i {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.pulse i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.9s var(--ease) infinite;
}
.pulse--off { color: var(--text-mute); }
.pulse--off i { background: var(--text-mute); }
.pulse--off i::after { animation: none; }
@keyframes ping {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(3.2); opacity: 0;  }
  100% { transform: scale(3.2); opacity: 0;  }
}

/* Ombak dekoratif di kaki hero */
.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(70px, 10vw, 130px);
  color: var(--navy-900);
  opacity: .55;
  pointer-events: none;
}

/* ── 10. Daftar kuota jurusan ──────────────────────────────────────── */
.major {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.major__code {
  display: inline-flex;
  align-items: center;
  padding: .22rem .6rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--sea-300);
  background: rgba(90,215,237,.10);
  border: 1px solid rgba(90,215,237,.24);
  border-radius: 6px;
}
.major h3 { margin-block: .85rem .5rem; font-size: 1.08rem; }
.major p { flex: 1; }
.major__prospek {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px dashed var(--line);
  font-size: .82rem;
  color: var(--text-mute);
}
.major__prospek b {
  display: block;
  margin-bottom: .2rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea-300);
}

.meter { margin-top: 1.15rem; }
.meter__top {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: .45rem;
}
.meter__top b { color: var(--text); font-weight: 600; }
.meter__bar {
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sea-600), var(--sea-300));
  transform-origin: left;
  animation: grow 1.1s var(--ease) both;
}
.meter__fill--full { background: linear-gradient(90deg, #B45309, var(--amber)); }
@keyframes grow { from { transform: scaleX(0); } }

/* ── 11. Alur / linimasa ───────────────────────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0;
  counter-reset: step;
}
.flow__item {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border: 1px solid var(--line-soft);
  border-right: 0;
  transition: background .35s;
}
.flow__item:first-child { border-radius: var(--r-lg) 0 0 var(--r-lg); }
.flow__item:last-child  { border-right: 1px solid var(--line-soft); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.flow__item:hover { background: rgba(90,215,237,.045); }
.flow__item::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: .9rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--sea-400);
}
/* Titik penghubung antar langkah */
.flow__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 2.35rem; right: -4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sea-500);
  box-shadow: 0 0 0 4px rgba(3,11,26,1);
  z-index: 1;
}
.flow__item h3 { font-size: 1rem; margin-bottom: .45rem; }
.flow__item p  { font-size: .88rem; color: var(--text-dim); }

@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
  .flow__item { border-right: 1px solid var(--line-soft); border-bottom: 0; border-radius: 0 !important; }
  .flow__item:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0 !important; }
  .flow__item:last-child  { border-bottom: 1px solid var(--line-soft); border-radius: 0 0 var(--r-lg) var(--r-lg) !important; }
  .flow__item:not(:last-child)::after { top: auto; bottom: -4px; right: auto; left: 1.5rem; }
}

/* ── 12. Formulir ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--span { grid-column: 1 / -1; }

.field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text-dim);
}
.field label .req { color: var(--rose); }

.input, .select, .textarea {
  width: 100%;
  padding: .78rem .95rem;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: rgba(3, 14, 30, .6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(90,215,237,.3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--sea-400);
  background: rgba(6, 26, 51, .8);
  box-shadow: 0 0 0 4px rgba(36,190,218,.12);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235AD7ED' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
}
.select option { background: var(--navy-800); color: var(--text); }

.hint { font-size: .78rem; color: var(--text-mute); }
.err  { font-size: .78rem; color: var(--rose); }
.field.has-err .input,
.field.has-err .select,
.field.has-err .textarea { border-color: var(--rose); }

/* Pilihan berbentuk kartu (radio) */
.pick { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%,220px), 1fr)); }
.pick > div { position: relative; }
.pick input {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pick label {
  display: block;
  padding: 1rem 1.1rem;
  font-size: .92rem;
  color: var(--text-dim);
  background: rgba(3,14,30,.5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.pick label b { display: block; color: var(--text); font-family: var(--font-display); font-size: .96rem; }
.pick label small { display: block; margin-top: .2rem; font-size: .8rem; }
.pick label:hover { border-color: rgba(90,215,237,.35); transform: translateY(-2px); }
.pick input:checked + label {
  color: var(--text);
  background: linear-gradient(150deg, rgba(36,190,218,.14), rgba(20,69,127,.2));
  border-color: var(--sea-400);
  box-shadow: 0 0 0 3px rgba(36,190,218,.12);
}
.pick input:focus-visible + label { outline: 2px solid var(--sea-400); outline-offset: 2px; }

/* Kotak unggah berkas */
.drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  background: rgba(3,14,30,.5);
  border: 1px dashed rgba(90,215,237,.3);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.drop:hover { border-color: var(--sea-400); background: rgba(36,190,218,.06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  color: var(--sea-300);
  background: rgba(90,215,237,.1);
  border: 1px solid rgba(90,215,237,.2);
}
.drop__ico svg { width: 18px; height: 18px; }
.drop__txt { min-width: 0; }
.drop__txt b { display: block; font-size: .88rem; font-weight: 600; }
.drop__txt span { display: block; font-size: .76rem; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.is-filled { border-style: solid; border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.05); }
.drop.is-filled .drop__ico { color: var(--green); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.25); }

/* ── 13. Langkah formulir (stepper) ────────────────────────────────── */
.steps {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line-soft);
}
.steps::-webkit-scrollbar { display: none; }
.step {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .85rem;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-mute);
  background: none;
  border: 0;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .3s, background .3s;
}
.step__n {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: none;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: all .3s;
}
.step.is-active { color: var(--text); background: rgba(90,215,237,.1); }
.step.is-active .step__n { color: #02121C; background: var(--sea-400); border-color: transparent; }
.step.is-done { color: var(--sea-300); }
.step.is-done .step__n { color: #02121C; background: var(--sea-600); border-color: transparent; }

.panel { display: none; animation: slide .45s var(--ease); }
.panel.is-active { display: block; }
@keyframes slide { from { opacity: 0; transform: translateY(14px); } }

.panel__head { margin-bottom: 1.5rem; }
.panel__head h3 { font-size: 1.28rem; margin-bottom: .3rem; }
.panel__head p  { font-size: .9rem; color: var(--text-dim); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.1rem;
}

.form-nav {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
}

/* ── 14. Peringatan ────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  line-height: 1.55;
  border: 1px solid currentColor;
  border-radius: var(--r-md);
}
.alert p { color: var(--text); }
.alert__dot {
  width: 8px; height: 8px;
  margin-top: .5rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.alert--sukses { color: var(--green); background: rgba(52,211,153,.07); }
.alert--galat  { color: var(--rose);  background: rgba(251,113,133,.07); }
.alert--info   { color: var(--sea-300); background: rgba(90,215,237,.07); }
.alert--ingat  { color: var(--amber); background: rgba(242,180,65,.07); }

/* ── 15. Tabel ─────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(6,26,51,.4);
}
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  padding: .9rem 1rem;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--sea-300);
  background: rgba(10,37,71,.7);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: rgba(90,215,237,.04); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; }
.table__empty { padding: 3.5rem 1rem; text-align: center; color: var(--text-mute); }

/* ── 16. Kaki halaman ──────────────────────────────────────────────── */
.foot {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, rgba(6,26,51,.6));
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
}
.foot h4 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea-300);
}
.foot ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.foot a, .foot p { font-size: .88rem; color: var(--text-dim); }
.foot a:hover { color: var(--sea-300); }
.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  color: var(--text-mute);
}

/* ── 17. Utilitas ──────────────────────────────────────────────────── */
.center     { text-align: center; }
.mono       { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.muted      { color: var(--text-dim); }
.mute-more  { color: var(--text-mute); }
.small      { font-size: .84rem; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Tampil bertahap saat digulir */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@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; }
}

/* ── 18. Cetak ─────────────────────────────────────────────────────── */
@media print {
  body::before, body::after, .nav, .foot, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .wrap { max-width: none; padding: 0; }
}
