/*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;
  }
}

/* Share section */
.share-section {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.share-section[hidden] {
  display: none !important;
}

.share-section__heading {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #111;
}

.share-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  color: #fff;
  transition: opacity 0.12s ease, transform 0.12s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.share-pill:hover {
  opacity: 0.9;
}

.share-pill:active {
  transform: scale(0.97);
}

.share-pill:focus-visible {
  outline: 2px solid #4d90fe;
  outline-offset: 2px;
}

.share-pill svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.share-pill--native {
  background: #111;
}

.share-pill--whatsapp {
  background: #25d366;
}

.share-pill--imessage {
  background: #007aff;
}

.share-pill--email {
  background: #dc3545;
}

.share-pill--copy {
  background: #fff;
  color: #111;
  border: 1px solid #d1d5db;
}

.share-pill--copy .share-pill__icon-copied {
  display: none;
}

.share-pill--copy.share-pill--copied {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.share-pill--copy.share-pill--copied .share-pill__icon-default {
  display: none;
}

.share-pill--copy.share-pill--copied .share-pill__icon-copied {
  display: inline-block;
}
