/* =========================================================
   SERVIZUP — HOW IT WORKS
   ========================================================= */

.how-section {
  position: relative;
  overflow: hidden;

  margin-top: 70px;
  padding: 110px 0 100px;

  background:
    radial-gradient(
      circle at 5% 15%,
      rgba(47, 127, 224, 0.12),
      transparent 28%
    ),
    radial-gradient(
      circle at 95% 85%,
      rgba(99, 102, 241, 0.09),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #f4f8ff 0%,
      #ffffff 50%,
      #f7f9ff 100%
    );
}


/* =========================================================
   BACKGROUND SHAPES
   ========================================================= */

.how-bg-shape {
  position: absolute;

  border-radius: 50%;

  pointer-events: none;
}

.how-bg-shape--one {
  width: 280px;
  height: 280px;

  left: -150px;
  top: 100px;

  background: rgba(47, 127, 224, 0.07);

  filter: blur(4px);
}

.how-bg-shape--two {
  width: 360px;
  height: 360px;

  right: -190px;
  bottom: 20px;

  background: rgba(129, 140, 248, 0.07);

  filter: blur(5px);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.how-container {
  position: relative;

  z-index: 2;

  max-width: 1200px;

  margin: 0 auto;

  padding: 0 20px;
}


/* =========================================================
   HEADING
   ========================================================= */

.how-heading {
  max-width: 720px;

  margin: 0 auto 60px;

  text-align: center;
}

.how-badge {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  padding: 8px 16px;

  margin-bottom: 18px;

  border: 1px solid rgba(47, 127, 224, 0.14);

  border-radius: 50px;

  background: rgba(255, 255, 255, 0.78);

  color: #2f7fe0;

  font-size: 13px;

  font-weight: 750;

  box-shadow:
    0 7px 22px rgba(47, 127, 224, 0.07);

  backdrop-filter: blur(10px);
}

.how-badge-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #2f7fe0;

  box-shadow:
    0 0 0 5px rgba(47, 127, 224, 0.10);
}

.how-heading h2 {
  margin: 0;

  color: #172033;

  font-size: 42px;

  line-height: 1.25;

  font-weight: 850;

  letter-spacing: -0.8px;
}

.how-heading h2 span {
  display: block;

  margin-top: 4px;

  color: #2f7fe0;
}

.how-heading p {
  max-width: 620px;

  margin: 18px auto 0;

  color: #667085;

  font-size: 16px;

  line-height: 1.85;
}


/* =========================================================
   STEPS GRID
   ========================================================= */

.steps-grid {
  position: relative;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}


/* Connecting line */

.steps-grid::before {
  content: "";

  position: absolute;

  top: 61px;

  left: 16%;

  right: 16%;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      rgba(47, 127, 224, 0.12),
      rgba(47, 127, 224, 0.30),
      rgba(47, 127, 224, 0.12)
    );

  z-index: 0;
}


/* =========================================================
   STEP CARD
   ========================================================= */

.step-card {
  position: relative;

  z-index: 1;

  min-height: 315px;

  padding: 27px;

  border: 1px solid rgba(255, 255, 255, 0.95);

  border-radius: 24px;

  background: rgba(255, 255, 255, 0.88);

  box-shadow:
    0 12px 35px rgba(31, 64, 104, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(12px);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-7px);

  border-color: rgba(47, 127, 224, 0.17);

  box-shadow:
    0 22px 45px rgba(31, 64, 104, 0.12),
    0 5px 18px rgba(47, 127, 224, 0.05);
}


/* =========================================================
   CARD TOP
   ========================================================= */

.step-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 23px;
}

.step-number {
  color: #d7e2f0;

  font-size: 14px;

  font-weight: 900;

  letter-spacing: 1px;
}

.step-icon {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 55px;
  height: 55px;

  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      #2f7fe0,
      #5a9bea
    );

  color: #ffffff;

  font-size: 25px;

  font-weight: 700;

  box-shadow:
    0 10px 22px rgba(47, 127, 224, 0.22);

  transition:
    transform 0.3s ease;
}

.step-card:hover .step-icon {
  transform: rotate(-5deg) scale(1.06);
}


/* =========================================================
   SMALL LINE
   ========================================================= */

.step-line {
  width: 38px;
  height: 3px;

  margin-bottom: 19px;

  border-radius: 10px;

  background: #2f7fe0;
}


/* =========================================================
   CARD TEXT
   ========================================================= */

.step-card h3 {
  margin: 0 0 12px;

  color: #172033;

  font-size: 19px;

  line-height: 1.5;

  font-weight: 800;
}

.step-card p {
  margin: 0;

  color: #667085;

  font-size: 14px;

  line-height: 1.8;
}


/* =========================================================
   STEP HINT
   ========================================================= */

.step-hint {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 22px;

  padding-top: 15px;

  border-top: 1px solid #edf1f6;

  color: #98a2b3;

  font-size: 11px;

  font-weight: 700;
}

.step-hint span:first-child {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 25px;
  height: 25px;

  border-radius: 8px;

  background: #f0f6ff;

  color: #2f7fe0;

  font-size: 10px;
}


/* =========================================================
   CTA
   ========================================================= */

.how-cta {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 25px;

  margin-top: 55px;

  padding: 24px 27px;

  border: 1px solid rgba(47, 127, 224, 0.13);

  border-radius: 22px;

  background:
    linear-gradient(
      110deg,
      rgba(47, 127, 224, 0.07),
      rgba(255, 255, 255, 0.90)
    );

  box-shadow:
    0 14px 40px rgba(31, 64, 104, 0.07);
}

.how-cta-text {
  display: flex;

  align-items: center;

  gap: 14px;
}

.how-cta-icon {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  width: 45px;
  height: 45px;

  border-radius: 13px;

  background: #2f7fe0;

  color: #ffffff;

  font-size: 19px;

  font-weight: 900;

  box-shadow:
    0 8px 20px rgba(47, 127, 224, 0.22);
}

.how-cta-text h3 {
  margin: 0 0 4px;

  color: #172033;

  font-size: 16px;

  font-weight: 800;
}

.how-cta-text p {
  margin: 0;

  color: #667085;

  font-size: 13px;

  line-height: 1.6;
}


/* =========================================================
   CTA BUTTON
   ========================================================= */

.how-cta-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 11px;

  flex-shrink: 0;

  min-height: 50px;

  padding: 0 22px;

  border-radius: 13px;

  background: #2f7fe0;

  color: #ffffff;

  text-decoration: none;

  font-size: 13px;

  font-weight: 750;

  box-shadow:
    0 9px 22px rgba(47, 127, 224, 0.20);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.how-cta-button b {
  font-size: 19px;

  line-height: 1;

  transition: transform 0.25s ease;
}

.how-cta-button:hover {
  background: #256fc9;

  transform: translateY(-2px);

  box-shadow:
    0 14px 28px rgba(47, 127, 224, 0.27);
}

.how-cta-button:hover b {
  transform: translateX(4px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .steps-grid {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .steps-grid::before {
    display: none;
  }

  .step-card {
    min-height: auto;
  }

  .how-cta {
    flex-direction: column;

    align-items: stretch;
  }

  .how-cta-button {
    width: 100%;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .how-section {
    margin-top: 50px;

    padding: 70px 0;
  }

  .how-container {
    padding: 0 16px;
  }

  .how-heading {
    margin-bottom: 38px;
  }

  .how-heading h2 {
    font-size: 30px;

    letter-spacing: -0.4px;
  }

  .how-heading p {
    margin-top: 14px;

    font-size: 14px;

    line-height: 1.8;
  }

  .how-badge {
    font-size: 12px;
  }

  .step-card {
    padding: 21px;

    border-radius: 20px;
  }

  .step-card-top {
    margin-bottom: 19px;
  }

  .step-icon {
    width: 49px;
    height: 49px;

    border-radius: 14px;

    font-size: 22px;
  }

  .step-card h3 {
    font-size: 17px;
  }

  .step-card p {
    font-size: 13px;
  }

  .how-cta {
    margin-top: 38px;

    padding: 19px;

    border-radius: 18px;
  }

  .how-cta-text {
    align-items: flex-start;
  }

  .how-cta-icon {
    width: 40px;
    height: 40px;

    border-radius: 11px;

    font-size: 16px;
  }

  .how-cta-text h3 {
    font-size: 14px;
  }

  .how-cta-text p {
    font-size: 12px;
  }

  .how-cta-button {
    min-height: 49px;

    font-size: 13px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .how-heading h2 {
    font-size: 27px;
  }

  .step-card {
    padding: 18px;
  }

  .step-card h3 {
    font-size: 16px;
  }

}