/* Client Service Block Styles */

.client-service-block {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: var(--color-light-blue);
  overflow: hidden;
}

.client-service-block__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--spacing-5xl) var(--spacing-3xl) 128px;
  position: relative;
}

/* Decorative blur effect (optional - adds visual interest) */
.client-service-block::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -177px;
  width: 509px;
  height: 228px;
  background: var(--color-white);
  filter: blur(74px);
  opacity: 0.5;
  pointer-events: none;
}

/* Header Section */

.client-service-block__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
  margin-bottom: var(--spacing-4xl);
  max-width: 568px;
  margin-left: auto;
  margin-right: auto;
}

.client-service-block__title {
  font-family: var(--font-family);
  font-size: var(--font-size-title-m);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title-m);
  letter-spacing: var(--letter-spacing-title-m);
  color: var(--color-dark-blue);
  margin: 0;
  white-space: nowrap;
}

.client-service-block__description {
  font-family: var(--font-family);
  font-size: var(--font-size-body-l);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body-l);
  color: var(--color-dark-blue);
  margin: 0;
}

/* Steps Section */

.client-service-block__steps {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-3xl);
  justify-content: center;
  flex-wrap: nowrap;
}

.client-service-block__step {
  background-color: var(--color-white);
  flex: 0 0 calc((100% - 3 * var(--spacing-md)) / 4);
  min-width: 0;
  height: 176px;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 63px var(--spacing-xl) var(--spacing-xl);
}

.client-service-block__step-badge {
  position: absolute;
  top: -23px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background-color: var(--color-main-blue);
  border: 8px solid var(--color-light-blue);
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-service-block__step-number {
  font-family: var(--font-family);
  font-size: var(--font-size-title-s);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-title-s);
  letter-spacing: var(--letter-spacing-title-s);
  color: var(--color-light-blue);
  text-align: center;
}

.client-service-block__step-text {
  font-family: var(--font-family);
  font-size: var(--font-size-body-m);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body-m);
  color: var(--color-dark-blue);
  text-align: center;
  width: 204px;
}

/* WYSIWYG editor paragraph adjustments */
.client-service-block__step-text p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  text-align: inherit;
}

.client-service-block__step-text a {
  color: var(--color-dark-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-dark-blue);
  text-underline-position: from-font;
  transition: color 0.2s ease;
}

.client-service-block__step-text a:hover {
  color: var(--color-main-blue);
  text-decoration-color: var(--color-main-blue);
}

/* Call Box Section */

.client-service-block__call {
  background-color: var(--color-light-blue);
  border: 2px solid var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  max-width: 1168px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.client-service-block__call-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.client-service-block__call-text {
  font-family: var(--font-family);
  font-size: var(--font-size-body-l);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body-l);
  color: var(--color-dark-blue);
  margin: 0;
  flex: 1 1 auto;
  max-width: 600px;
  text-align: center;
}

.client-service-block__call-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.client-service-block__phone-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.client-service-block__phone-number {
  font-family: var(--font-family);
  font-size: var(--font-size-contact);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-contact);
  letter-spacing: var(--letter-spacing-contact);
  color: var(--color-main-blue);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.client-service-block__phone-number:hover {
  color: var(--color-main-blue-hover);
}

.client-service-block__phone-number:focus {
  outline: 2px solid var(--color-main-blue);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Responsive Design */

@media (max-width: calc(var(--breakpoint-desktop) - 0.0625rem)) {
  .client-service-block__container {
    padding: 64px 32px 96px;
  }

  .client-service-block__header {
    margin-bottom: 40px;
    gap: var(--spacing-sm);
  }

  .client-service-block__title {
    font-size: 40px;
    line-height: 40px;
    letter-spacing: -2.4px;
    white-space: nowrap;
  }

  .client-service-block__description {
    font-size: var(--font-size-body-l);
    line-height: var(--line-height-body-l);
  }

  /* Tablet: 4 steps per row (25% each) */
  .client-service-block__steps {
    flex-direction: row;
    gap: var(--spacing-md);
    flex-wrap: nowrap;
    justify-content: center;
  }

  .client-service-block__step {
    flex: 0 0 calc((100% - 3 * var(--spacing-md)) / 4);
    min-width: 0;
    height: 208px;
  }

  .client-service-block__step-text {
    font-size: var(--font-size-body-m);
    line-height: var(--line-height-body-m);
    width: auto;
    max-width: 136px;
  }

  .client-service-block__step-badge {
    width: 64px;
    height: 64px;
  }

  .client-service-block__step-number {
    font-size: var(--font-size-title-s);
    line-height: var(--line-height-title-s);
    letter-spacing: var(--letter-spacing-title-s);
  }

  /* Contact info: text on top, phone underneath */
  .client-service-block__call {
    padding: var(--spacing-lg);
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .client-service-block__call-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    width: 100%;
    flex-wrap: wrap;
  }

  .client-service-block__call-text {
    flex: 1 1 auto;
    order: 1;
    font-size: var(--font-size-body-l);
    line-height: var(--line-height-body-l);
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

  .client-service-block__call-phone {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }

  .client-service-block__phone-icon {
    width: 40px;
    height: 40px;
  }

  .client-service-block__phone-number {
    font-size: 36px;
    line-height: 40px;
    letter-spacing: -1.44px;
  }
}

@media (max-width: 48rem) {
  .client-service-block__container {
    padding: 40px 16px 80px;
  }

  .client-service-block__header {
    margin-bottom: 40px;
    gap: var(--spacing-sm);
  }

  .client-service-block__title {
    font-size: 32px;
    line-height: 32px;
    letter-spacing: -1.92px;
    white-space: nowrap;
  }

  .client-service-block__description {
    font-size: var(--font-size-body-l);
    line-height: var(--line-height-body-l);
  }

  /* Mobile: Steps should stack vertically at 100% width */
  .client-service-block__steps {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: var(--spacing-lg) !important;
    margin-bottom: 40px !important;
  }

  .client-service-block__step {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
    height: auto !important;
    padding: 48px var(--spacing-lg) var(--spacing-xl) var(--spacing-lg) !important;
  }

  .client-service-block__step-text {
    font-size: var(--font-size-body-m);
    line-height: var(--line-height-body-m);
    width: auto;
    max-width: none;
  }

  .client-service-block__step-badge {
    width: 64px;
    height: 64px;
    top: -23px;
  }

  .client-service-block__step-number {
    font-size: var(--font-size-title-s);
    line-height: var(--line-height-title-s);
    letter-spacing: var(--letter-spacing-title-s);
  }

  .client-service-block__call {
    padding: var(--spacing-lg);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .client-service-block__call-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 100%;
  }

  .client-service-block__call-text {
    font-size: var(--font-size-body-l);
    line-height: var(--line-height-body-l);
    text-align: center;
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .client-service-block__call-phone {
    order: 2;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .client-service-block__phone-icon {
    width: 40px;
    height: 40px;
  }

  .client-service-block__phone-number {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1.28px;
  }
}

@media (max-width: calc(var(--breakpoint-tablet) - 0.0625rem)) {
  .client-service-block__container {
    padding: 40px 16px 80px;
  }

  .client-service-block__header {
    margin-bottom: 40px;
    gap: var(--spacing-sm);
  }

  .client-service-block__title {
    font-size: 32px;
    line-height: 32px;
    letter-spacing: -1.92px;
    white-space: nowrap;
  }

  .client-service-block__description {
    font-size: var(--font-size-body-l);
    line-height: var(--line-height-body-l);
  }

  /* Mobile: Steps should stack vertically at 100% width */
  .client-service-block__steps {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: var(--spacing-lg) !important;
    margin-bottom: 40px !important;
  }

  .client-service-block__step {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
    height: auto !important;
    padding: 48px var(--spacing-lg) var(--spacing-xl) var(--spacing-lg) !important;
  }

  .client-service-block__step-text {
    font-size: var(--font-size-body-m);
    line-height: var(--line-height-body-m);
    width: auto;
    max-width: none;
  }

  .client-service-block__step-badge {
    width: 64px;
    height: 64px;
    top: -23px;
  }

  .client-service-block__step-number {
    font-size: var(--font-size-title-s);
    line-height: var(--line-height-title-s);
    letter-spacing: var(--letter-spacing-title-s);
  }

  .client-service-block__call {
    padding: var(--spacing-lg);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .client-service-block__call-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 100%;
  }

  .client-service-block__call-text {
    font-size: var(--font-size-body-l);
    line-height: var(--line-height-body-l);
    text-align: center;
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .client-service-block__call-phone {
    order: 2;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }

  .client-service-block__phone-icon {
    width: 40px;
    height: 40px;
  }

  .client-service-block__phone-number {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1.28px;
  }
}


