/* ============================================================
   Portal Layanan TTE Terpadu — Kabupaten Indragiri Hilir
   Design System & Styles — LIGHT THEME
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Colors — Primary Palette */
  --color-primary: #10B981;
  --color-primary-light: #059669;
  --color-primary-dark: #047857;
  --color-primary-glow: rgba(16, 185, 129, 0.15);
  --color-primary-subtle: rgba(16, 185, 129, 0.08);

  /* Colors — Accent */
  --color-accent: #F59E0B;
  --color-accent-light: #D97706;
  --color-accent-dark: #B45309;

  /* Colors — Background (Light) */
  --color-bg-deep: #FFFFFF;
  --color-bg-base: #F8FAFC;
  --color-bg-surface: #FFFFFF;
  --color-bg-elevated: #FFFFFF;

  /* Colors — Card */
  --card-bg: #FFFFFF;
  --card-border: rgba(0, 0, 0, 0.06);
  --card-border-hover: rgba(0, 0, 0, 0.12);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Colors — Text (Dark on Light) */
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #94A3B8;
  --color-text-accent: var(--color-primary);

  /* Colors — Semantic */
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-error: #DC2626;
  --color-info: #2563EB;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 30px var(--color-primary-glow);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-deep);
  color: var(--color-text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-padding {
  padding: var(--space-4xl) 0;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0D9488 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-badge i {
  width: 16px;
  height: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-text-primary);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--color-text-primary);
}

.nav-brand img {
  height: 38px;
  width: auto;
}

.nav-brand span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.55rem 1.25rem !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--color-primary-glow);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 5%, rgba(255, 255, 255, 0.3) 70%), url('assets/cover-tte.jpg');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

/* Decorative blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: 15%;
  right: -5%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatOrb 12s ease-in-out infinite;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(-30px, 30px);
  }

  66% {
    transform: translate(20px, -20px);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease-out;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-text-primary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Floating shapes */
.hero-compact {
  min-height: 70vh;
  padding-bottom: var(--space-3xl);
}

.hero-float {
  position: absolute;
  z-index: 1;
  opacity: 0.12;
  pointer-events: none;
}

.hero-float-1 {
  top: 20%;
  right: 8%;
  width: 300px;
  height: 300px;
  border: 1.5px solid var(--color-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphFloat 15s ease-in-out infinite;
}

.hero-float-2 {
  bottom: 15%;
  right: 15%;
  width: 200px;
  height: 200px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  animation: morphFloat 12s ease-in-out infinite reverse;
}

@keyframes morphFloat {

  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(0deg);
  }

  25% {
    border-radius: 58% 42% 34% 66% / 63% 68% 32% 37%;
    transform: rotate(45deg);
  }

  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    transform: rotate(90deg);
  }

  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    transform: rotate(135deg);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25);
}

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

.btn-outline {
  background: #fff;
  color: var(--color-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn i,
.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   GLASS / CARD
   ============================================================ */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

/* ============================================================
   TENTANG TTE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.about-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.about-card .card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.about-card:nth-child(1) .card-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary);
}

.about-card:nth-child(2) .card-icon {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.about-card:nth-child(3) .card-icon {
  background: rgba(217, 119, 6, 0.08);
  color: #D97706;
}

.about-card .card-icon i {
  width: 28px;
  height: 28px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.about-card p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ============================================================
   PANDUAN 6 LANGKAH — TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(16, 185, 129, 0.3) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

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

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.timeline-content {
  padding: var(--space-lg) var(--space-xl);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   FORMULIR PENGAJUAN TTE
   ============================================================ */
.form-section {
  background: linear-gradient(180deg, var(--color-bg-base) 0%, #FFFFFF 100%);
}

.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-group label .required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  background: var(--color-bg-base);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
  background: #fff;
}

.form-group input.error,
.form-group select.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.captcha-group div.error {
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  display: inline-block;
  padding: 4px;
}

.form-group .error-message {
  font-size: 0.78rem;
  color: var(--color-error);
  display: none;
}

.form-group .error-message.visible {
  display: block;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  background-color: var(--color-bg-base);
}

.form-group select option {
  background: #fff;
  color: var(--color-text-primary);
}

/* Conditional OPD field */
.conditional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-base), margin var(--transition-base);
  margin-top: 0;
}

.conditional-field.visible {
  max-height: 120px;
  opacity: 1;
  margin-top: var(--space-lg);
}

.form-submit-area {
  margin-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-submit-area .btn {
  min-width: 220px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   KENDALA TTE SECTION
   ============================================================ */
.kendala-selected-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-xl);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
}

.kendala-selected-label i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   DASHBOARD STATISTIK
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.stat-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  border-radius: 0 0 4px 4px;
}

.stat-card:nth-child(1)::before {
  background: var(--color-info);
}

.stat-card:nth-child(2)::before {
  background: var(--color-warning);
}

.stat-card:nth-child(3)::before {
  background: var(--color-success);
}

.stat-card:nth-child(4)::before {
  background: var(--color-error);
}

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card:nth-child(1) .stat-icon {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.stat-card:nth-child(2) .stat-icon {
  background: rgba(217, 119, 6, 0.08);
  color: #D97706;
}

.stat-card:nth-child(3) .stat-icon {
  background: rgba(22, 163, 74, 0.08);
  color: #16A34A;
}

.stat-card:nth-child(4) .stat-icon {
  background: rgba(220, 38, 38, 0.08);
  color: #DC2626;
}

.stat-icon i {
  width: 22px;
  height: 22px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-card:nth-child(1) .stat-number {
  color: #2563EB;
}

.stat-card:nth-child(2) .stat-number {
  color: #D97706;
}

.stat-card:nth-child(3) .stat-number {
  color: #16A34A;
}

.stat-card:nth-child(4) .stat-number {
  color: #DC2626;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Stats Adoption Grid */
.stats-adoption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.adoption-ratio,
.opd-adoption {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.opd-adoption h3,
.adoption-ratio h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
}

.opd-adoption h3 i,
.adoption-ratio h3 i {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.opd-item {
  margin-bottom: var(--space-md);
}

.opd-item-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
}

.opd-item-name {
  color: var(--color-text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.opd-item-percent {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.82rem;
}

.opd-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.opd-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   PUSAT UNDUHAN
   ============================================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.download-category h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.download-category h3 i {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.download-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
}

.download-item .dl-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-icon.windows {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.dl-icon.macos {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.dl-icon.android {
  background: rgba(22, 163, 74, 0.08);
  color: #16A34A;
}

.dl-icon.ios {
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.dl-icon.document {
  background: rgba(217, 119, 6, 0.08);
  color: #D97706;
}

.download-item .dl-info {
  flex: 1;
}

.download-item .dl-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.download-item .dl-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.download-item .dl-action {
  color: var(--color-primary);
  flex-shrink: 0;
}

.download-item .dl-action i {
  width: 20px;
  height: 20px;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================================
   HELPDESK / CONTACT
   ============================================================ */
.helpdesk-section {
  margin-top: var(--space-3xl);
}

.helpdesk-banner {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDFA 50%, #EFF6FF 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.helpdesk-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.helpdesk-banner h3 i {
  width: 24px;
  height: 24px;
  vertical-align: -3px;
  color: var(--color-primary);
  margin-right: var(--space-sm);
}

.helpdesk-banner>p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

.helpdesk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.helpdesk-card {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.helpdesk-card .helpdesk-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.helpdesk-card .helpdesk-icon i {
  width: 24px;
  height: 24px;
}

.helpdesk-card:nth-child(1) .helpdesk-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-primary);
}

.helpdesk-card:nth-child(2) .helpdesk-icon {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
}

.helpdesk-card:nth-child(3) .helpdesk-icon {
  background: rgba(217, 119, 6, 0.08);
  color: #D97706;
}

.helpdesk-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.helpdesk-card p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.helpdesk-wa-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.45rem 1rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-full);
  color: #16A34A;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all var(--transition-fast);
  margin-top: var(--space-xs);
}

.helpdesk-wa-link:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  transform: translateY(-1px);
}

.helpdesk-wa-link svg {
  width: 14px;
  height: 14px;
  fill: #16A34A;
}

/* ============================================================
   FOOTER (Dark Contrast)
   ============================================================ */
.footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer .nav-brand {
  color: #F1F5F9;
}

.footer .nav-brand span {
  color: #34D399;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.88rem;
  margin-top: var(--space-md);
  line-height: 1.7;
  max-width: 350px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: #F1F5F9;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.85rem;
  color: #94A3B8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #34D399;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #64748B;
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-bottom-links a {
  font-size: 0.8rem;
  color: #64748B;
}

.footer-bottom-links a:hover {
  color: #34D399;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  pointer-events: none;
}

.wa-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all var(--transition-base);
}

.wa-contacts.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.wa-contact-item:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.06);
}

.wa-contact-item .wa-name {
  font-weight: 600;
}

.wa-contact-item .wa-role {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.wa-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-base);
  cursor: pointer;
  pointer-events: auto;
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.back-to-top i {
  width: 20px;
  height: 20px;
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
  max-width: 440px;
  width: 90%;
  transform: scale(0.9);
  transition: transform var(--transition-spring);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon i {
  width: 36px;
  height: 36px;
  color: #16A34A;
}

.modal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.modal-content p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

/* Modal Ticket Number */
.modal-ticket-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(14, 165, 233, 0.04) 100%);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
}

.modal-ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-ticket-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  padding: var(--space-xs) var(--space-md);
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  user-select: all;
  cursor: text;
}

.modal-ticket-hint {
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 0 !important;
  font-style: italic;
}

/* ---------- Signature Pad ---------- */
.signature-group {
  margin-top: var(--space-md);
}

.signature-pad-wrapper {
  background: #ffffff;
  border: 1px solid #CBD5E1; /* Slate-300 */
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  touch-action: none; /* Disable native scrolling on touch for drawing */
  margin-bottom: var(--space-xs);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.signature-pad-wrapper:focus-within,
.signature-pad-wrapper:hover {
  border-color: var(--color-primary);
}

.signature-pad-wrapper.error {
  border-color: var(--color-error) !important;
  box-shadow: 0 0 0 1px var(--color-error);
}

.signature-pad {
  display: block;
  width: 100%;
  height: 180px;
  background-color: #FAFAFA;
  cursor: crosshair;
}

.signature-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-xs);
}

.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.82rem !important;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .nav-links {
    gap: 0.75rem !important;
  }
  .nav-links a {
    font-size: 0.82rem !important;
  }
  .nav-brand {
    font-size: 0.95rem !important;
  }
  .nav-cta {
    padding: 0.45rem 1rem !important;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    gap: var(--space-md);
    transition: right var(--transition-slow);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }

  .hero {
    min-height: auto;
    aspect-ratio: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
    background-image: none;
    background-color: var(--color-bg-deep);
  }

  .hero-float {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-adoption-grid {
    grid-template-columns: 1fr !important;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .helpdesk-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-dot {
    left: -33px;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .timeline-content {
    padding: var(--space-md) var(--space-lg);
  }

  .form-wrapper {
    padding: var(--space-xl) var(--space-lg);
  }

  .section-padding {
    padding: var(--space-3xl) 0;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .form-wrapper {
    padding: var(--space-lg);
  }
}

/* ============================================================
   TICKET TRACKING STYLES
   ============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  border: 1px solid;
}

.status-badge.status-success {
  background: rgba(22, 163, 74, 0.08);
  color: var(--color-success);
  border-color: rgba(22, 163, 74, 0.2);
}

.status-badge.status-warning {
  background: rgba(217, 119, 6, 0.08);
  color: var(--color-warning);
  border-color: rgba(217, 119, 6, 0.2);
}

.status-badge.status-danger {
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-error);
  border-color: rgba(220, 38, 38, 0.2);
}

#ticketNumber:focus {
  outline: none;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}