/* =========================================================
   SPKO CSS - FULL FILE (COPY PASTE) ✅ FIXED
   ========================================================= */

/* Optional: load font langsung dari CSS (kalau di layout belum pakai <link>) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* =========================================================
   ✅ SIZE CONTROL (EDIT DI SINI SAJA)
   ========================================================= */
:root{
  --logo-box: 88px;     /* kotak logo (desktop) */
  --logo-img: 58px;     /* ukuran gambar di dalam kotak */
  --logo-scale: 1.18;   /* ✅ tambahan: membesarkan isi logo jika PNG ada padding */

  /* ✅ tablet */
  --logo-box-md: 74px;
  --logo-img-md: 48px;
  --logo-scale-md: 1.16;

  /* ✅ hp */
  --logo-box-sm: 64px;
  --logo-img-sm: 42px;
  --logo-scale-sm: 1.14;

  /* pembesaran saat active/done (sebelumnya 1.2 => terlalu besar) */
  --step-scale-active: 1.06;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background:
    radial-gradient(circle at 15% 25%, rgba(0, 64, 152, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(204, 31, 44, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #f0f7ff 0%, #ffffff 25%, #fffef5 50%, #fff5f5 75%, #ffffff 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0px, rgba(0, 64, 152, 0.015) 1px, transparent 2px, transparent 40px),
    repeating-linear-gradient(90deg, transparent 0px, rgba(204, 31, 44, 0.015) 1px, transparent 2px, transparent 40px);
  pointer-events: none;
  z-index: 0;
}

/* Decorative Background Elements */
.bg-decoration {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.garuda-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 64, 152, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(204, 31, 44, 0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40 Z' fill='%23004098'/%3E%3C/svg%3E");
  background-size: auto, auto, 90px 90px;
  animation: patternMove 100s linear infinite;
}

@keyframes patternMove {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(80px, 80px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

.gradient-orb-1 {
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(0, 64, 152, 0.22) 0%, rgba(0, 102, 204, 0.15) 20%, rgba(0, 150, 255, 0.08) 50%, transparent 80%);
  border-radius: 50%;
  top: -400px;
  right: -400px;
  filter: blur(100px);
  animation: float1 30s ease-in-out infinite, pulse1 8s ease-in-out infinite;
  opacity: 0.9;
}

.gradient-orb-2 {
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(204, 31, 44, 0.18) 0%, rgba(255, 107, 107, 0.12) 20%, rgba(255, 150, 150, 0.06) 50%, transparent 80%);
  border-radius: 50%;
  bottom: -350px;
  left: -350px;
  filter: blur(100px);
  animation: float2 35s ease-in-out infinite, pulse2 10s ease-in-out infinite;
  opacity: 0.9;
}

.gradient-orb-3 {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, rgba(255, 215, 0, 0.1) 30%, rgba(255, 235, 59, 0.05) 60%, transparent 80%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(110px);
  animation: float3 40s ease-in-out infinite, pulse3 12s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes pulse1 {
  0%, 100% { filter: blur(100px); opacity: 0.9; }
  50% { filter: blur(120px); opacity: 1; }
}

@keyframes pulse2 {
  0%, 100% { filter: blur(100px); opacity: 0.9; }
  50% { filter: blur(130px); opacity: 1; }
}

@keyframes pulse3 {
  0%, 100% { filter: blur(110px); opacity: 0.7; }
  50% { filter: blur(140px); opacity: 0.85; }
}

@keyframes float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33% { transform: translate(-45%, -55%) scale(1.3) rotate(120deg); }
  66% { transform: translate(-55%, -45%) scale(0.9) rotate(240deg); }
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(-60px, 60px) rotate(90deg) scale(1.1); }
  50% { transform: translate(-80px, 40px) rotate(180deg) scale(0.95); }
  75% { transform: translate(-40px, 80px) rotate(270deg) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(70px, -50px) rotate(-90deg) scale(1.15); }
  50% { transform: translate(50px, -70px) rotate(-180deg) scale(0.9); }
  75% { transform: translate(90px, -40px) rotate(-270deg) scale(1.08); }
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Government Header */
.gov-header {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(135deg, #001a3d 0%, #002d6b 15%, #004098 35%, #0052a3 55%, #0066cc 75%, #0080ff 95%, #003d82 100%);
  border-radius: 36px;
  padding: 3.5rem 4rem;
  margin-bottom: 3rem;
  box-shadow:
    0 40px 120px rgba(0, 64, 152, 0.4),
    0 20px 60px rgba(0, 64, 152, 0.3),
    0 10px 30px rgba(0, 64, 152, 0.25),
    0 5px 15px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 3px 6px rgba(255, 255, 255, 0.15) inset,
    0 -2px 4px rgba(0, 0, 0, 0.1) inset;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-60px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gov-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg,
    #cc1f2c 0%,
    #ff4757 8%,
    #ffffff 18%,
    #f8f9fa 28%,
    #ffffff 38%,
    #f1c40f 48%,
    #ffd700 52%,
    #f1c40f 62%,
    #ffffff 72%,
    #f8f9fa 82%,
    #ff4757 92%,
    #cc1f2c 100%);
  box-shadow:
    0 3px 12px rgba(204, 31, 44, 0.5),
    0 1px 4px rgba(255, 193, 7, 0.3);
  border-radius: 36px 36px 0 0;
}

.gov-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -150px;
  width: 900px;
  height: 200%;
  background:
    radial-gradient(ellipse at 35% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 65% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 20 L55 45 L80 45 L60 60 L65 85 L50 70 L35 85 L40 60 L20 45 L45 45 Z' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E") repeat;
  background-size: auto, auto, 80px 80px;
  opacity: 0.7;
  animation: headerShimmer 28s ease-in-out infinite;
  mix-blend-mode: overlay;
}

@keyframes headerShimmer {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  25% { transform: translateX(-40px) translateY(20px) rotate(3deg); }
  50% { transform: translateX(-20px) translateY(-20px) rotate(-3deg); }
  75% { transform: translateX(-50px) translateY(10px) rotate(2deg); }
}

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* =========================================================
   ✅ LOGO FIX (RESPONSIVE WORKING)
   - Pakai selector lebih spesifik (header saja)
   ========================================================= */
.gov-header .garuda-emblem{
  width: var(--logo-box);
  height: var(--logo-box);
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 0.98) 100%),
    linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28),
    0 10px 26px rgba(0, 64, 152, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.16),
    0 0 0 6px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  flex-shrink: 0;
  position: relative;
  animation: emblemEntry 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* glow tetap (lebih ringan) */
.gov-header .garuda-emblem::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background:
    linear-gradient(135deg,
      rgba(0, 64, 152, 0.22) 0%,
      rgba(204, 31, 44, 0.18) 33%,
      rgba(255, 193, 7, 0.18) 66%,
      rgba(0, 102, 204, 0.22) 100%);
  z-index: -1;
  filter: blur(18px);
  opacity: 0.75;
  animation: emblemGlow 3.5s ease-in-out infinite;
}

/* Matikan pseudo icon dummy agar tidak menimpa <img> */
.gov-header .garuda-emblem::before {
  content: none !important;
  display: none !important;
}

@keyframes emblemGlow {
  0%, 100% { filter: blur(18px); opacity: 0.75; transform: scale(1) rotate(0deg); }
  50% { filter: blur(22px); opacity: 0.9; transform: scale(1.06) rotate(180deg); }
}

@keyframes emblemEntry {
  0% { transform: scale(0) rotate(-360deg); opacity: 0; }
  50% { transform: scale(1.15) rotate(20deg); }
  75% { transform: scale(0.96) rotate(-10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ✅ Logo <img> */
.gov-header .garuda-emblem img,
.gov-header .garuda-emblem .garuda-logo {
  width: var(--logo-img);
  height: var(--logo-img);
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 0 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));

  /* ✅ ini yang bikin isi logo “naik” walau PNG ada ruang kosong */
  transform: translateZ(0) scale(var(--logo-scale));
}

.header-text h1 {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-text .subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.header-text .institution {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Progress Section */
.progress-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 254, 254, 0.9) 100%),
    radial-gradient(circle at 20% 30%, rgba(0, 64, 152, 0.02) 0%, transparent 50%);
  border-radius: 28px;
  padding: 3rem 3.5rem;
  margin-bottom: 2.5rem;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.15),
    0 12px 32px rgba(0, 64, 152, 0.12),
    0 5px 15px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 64, 152, 0.12),
    0 2px 4px rgba(255, 255, 255, 0.8) inset,
    0 -2px 4px rgba(0, 0, 0, 0.04) inset;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 64, 152, 0.08);
}

.progress-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #004098 0%, #cc1f2c 50%, #ffc107 100%);
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0, 64, 152, 0.3);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-bar-container {
  position: relative;
  height: 6px;
  background: #e8f1f8;
  border-radius: 10px;
  margin-bottom: 2.5rem;
  overflow: visible;
}

.progress-bar-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, #004098 0%, #0066cc 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(0, 64, 152, 0.4);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #004098;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 64, 152, 0.3);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-item {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.step-number {
  width: var(--step-size);
  height: var(--step-size);
  border-radius: 50%;
  background: #f0f4f8;
  border: 3px solid #e0e8f0;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: #8b9eb5;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* ✅ Fix: support class "completed" DAN "done" */
.step-item.active .step-number,
.step-item.completed .step-number,
.step-item.done .step-number {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%),
    linear-gradient(135deg, #002d6b 0%, #004098 25%, #0052a3 50%, #0066cc 100%);
  border-color: #0066cc;
  color: white;
  transform: scale(var(--step-scale-active));
  box-shadow:
    0 10px 26px rgba(0, 64, 152, 0.35),
    0 6px 14px rgba(0, 64, 152, 0.25),
    0 0 0 6px rgba(0, 64, 152, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Checkmark saat step selesai */
.step-item.completed .step-number::before,
.step-item.done .step-number::before {
  content: '✓';
  position: absolute;
  font-size: 1.35rem;
  font-weight: 900;
  animation: checkmark 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkmark {
  0% { transform: scale(0) rotate(-180deg); }
  60% { transform: scale(1.15) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.step-label {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-item.active .step-label {
  color: #004098;
  font-weight: 700;
}

/* Form Card */
.form-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(254, 254, 254, 0.95) 100%),
    radial-gradient(circle at 80% 20%, rgba(0, 64, 152, 0.02) 0%, transparent 50%);
  border-radius: 28px;
  padding: 4rem;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.18),
    0 15px 40px rgba(0, 64, 152, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 64, 152, 0.12),
    0 3px 6px rgba(255, 255, 255, 0.9) inset,
    0 -3px 6px rgba(0, 0, 0, 0.05) inset;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 64, 152, 0.1);
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #004098 0%, #cc1f2c 50%, #ffc107 100%);
  opacity: 0.9;
  box-shadow: 0 3px 10px rgba(0, 64, 152, 0.4);
}

.form-step { display: none; }

.form-step.active {
  display: block;
  animation: stepEntry 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepEntry {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #e8f1f8;
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #cc1f2c 0%, #004098 100%);
  border-radius: 3px;
}

.section-icon {
  width: 90px;
  height: 90px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 70%),
    linear-gradient(135deg, #002d6b 0%, #004098 30%, #0052a3 60%, #0066cc 100%);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  box-shadow:
    0 20px 50px rgba(0, 64, 152, 0.4),
    0 10px 25px rgba(0, 64, 152, 0.3),
    0 5px 12px rgba(0, 64, 152, 0.2),
    0 0 0 6px rgba(0, 64, 152, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 2px 4px rgba(255, 255, 255, 0.3) inset,
    0 0 40px rgba(0, 64, 152, 0.2);
  flex-shrink: 0;
  animation: iconPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
}

.section-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 30px;
  background:
    linear-gradient(135deg,
      rgba(0, 64, 152, 0.4) 0%,
      rgba(0, 102, 204, 0.3) 50%,
      rgba(0, 150, 255, 0.3) 100%);
  z-index: -1;
  filter: blur(12px);
  animation: iconGlow 2.5s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { opacity: 0.6; filter: blur(12px); transform: scale(1); }
  50% { opacity: 0.9; filter: blur(16px); transform: scale(1.1); }
}

@keyframes iconPop {
  0% { transform: scale(0) rotate(-180deg); }
  50% { transform: scale(1.25) rotate(10deg); }
  75% { transform: scale(0.95) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1rem;
  color: #64748b;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

/* Form Groups */
.form-group { margin-bottom: 1.75rem; }

label {
  display: block;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

label i { color: #004098; font-size: 1.1rem; }

.required {
  color: #cc1f2c;
  margin-left: 0.25rem;
  font-weight: 900;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 1.25rem 1.75rem;
  background:
    linear-gradient(135deg, rgba(250, 251, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%),
    radial-gradient(circle at 80% 20%, rgba(0, 64, 152, 0.02) 0%, transparent 50%);
  border: 2px solid #e5eaf0;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1e293b;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(255, 255, 255, 0.8) inset;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 251, 255, 0.98) 100%);
  border-color: #004098;
  box-shadow:
    0 0 0 6px rgba(0, 64, 152, 0.15),
    0 12px 30px rgba(0, 64, 152, 0.25),
    0 6px 15px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-3px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* File Upload */
input[type="file"] {
  padding: 0;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #004098 0%, #0066cc 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-right: 1rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

input[type="file"]::file-selector-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 64, 152, 0.3);
}

.file-info {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.625rem 1rem;
  background: #fef5f5;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #cc1f2c;
  border: 1px solid #fee;
  font-weight: 600;
}

.file-info i { color: #cc1f2c; font-size: 1rem; }

/* Grid Layout (ingat: ini override bootstrap .row) */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Info Cards */
.info-card {
  background: linear-gradient(135deg, #f9fbfd 0%, #ffffff 100%);
  border: 2px solid #e8f1f8;
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #004098 0%, #0066cc 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #004098;
  box-shadow:
    0 20px 60px rgba(0, 64, 152, 0.15),
    0 8px 24px rgba(0, 64, 152, 0.1);
}

.info-card:hover::before { opacity: 1; }

.info-card h5 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.info-card h5 i { color: #004098; font-size: 1.3rem; }

/* Alert Box */
.alert-box {
  background: linear-gradient(135deg, #fef5f5 0%, #ffffff 100%);
  border: 2px solid #fee;
  border-left: 5px solid #cc1f2c;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.alert-box h6 {
  font-weight: 800;
  color: #cc1f2c;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.alert-box ul { margin: 0; padding-left: 1.5rem; color: #64748b; }
.alert-box ul li { margin-bottom: 0.625rem; font-weight: 500; }

/* Document Category */
.doc-category { margin-bottom: 2.5rem; }

.category-header {
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 60%),
    linear-gradient(135deg, #001a3d 0%, #002d6b 15%, #004098 35%, #0052a3 55%, #0066cc 75%, #0080ff 95%, #003d82 100%);
  color: white;
  padding: 2rem 2.5rem;
  border-radius: 22px 22px 0 0;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow:
    0 15px 45px rgba(0, 64, 152, 0.4),
    0 8px 22px rgba(0, 64, 152, 0.3),
    0 4px 10px rgba(0, 64, 152, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 3px 6px rgba(255, 255, 255, 0.25) inset,
    0 -2px 4px rgba(0, 0, 0, 0.15) inset;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
}

.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -180%;
  width: 180%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15), transparent);
  animation: shimmer 5s infinite;
}

@keyframes shimmer { 0% { left: -180%; } 100% { left: 280%; } }
.category-header i { font-size: 1.4rem; }

.category-body {
  background: linear-gradient(135deg, #f9fbfd 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 0 0 16px 16px;
  border: 2px solid #e8f1f8;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) inset;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid #e8f1f8;
}

button {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before { width: 300px; height: 300px; }

button span, button i { position: relative; z-index: 1; }

.btn-primary {
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.25) 0%, transparent 70%),
    linear-gradient(135deg, #001a3d 0%, #002d6b 20%, #004098 40%, #0052a3 60%, #0066cc 80%, #0080ff 100%);
  color: white;
  box-shadow:
    0 18px 50px rgba(0, 64, 152, 0.5),
    0 9px 25px rgba(0, 64, 152, 0.4),
    0 4px 12px rgba(0, 64, 152, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.8s ease;
  transform: scale(0);
}

.btn-primary:hover::after { opacity: 1; animation: buttonShine 2s ease-in-out infinite; }

@keyframes buttonShine {
  0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(0.8) rotate(90deg); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); opacity: 0.8; }
  80% { transform: translate(-50%, -50%) scale(1.5) rotate(270deg); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(2) rotate(360deg); opacity: 0; }
}

.btn-primary:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 28px 80px rgba(0, 64, 152, 0.6),
    0 14px 40px rgba(0, 64, 152, 0.5),
    0 7px 20px rgba(0, 64, 152, 0.4);
}

.btn-secondary {
  background: white;
  color: #004098;
  border: 2px solid #004098;
}

.btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 64, 152, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.btn-reset {
  background: transparent;
  color: #64748b;
  border: 2px solid #cbd5e1;
}

.btn-reset:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* =========================================================
   VALIDATION FIX
   ========================================================= */
input.invalid,
select.invalid,
textarea.invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #cc1f2c !important;
  background: #fef5f5 !important;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

input.valid,
select.valid,
textarea.valid,
input.is-valid,
select.is-valid,
textarea.is-valid {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

.error-message {
  color: #cc1f2c;
  font-size: 0.875rem;
  margin-top: 0.625rem;
  display: none;
  font-weight: 600;
}

input.invalid + .error-message,
select.invalid + .error-message,
textarea.invalid + .error-message {
  display: block;
  animation: errorSlide 0.3s ease;
}

@keyframes errorSlide {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Select Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23004098' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
}

select option {
  background: white;
  color: #1e293b;
  padding: 0.5rem;
}

/* =========================================================
   Responsive
   ========================================================= */

/* tablet */
@media (max-width: 992px){
  .gov-header{ padding: 3rem 2.5rem; }
  .gov-header .garuda-emblem{ width: var(--logo-box-md); height: var(--logo-box-md); border-radius: 16px; }
  .gov-header .garuda-emblem img,
  .gov-header .garuda-emblem .garuda-logo{ width: var(--logo-img-md); height: var(--logo-img-md); }
  garuda-emblem img,
  .garuda-emblem .garuda-logo{
    transform: translateZ(0) scale(var(--logo-scale-md));
}

@media (max-width: 768px) {
  .header-content { flex-direction: column; text-align: center; }

  /* hp */
  .gov-header .garuda-emblem{ width: var(--logo-box-sm); height: var(--logo-box-sm); border-radius: 14px; }
  .gov-header .garuda-emblem img,
  .gov-header .garuda-emblem .garuda-logo{ width: var(--logo-img-sm); height: var(--logo-img-sm); }

  .header-text h1 { font-size: 1.5rem; }

  .form-card { padding: 2rem 1.5rem; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  .step-number {
    width: var(--step-size-sm);
    height: var(--step-size-sm);
    font-size: 1.05rem;

  }

  .step-label { font-size: 0.85rem; }

  .nav-buttons { flex-direction: column; }

  button { width: 100%; justify-content: center; }

  .section-header h2 { font-size: 1.4rem; }

  /* kurangi beban animasi background saat mobile */
  .gradient-orb-1, .gradient-orb-2, .gradient-orb-3 {
    filter: blur(140px);
    opacity: 0.55;
  }
}
