/* ============================================
   SIPENDIK — Custom Stylesheet (Purple Theme)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --purple: #7b1fa2;
  --purple-dark: #4a0072;
  --purple-mid: #9c27b0;
  --purple-light: #e1bee7;
  --purple-bg: #f3e5f5;
  --accent: #ffd600;
  --text-dark: #2d3748;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #f5f5f5;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}
.text-purple {
  color: var(--purple) !important;
}
.bg-light-purple {
  background: var(--purple-bg);
}

/* ---------- Navbar ---------- */
.sipen-navbar {
  background: linear-gradient(
    135deg,
    var(--purple-dark) 0%,
    var(--purple) 60%,
    var(--purple-mid) 100%
  );
  box-shadow: 0 2px 14px rgba(74, 0, 114, 0.35);
  padding: 0.6rem 0;
}

.brand-icon {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link-custom {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem !important;
  border-radius: 7px;
  transition:
    background 0.18s,
    color 0.18s;
  color: rgba(255, 255, 255, 0.88) !important;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff !important;
}

.nav-link-custom.active {
  background: rgba(255, 255, 255, 0.22);
  border-bottom: 2px solid var(--accent);
}

/* ---------- Main & Footer ---------- */
.sipen-main {
  flex: 1;
}

.sipen-footer {
  background: var(--purple-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.9rem 0;
  font-size: 0.83rem;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--purple-dark) 0%,
    var(--purple) 60%,
    var(--purple-mid) 100%
  );
  position: relative;
  color: #fff;
  padding-bottom: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-weight: 600;
  font-style: italic;
  opacity: 0.9;
}

.hero-desc {
  font-size: 0.97rem;
  opacity: 0.9;
  max-width: 580px;
}

.hero-icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.12);
}

.btn-hero {
  background: var(--accent);
  color: var(--purple-dark);
  border: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  letter-spacing: 0.04em;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  background: #ffe033;
  color: var(--purple-dark);
}

.hero-curve-bottom {
  height: 50px;
  background: #f5f5f5;
  clip-path: ellipse(55% 100% at 50% 100%);
  margin-top: 2rem;
}

/* ---------- Info Cards (BERANDA) ---------- */
.info-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-top: 4px solid var(--purple);
  transition: transform 0.2s;
}

.info-card:hover {
  transform: translateY(-4px);
}

.info-card-icon {
  font-size: 2.4rem;
  color: var(--purple);
  line-height: 1;
}

/* ---------- Layanan Chip ---------- */
.layanan-chip {
  background: #fff;
  border: 1.5px solid var(--purple-light);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.btn-primary-purple {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  transition: background 0.18s;
}

.btn-primary-purple:hover {
  background: var(--purple-dark);
  color: #fff;
}

/* ---------- Cards ---------- */
.sipen-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.sipen-card-header {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.2rem;
  border-bottom: none;
}

/* ---------- Step Wizard ---------- */
.step-wizard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
}

.step-item span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #90a4ae;
}

.step-item.active span {
  color: var(--purple);
}
.step-item.done span {
  color: #27ae60;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid #cfd8dc;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #90a4ae;
  transition: all 0.25s;
}

.step-item.active .step-circle {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(123, 31, 162, 0.18);
}

.step-item.done .step-circle {
  border-color: #27ae60;
  background: #27ae60;
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2.5px;
  background: #cfd8dc;
  min-width: 32px;
  max-width: 80px;
  margin-bottom: 22px;
  transition: background 0.25s;
}

.step-line.done {
  background: #27ae60;
}

/* ---------- Service Cards ---------- */
.service-card {
  display: block;
  cursor: pointer;
}
.service-radio {
  display: none;
}

.service-card-inner {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
  transition: all 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.service-card:hover .service-card-inner {
  border-color: var(--purple);
  box-shadow: 0 4px 14px rgba(123, 31, 162, 0.15);
  transform: translateY(-2px);
}

.service-radio:checked + .service-card-inner {
  border-color: var(--purple);
  background: var(--purple-bg);
  box-shadow: 0 4px 14px rgba(123, 31, 162, 0.2);
}

.service-icon {
  font-size: 1.7rem;
  color: var(--purple);
  line-height: 1;
}

.service-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: #37474f;
  line-height: 1.3;
}

/* ---------- Questionnaire ---------- */
.question-row {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid #ecf0f1;
  transition: background 0.15s;
}

.question-row:hover {
  background: #fdf6ff;
}
.question-row:last-of-type {
  border-bottom: none;
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.question-number {
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.question-options {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.scale-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 72px;
}

.scale-radio {
  display: none;
}

.scale-val {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid #e0e7ef;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.2s;
  color: #607d8b;
}

.scale-option:hover .scale-val {
  border-color: var(--purple);
  transform: scale(1.08);
}

.scale-radio:checked + .scale-val {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.scale-radio:checked + .scale-val-1 {
  background: #e74c3c;
}
.scale-radio:checked + .scale-val-2 {
  background: #f39c12;
}
.scale-radio:checked + .scale-val-3 {
  background: #2980b9;
}
.scale-radio:checked + .scale-val-4 {
  background: #27ae60;
}

.scale-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #78909c;
  text-align: center;
}

/* ---------- Review Table ---------- */
.review-table th {
  background: var(--purple-bg);
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 0.83rem;
  white-space: nowrap;
  padding: 0.6rem 1rem;
}

.review-table td {
  font-size: 0.87rem;
  padding: 0.6rem 1rem;
  vertical-align: middle;
}

/* ---------- Success Page ---------- */
.success-check-icon {
  font-size: 5rem;
  color: #27ae60;
  line-height: 1;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.ikm-result-box {
  background: var(--purple-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1.5px solid var(--purple-light);
}

.ikm-result-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #78909c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ikm-result-value {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- Stat Cards ---------- */
.stat-card {
  border: none;
  border-left: 4px solid #90a4ae;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.stat-card-blue {
  border-left-color: var(--purple);
}
.stat-card-green {
  border-left-color: #27ae60;
}

.stat-card .card-body {
  padding: 1.2rem 1.4rem;
}

.stat-icon {
  font-size: 1.8rem;
  opacity: 0.7;
  color: #607d8b;
  margin-bottom: 0.25rem;
}

.stat-card-blue .stat-icon {
  color: var(--purple);
}
.stat-card-green .stat-icon {
  color: #27ae60;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-dark);
}

.stat-label {
  font-size: 0.78rem;
  color: #78909c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Feedback Cards ---------- */
.feedback-card {
  background: var(--purple-bg);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}

.feedback-text {
  font-style: italic;
  color: #455a64;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.feedback-meta {
  font-size: 0.75rem;
  color: #90a4ae;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn-sipen-next {
  padding: 0.6rem 1.6rem;
  font-weight: 600;
  border-radius: 8px;
}

.btn-primary {
  background-color: var(--purple) !important;
  border-color: var(--purple) !important;
}

.btn-primary:hover {
  background-color: var(--purple-dark) !important;
  border-color: var(--purple-dark) !important;
}

/* ---------- Dinas Page ---------- */
.dinas-banner {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.service-list-item {
  background: #fff;
  border: 1.5px solid var(--purple-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.18s;
}

.service-list-item:hover {
  border-color: var(--purple);
  background: var(--purple-bg);
  transform: translateX(4px);
}

.service-list-item .svc-num {
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 576px) {
  .step-line {
    min-width: 18px;
    max-width: 36px;
  }
  .step-item {
    min-width: 52px;
  }
  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }
  .question-options {
    gap: 0.35rem;
  }
  .scale-option {
    min-width: 58px;
  }
  .scale-val {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .ikm-result-value {
    font-size: 2.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}
