.modal-search {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 1001;
  .close {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 3;
    @media (max-width: 1024px) {
      width: 36px;
      height: 36px;
    }
    @media (max-width: 576px) {
      width: 30px;
      height: 30px;
    }
    &:before,
    &:after {
      display: block;
      position: absolute;
      content: '';
      width: 100%;
      height: 1px;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%) rotate(45deg);
      background-color: var(--c-white);
      border-radius: 3px;
      transition: all 0.4s ease;
    }
    &:after {
      transform: translate(-50%, -50%) rotate(-45deg);
    }
    &:hover {
      &:before,
      &:after {
        width: 80%;
        height: 3px;
      }
    }
  }
  .search-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    .search-overlay {
      position: absolute;
      width: 100%;
      height: 100%;
      left: 0;
      top: 0;
      background-color: var(--c-black);
      opacity: 0.7;
      cursor: pointer;
      z-index: 1;
    }
    .search-form {
      position: absolute;
      width: 770px;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
      @media (max-width: 1440px) {
        width: 600px;
      }
      @media (max-width: 1024px) {
        width: 300px;
      }
      * {
        transition: all 0.3s ease-in-out;
      }
      .form-item {
        position: relative;
        input {
          &[type='search'] {
            width: 100%;
            height: 100px;
            padding-left: 40px;
            padding-right: 80px;
            font-size: var(--fs-2xl);
            background-color: var(--c-white);
            border: none;
            border-radius: 0;
            z-index: 1;
            @media (max-width: 1440px) {
              height: 80px;
              padding-left: 30px;
              padding-right: 56px;
            }
            @media (max-width: 1024px) {
              height: 64px;
              padding-left: 24px;
              padding-right: 40px;
            }
            &::placeholder {
              color: var(--c-gray-300);
              font-size: var(--fs-2xl);
            }
          }
        }
        button {
          &[type='submit'] {
            position: absolute;
            top: 50%;
            right: 30px;
            transform: translateY(-50%);
            line-height: 1;
            cursor: pointer;
            @media (max-width: 1440px) {
              right: 20px;
            }
            @media (max-width: 1024px) {
              right: 16px;
            }
            svg {
              width: 38px;
              height: 38px;
              line-height: 1;
              @media (max-width: 1440px) {
                width: 32px;
                height: 32px;
              }
              @media (max-width: 1024px) {
                width: 28px;
                height: 28px;
              }
              path {
                fill: var(--c-primary-200);
              }
            }
            &:hover {
              svg {
                path {
                  fill: var(--c-gray-400);
                }
              }
            }
          }
        }
      }
    }
  }
}
.search-results {
  margin-bottom: 50px;
  @media (max-width: 576px) {
    margin-bottom: 30px;
  }
  * {
    transition: all 0.3s ease-in-out;
  }
  .search-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    @media (max-width: 576px) {
      display: block;
      padding: 20px 0;
    }
    .search-top-left {
      @media (max-width: 576px) {
        margin-bottom: 20px;
      }
      ul {
        margin: 0;
        padding: 0;
        list-style: none;
        li {
          display: flex;
          gap: 4px;
          margin: 6px 0;
          strong {
            color: var(--c-gray-300);
          }
          em {
            font-style: normal;
          }
        }
      }
    }
    .search-top-right {
      width: 50%;
      @media (max-width: 576px) {
        width: 100%;
      }
      .form-item {
        display: flex;
        input {
          flex: 1;
        }
      }
    }
  }
  .results-listing {
    border-top: 1px solid var(--c-gray-100);
    article {
      padding: 30px 0;
      border-bottom: 1px solid var(--c-gray-100);
      @media (max-width: 576px) {
        padding: 20px 0;
      }
      &:hover {
        border-color: var(--c-primary-200);
      }
      h3 {
        margin: 0 0 10px;
        a {
          display: block;
        }
      }
    }
  }
}
