/**
 * Process Steps Shortcode Styles
 * Professional process timeline design
 */

/* =================================
   CONTAINER & LAYOUT
   ================================= */
.tp-process-steps-wrapper {
  padding: 2rem 0;
  background: linear-gradient(
    90deg,
    rgb(238, 64, 42) 0%,
    rgb(242, 77, 56) 50%,
    rgb(247, 94, 74) 100%
  );
}

.tp-process-container .container {
  margin: 0 auto;
}

.tp-process-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
  line-height: 1.6;
}

.tp-process-subtitle {
  display: none;
}

/* =================================
   PROCESS TIMELINE
   ================================= */
.tp-process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 20px;
}

/* Connecting line between steps */
.tp-process-timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e2e8f0;
  width: 100%;
  z-index: 1;
}

.tp-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 0 10px;
  z-index: 2;
}

/* =================================
   STEP INDICATOR (NUMBER CIRCLE)
   ================================= */
.tp-step-indicator {
  position: relative;
  margin-bottom: 1.5rem;
}

.tp-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e2e8f0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tp-process-text-light);
  transition: all 0.2s ease-in-out;
}

/* =================================
   STEP CARD CONTENT
   ================================= */
.tp-step-card {
  text-align: center;
}

.tp-step-image {
  width: 100%;
  max-width: 65px;
  height: 65px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease-in-out;
  filter: brightness(0) invert(1);
}

.tp-step-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  line-height: 1.4;
  margin: 0;
}

/* =================================
   HOVER EFFECTS
   ================================= */
.tp-process-step:hover .tp-step-number {
  transform: scale(1.1);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .tp-process-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
  }

  .tp-process-timeline::before {
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    height: auto;
  }

  .tp-process-step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    width: 100%;
    margin-bottom: 2rem;
    padding: 0;
  }

  .tp-process-step:last-child {
    margin-bottom: 0;
  }

  .tp-step-indicator {
    margin-bottom: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
  }

  .tp-step-card {
    text-align: left;
    display: flex;
    align-items: center;
  }

  .tp-step-image {
    max-width: 60px;
    height: 60px;
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .tp-step-title {
    margin-bottom: 0.25rem;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .tp-process-title {
    margin-bottom: 1.5rem;
  }

  .tp-step-card {
    gap: 10px;
  }

  .tp-step-image {
    margin-right: 0;
    margin-bottom: 0.75rem;
    max-width: 50px;
    height: 50px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .tp-process-step {
    margin-bottom: 1.5rem;
  }

  .tp-step-indicator {
    margin-right: 1rem;
  }
}

/* =================================
   ACCESSIBILITY
   ================================= */
.tp-process-step:focus-within .tp-step-number {
  outline: 2px solid var(--tp-process-primary);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tp-step-number,
  .tp-step-image,
  .tp-step-title {
    transition: none;
  }

  .tp-process-step:hover .tp-step-number,
  .tp-process-step:hover .tp-step-image {
    transform: none;
  }
}