/* Process Steps Section (How It Works) */
.process-steps.wp-block-group {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  max-width: 100% !important;
  align-items: center;
  padding: 100px 70px;
  position: relative;
  background-color: var(--white);
  box-sizing: border-box;
  margin: 0 !important;
}

/* Header */
.process-steps .section-text-content,
.process-steps .card-how-it-works .how-it-works {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 916px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  text-align: center;
  margin: 0 auto 60px;
  box-sizing: border-box;
}

.process-steps .how-it-works-eyebrow,
.process-steps .how-it-works .text-wrapper {
  position: relative;
  width: fit-content;
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  margin: 0;
}

.process-steps .text-wrapper,
.process-steps .how-it-works .div {
  position: relative;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--dark);
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0;
  margin: 0;
}

.process-steps .div,
.process-steps .three-steps-one {
  position: relative;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* Steps Grid Desktop */
.process-steps .steps-cards,
.process-steps .cards-grid {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 40px !important;
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  box-sizing: border-box;
}

/* Horizontal Timeline Connector on Desktop */
.process-steps .steps-cards::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 60px;
  right: 60px;
  height: 0;
  border-top: 1.5px dashed var(--stroke-dark-20);
  z-index: 1;
  pointer-events: none;
}

.process-steps .step-card,
.process-steps .div-2 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  gap: 20px !important;
  padding: 0 15px !important;
  position: relative;
  flex: 1 1 0 !important;
  z-index: 2;
  box-sizing: border-box;
}

.process-steps .icon-container {
  position: relative;
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  min-height: 70px !important;
  max-width: 70px !important;
  max-height: 70px !important;
  background-color: var(--white) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--stroke-dark-10) !important;
  box-shadow: 0 8px 30px rgba(10, 27, 46, 0.06) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.process-steps .step-card:hover .icon-container,
.process-steps .div-2:hover .icon-container {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 27, 46, 0.1) !important;
}

.process-steps .icon-container img,
.process-steps .icon-container svg,
.process-steps .icon {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  display: block !important;
  margin: auto !important;
}

.process-steps .employer-of-record {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.process-steps .text-wrapper-2 {
  font-family: var(--font-main);
  font-weight: 500;
  color: var(--dark);
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  margin: 0;
}

.process-steps .card-desc,
.process-steps .p {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* Bottom Button */
.process-steps .process-steps-buttons,
.process-steps .wp-block-buttons {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.process-steps .process-steps-buttons .wp-block-button__link,
.process-steps .button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  background-color: var(--red) !important;
  border-radius: var(--radius-btn);
  color: var(--white) !important;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
  cursor: pointer;
}

.process-steps .process-steps-buttons .wp-block-button__link:hover,
.process-steps .button:hover {
  background-color: var(--red-hover) !important;
  color: var(--white) !important;
}

.process-steps .process-steps-buttons .wp-block-button__link::after,
.process-steps .button::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.83301 15L14.1663 6.66663' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.0415 6.66663H14.1665V14.7916' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.process-steps .process-steps-buttons .wp-block-button__link:hover::after,
.process-steps .button:hover::after {
  transform: translate(2px, -2px);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .process-steps.wp-block-group {
    padding: 70px 30px;
    gap: 40px;
  }

  .process-steps .text-wrapper,
  .process-steps .how-it-works .div {
    font-size: 36px;
  }

  .process-steps .steps-cards,
  .process-steps .cards-grid {
    gap: 30px !important;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .process-steps.wp-block-group {
    padding: 40px 20px 50px !important;
    align-items: flex-start !important;
  }

  .process-steps .section-text-content,
  .process-steps .card-how-it-works .how-it-works {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 14px !important;
    margin: 0 0 32px 0 !important;
  }

  .process-steps .how-it-works-eyebrow {
    font-size: 12px !important;
    letter-spacing: 0.24px !important;
    margin: 0 !important;
  }

  .process-steps .text-wrapper,
  .process-steps .how-it-works .div {
    font-size: 32px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .process-steps .div,
  .process-steps .three-steps-one {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .process-steps .steps-cards,
  .process-steps .cards-grid {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 28px !important;
    width: 100% !important;
    position: relative;
  }

  /* Vertical Timeline Line on Mobile */
  .process-steps .steps-cards::before {
    top: 30px;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 0;
    height: auto;
    border-top: none;
    border-left: 1.5px dashed var(--stroke-dark-20);
  }

  .process-steps .step-card,
  .process-steps .div-2 {
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .process-steps .icon-container {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
  }

  .process-steps .icon-container img,
  .process-steps .icon-container svg {
    width: 28px !important;
    height: 28px !important;
  }

  .process-steps .employer-of-record {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 6px !important;
  }

  .process-steps .text-wrapper-2 {
    font-size: 18px !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .process-steps .card-desc,
  .process-steps .p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin: 0 !important;
  }

  .process-steps .process-steps-buttons,
  .process-steps .wp-block-buttons {
    width: 100% !important;
    margin-top: 24px !important;
  }

  .process-steps .process-steps-buttons .wp-block-button,
  .process-steps .wp-block-buttons .wp-block-button {
    width: 100% !important;
  }

  .process-steps .process-steps-buttons .wp-block-button__link,
  .process-steps .button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    justify-content: center !important;
  }
}
