/*How to use*/

.how-to-use {
  display: grid;
  grid-template-columns: 1fr 240px;
  position: relative;
  gap: 4rem;
  padding-right: 4rem !important;
}

@media screen and (max-width: 1023px) {
  .how-to-use {
    display: block;
  }
}

.top-img {
  display: block;
  position: absolute;
  width: 240px;
  right: 4rem;
  top: calc(-1.5rem - 120px);
  border-radius: 100%;
  overflow: hidden;
  clip-path: circle(49% at center);
}

@media screen and (max-width: 1023px) {
  .top-img {
    display: none;
  }
}

/*Top Info*/

.top-info {
  background: #235390;
}

.top-info h2 {
  color: #ffffff;
}

.top-info .subtitle {
  color: #ffffff;
  line-height: 1.3;
}

/*Search*/

.is-block {
  display: block !important;
}

.dropdown-menu {
  max-width: 100%;
  width: 100%;
}

.dropdown-item {
  padding-left: 5px;
  padding-right: 5px;
}

a.dropdown-item {
  text-overflow: ellipsis;
  overflow: hidden;
  padding-right: 0;
}

.search-input {
  display: grid;
  grid-template-columns: 1fr calc(240px + 4rem);
}

.search-input > div {
  display: flex;
  flex-direction: row;
}

.search-input .field {
  width: 100%;
}

.search-btn {
  width: auto !important;
  margin-top: 0;
  margin-left: 1rem;
}

@media screen and (max-width: 1023px) {
  .search-input {
    grid-template-columns: 1fr;
  }

  .search-input > div {
    flex-direction: column;
  }

  .search-btn {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
  }
}

/*Search results */

.icon-danger {
  color: #de550f !important;
}

.icon-success {
  color: #3fcb4d !important;
}

.canditate-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canditate-card .item-content {
  display: flex;
  align-items: center;
}

.canditate-card .item-icon {
  min-width: 38px;
}

.note-span {
  text-underline-offset: 3px;
}

/*Desktop spacing*/

@media screen and (min-width: 1024px) {
  /*How to use*/

  .how-to-use {
    grid-template-columns: 1fr calc(240px + 4rem);
    padding-left: 4.5rem !important;
    padding-right: 8.5rem !important;
  }

  .top-img {
    right: 8rem;
  }

  /*Top Info*/

  .top-info h1 {
    color: #ffffff;
  }

  /*Search*/
  .container {
    padding-left: 4.5rem !important;
  }

  .search-input {
    grid-template-columns: 1fr calc(240px + 8.5rem);
  }

  /*Search results*/
  .results-title {
    padding-top: 3rem !important;
  }

  .address-card > .card-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .address-card .dropdown-divider {
    margin: 0.75rem 0 !important;
  }

  .canditate-card {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .canditate-card .item-icon .icon {
    margin-right: 0.5rem !important;
  }
}
