/* =====================================================================
   eKuasa - gaya khusus aplikasi (di atas Bootstrap 5)
   ===================================================================== */

:root {
  --ek-primary: #1b4965;
  --ek-primary-dark: #123449;
  --ek-accent: #cfa14a;
  --ek-soft: #f4f7fa;
  --ek-line: #e3e9ef;
}

body {
  background-color: var(--ek-soft);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #1f2d3a;
}

/* ---------- Navbar ---------- */
.ek-navbar {
  background: var(--ek-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}

.ek-navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.ek-navbar .navbar-brand img {
  height: 38px;
}

.ek-navbar .nav-link {
  color: rgba(255, 255, 255, .85) !important;
  font-weight: 500;
}

.ek-navbar .nav-link:hover,
.ek-navbar .nav-link.active {
  color: #fff !important;
}

/* ---------- Hero ---------- */
.ek-hero {
  background: linear-gradient(135deg, var(--ek-primary) 0%, var(--ek-primary-dark) 100%);
  color: #fff;
  padding: 4.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.ek-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(207, 161, 74, .12);
}

.ek-hero h1 {
  font-weight: 700;
  font-size: 2.6rem;
}

.ek-hero .lead {
  color: rgba(255, 255, 255, .85);
  max-width: 640px;
}

/* ---------- Kartu ---------- */
.ek-card {
  background: #fff;
  border: 1px solid var(--ek-line);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(27, 73, 101, .06);
}

.ek-card-header {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--ek-line);
  font-weight: 600;
  color: var(--ek-primary);
  display: flex;
  align-items: center;
  gap: .55rem;
}

.ek-card-body {
  padding: 1.35rem;
}

/* Bagian yang sengaja naik menimpa hero perlu konteks tumpukan sendiri,
   jika tidak hero (yang position:relative) akan menutupinya. */
.ek-overlap {
  position: relative;
  z-index: 2;
  margin-top: -2.5rem;
}

/* Kartu pilihan jenis permohonan */
.ek-choice {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ek-choice:hover {
  transform: translateY(-4px);
  border-color: var(--ek-accent);
  box-shadow: 0 10px 26px rgba(27, 73, 101, .13);
}

.ek-choice .ek-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(27, 73, 101, .09);
  color: var(--ek-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- Langkah / stepper ---------- */
.ek-steps {
  counter-reset: ek-step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ek-steps li {
  position: relative;
  padding-left: 3.1rem;
  padding-bottom: 1.6rem;
}

.ek-steps li:last-child {
  padding-bottom: 0;
}

.ek-steps li::before {
  counter-increment: ek-step;
  content: counter(ek-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ek-primary);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ek-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.03rem;
  top: 2.3rem;
  bottom: .35rem;
  width: 2px;
  background: var(--ek-line);
}

/* ---------- Blok pihak (pemberi/penerima) ---------- */
.ek-pihak {
  border: 1px solid var(--ek-line);
  border-left: 4px solid var(--ek-primary);
  border-radius: 10px;
  padding: 1.1rem 1.2rem .4rem;
  margin-bottom: 1rem;
  background: #fdfefe;
}

.ek-pihak-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .9rem;
}

.ek-pihak-title {
  font-weight: 600;
  color: var(--ek-primary);
}

/* ---------- Timeline pelacakan ---------- */
.ek-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ek-timeline li {
  position: relative;
  padding-left: 2.2rem;
  padding-bottom: 1.4rem;
}

.ek-timeline li:last-child {
  padding-bottom: 0;
}

.ek-timeline li::before {
  content: "";
  position: absolute;
  left: .28rem;
  top: .32rem;
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--ek-primary);
  box-shadow: 0 0 0 3px rgba(27, 73, 101, .15);
}

.ek-timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .63rem;
  top: 1.25rem;
  bottom: 0;
  width: 2px;
  background: var(--ek-line);
}

/* ---------- Lain-lain ---------- */
.ek-label {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #7b8a99;
  font-weight: 600;
}

.btn-ek {
  background: var(--ek-primary);
  border-color: var(--ek-primary);
  color: #fff;
}

.btn-ek:hover,
.btn-ek:focus {
  background: var(--ek-primary-dark);
  border-color: var(--ek-primary-dark);
  color: #fff;
}

.btn-ek-accent {
  background: var(--ek-accent);
  border-color: var(--ek-accent);
  color: #23303c;
  font-weight: 600;
}

.btn-ek-accent:hover {
  background: #bb9040;
  border-color: #bb9040;
  color: #23303c;
}

.ek-required::after {
  content: " *";
  color: #d9534f;
}

.ek-footer {
  background: var(--ek-primary-dark);
  color: rgba(255, 255, 255, .78);
  padding: 2rem 0;
  margin-top: 3.5rem;
  font-size: .9rem;
}

.ek-footer a {
  color: #fff;
  text-decoration: none;
}

.ek-kode-box {
  background: var(--ek-primary);
  color: #fff;
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  text-align: center;
  letter-spacing: 2px;
  font-size: 1.6rem;
  font-weight: 700;
}

.table-ek th {
  background: #f1f5f8;
  color: var(--ek-primary);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .ek-hero h1 {
    font-size: 1.9rem;
  }

  .ek-kode-box {
    font-size: 1.2rem;
  }
}
