@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float-car {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

@keyframes reveal-hero {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes plate-glow {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(0, 66, 148, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 66, 148, 0.4);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.85);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* semua select di form */
#cgm-form select {
  background-image: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* icon */
#cgm-form .select-wrap .select-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 25px;
  height: 12px;
  transform: translate3d(0, -50%, 0) rotate(0deg);
  transform-origin: center;
  pointer-events: none;
  will-change: transform;

  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
  opacity: 0.95;
}
.hero-text{
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}
/* saat open */
#cgm-form .select-wrap.is-open .select-chevron {
  transform: translate3d(0, -50%, 0) rotate(-90deg);
  opacity: 1;
}

/* warna placeholder */
.hero-form select:invalid {
  color: #9ca3af;
}

.hero-form select option {
  color: #004294;
  font-weight: 700;
  background: #fff;
}

.hero-form select option[disabled] {
  color: #9ca3af;
  font-weight: 600;
}

.hero-form select:invalid {
  color: #9ca3af;
}

.hero-form select option {
  color: #004294;
  font-weight: 700;
  background: #fff;
}

.hero-form select option[disabled] {
  color: #9ca3af;
  font-weight: 600;
}

/* Scroll reveal */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  animation: fadeInUp 0.8s ease forwards;
}

/* Special cases */
.scale-in {
  opacity: 0;
}
.scale-in.visible {
  animation: scaleIn 0.6s ease forwards;
}



.reveal-text {
  animation: reveal-hero 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Navbar animation */
.navbar {
  animation: fadeIn 0.5s ease;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Focus effect (animate.js toggles .is-focused) */
.is-focused {
  transform: translateZ(0) scale(1.02);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
input.is-focused,
select.is-focused,
textarea.is-focused {
  box-shadow: 0 10px 25px rgba(17, 68, 143, 0.18);
}
.plate-focus-effect:focus-within {
  animation: plate-glow 2s infinite;
  border-color: #00cbfe !important;
  transition: all 0.3s ease;
}

/* Progress Steps */
.step-circle {
  transition: all 0.3s ease;
  position: relative;
}
.step-circle::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid currentColor; 
  opacity: 0;
  transition: all 0.3s ease;
}
.step-circle:hover::after {
  opacity: 1;
  transform: scale(1.2);
}
.step-circle.animate-on-scroll.visible {
  animation: popIn 650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Steps lines (desktop & mobile) */
.steps-line {
  transform: scaleX(0);
  transform-origin: left;
}
.steps-animate.visible .steps-line {
  animation: lineDraw 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lineDraw {
  to {
    transform: scaleX(1);
  }
}

/* MOBILE vertical line */
.steps-vline {
  transform: scaleY(0);
  transform-origin: top;
}
.steps-animate.visible .steps-vline {
  animation: lineDrawY 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lineDrawY {
  to {
    transform: scaleY(1);
  }
}

/* Button ripple */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}
.ripple {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: ripple 600ms ease-out forwards;
  z-index: 0;
}
@keyframes ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* Cards + FAQ hover */
.card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(17, 68, 143, 0.15);
}
.faq-item {
  transition: all 0.3s ease;
}
.faq-item:hover {
  transform: translateX(5px);
}

/* Hero float */
.animate-float {
  animation: float-car 4s ease-in-out infinite;
}

/* Pulse */
.pulse-animation {
  animation: pulse 2s infinite;
}

/* Stagger delays (index.html pakai sampai 1200) */
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}
.delay-500 {
  animation-delay: 0.5s;
}
.delay-600 {
  animation-delay: 0.6s;
}
.delay-700 {
  animation-delay: 0.7s;
}
.delay-800 {
  animation-delay: 0.8s;
}
.delay-900 {
  animation-delay: 0.9s;
}
.delay-1000 {
  animation-delay: 1s;
}
.delay-1100 {
  animation-delay: 1.1s;
}
.delay-1200 {
  animation-delay: 1.2s;
}
@media (max-width: 767px) {
  .hero-form select {
    padding-right: 3rem;

    background-position: right 12px center;
    background-size: 22px 10px;
  }
}

#loader.loader-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;

  background: rgba(0, 66, 148, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 24px;
}

.loader-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
}

.loader-spinner {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 3px solid rgba(0, 66, 148, 0.22);
  border-top-color: #004294;
  animation: loaderSpin 0.85s linear infinite;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-title {
  margin: 0;
  font-weight: 800;
  color: #004294;
  font-size: 14px;
  line-height: 1.1;
}

.loader-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 767px) {
  #loader.loader-overlay {
    border-radius: 20px;
  }
  .loader-card {
    width: 100%;
    max-width: 320px;
  }
  .loader-spinner {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader-spinner {
    animation: none;
  }
}
.dynamic-card {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
