/* ================================================
   PINTAR GTK — Inner Pages (pengantar / profil / instrumen)
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --blue:       #0369a1;
  --blue-mid:   #0284c7;
  --blue-light: #38bdf8;
  --blue-pale:  #e0f2fe;
  --blue-bg:    #f0f7ff;
  --gold:       #f59e0b;
  --gold-pale:  #fef3c7;
  --navy:       #0c1f4a;
  --navy-mid:   #1e3a6e;
  --slate:      #475569;
  --muted:      #94a3b8;
  --border:     #e2e8f0;
  --bg:         #f4f7fc;
  --white:      #ffffff;
  --green:      #059669;
  --green-pale: #d1fae5;
  --orange:     #ea580c;
  --orange-pale:#ffedd5;
  --radius:     12px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  min-height: 100vh;
  color: var(--navy);
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 60px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.topbar-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 14px;
  border-radius: 8px;
  background: transparent;
}

.topbar-back:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.topbar-back svg { width: 16px; height: 16px; }

.topbar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo {
  height: 32px;
  object-fit: contain;
}

.topbar-badge {
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid rgba(3,105,161,0.15);
}

/* ===== STEPPER ===== */
.stepper-wrap {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 199;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stepper {
  display: flex;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  gap: 0;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
}

.step-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  transition: all 0.3s;
  flex-shrink: 0;
}

.step-item.done .step-circle {
  background: var(--blue);
  color: white;
}

.step-item.active .step-circle {
  background: var(--blue);
  color: white;
  box-shadow: 0 0 0 4px rgba(3,105,161,0.2);
}

.step-item.inactive .step-circle {
  background: #eef0f4;
  color: var(--muted);
}

.step-text {}

.step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-item.done .step-label,
.step-item.active .step-label { color: var(--blue); }
.step-item.inactive .step-label { color: var(--muted); }

.step-sublabel {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
}

.step-connector {
  flex: 1;
  height: 2px;
  margin: 0 10px;
  align-self: center;
  border-radius: 2px;
  min-width: 30px;
}

.step-connector.done { background: var(--blue); }
.step-connector.inactive { background: #e8eaed; }

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: white;
  padding: 10px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: #e8eaed;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.4s ease;
  width: 0%;
}

.progress-pct {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  min-width: 36px;
  text-align: right;
}

/* ===== PAGE BODY ===== */
.page-body {
  padding: 32px 24px 120px;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.has-progress .page-body {
  padding-top: 24px;
}

/* ===== FORM WRAP ===== */
.form-wrap {
  max-width: 860px;
  width: 100%;
}

/* ===== SECTION CARD ===== */
.section-card {
  background: white;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.section-card:hover {
  box-shadow: var(--shadow-md);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid #f8fafc;
}

.sh-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sh-blue   { background: var(--blue-pale); }
.sh-green  { background: var(--green-pale); }
.sh-orange { background: var(--orange-pale); }
.sh-gold   { background: var(--gold-pale); }

.sh-icon svg { width: 22px; height: 22px; }

.sh-text h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}

.sh-text p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.section-body {
  padding: 24px 28px 28px;
}

/* ===== FIELD STYLES ===== */
.field-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.fg-1 { grid-template-columns: 1fr; }
.fg-2 { grid-template-columns: 1fr 1fr; }
.fg-3 { grid-template-columns: 1fr 1fr 1fr; }

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.field-input,
.field-select {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder { color: #c0c8d4; }

.field-input:focus,
.field-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.1);
}

.field-input[readonly] {
  background: var(--bg);
  color: var(--muted);
  cursor: not-allowed;
}

.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}

.select-wrap .field-select { padding-right: 36px; cursor: pointer; }

/* ===== CHOICE ITEMS (Radio/Checkbox) ===== */
.choices-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: all 0.2s;
  user-select: none;
  background: white;
}

.choice-item:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}

.choice-item input { display: none; }

.choice-box {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 2px solid #cbd5e1;
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.choice-radio {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.choice-item.selected {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}

.choice-item.selected .choice-box {
  background: var(--blue);
  border-color: var(--blue);
}

.choice-item.selected .choice-box::after {
  content: '';
  width: 8px; height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.choice-item.selected .choice-radio {
  border-color: var(--blue);
  background: white;
}

.choice-item.selected .choice-radio::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* Status chips */
.status-chips {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--slate);
  transition: all 0.2s;
  user-select: none;
}

.status-chip input { display: none; }

.status-chip.sel-ya {
  background: var(--green-pale);
  border-color: var(--green);
  color: var(--green);
}

.status-chip.sel-tidak {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Divider */
.field-divider {
  height: 1px;
  background: #f0f4f8;
  margin: 20px 0;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav-fixed {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: white;
  border-top: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.btn-back-form {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.btn-back-form:hover {
  color: var(--blue);
  background: var(--blue-pale);
}

.btn-lanjut, .btn-simpan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(3,105,161,0.3);
}

.btn-lanjut:hover, .btn-simpan:hover {
  background: #045a8f;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(3,105,161,0.4);
}

.btn-simpan-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.btn-simpan-gold:hover {
  background: var(--gold-dark);
  color: var(--navy);
  box-shadow: 0 6px 20px rgba(245,158,11,0.4);
}

/* ===== SUCCESS MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12,31,74,0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.show { display: flex; }

.modal-card {
  background: white;
  border-radius: 24px;
  padding: 52px 44px 44px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: modalIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}

.modal-icon.success { background: var(--green-pale); }

.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .stepper { padding: 0 16px; }
  .section-body { padding: 18px; }
  .field-grid.fg-2,
  .field-grid.fg-3 { grid-template-columns: 1fr; }
  .page-body { padding: 20px 12px 120px; }
}
