/**
 * Requirements Section (Syarat Dokumen) - Mobile First
 * 
 * Features:
 * - Layout centered-first for document list (middle item first, then upward)
 * - Custom colors for all elements
 * - Responsive design
 */

/* Requirements Section Base */
.requirements-section {
  background-color: var(--req-bg, #d4e9f7);
  padding: 40px 0;
  position: relative;
  overflow: hidden;

  @media (min-width: 1200px) {
    padding: 60px 0;
  }
}

.requirements-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 2;

  @media (min-width: 1200px) {
    padding: 0px;
  }
}

/* Section Title */
.requirements-title {
  font-family: "Outfit", sans-serif !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 40px !important;
  text-align: center;
  margin-bottom: 24px !important;
  color: var(--req-title-color, #1e3a5f) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  @media (min-width: 1200px) {
    font-size: 32px !important;
    line-height: 48px !important;
  }
}

/* Content Layout */
.requirements-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  @media (min-width: 1200px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
  }
}

/* Left: Image */
.requirements-image {
  width: 388px;
  max-width: 388px;
  flex-shrink: 0;
  @media (min-width: 1200px) {
    width: 636px;
    max-width: 636px;
  }
}

.requirements-image img {
  width: 171px;
  height: 256px;
  display: block;
  margin: 0 auto;
  object-fit: cover;

  @media (min-width: 1200px) {
    height: 420px;
    width: 419px;
    margin: 0 auto;
  }
}

.requirements-image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 12px;
}

/* Right: Document List */
.requirements-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (min-width: 1200px) {
    width: 50%;
  }
}

/* Individual Requirement Item */
.requirement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeInFromCenter 0.5s ease-out backwards;
}

/* Centered-First Layout Animation Logic */
/* For 8 items: Start from middle (4-5), then go up (3, 6, 2, 7, 1, 8) */
.requirement-item:nth-child(1) {
  animation-delay: 1s;
} /* Last */
.requirement-item:nth-child(2) {
  animation-delay: 0.6s;
}
.requirement-item:nth-child(3) {
  animation-delay: 0.4s;
}
.requirement-item:nth-child(4) {
  animation-delay: 0s;
} /* First (middle) */
.requirement-item:nth-child(5) {
  animation-delay: 0.2s;
} /* Second (middle) */
.requirement-item:nth-child(6) {
  animation-delay: 0.5s;
}
.requirement-item:nth-child(7) {
  animation-delay: 0.8s;
}
.requirement-item:nth-child(8) {
  animation-delay: 1.2s;
} /* Last */

@keyframes fadeInFromCenter {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Checklist Circle */
.requirement-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--req-check-bg, #2c9251);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 20px var(--req-check-glow, rgba(44, 146, 81, 0.3));
}

/* Outer Background Circle */
.requirement-check::before {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--req-check-outer-bg, #e8f5ec);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Checkmark Icon - Always White */
.requirement-check svg {
  width: 9.44px;
  height: 7.26px;
}

/* Requirement Text */
.requirement-text {
  font-family: "Outfit", sans-serif;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: var(--req-text-color, #1e3a5f) !important;
  flex: 1;

  @media (min-width: 1200px) {
    font-size: 20px !important;
    line-height: 32px !important;
  }
}

/* Ornament Background */
.requirements-ornament {
  position: absolute;
  top: 241px;
  right: -160px;
  width: 700px;
  height: 248px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    91deg,
    var(--req-ornament-color-1, rgba(255, 255, 255, 0.4)) 0%,
    var(--req-ornament-color-2, rgba(255, 255, 255, 0)) 100%
  );
  opacity: 0.8;
  border-radius: 300px;
  transform: translateY(-50%) rotate(137deg);

  @media (min-width: 1200px) {
    width: 1500px;
    height: 500px;
    top: 74px;
    right: -350px;
    transform: translateY(-50%) rotate(144deg);
  }
}
