/**
 * Steps Section (Cara Mudah Pengajuan Pinjaman) - Mobile First
 * 
 * Features:
 * - Numbered steps with customizable colors
 * - Responsive layout: stacked on mobile, side-by-side on desktop
 * - Custom colors for all elements
 */

/* Steps Section Base */
.steps-section {
  background-color: var(--steps-bg, #ffffff);
  padding: 40px 0;
  position: relative;

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

.steps-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

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

/* Section Title */
.steps-title {
  font-family: "Outfit", sans-serif !important;
  font-size: 28px !important;
  font-weight: 300 !important;
  line-height: 40px !important;
  margin-bottom: 24px !important;
  color: var(--steps-title-color, #2c9251) !important;
  text-transform: none !important;
  letter-spacing: normal !important;

  @media (min-width: 1200px) {
    font-size: 32px !important;
    line-height: 48px !important;
    margin-bottom: 32px !important;
    text-align: center;
  }
}

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

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

/* Left: Steps List */
.steps-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;

  @media (min-width: 1200px) {
    gap: 16px;
  }
}

/* Individual Step Item */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background-color: var(--steps-list-bg, #f5f9f7);
  border: 1px solid var(--steps-border-color, #e0e0e0);
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;

  /* @media (min-width: 1200px) {
    height: 78px;
  } */
}

.step-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(44, 146, 81, 0.1);
}

/* Step Number Circle */
.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--steps-circle-bg, #2c9251);
  color: var(--steps-circle-text, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "open sans", sans-serif !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
  flex-shrink: 0;
  margin-top: 11px;
  margin-bottom: 11px;
}

/* Step Content */
.step-content {
  flex: 1;
}

/* Step Title */
.step-title {
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  color: var(--steps-text-color, #333333) !important;
  margin: 0 0 2px 0 !important;
  letter-spacing: normal !important;
  text-transform: none !important;

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

/* Highlighted text (span) in title or description */
.step-title span,
.step-description span {
  color: var(--steps-span-color, #2c9251) !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

/* Step Description */
.step-description {
  font-family: "Open Sans", sans-serif !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  color: #878d98 !important;
  margin: 0 !important;
  opacity: 0.8 !important   ;

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

/* Right: Image */
.steps-image {
  order: -1;
  width: 100%;
  max-width: 289px;
  flex-shrink: 0;

  @media (min-width: 1200px) {
    order: 0;
    max-width: 443px;
  }
}

.steps-image img {
  width: 100%;
  height: auto;
  display: block;
}

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

/* Animation on scroll (optional - can be enhanced with JS) */
.step-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.step-item:nth-child(1) {
  animation-delay: 0.1s;
}

.step-item:nth-child(2) {
  animation-delay: 0.2s;
}

.step-item:nth-child(3) {
  animation-delay: 0.3s;
}

.step-item:nth-child(4) {
  animation-delay: 0.4s;
}

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