@charset "utf-8";

/* ============================================================
   common.css — reset / font / color variable / button / form / popup 공통
   KICA증명 × 우리은행 랜딩
   ============================================================ */

/* ── Font ── */
@font-face {
  font-family: "Pretendard";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

/* ── Reset ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
}

body {
  font-family:
    "Pretendard",
    -apple-system,
    "Apple SD Gothic Neo",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

input {
  font-family: inherit;
}

/* ── Color Variables ── */
:root {
  --color-primary: #2680ff;
  --color-navy: #1e3580;
  --color-bg-sky: #d2ecfd;
  --color-notice-bg: #f2f2f2;
  --color-text-navy: #1b2a49;
  --color-text-muted: #9aa4b6;
  --color-text-sub: #5b6b86;
  --color-border: #d9dee8;
  --color-ok-bg: #e3f0ff;
  --color-no-bg: #eceef2;
  --color-white: #fff;
}

/* ── Utility (PC/MO 토글) ── */
.only_mob {
  display: none !important;
}
.only_pc {
  display: block;
}

.blind {
  overflow: hidden;
  display: inline-block;
  position: absolute;
  border: 0;
  width: 1px;
  height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  z-index: -1;
}

/* ── Image Buttons (랜딩 본문) ── */
.woori_btn {
  display: block;
  margin: 0 auto;
}
.woori_btn img {
  display: block;
  width: 100%;
}
.woori_btn--univ {
  width: 59.5%;
} /* 참여 가능 대학 확인하기 (PC) */
.woori_btn--qr {
  width: 81.25%;
} /* 우리WON뱅킹 QR 카드 (PC) */
.woori_btn--won {
  width: 88%;
} /* 우리WON뱅킹 바로가기 (MO) */
.woori_btn--mobile {
  width: 92.7%;
} /* 우리WON모바일 바로가기 (PC) */

/* ── Popup Button (파란 풀버튼) ── */
.woori_btn_blue {
  width: 100%;
  border: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 18px;
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  -webkit-transition: background-color 0.2s;
  -moz-transition: background-color 0.2s;
  -ms-transition: background-color 0.2s;
  -o-transition: background-color 0.2s;
}
.woori_btn_blue:hover {
  background: #1a6fe6;
}
.woori_btn_navy {
  width: 100%;
  border: 0;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  font-size: 18px;
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}
.woori_btn_navy:hover {
  background: #162c4b;
}
/* ============================================================
   Popup / Modal (검색 / 대상 / 비대상)
   ============================================================ */
.woori_popup_wrap {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 80, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.woori_popup_wrap.is_open {
  display: flex;
}

.woori_popup {
  background: var(--color-white);
  border-radius: 22px;
  width: 100%;
  max-width: 560px;
  min-height: 280px;

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 34px 30px 30px;
  position: relative;
}
.woori_popup.is_result {
  max-width: 520px;
  text-align: center;
  padding: 40px 30px 30px;
}

/* ── 검색 팝업 헤더 ── */
.woori_popup_head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  margin-top: 20px;
}
.woori_popup_head h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  color: var(--color-text-navy);
}
.woori_popup_close {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 26px;
  width: 24px;
  height: 24px;
  color: var(--color-text-sub);
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 24px;
}

/* ── 검색 입력창 ── */
.woori_search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 30px 0;
  position: relative;
}
.woori_search_icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.woori_search input {
  border: 0;
  outline: 0;
  font-size: 16px;
  width: 100%;
  color: var(--color-text-navy);
  background: none;
}
.woori_search input::placeholder {
  color: var(--color-text-muted);
}

/* ── 검색 자동완성 ── */
.woori_search_history {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-white);
  max-height: 180px;
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  z-index: 10;
  display: none;
}
.woori_search_history::-webkit-scrollbar {
  width: 6px;
}
.woori_search_history::-webkit-scrollbar-button {
  display: none;
}
.woori_search_history::-webkit-scrollbar-track {
  background: transparent;
}
.woori_search_history::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
}

.woori_search_history_item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 15px;
  color: var(--color-text-navy);
  border-bottom: 1px solid #f0f2f5;
}
.woori_search_history_item:last-child {
  border-bottom: none;
}
.woori_search_history_item:hover {
  background: #f5f8ff;
}

/* ── 결과 팝업 (대상 / 비대상) ── */
.woori_popup_icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 32px;
  line-height: 1;
  position: relative;
}
.woori_popup_icon.is_ok {
  background: var(--color-ok-bg);
  color: var(--color-primary);
}
.woori_popup_icon.is_no {
  background: var(--color-no-bg);
  color: var(--color-primary);
  font-weight: 700;
}
.woori_popup_txt {
  font-size: 18px;
  line-height: 1.55;
  color: var(--color-text-navy);
  font-weight: 600;
  margin: 0 0 28px;
}
.db_bar {
  width: 70%;
  height: 2px;
  background-color: #e3f2ff;
  margin-top: 20px;
}
/* ── Responsive ── */
@media screen and (max-width: 1199px) {
  .only_pc {
    display: none !important;
  }
  .only_mob {
    display: block !important;
  }

  .woori_btn--univ {
    width: 88%;
  }
  .woori_btn_mobile {
    width: 80%;
  }
}

@media screen and (max-width: 640px) {
  .woori_popup {
    padding: 24px 22px 24px;
    min-height: 240px;
    word-break: keep-all;
  }
  .woori_search {
    margin: 20px 0;
  }
  .woori_search input {
    font-size: 14px;
  }
  .woori_popup.is_result {
    padding: 32px 22px 24px;
  }
  .woori_popup_head h2 {
    font-size: 20px;
  }
  .woori_popup_txt {
    font-size: 16px;
  }
  .woori_btn_blue,
  .woori_btn_navy {
    font-size: 14px;
    padding: 16px;
  }
  .woori_evt_inner.is_narrow .woori_btn {
    width: 90%;
  }
}
