@charset "UTF-8";
/* =========================================================
MAIN SEARCH
========================================================= */
.main-search-widget {
  width: 100%;
  box-sizing: border-box;
}

/* =========================================================
HEADER
========================================================= */

.main-search-head {
  margin-bottom: 2rem;
}

.main-search-label {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border-radius: 30px;
  background: #eef8f7;
  color: #019589;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.main-search-head h2 {
  margin: 14px 0 12px;
  color: #182222;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -1.2px;
}

.main-search-head p {
  color: #7b8787;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: -.2px;
}

/* =========================================================
SEARCH BOX
========================================================= */

.main-search-box {
  padding: 32px;
  background: #fff;
  border: 1px solid #e3ebea;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(20, 50, 48, .07);
  box-sizing: border-box;
}

.main-search-title {
  margin-bottom: 13px;
  color: #263131;
  font-size: 15px;
  font-weight: 700;
}


/* =========================================================
FORM
========================================================= */

.main-search-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.main-search-input-wrap {
  position: relative;
  flex: 1;
}

.main-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 21px;
  height: 21px;
  color: #91a0a0;
  transform: translateY(-50%);
  pointer-events: none;
}

.main-search-input-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 48px 0 52px;
  box-sizing: border-box;
  border: 1px solid #dce5e4;
  border-radius: var(--radius);
  outline: none;
  background: #fafcfc;
  color: #202929;
  fon-size: 15px;
  transition:  border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.main-search-input-wrap input::placeholder {
  color: #a2adad;
}

.main-search-input-wrap input:focus {
  border-color: #019589;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(1, 149, 137, .08);
}


/* =========================================================
CLEAR
========================================================= */

.main-search-clear {
  position: absolute;
  right: 13px;
  top: 50%;
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf1f1;
  color: #7c8888;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
  transform: translateY(-50%);
}

.main-search-clear.show {
  display: block;
}

.main-search-clear:hover {
  background: #e1e8e7;
}

/* =========================================================
SUBMIT
========================================================= */

.main-search-submit {
  flex: 0 0 130px;
  height: 58px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-in-color);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.main-search-submit:hover {
  background: #017f75;
  box-shadow:  0 7px 18px rgba(1, 149, 137, .18);
  transform: translateY(-1px);
}

.main-search-submit:active {
  transform: translateY(0);
}

/* =========================================================
GUIDE
========================================================= */

.main-search-guide {
  margin-top: 11px;
  color: #9aa5a5;
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================================
SEARCH RESULT
검색 박스 내부에 표시
========================================================= */
.main-search-result {
  display: none;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid #edf1f0;
}

.main-search-result.show {
  display: block;
}

/* 결과 헤더 */
.main-search-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.main-search-result-head strong {
  color: #202929;
  font-size: 15px;
  font-weight: 800;
}

.main-search-result-head span {
  color: #929e9e;
  font-size: 12px;
}

/* 결과 목록 */
.main-search-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 5px 0;
}

/* 스크롤바 */
.main-search-result-list::-webkit-scrollbar {
  width: 5px;
}

.main-search-result-list::-webkit-scrollbar-thumb {
  background: #d9e3e1;
  border-radius: var(--radius);
}

.main-search-result-list::-webkit-scrollbar-track {
  background: transparent;
}


/* 결과 아이템 */

.main-search-result-item {
  display: block;
  padding: 16px 18px;
  border: 1px solid #e8eeee;
  border-radius: var(--radius);
  background: #f9fbfb;
  text-decoration: none;
  transition:  border-color .18s ease,  background .18s ease,  box-shadow .18s ease,  transform .18s ease;
}

.main-search-result-item:hover {
  background: #fff;
  border-color: #b8d9d5;
  box-shadow:  0 5px 16px rgba(20, 50, 48, .05);
  transform: translateY(-1px);
}

/* 결과 제목 */
.main-search-result-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.site-name {
  font-size: 15px;
  font-weight: 700;
  color: #202929;
}

.incident-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #e05252;
}

/* 결과 내용 */
.main-search-result-item-content {
  margin-top: 6px;
  color: #7b8787;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 날짜 */
.main-search-result-item-date {
  margin-top: 8px;
  color: #a3adad;
  font-size: 11px;
}

/* 결과 없음 */
.main-search-result-message {
  padding: 28px 20px;
  border: 1px dashed #dce5e4;
  border-radius: var(--radius);
  background: #fafcfc;
  color: #7f8b8b;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

/* 로딩 */
.main-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 28px;
  color: #7f8b8b;
  font-size: 13px;
}

.main-search-loading span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #019589;
  animation: mainSearchLoading 1.2s infinite ease-in-out;
}

.main-search-loading span:nth-child(2) {
  animation-delay: .15s;
}

.main-search-loading span:nth-child(3) {
  animation-delay: .3s;
}


@keyframes mainSearchLoading {

  0%,
  70%,
  100% {
    opacity: .25;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }

}

/* =========================================================
QUICK LINKS
========================================================= */

.main-search-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.main-search-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  box-sizing: border-box;
  border: 1px solid #e4ebea;
  border-radius: var(--radius);
  background: #fff;
  color: #596565;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.main-search-links a b {
  color: #a4afae;
  font-size: 16px;
  font-weight: 400;
  transition: transform .18s ease;
}

.main-search-links a:hover {
  border-color: #b8d9d5;
  color: #019589;
  background: #f9fcfc;
}

.main-search-links a:hover b {
  color: #019589;
  transform: translateX(3px);
}


/* =========================================================
MOBILE
========================================================= */

@media (max-width: 1200px) {

  .main-search-head {
    margin-bottom: 25px;
  }

  .main-search-head h2 {
    font-size: 20px;
    letter-spacing: -.8px;
  }

  .main-search-head p {
    font-size: 13px;
    line-height: 1.7;
  }

  .main-search-box {
    padding: 2rem 1rem;
    border-radius: var(--radius);
  }

  .main-search-form {
    flex-direction: column;
  }

  .main-search-submit {
    flex: none;

    width: 100%;
  }

  .main-search-links {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 480px) {

  .main-search-head h2 {
    font-size: 16px;
  }

  .main-search-label {
    font-size: 12px;
  }

  .main-search-input-wrap input {
    height: 54px;

    font-size: 14px;
  }

  .main-search-submit {
    height: 54px;
  }

}
