/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 80px;
}

.pagination a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  margin: 0px 4px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  text-align: center;
  font-size: 1.8rem;
  transition: all ease-out 0.15s;
}

.pagination a:not(.current) {
  cursor: pointer;
}

.pagination a.current {
  color: #fff;
  background-color: #5d76d8;
}

.pagination a.pagination-prev,
.pagination a.pagination-next {
  border-right: #fff;
}

.pagination a.pagination-prev {
  margin-right: 20px;
  background-image: url("../img/bbs/pg_p_ico.png");
}

.pagination a.pagination-next {
  margin-left: 20px;
  background-image: url("../img/bbs/pg_n_ico.png");
}

.pagination a.pagination-first {
  margin-right: 20px;
  background-image: url("../img/bbs/pg_pp_ico.png");
}

.pagination a.pagination-last {
  margin-left: 20px;
  background-image: url("../img/bbs/pg_nn_ico.png");
}

@media screen and (max-width: 1200px) {
  .pagination a {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 1024px) {
  .pagination {
    margin-top: 60px;
  }

  .pagination a {
    width: 30px;
    height: 30px;
    background-size: auto 10px;
  }
  .pagination a.pagination-first,
  .pagination a.pagination-prev {
    margin-right: 14px;
  }
  .pagination a.pagination-last,
  .pagination a.pagination-next {
    margin-left: 14px;
  }
}
@media screen and (max-width: 768px) {
  .pagination {
    margin-top: 40px;
  }

  .pagination a {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 576px) {
  .pagination {
    margin-top: 30px;
  }

  .pagination a {
    width: 28px;
    height: 28px;
    margin: 0px 2px;
    font-size: 1.3rem;
  }
  .pagination a.pagination-first,
  .pagination a.pagination-prev {
    margin-right: 8px;
  }
  .pagination a.pagination-last,
  .pagination a.pagination-next {
    margin-left: 8px;
  }
}

/* search */

/* Search */
.search {
  display: flex;
  justify-content: flex-end;
}
.search-filter-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.search select {
  background: #fff url(../img/sub/select_arrow.png) no-repeat right 20px center;
  border: solid 1px #b5b5b5;
  width: 130px;
  padding: 0 20px;
  height: 50px;
  font-size: 1.8rem;
  color: #191919;
  border-radius: 10px;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.search select::-ms-expand {
  display: none;
}

.search .search-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search .search-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  width: 400px;
  height: 50px;
  padding-right: 50px;
  border-radius: 10px;
  border: 1px solid #b3b3b3;
  overflow: hidden;
}

.search .search-input input {
  width: 100%;
  height: 100%;
  padding: 0px 20px;
  font-size: 1.8rem;
}
.search .search-input input::placeholder {
  color: #b5b5b5;
}

.search .search-input button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 0;
  background-color: #5d76d8;
}

.search .search-input button::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #5d76d8 url("/asset/img/sub/search_ico.png") no-repeat center;
  background-size: 20px 20px;
}

@media screen and (max-width: 1200px) {
  .search select {
    font-size: 1.6rem;
  }

  .search .search-input input {
    font-size: 1.6rem;
  }
}
@media screen and (max-width: 1024px) {
  .search .search-input {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    width: 300px;
    height: 42px;
    padding-right: 50px;
    border-radius: 10px;
    border: 1px solid #b3b3b3;
    overflow: hidden;
  }
  .search .search-input button {
    width: 42px;
    height: 42px;
  }
  .search select {
    height: 42px;
  }
  .search .search-input button::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #5d76d8 url(/asset/img/sub/search_ico.png) no-repeat center /
      16px;
  }

  .search .search-input input {
    padding: 0px 20px;
  }
}
@media screen and (max-width: 768px) {
  .search select,
  .search .search-input input {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 576px) {
  .search-filter-box {
    display: flex;
    flex-direction: column-reverse;
    row-gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .total-num {
    width: 100%;
    text-align: left;
  }
  .search form,
  .search {
    width: 100%;
  }
  .search select {
    width: 100px;
    padding: 0 16px;
  }
  .search .search-input {
    width: calc(100% - 110px);
  }
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 라벨 150px + 입력 영역 */
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
}
.contact-wrap .form-item + .form-item {
  margin-top: 30px;
}
.form-label {
  line-height: 1;
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-field {
  width: 100%;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1.6rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.email-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-sep {
  font-size: 1.6rem;
  margin: 0 4px;
}

.file-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-btn {
  display: inline-block;
  padding: 10px 46px;
  background: #dcdcdc;
  border-radius: 10px;
  font-size: 1.8rem;
  cursor: pointer;
}

.file-name {
  font-size: 1.8rem;
  color: #171717;
}

/* 반응형: 모바일에서는 라벨 위, 입력 아래 */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
}

.form-table input {
  width: 100%;
  height: 40px;
  padding: 0px 20px;
  background: #f5f5f5;
  border: none;
  border-radius: 0;
  font-size: 1.6rem;
}
.form-table input[type="checkbox"] {
  -webkit-appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 25px;
  height: 25px;
  display: block;
  cursor: pointer;
  background: #fff;
  border: 1px solid #b1b1b1;
  outline: none;
  border-radius: 5px;
  padding: 0;
}

.form-table input[type="checkbox"]:checked {
  content: "";
  display: block;
  background: url(/asset/img/common/check-icon.svg) no-repeat center;
  background-size: cover;
  border: none;
}
.form-table select {
  width: 100%;
  height: 40px;
  padding: 0px 20px;
  border: none;
  border-radius: 0;
  background: #f5f5f5 url("/asset/img/sub/select_arrow.png") no-repeat right
    20px center;
  background-size: 14px;
  font-size: 1.6rem;
}

.form-table textarea {
  resize: none;
  display: block;
  width: 100%;
  height: 160px;
  padding: 20px;
  background: #f5f5f5;
  border: none;
  border-radius: 0;
  font-size: 1.6rem;
}

.form-table .chk-list {
  display: flex;
  align-items: center;
  gap: 100px;
  height: 100%;
}

.form-table .chk-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
}

.form-table .email-wrap {
  display: flex;
  align-items: center;
}

.form-table .email-wrap .box {
  width: 31.2%;
}

.form-table .email-wrap .box02 {
  margin-left: 1.6%;
}

.form-table .email-wrap span {
  margin: 0px 1.44%;
}

.form-table .agree {
  margin-top: 20px;
}

.form-table .agree label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0px;
  cursor: pointer;
}

.form-table .agree button {
  color: #213274;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-btn {
  display: block;
  width: 100%;
  height: 60px;
  background-color: #213274;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  border-radius: 10px;
}

.form-table .agree {
  margin-top: 20px;
}

.form-table .agree label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0px;
  cursor: pointer;
}

.form-table .agree button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-table input[type="checkbox"] {
  -webkit-appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  display: block;
  cursor: pointer;
  border: 1px solid #b1b1b1;
  outline: none;
  padding: 0;
  border-radius: 0;
}

.form-table input[type="checkbox"]:checked {
  content: "";
  display: block;
  background: url(/asset/img/sub/check-icon.png) no-repeat center;
  background-size: cover;
  border: none;
}
.file-desc {
  font-size: 1.4rem;
  color: #595959;
  margin-top: 8px;
  letter-spacing: -0.04em;
}

@media screen and (max-width: 1200px) {
  .file-name,
  .form-label {
    font-size: 1.6rem;
  }
  .file-btn {
    padding: 8px 20px;
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 1024px) {
  .form-table input {
    padding: 0px 16px;
  }

  .form-table select {
    padding: 0px 16px;
    background-position: right 16px center;
  }

  .form-table textarea {
    padding: 16px;
  }

  .form-table .chk-list {
    gap: 60px;
  }

  .form-table .chk-list label {
    gap: 6px;
  }

  .form-table .chk-list i {
    width: 20px;
    height: 20px;
    background-size: auto 20px;
  }

  .form-table .agree {
    margin-top: 14px;
  }

  .form-table .agree label {
    gap: 6px;
  }

  .form-table .agree i {
    width: 20px;
    height: 20px;
    background-size: auto 20px;
  }
}
@media screen and (max-width: 768px) {
.file-btn,
  .file-name,
  .form-label {
    font-size: 1.4rem;
  }

  .form-table input {
    font-size: 1.6rem;
  }

  .form-table select {
    font-size: 1.6rem;

  }

  .form-table textarea {
    font-size: 1.6rem;
  }

  .form-table .chk-list {
    height: 44px;
    gap: 40px;
  }

  .form-table .chk-list i {
    width: 18px;
    height: 18px;
    background-size: auto 18px;
  }

  .form-table .agree i {
    width: 18px;
    height: 18px;
    background-size: auto 18px;
  }

  .contact-btn {
    height: 54px;
    font-size: 1.6rem;
  }
  .form-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  .file-desc {
    font-size: 1.2rem;
    color: #595959;
  }
}
@media screen and (max-width: 576px) {
  .form-table input {
    height: 38px;
    padding: 0px 12px;
    font-size: 1.4rem;
  }

  .form-table select {
    height: 38px;
    padding: 0px 12px;
    font-size: 1.4rem;
    background-position: right 12px center;
  
  }

  .form-table textarea {
    height: 200px;
    padding: 12px;
    font-size: 1.4rem;
  }

  .form-table .chk-list {
    gap: 12px;
    height: 38px;
  }

  .form-table .chk-list i {
    width: 14px;
    height: 14px;
    background-size: auto 14px;
  }

  .form-table .email-wrap {
    flex-wrap: wrap;
  }

  .form-table .email-wrap span {
    width: 12px;
    text-align: center;
    margin: 0px 8px;
  }

  .form-table .email-wrap .box {
    width: calc(50% - 22px);
  }

  .form-table .email-wrap .box02 {
    width: 100%;
    margin-left: 0px;
    margin-top: 6px;
  }

  .form-table .agree i {
    width: 14px;
    height: 14px;
    background-size: auto 14px;
  }

  .contact-btn {
    height: 40px;
    font-size: 1.4rem;
  }
}
