/* ==========================================================================
   1. 기본 레이아웃 (좌측 영상·이미지 / 우측 폼)
   ========================================================================== */
.giboo {
  font-family: 'Pretendard-Regular', sans-serif;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* 좌측 영역 공통 */
.giboo .giboo_left {
  width: 47%;
  border-radius: 8px;
  overflow: hidden;
}

/* 16:9 비디오 플레이어 */
.giboo .video_player_wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.giboo .video_player_wrap iframe,
.giboo .video_player_wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 좌측 텍스트/계좌 배경 박스 (3, 4페이지용) */
.giboo .giboo_imgbox {
  padding: 15% 7% 7% 7%;
  box-sizing: border-box;
  min-height: 670px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.giboo .giboo_bg2 { background: url(/images/contents/giboo_bg2.jpg) no-repeat center center / cover; }
.giboo .giboo_bg4 { background: url(/images/contents/giboo_bg4.jpg) no-repeat center center / cover; }

.giboo .giboo_imgbox .giboo_tbox {
  font-family: 'GangwonEdu_OTFBoldA', sans-serif;
  font-size: 19px;
  line-height: 35px;
  color: #FFF;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.giboo .giboo_imgbox .giboo_tbox p { margin: 0 0 3% 0; }

.giboo .giboo_imgbox .giboo_bbox {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 14px 18px;
  font-size: 15px;
  line-height: 26px;
  box-sizing: border-box;
  color: #FFF;
  border-radius: 6px;
}

.giboo .giboo_imgbox .giboo_bbox img { vertical-align: middle; margin-right: 6px; }

/* 우측 폼 컨테이너 공통 */
.giboo .giboo_right {
  width: 50%;
  min-height: 670px;
  border: 2px solid #eee;
  padding: 30px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 8px;
}

/* ==========================================================================
   2. 상단 스텝 인디케이터 (1단계 > 2단계 > 3단계)
   ========================================================================== */
.giboo .giboo_right .giboo_tab {
  margin: 0 0 30px 0;
  width: 100%;
}

.giboo .giboo_right .giboo_tab ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 12px;
}

.giboo .giboo_right .giboo_tab li { margin: 0; padding: 0; }

.giboo .giboo_right .giboo_tab li:not(.arrow) {
  flex: 1 1 0;
  max-width: 170px;
}

.giboo .giboo_right .giboo_tab li:not(.arrow) span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 10px;
  border-radius: 50px;
  background-color: #ededed;
  color: #a3a3a3;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.5px;
  user-select: none;
  box-sizing: border-box;
}

.giboo .giboo_right .giboo_tab li.active span {
  background-color: #e53935;
  color: #ffffff;
}

.giboo .giboo_right .giboo_tab li.arrow {
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
  user-select: none;
  line-height: 1;
}

.giboo .giboo_right .giboo_tab img { max-width: 100%; height: auto; }

/* ==========================================================================
   3. 테이블 & 인풋 공통
   ========================================================================== */
.giboo_tb, .giboo_tb_in {
  width: 100%;
  border-collapse: collapse;
  position: relative;
}

.giboo_tb { border-top: 2px solid #333; }
.giboo_tb_in { border-top: 0; }

.giboo_tb th, .giboo_tb td,
.giboo_tb_in th, .giboo_tb_in td {
  border-bottom: 1px solid #ddd;
  color: #333;
  padding: 12px 14px;
  box-sizing: border-box;
  vertical-align: middle;
  word-break: keep-all;
  font-size: 14.5px;
  line-height: 1.5;
}

.giboo_tb th, .giboo_tb_in th {
  background: #f9f9f9;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}

.giboo_tb td.no_pd, .giboo_tb_in td.no_pd { padding: 0; }

.giboo_tb input[type="text"],
.giboo_tb input[type="number"],
.giboo_tb select,
.giboo_tb_in input[type="text"],
.giboo_tb_in input[type="number"],
.giboo_tb_in select {
  height: 38px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid #ccc;
  vertical-align: middle;
}

.giboo_tb input::placeholder, .giboo_tb_in input::placeholder { color: #bbb; }

/* 라디오 & 체크박스 */
.giboo_tb input[type="radio"], .giboo_tb_in input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 4px 0 0;
}

.giboo_tb input[type="radio"]:checked, .giboo_tb_in input[type="radio"]:checked {
  background-color: #ff9494;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
}

.giboo_tb input[type="checkbox"], .giboo_tb_in input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 4px 0 0;
}

.giboo_tb input[type="checkbox"]:checked, .giboo_tb_in input[type="checkbox"]:checked {
  background-color: #ff9494;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px #ccc;
}

.giboo_tb label, .giboo_tb_in label {
  cursor: pointer;
  vertical-align: middle;
}

/* 기본 폭 & 정렬 유틸 */
.w20 { width: 20%; }
.w25 { width: 25%; }
.w30 { width: 29%; }
.w39 { width: 39%; }
.w40 { width: 40%; }
.w41 { width: 41%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w95 { width: 95%; }
.w100 { width: 100%; }

.al { text-align: left; }
.ar { text-align: right; }
.col_red { color: #ec3137; }
.big_txt { font-size: 1.5rem; }
.tt-red { color: #ec3137; font-weight: 700; margin-left: 3px; }

/* ==========================================================================
   4. 하단 이전/다음 공통 버튼 (동일 크기 일원화)
   ========================================================================== */
.giboo_btn_box {
  width: 100%;
  margin: 40px 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.giboo_btn_box .btn_prev,
.giboo_btn_box .btn_next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 145px;
  height: 44px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #767676;
  border-radius: 6px;
  box-sizing: border-box;
  letter-spacing: -0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.giboo_btn_box .btn_prev i { margin-right: 8px; font-size: 14px; line-height: 1; }
.giboo_btn_box .btn_next i { margin-left: 8px; font-size: 14px; line-height: 1; }

.giboo_btn_box .btn_prev:hover,
.giboo_btn_box .btn_next:hover {
  background-color: #f7f7f7;
  border-color: #222;
  color: #000;
}

/* ==========================================================================
   5. 반응형 미디어쿼리 (공통)
   ========================================================================== */
@media screen and (max-width: 1260px) {
  .giboo { flex-direction: column; max-width: 95%; }
  .giboo .giboo_left { width: 100%; margin-bottom: 25px; min-height: auto; }
  .giboo .giboo_right { width: 100%; min-height: auto; padding: 0px !important; border: 0px solid #eee; }
  .giboo .giboo_imgbox { min-height: 380px; }
  .giboo .pan { display: block; }
}

@media screen and (max-width: 768px) {
  .giboo .giboo_right .giboo_tab ul { gap: 6px; }
  .giboo .giboo_right .giboo_tab li:not(.arrow) span { height: 36px; padding: 0 8px; font-size: 12px; }
  .giboo .giboo_right .giboo_tab li.arrow { font-size: 11px; }

  .giboo_btn_box { margin: 30px 0 15px 0; gap: 8px; }
  .giboo_btn_box .btn_prev,
  .giboo_btn_box .btn_next {
    width: 120px;
    height: 40px;
    font-size: 13.5px;
  }
  .giboo_btn_box .btn_prev i { margin-right: 6px; font-size: 12px; }
  .giboo_btn_box .btn_next i { margin-left: 6px; font-size: 12px; }
}





/* step1 전용 */
/* 후원명 목록 세로 나열 */
.gib_flex_colmm { display: flex; flex-direction: column; gap: 8px; }
.gib_flex_colmm .gib_flex_col_item { display: inline-flex; align-items: center; gap: 6px; }

/* 오프라인 신청 배너 */
.giboo_off { margin-top: 30px; padding: 22px 24px; background-color: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; box-sizing: border-box; }
.giboo_off .tit { margin: 0 0 10px 0; font-size: 16px; font-weight: 700; color: #222; display: flex; align-items: center; gap: 6px; }
.giboo_off .tit::before { content: ""; display: inline-block; width: 4px; height: 15px; background-color: #e53935; border-radius: 2px; }
.giboo_off .s_tit { margin: 0 0 16px 0; font-size: 13.5px; line-height: 1.6; color: #666; word-break: keep-all; }
.giboo_off .s_tit a { color: #1e40af; text-decoration: underline; font-weight: 600; }
.giboo_off .s_tit a:hover { color: #e53935; }
.giboo_off .giboo_off_box { display: flex; flex-wrap: wrap; gap: 10px; }
.giboo_off .giboo_off_box a { display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none; border-radius: 5px; transition: all 0.2s ease; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.giboo_off .giboo_off_box a.co_mjt { background-color: #e53935; color: #ffffff; border: 1px solid #d32f2f; }
.giboo_off .giboo_off_box a.co_mjt:hover { background-color: #c62828; }
.giboo_off .giboo_off_box a.co_grn { background-color: #ffffff; color: #374151; border: 1px solid #cbd5e1; }
.giboo_off .giboo_off_box a.co_grn:hover { background-color: #f1f5f9; border-color: #94a3b8; }





/* step2 전용 */
/* 라디오 & 연락처 Flex 유틸 */
.gib_flex { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gib_flex_col { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.gib_flex_item, .gib_flex_col_item { display: inline-flex; align-items: center; gap: 6px; }
.gib_flex_between_item { /*display: flex; align-items: center; justify-content: space-between;*/ width: 100%; }

/* 우편번호 & 본인인증 버튼 */
.giboo_tb .input_btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; background: #4b5563; border-radius: 4px; color: #fff; font-size: 13.5px; text-decoration: none; vertical-align: middle; border: none; cursor: pointer; }
.giboo_tb .input_btn:hover { background: #374151; }
.input_btn2 { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; background-color: #2563eb; color: #fff !important; border-radius: 4px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.input_btn2:hover { background-color: #1d4ed8; }
.input_btn3 { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 14px; background-color: #fee500; color: #191919 !important; border-radius: 4px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.input_btn3:hover { background-color: #fada0a; }

/* 기부금영수증 히든 영역 */
#hiddendivision { display: none; margin-top: 14px; padding: 16px 18px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; box-sizing: border-box; }
#hiddendivision p { margin: 0 0 8px 0; font-size: 13px; line-height: 1.5; color: #475569; }
#hiddendivision p:first-child { color: #e53935; font-weight: 600; }
#hiddendivision table { margin-top: 6px; border-collapse: collapse; background: #fff; }
#hiddendivision table th, #hiddendivision table td { padding: 8px 10px; border: 1px solid #e2e8f0; font-size: 12.5px; line-height: 1.4; }
#hiddendivision table th { background: #f1f5f9; }

/* 약관 체크박스 목록 */
.check_box { width: 100%; }
.check_box .pd5 { padding-bottom: 10px; }
.check_box ul { list-style: none; margin: 0; padding: 0; background: #f9f9f9; border-radius: 4px; }
.check_box li { padding: 12px 14px; border-bottom: 1px solid #eee; color: #333; font-size: 13.5px; }
.check_box li:last-child { border-bottom: 0; }
.check_box .viw_bet a { font-size: 12.5px; color: #64748b; text-decoration: underline; }

/* 약관 팝업 모달 */
.bet_pop { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.55); z-index: 9999; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.bet_pop-content { background: #ffffff; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; border-radius: 8px; padding: 24px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); box-sizing: border-box; }
.bet_pop-content h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111; border-bottom: 0px solid #222; padding-bottom: 10px; }
.bet_pop-content #closePopupBtn { display: block; margin: 20px auto 0 auto; padding: 8px 30px; background-color: #333; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }

@media screen and (max-width: 1260px) {
  .gib_flex_col { flex-direction: column; align-items: flex-start; }
  .gib_flex_col_item { width: 100%; }
}





/* step3 전용 */
/* 납입방법 / 출금일 그리드 */
.giboo_tb td span.spo1 { display: inline-block; width: 45%; }
.giboo_tb_in td span.spo3 { display: inline-block; margin-right: 10px; vertical-align: middle; }
.giboo_tb_in td span.spo4 { display: inline-block; width: 22%; }

/* 결제 안내사항 박스 */
.giboo_info { width: 100%; padding: 12px 14px; background: #fdf8f6; border-left: 3px solid #e53935; box-sizing: border-box; margin: 6px 0; border-radius: 4px; }
.giboo_info h4 { margin: 0 0 8px 0; font-size: 14px; color: #b91c1c; }
.giboo_info ul { list-style: disc inside; margin: 0; padding: 0; }
.giboo_info li { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 4px; }

/* 결제정보 동의 체크 영역 */
.check_box { width: 100%; }
.check_box .pd5 { padding-bottom: 8px; }
.check_box .check { display: flex; flex-direction: column; gap: 4px; }
.check_box .viw_bet a { font-size: 12.5px; color: #64748b; text-decoration: underline; }

/* 3페이지 전용 약관 팝업 8종 오버레이 */
.bet_pop2_overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.55); z-index: 9999; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.bet_pop2_content { background: #fff; width: 100%; max-width: 600px; max-height: 85vh; overflow-y: auto; border-radius: 8px; padding: 24px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); box-sizing: border-box; }
.bet_pop2_content h3 { margin: 0 0 16px 0; font-size: 18px; font-weight: 700; color: #111; border-bottom: 2px solid #222; padding-bottom: 10px; }
.bet_pop2_content p { font-size: 13.5px; line-height: 1.5; color: #333; margin: 4px 0; }
.bet_pop2_content .agree-inner { border: 1px solid #ddd; padding: 12px; height: 120px; overflow-y: scroll; background: #fafafa; font-size: 12.5px; color: #666; line-height: 1.5; border-radius: 4px; }
.bet_pop2_content .bet_pop2_closeBtn { display: block; margin: 20px auto 0 auto; padding: 8px 30px; background-color: #333; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }

@media screen and (max-width: 1260px) {
  .giboo_tb td span.spo1 { width: 100%; margin-bottom: 6px; }
  .giboo_tb_in td span.spo4 { width: 45%; margin-bottom: 4px; }
}





/* step4 전용 */
/* 4단계 우측 세로 맞춤 */
.giboo .giboo_right { display: flex; flex-direction: column; justify-content: space-between; padding: 40px 30px; }

/* 완료 메시지 영역 */
.giboo_fin { width: 100%; color: #333; line-height: 1.8; font-size: 15px; }
.giboo_fin > p:first-child b { font-size: 18px; line-height: 1.5; color: #111; display: block; margin-bottom: 20px; }
.giboo_fin p { margin-bottom: 16px; word-break: keep-all; }

/* 후원 완료 내역 카드 */
.giboo_fin_box { margin: 20px 0 25px 0; padding: 22px 24px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; line-height: 1.9; }
.giboo_fin_box span { color: #e53935; font-weight: 600; margin-right: 6px; }
.giboo_fin_box b { color: #111; }