/**
 * How We Work Together Widget Styles
 * Responsive design: Mobile first, tablet/desktop adjustments
 */

.jcd-hww-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin: 40px 0;
}

/* Title */
h2.jcd-hww-title {
  margin: 0;
  width: 100%;
  text-align: center;
  color: #0A0000;
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.96px;
}

/* Steps Container - Mobile: Vertical Stack */
.jcd-hww-steps-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 100%;
}

/* Individual Step */
.jcd-hww-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  position: relative;
}

/* Step Badge */
.jcd-hww-step-badge {
  background-color: #FFFFFF;
  border: 1px solid #B1B2B4;
  border-radius: 20px;
  padding: 7px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.32px;
  color: #000000;
  width: fit-content;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

/* Card - Mobile */
.jcd-hww-card {
  background-color: #FAFAFA;
  border: 1px solid #E5E5E6;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
  height: auto;
}

/* Icon - Mobile */
.jcd-hww-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
  color: #DC2E14;
}

.jcd-hww-icon svg,
.jcd-hww-icon img {
  width: 40px;
  height: 40px;
  max-width: 100%;
  max-height: 100%;
}

.jcd-hww-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.jcd-hww-icon i {
  font-size: 40px;
}

/* Content */
.jcd-hww-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Step Title - Mobile */
.jcd-hww-step-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.4px;
  color: #0A0000;
  margin: 0;
  max-width: 235px;
}

/* Step Description - Mobile */
.jcd-hww-step-description {
  margin: 0;
}

.jcd-hww-step-description p {
  margin: 0;
  color: var(--Grey-500, #7E7F83);
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

@media screen and (min-width: 768px) {
  .jcd-hww-wrapper {
    gap: 40px;
    margin: 72px 0 0;
  }

  h2.jcd-hww-title {
    font-size: 32px;
    letter-spacing: 1.28px;
  }

  .jcd-hww-steps-container {
    flex-direction: row;
    gap: 14px;
  }

  .jcd-hww-step {
    flex: 1;
  }

  .jcd-hww-step-badge {
    position: static;
  }

  .jcd-hww-card {
    padding: 14px;
    gap: 48px;
    height: 100%;
  }

  .jcd-hww-icon {
    width: 56px;
    height: 56px;
  }

  .jcd-hww-icon svg,
  .jcd-hww-icon img {
    width: 56px;
    height: 56px;
  }

  .jcd-hww-icon i {
    font-size: 56px;
  }
}

/* Elementor Editor Styles */
.elementor-editor-active .jcd-hww-wrapper {
  pointer-events: auto;
}