/* ============================================================
   MJ OVERRIDES — hanya penyesuaian brand di atas styles.css /
   styles-sections.css / styles-fx.css. Jangan taruh layout baru
   di sini kecuali memang khas MJ.
   ============================================================ */

/* --- Brand mark: logo asli, bukan huruf --- */
.brand-mark.brand-logo {
  background: #fff;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 4px 14px rgba(0,0,0,0.3);
}
.brand-mark.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
}

/* --- Watermark logo di hero --- */
.hero-seal {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: min(560px, 48vw);
  aspect-ratio: 1;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(1) brightness(2.2);
  animation: seal-drift 26s ease-in-out infinite;
}
.hero-seal img { width: 100%; height: 100%; object-fit: contain; }

@keyframes seal-drift {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  50%      { transform: translateY(-52%) rotate(6deg) scale(1.04); }
}

@media (max-width: 900px) { .hero-seal { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-seal { animation: none; } }

/* --- Kartu divisi: logo kecil sebagai lencana, bukan inisial bulat --- */
.divisi-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 14px;
}

/* --- Baris nilai/prinsip di section tentang --- */
.value-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 34px;
}
.value-cell {
  background: var(--bg-2);
  padding: 22px 20px;
  transition: background 0.25s ease;
}
.value-cell:hover { background: var(--surface); }
.value-cell-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.value-cell-v {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}
.value-cell-s {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 6px;
  line-height: 1.5;
}

/* --- Akronim JIHAD dieja per huruf --- */
.akronim {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.akronim-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  background: var(--bg-2);
  align-items: center;
  transition: background 0.25s ease;
}
.akronim-row:hover { background: var(--surface); }
.akronim-huruf {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  padding: 16px 0;
  border-right: 1px solid var(--line);
  align-self: stretch;
  display: grid;
  place-items: center;
}
.akronim-kata {
  padding: 16px 20px;
  font-size: 16px;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}
.akronim-kata b { color: var(--ink); font-weight: 600; }

/* --- Placeholder fakta yang belum terverifikasi --- */
.todo-fact {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  font-style: italic;
  opacity: 0.85;
}

/* ============================================================
   KUESIONER — Student Interest Card
   ============================================================ */
.kues-form {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.kues-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 30px 30px 28px;
}
.kues-block legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 0 12px 0 0;
  line-height: 1.2;
}
.kues-letter {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1204;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
}
.kues-hint {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 14px 0 16px;
}
.kues-hint b { color: var(--accent); font-weight: 600; }

.kues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* --- Chips multi-select --- */
.chipset { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.2;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.chip:hover:not(.is-disabled) {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.chip-box {
  width: 18px; height: 18px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 11px;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.chip.is-on {
  background: rgba(232,176,74,0.13);
  border-color: var(--accent);
  color: var(--ink);
}
.chip.is-on .chip-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1204;
  font-weight: 700;
}
.chip.is-disabled { opacity: 0.35; cursor: not-allowed; }

.kues-other {
  width: 100%;
  margin-top: 16px;
  padding: 12px 15px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.kues-other::placeholder { color: var(--ink-mute); }
.kues-other:focus { outline: none; border-color: var(--accent); }

.kues-textarea {
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
}
.kues-textarea::placeholder { color: var(--ink-mute); }
.kues-textarea:focus { outline: none; border-color: var(--accent); }

/* --- Radio bagian F --- */
.radioset { display: flex; flex-direction: column; gap: 10px; }
.radio-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  font-size: 15px;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.radio-opt:hover { border-color: var(--accent); color: var(--ink); }
.radio-dot {
  width: 18px; height: 18px;
  flex: none;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.radio-opt.is-on {
  border-color: var(--accent);
  background: rgba(232,176,74,0.13);
  color: var(--ink);
}
.radio-opt.is-on .radio-dot {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--accent);
}

.kues-error {
  padding: 14px 18px;
  border: 1px solid var(--danger);
  border-radius: var(--r-md);
  background: rgba(196,87,87,0.12);
  color: #f0c4c4;
  font-size: 14px;
}

.kues-submit {
  width: 100%;
  justify-content: center;
  padding: 17px 28px;
  font-size: 16px;
}
.kues-submit:disabled { opacity: 0.6; cursor: wait; }

/* --- Layar terima kasih --- */
.kues-done {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 52px 38px 46px;
}
.kues-done-text {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 16px 0 26px;
}
.kues-done-text b { color: var(--ink); }
.kues-done .cta-next { text-align: left; }
.kues-done a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 620px) {
  .kues-block { padding: 24px 20px 22px; border-radius: var(--r-md); }
  .kues-block legend { font-size: 18px; gap: 10px; }
  .kues-letter { width: 30px; height: 30px; font-size: 13px; }
  .chip { font-size: 13.5px; padding: 9px 14px 9px 10px; }
  .kues-done { padding: 40px 22px 34px; }
}

/* --- Band "Gabung" (pengantar kuesioner) --- */
.gabung-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 52px 48px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-2) 100%);
}
.gabung-r-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.gabung-r .cta-check {
  background: var(--primary);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 860px) {
  .gabung-band { grid-template-columns: 1fr; gap: 34px; padding: 36px 24px; border-radius: var(--r-lg); }
}

/* --- Fix kontras: `.nav-links a` (0,1,1) mengalahkan `.btn-primary` (0,1,0),
       bikin teks tombol nav jadi abu-abu di atas emas. --- */
.nav-links a.btn-primary { color: #1a1208; }
.nav-links a.btn-primary:hover { color: #1a1208; }

/* --- Angka statistik besar butuh jarak sedikit lebih lega ke satuannya --- */
.stat-top { gap: 9px; }

/* --- Logo: sedikit lebih besar & benar-benar terpusat --- */
.brand-mark.brand-logo {
  width: 46px;
  height: 46px;
  padding: 4px;
}
.brand-mark.brand-logo img { padding: 0; }
.footer-brand .brand-mark.brand-logo { width: 52px; height: 52px; }
@media (max-width: 620px) {
  .brand-mark.brand-logo { width: 40px; height: 40px; padding: 3px; }
}

/* Watermark hero pakai PNG transparan — tak perlu grayscale-hack lagi */
.hero-seal { opacity: 0.06; filter: none; }

/* --- Foto kegiatan di kartu aktivitas --- */
.aktivitas-foto {
  margin: 0 0 22px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.aktivitas-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: foto-in .5s ease both;
}
@keyframes foto-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aktivitas-foto img { animation: none; } }

/* --- Galeri --- */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.galeri-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.galeri-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), filter .4s ease;
  filter: saturate(0.92);
}
.galeri-item:hover img { transform: scale(1.05); filter: saturate(1.05); }
.galeri-item.is-tall  { grid-row: span 2; }
.galeri-item.is-wide  { grid-column: span 2; }
.galeri-cap {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 16px 13px;
  background: linear-gradient(180deg, transparent, rgba(6,14,26,0.92));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.galeri-item:hover .galeri-cap { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .galeri-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .galeri-item.is-wide { grid-column: span 2; }
}
@media (max-width: 480px) {
  .galeri-grid { grid-auto-rows: 128px; gap: 10px; }
  .galeri-cap { opacity: 1; transform: none; font-size: 10px; padding: 20px 12px 10px; }
}

/* ============================================================
   FIX KONTRAS FORM KUESIONER
   `.field-*` di styles-sections.css dirancang untuk kartu TERANG
   (form lama duduk di atas kertas). Blok kuesioner MJ gelap, jadi
   label #2a1f0a & input putih jadi tidak terbaca / belang.
   Override di bawah hanya berlaku di dalam .kues-block / .kues-done.
   ============================================================ */
.kues-block .field-label {
  color: var(--ink);
  font-size: 13.5px;
}
.kues-block .field-label em { color: var(--accent); }
.kues-block .field-hint { color: var(--ink-mute); }

.kues-block .field input,
.kues-block .field select,
.kues-block .field textarea {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  padding: 13px 15px;
}
.kues-block .field input::placeholder,
.kues-block .field textarea::placeholder { color: var(--ink-mute); }

.kues-block .field select { appearance: none; }
.kues-block .field select option { background: var(--surface); color: var(--ink); }

.kues-block .field input:focus,
.kues-block .field select:focus,
.kues-block .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,176,74,0.18);
}

/* autofill Chrome memaksa latar putih — kunci ke tema gelap */
.kues-block .field input:-webkit-autofill,
.kues-block .field input:-webkit-autofill:hover,
.kues-block .field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #14243f inset;
  caret-color: var(--ink);
}

/* teks kecil di sekitar form & layar terima kasih */
.kues-form .cta-fineprint { color: var(--ink-mute); }
.kues-done .cta-next-label { color: var(--accent); }
.kues-done .cta-next-text { color: var(--ink-dim); }

/* --- Lockup kelembagaan: UKM di bawah kampus --- */
.lembaga-lockup {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.lembaga-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 13px;
}
.lembaga-row { display: flex; align-items: center; gap: 13px; }
.lembaga-row img {
  width: 44px; height: 44px;
  object-fit: contain;
  flex: none;
}
.lembaga-teks {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  line-height: 1.3;
}
.lembaga-teks small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-top: 3px;
  letter-spacing: 0.01em;
}
