:root {
  --navy-950: #07172d;
  --navy-900: #0b1f3a;
  --navy-800: #0f294a;
  --navy-700: #163a66;
  --navy-600: #1e4d87;
  --blue-accent: #2563eb;
  --blue-soft: #eff6ff;
  --gold-accent: #d97706;
  --bg-page: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 10px rgba(15, 41, 74, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 41, 74, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 41, 74, 0.13);
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 88% 90%, rgba(15, 41, 74, 0.06) 0%, transparent 40%);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Typography & Utilities */
.text-navy {
  color: var(--navy-800) !important;
}

.bg-navy {
  background-color: var(--navy-800) !important;
  color: #ffffff !important;
}

.bg-navy-soft {
  background-color: #e8f0fe !important;
  border: 1px solid #cfe0fc;
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #ffffff;
  border: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-navy:hover,
.btn-navy:focus {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 41, 74, 0.25);
}

.btn-navy:active {
  transform: translateY(0);
}

.btn-outline-navy {
  color: var(--navy-800);
  border: 2px solid var(--navy-800);
  background: #ffffff;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-outline-navy:hover {
  background-color: var(--navy-800);
  color: #ffffff;
}

/* Public Header */
.public-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 2px 14px rgba(15, 41, 74, 0.04);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.navbar-brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-title {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: clamp(0.74rem, 1.5vw, 0.82rem);
}

/* Stage 1: Hero Landing */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3.25rem;
}

.hero-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 50%, #1d4ed8 100%);
  color: #ffffff;
  padding: 3.25rem 2.25rem 2.75rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before,
.hero-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner::before {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -80px;
}

.hero-banner::after {
  width: 240px;
  height: 240px;
  bottom: -120px;
  left: -60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.btn-start-survey {
  font-size: 1.2rem;
  padding: 1.05rem 2.75rem;
  border-radius: 16px;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 28px rgba(15, 41, 74, 0.22);
}

.guide-step-box {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.15rem;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.guide-step-box:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  background: #ffffff;
}

/* Stepper */
.survey-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  border: 1px solid transparent;
}

.step-pill.active {
  background: var(--navy-800);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 41, 74, 0.2);
}

.step-pill.done {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

/* Stage 2: Location Cards */
.location-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 2px solid var(--border-soft);
  border-radius: 24px;
  padding: 2.35rem 1.85rem;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--navy-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  color: var(--text-main);
}

.location-icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin-bottom: 1.35rem;
  transition: transform 0.25s ease;
}

.location-card:hover .location-icon-wrap {
  transform: scale(1.06);
}

.location-icon-kantor {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--navy-800);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.location-icon-srop {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  color: #b45309;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.16);
}

/* Stage 3: Tenaga Outsourcing Profile Cards */
.tenaga-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  height: 100%;
}

.tenaga-card:hover {
  border-color: var(--navy-600);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  color: var(--text-main);
}

.tenaga-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.tenaga-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.tenaga-card:hover .tenaga-photo-frame img {
  transform: scale(1.04);
}

.tenaga-card-body {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 1rem;
}

.tenaga-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.35;
}

/* Stage 4: Assessment Form */
.profile-summary-banner {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.profile-thumb {
  width: 98px;
  height: 98px;
  border-radius: 18px;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
  border: 2px solid var(--border-soft);
}

.profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.progress-sticky {
  position: sticky;
  top: 76px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-md);
}

.aspek-card {
  background: #ffffff;
  border: 1.5px solid var(--border-soft);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aspek-card.answered {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.aspek-card.missing-highlight {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

.aspek-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.rating-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.rating-option {
  position: relative;
}

.rating-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rating-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.8rem 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.16s ease;
  text-align: center;
}

.rating-label:hover {
  border-color: var(--navy-600);
  background: #eff6ff;
  transform: translateY(-1px);
}

.rating-option input[type="radio"]:focus-visible + .rating-label {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.rating-option.opt-baik input[type="radio"]:checked + .rating-label {
  background: #dcfce7;
  border-color: #16a34a;
  color: #14532d;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.2);
}

.rating-option.opt-cukup input[type="radio"]:checked + .rating-label {
  background: #fef3c7;
  border-color: #d97706;
  color: #78350f;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.2);
}

.rating-option.opt-kurang input[type="radio"]:checked + .rating-label {
  background: #fee2e2;
  border-color: #dc2626;
  color: #7f1d1d;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.2);
}

/* Stage 5: Success Page */
.success-icon-circle {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.1rem;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.18);
}

/* Admin Layout */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 265px;
  background: var(--navy-900);
  color: #e2e8f0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .nav-link {
  color: #cbd5e1;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-sidebar .nav-link.active {
  background: var(--blue-accent);
  color: #ffffff;
  font-weight: 600;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-content {
  padding: 1.5rem;
  flex: 1;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.admin-avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center top;
  background: #e2e8f0;
}

.chart-container {
  position: relative;
  height: 290px;
  width: 100%;
}

@media (max-width: 991.98px) {
  .admin-sidebar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .progress-sticky {
    top: 66px;
    padding: 0.8rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 1.5rem 0 2.25rem;
  }

  .hero-banner {
    padding: 2.25rem 1.25rem;
  }

  .btn-start-survey {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 1.1rem;
  }

  .rating-options-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .rating-label {
    justify-content: flex-start;
    padding: 0.85rem 1.15rem;
    min-height: 54px;
  }

  .profile-thumb {
    width: 74px;
    height: 74px;
  }

  .aspek-card {
    padding: 1.1rem;
  }
}
