/*
 * daftar.css — Styles khusus halaman pendaftaran
 * Requires: sipond.css
 */

/* ── LEFT PANEL SIZE ── */
.left-panel {
  width: 300px;
}
.right-panel {
  margin-left: 300px;
  padding: 48px 60px;
}

/* ── STEP INDICATOR ── */
.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 24px;
}
.step-item:last-child {
  padding-bottom: 0;
}
.step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.15);
}
.step-item.done:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.5);
}
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.step-item.active .step-circle {
  background: white;
  border-color: white;
  color: var(--sp-blue);
}
.step-item.done .step-circle {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}
.step-name {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}
.step-item.active .step-name {
  color: white;
}
.step-item.done .step-name {
  color: rgba(255, 255, 255, 0.7);
}
.step-desc-s {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
}
.step-item.active .step-desc-s {
  color: rgba(255, 255, 255, 0.6);
}

/* ── PANELS ── */
.sp-panel {
  display: none;
  width: 100%;
  max-width: 640px;
}
.sp-panel.active {
  display: block;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── HEADER STEP ── */
.fp-step-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--sp-blue);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.fp-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--sp-text);
  letter-spacing: -0.5px;
}
.fp-sub {
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.6;
}

/* ── FORM FIELDS ── */
.sec-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sp-border);
}
.sp-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text-mid);
  display: block;
  margin-bottom: 5px;
}
.req {
  color: var(--sp-error);
}
.sp-input {
  font-size: 14px !important;
  border: 1.5px solid var(--sp-border) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-family: inherit !important;
  color: var(--sp-text) !important;
  background: white !important;
  box-shadow: none !important;
}
.sp-input:focus {
  border-color: var(--sp-blue) !important;
  box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.12) !important;
}
.sp-hint {
  font-size: 11px;
  color: var(--sp-text-muted);
}

/* ── PASSWORD ── */
.pwd-wrap {
  position: relative;
}
.pwd-wrap .sp-input {
  padding-right: 44px !important;
}
.pwd-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--sp-text-muted);
  background: none;
  border: none;
  padding: 0;
  display: flex;
}
.pwd-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.psb {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: var(--sp-border);
  transition: background 0.3s;
}
.psb.weak {
  background: #e05050;
}
.psb.medium {
  background: #f0a030;
}
.psb.strong {
  background: var(--sp-success);
}
.pwd-wrap.has-error .pwd-toggle {
  top: 35%;
}

/* ── INFO BOX ── */
.sp-infobox {
  background: var(--sp-pale);
  border: 1px solid rgba(91, 110, 245, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
}
.sp-infobox svg {
  width: 16px;
  height: 16px;
  stroke: var(--sp-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 1px;
}
.sp-infobox p {
  font-size: 13px;
  color: var(--sp-text-mid);
  line-height: 1.55;
  margin: 0;
}

/* ── SUMMARY (step 4) ── */
.sum-card {
  background: white;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  overflow: hidden;
}
.sum-head {
  background: var(--sp-bg-deep);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sum-head svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.8);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.sum-head span {
  font-size: 14px;
  font-weight: 700;
  color: white;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--sp-border);
  gap: 16px;
}
.sum-row:last-child {
  border-bottom: none;
}
.sum-lbl {
  font-size: 12px;
  color: var(--sp-text-muted);
  font-weight: 600;
}
.sum-val {
  font-size: 13px;
  color: var(--sp-text);
  font-weight: 500;
  text-align: right;
}
.sum-val.blue {
  color: var(--sp-blue);
  font-weight: 700;
}
.sum-val.green {
  color: var(--sp-success);
  font-weight: 700;
}

/* ── MOBILE RESPONSIVE (≤ 767px) ── */
@media (max-width: 767.98px) {
  /* Layout: sembunyikan sidebar, right-panel full width */
  .left-panel {
    display: none !important;
  }
  .right-panel {
    margin-left: 0;
    padding: 24px 16px 56px;
    min-height: 100dvh;
  }

  /* Panel: hapus max-width agar tidak lebih lebar dari layar */
  .sp-panel {
    max-width: 100%;
  }

  /* Judul step lebih kecil di mobile */
  .fp-title {
    font-size: 20px;
  }

  /* Prevent iOS auto-zoom saat input di-tap */
  .sp-input,
  select.sp-input {
    font-size: 16px !important;
  }

  /* Tombol navigasi: isi sisa ruang flex agar proporsional */
  .btn-next {
    flex: 1;
    justify-content: center;
  }

  /* Summary step 4: nilai bisa wrap & left-align */
  .sum-val {
    text-align: left;
    word-break: break-word;
  }

  /* Checkbox paket: center saat kartu full width */
  .pkg-check {
    margin: 16px auto 0;
  }
}
