/* ==========================================================
   SI-Sipe - tambahan gaya di atas template Hopewell
   ========================================================== */

/* Hero halaman dalam (lapor, lacak) */
.page-hero {
  position: relative;
  padding: 150px 0 70px;
  background: radial-gradient(1200px 400px at 10% 0%, var(--clr-primary-light), transparent 60%),
              radial-gradient(900px 400px at 90% 10%, var(--clr-secondary-light), transparent 60%),
              var(--clr-bg);
  overflow: hidden;
}
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.page-hero p { color: var(--clr-text-muted); max-width: 680px; }

/* Kartu bagian formulir */
.form-section {
  background: var(--clr-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid #eef2f6;
}
.form-section-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.form-section-num {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px;
  background: var(--clr-primary); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-lift);
}
.form-section-head h5 { font-family: var(--font-display); font-weight: 700; margin: 0; }
.form-section-head small { color: var(--clr-text-muted); }
.form-label .req { color: var(--clr-accent); }
.form-select.form-control-hw { background-position: right 1rem center; }
.pihak-item { border: 1.5px dashed #d8e1ea; border-radius: var(--radius-sm); padding: 18px; margin-bottom: 14px; position: relative; background: #fbfdfc; }
.pihak-item .btn-hapus-pihak { position: absolute; top: 10px; right: 10px; }
.upload-box { border: 1.5px dashed #cbd5e1; border-radius: var(--radius-sm); padding: 16px; background: #f8fafc; height: 100%; }
.upload-box .form-text { font-size: .8rem; }
.sticky-aside { position: sticky; top: 100px; }
.aside-card { background: var(--clr-surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px; }
.aside-card li { margin-bottom: 10px; }

/* Kotak credential key */
.key-box {
  background: #0B1220; color: #fff; border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden;
}
.key-box::after { content: ""; position: absolute; width: 240px; height: 240px; right: -60px; top: -80px; border-radius: 50%; background: rgba(22,163,74,.35); filter: blur(30px); }
.key-value {
  font-family: "Courier New", monospace; font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: .12em;
  font-weight: 700; color: #B4F105; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.25);
  border-radius: 14px; padding: 14px 18px; display: inline-block; position: relative; z-index: 2;
}
.key-input { font-family: "Courier New", monospace; font-size: 1.4rem; letter-spacing: .15em; text-transform: uppercase; text-align: center; }

/* Stepper 7 tahap */
.sipe-stepper { display: flex; justify-content: space-between; position: relative; margin: 10px 0 6px; }
.sipe-stepper::before { content: ""; position: absolute; top: 22px; left: 5%; right: 5%; height: 4px; background: #e2e8f0; border-radius: 4px; }
.sipe-stepper .bar { position: absolute; top: 22px; left: 5%; height: 4px; background: var(--clr-primary); border-radius: 4px; transition: width .6s var(--ease); }
.sipe-step { position: relative; z-index: 2; flex: 1; text-align: center; }
.sipe-step .dot {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 8px; display: grid; place-items: center;
  background: #fff; border: 3px solid #e2e8f0; color: #94a3b8; font-size: 1.15rem; transition: all .4s var(--ease);
}
.sipe-step.done .dot { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.sipe-step.current .dot { background: #fff; border-color: var(--clr-secondary); color: var(--clr-secondary); box-shadow: 0 0 0 6px var(--clr-secondary-light); animation: pulseStep 1.8s infinite; }
.sipe-step.stop .dot { background: var(--clr-accent); border-color: var(--clr-accent); color: #fff; }
.sipe-step .lbl { font-size: .78rem; font-weight: 700; color: var(--clr-text-muted); line-height: 1.2; }
.sipe-step.done .lbl, .sipe-step.current .lbl { color: var(--clr-text); }
@keyframes pulseStep { 0%,100% { box-shadow: 0 0 0 6px var(--clr-secondary-light); } 50% { box-shadow: 0 0 0 11px rgba(245,158,11,.08); } }
@media (max-width: 767px) {
  .sipe-stepper { flex-direction: column; gap: 10px; }
  .sipe-stepper::before, .sipe-stepper .bar { display: none; }
  .sipe-step { display: flex; align-items: center; gap: 12px; text-align: left; }
  .sipe-step .dot { margin: 0; width: 38px; height: 38px; font-size: .95rem; }
}

/* Timeline riwayat */
.timeline-sipe { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-sipe::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: #e2e8f0; }
.timeline-sipe li { position: relative; padding-left: 56px; padding-bottom: 22px; }
.timeline-sipe .t-ic { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--clr-primary-light); color: var(--clr-primary-dark); }
.timeline-sipe li:first-child .t-ic { background: var(--clr-primary); color: #fff; box-shadow: var(--shadow-lift); }
.timeline-sipe .t-time { font-size: .78rem; color: var(--clr-text-muted); }
.timeline-sipe .t-title { font-weight: 700; font-family: var(--font-display); }
.timeline-sipe .t-desc { color: #334155; font-size: .93rem; white-space: pre-line; }

.info-card { background: var(--clr-surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px; margin-bottom: 24px; border: 1px solid #eef2f6; }
.info-card h5 { font-family: var(--font-display); font-weight: 700; }
.info-table td { padding: 6px 0; vertical-align: top; font-size: .93rem; }
.info-table td:first-child { color: var(--clr-text-muted); width: 42%; padding-right: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.status-pill.success { background: var(--clr-primary-light); color: var(--clr-primary-dark); }
.status-pill.pending, .status-pill.info { background: var(--clr-secondary-light); color: #92400e; }
.status-pill.warning { background: #ffedd5; color: #9a3412; }
.status-pill.failed { background: #fee2e2; color: #991b1b; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clr-primary); display: inline-block; animation: liveBlink 1.4s infinite; }
@keyframes liveBlink { 50% { opacity: .25; } }
.jadwal-item { border-left: 4px solid var(--clr-secondary); background: #fffbeb; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.jadwal-item.terlaksana { border-color: var(--clr-primary); background: #f0fdf4; }
.jadwal-item.dibatalkan, .jadwal-item.ditunda { border-color: #94a3b8; background: #f1f5f9; }
.alur-card { background: var(--clr-surface); border-radius: var(--radius); padding: 26px 22px; height: 100%; box-shadow: var(--shadow-soft); position: relative; border: 1px solid #eef2f6; transition: transform .35s var(--ease); }
.alur-card:hover { transform: translateY(-6px); }
.alur-card .alur-num { position: absolute; right: 18px; top: 14px; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: #eef2f6; }
.alur-card .why-ic { margin-bottom: 14px; }
