/*
 * 서브 페이지 전용 스타일 (forInsertStep01.html 등)
 * improve.css 이후에 로드하여 오버라이드
 */

/* === 프라이머리 컬러 변수 === */
:root {
  --primary: #6c390d;
  --primary-light: #8B5E3C;
  --primary-bg: #FAF5F0;
  --primary-border: #D4B896;
  /* 용도별 텍스트 컬러 — 단조로움 방지 */
  --heading-color: #4A2807;       /* 제목: 진한 다크 브라운 */
  --body-accent: #af6d00;         /* 본문 강조 */
  --info-color: #598300;          /* 안내/도움말 */
  --caption-color: #8C7355;       /* 캡션/부가정보: 탄 브라운 */
}

/* ============================================================
   서브 페이지: 불필요한 메인 애니메이션 제거
   ============================================================ */
.st-reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.st-hero-slide, .st-hero-slider, .mainRenewalHero {
  display: none !important;
}
.st-alert-blink {
  animation: none !important;
}

/* ============================================================
   보안 유의사항 안내 박스
   ============================================================ */
.security-notice-box {
  background: #FFF9EC;
  border: 2px solid #E8C96B;
  border-radius: 6px;
  padding: 25px 30px;
  margin: 0 0 30px;
  text-align: left;
  line-height: 1.8;
  font-size: 16px;
  color: #555;
  /* 로딩 시 펼쳐지는 애니메이션 */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  animation: securityBoxReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
@keyframes securityBoxReveal {
  to {
    max-height: 300px;
    opacity: 1;
    padding-top: 25px;
    padding-bottom: 25px;
  }
}
.security-notice-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: -1px;
  margin: 0 auto 15px !important;
  padding: 0 0 6px !important;
  color: #333 !important;
  background: none !important;
  text-align: center;
  display: block;
  width: 100%;
}
.security-notice-title span {
  display: inline;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  animation: securityTitleGlow 3s ease-in-out 1.2s infinite;
}
@keyframes securityTitleGlow {
  0%, 100% {
    border-bottom-color: transparent;
    text-shadow: none;
  }
  40%, 60% {
    border-bottom-color: #E8C96B;
    text-shadow: 0 0 8px rgba(232, 201, 107, 0.3);
  }
}
.security-notice-box p {
  margin: 0 0 8px;
}
.security-notice-box p:last-child {
  margin-bottom: 0;
}
.security-notice-box strong {
  color: #c0392b;
}

/* ============================================================
   신용카드 포인트 사용 안내 TIP 박스
   ============================================================ */
.card-point-tip-box {
  background: #FFF9EC;
  border: 2px solid #E8C96B;
  border-radius: 6px;
  padding: 25px 30px;
  margin: 30px 0 0;
  text-align: left;
  line-height: 1.7;
  font-size: 15px;
  color: #444;
}
.card-point-tip-head {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-point-tip-badge {
  display: inline-block;
  background: #5B3D97;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 4px;
  line-height: 1.4;
}
.card-point-tip-title {
  color: #5B3D97;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.card-point-tip-lead {
  margin: 0 0 10px;
  color: #222;
  font-weight: 700;
  font-size: 16px;
}
.card-point-tip-method {
  margin: 0 0 6px;
  color: #333;
}
.card-point-method-badge {
  display: inline-block;
  background: #737272;
  color: #fff;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-right: 6px;
  line-height: 1.5;
}
.card-point-tip-note {
  margin: 10px 0 0;
  color: #888;
  font-size: 14px;
}

/* ============================================================
   스크롤 상단 고정 바: 원본 기능 유지
   ============================================================ */

/* ============================================================
   1차 메뉴 active 하단 바 + 텍스트: 브라운
   ============================================================ */
.gnb>ul>li>a:hover>span,
.gnb>ul>li>a:focus>span,
.gnb>ul>li>a:active>span,
.gnb>ul>li.on>a>span {
  border-bottom: 6px solid var(--primary) !important;
}
.gnb>ul>li>a:hover,
.gnb>ul>li>a:focus,
.gnb>ul>li>a:active,
.gnb>ul>li.on>a {
  color: var(--primary) !important;
}

/* ============================================================
   사이드바 LNB active 배경: 브라운
   ============================================================ */
.lnb>ul>li.on {
  background: var(--primary) !important;
  background-image: none !important;
}
.lnb>ul>li.on>a,
.lnb>ul>li.on>a>span {
  color: #fff !important;
}

/* ============================================================
   버튼 색상: 기본 버튼 → 브라운 / 금액 버튼(purple) → 보라색 유지
   ============================================================ */
.btn,
.btn-block,
.btnSet .btn,
a.btn,
.btn.small {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
.btn:hover,
.btn:focus,
a.btn:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}
/* 금액 버튼: 웜 슬레이트 보조색 */
.btn.small.purple {
  background-color: #546E7A !important;
  border-color: #546E7A !important;
  color: #fff !important;
}
.btn.small.purple:hover {
  background-color: #455A64 !important;
  border-color: #455A64 !important;
}
/* 새로고침 등 회색 버튼 */
.btn.grey,
.btn.small.grey {
  background-color: #888 !important;
  border-color: #888 !important;
}
/* 가 버튼 (텍스트 리사이저): 기존 스타일 유지 */
.textresizer .btn.light-grey.border1 {
  background-color: #f1f1f1 !important;
  border-color: #ccc !important;
  color: #333 !important;
}
/* 파란 버튼 → 브라운 */
.btn.blue,
.btn.small.blue {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* ============================================================
   기부하기(후원금) 제목: 다크 브라운 + 라인 통일
   ============================================================ */
#content>#hgroup>h1,
.contentData h1 {
  color: var(--heading-color) !important;
}
/* 원본 #hgroup 하단, .contentData 상단 이중선 제거 → 단일선으로 통일 */
#hgroup {
  border-bottom: none !important;
}
/* ============================================================
   모바일 페이지 제목/브레드크럼 겹침 방지 (2026-07-03)
   sub.css 모바일 분기(≤767px)가 #hgroup h1/.location을 relative로
   전환하면 기본 규칙의 float(left/right)가 활성화되어 #hgroup 높이가
   collapse되고 float가 .contentData로 유출됨 — 삼성 인터넷에서 제목/
   브레드크럼이 본문 위에 겹침. BFC로 float를 #hgroup 안에 가둔다.
   ≥768px에서는 h1/.location이 absolute라 이 규칙과 무관 (PC 무영향).
   ============================================================ */
@media only screen and (max-width: 767px) {
  #hgroup {
    overflow: hidden;
  }
}
.contentData {
  border-top: 2px solid var(--primary-border) !important;
}

/* 섹션 소제목 (h2): 기존 그레이 유지 */

/* ============================================================
   강조/안내 텍스트 — 용도별 색상 분리
   ============================================================ */
/* 안내 문구 (infoCircle, infoComment): 올리브 그린 */
.infoCircle,
.infoComment,
.infoComment strong {
  color: var(--info-color) !important;
}
/* 일반 강조 텍스트 (.text-blue): 웜 올리브 브라운 */
.text-blue,
.text-blue strong,
.m0.mt5.text-blue,
.m0.mt5.text-blue i {
  color: var(--body-accent) !important;
}
/* 메가메뉴 서브메뉴 active 항목 (기부하기 등) */
.gnbBorder.st-mega-open .gnb > ul > li > ul > li.on > a {
  color: var(--primary) !important;
  background-color: var(--primary-bg) !important;
  font-weight: bold !important;
  text-decoration: none !important;
}

/* 부가/캡션 정보 (infoTxt 내부): 탄 브라운 */
.infoTxt .text-blue,
.infoTxt .infoCircle {
  color: var(--caption-color) !important;
}
/* 경고 텍스트: 유지 */
.text-red {
  color: #c0392b !important;
}
/* 개인정보 안내 문구 */
.infoComment.text-blue {
  color: var(--caption-color) !important;
}

/* ============================================================
   레이아웃: 대형화면 가로 폭
   ============================================================ */
@media (min-width: 1020px) {
  #container {
    max-width: 1000px;
    margin: 0 auto;
  }
  #content {
    float: right;
    width: 743px;
  }
  .sidebar {
    float: left;
    width: 217px;
    margin-right: 40px;
  }
}

/* ============================================================
   레이아웃: 태블릿 - 사이드바 상단 중앙 정렬
   ============================================================ */
@media (max-width: 1019px) {
  .sidebar {
    width: 100%;
    float: none;
    margin-right: 0;
    text-align: center;
  }
  .sidebar h2 {
    margin: 20px 0 10px;
  }
  .lnb > ul > li {
    width: 50%;
    float: left;
  }
  #content {
    float: none;
    width: 100%;
  }
  /* 서브메뉴 숨김 */
  .gnb > ul > li > ul {
    display: none !important;
  }
  .gnbBorder.st-mega-open .gnb > ul > li > ul {
    display: none !important;
  }
  .gnbBg.st-mega-bg-show {
    display: none !important;
  }
}

/* ============================================================
   레이아웃: 모바일 - 하위메뉴 5:5 2열 유지
   ============================================================ */
@media (max-width: 767px) {
  .lnb > ul > li {
    width: 50%;
  }
  /* 사이드 메뉴(.gnbMbOpen, z-index:1000)는 .gnbBorder 스태킹 컨텍스트(z-index:91)에
     갇혀 있어, 스크롤 시 고정 바(.headerOnSet, z-index:1000)에 상단이 가려짐.
     컨텍스트 자체를 고정 바보다 위로 올려 닫기 버튼이 가려지지 않게 함 */
  .gnbBorder {
    z-index: 1001;
  }
}

/* 소형 화면에서 컨텐츠 중앙 정렬 */
@media (max-width: 479px) {
  #container,
  #content,
  .contentData {
    max-width: 100% !important;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* ============================================================
   대형화면에서 모바일 네비게이션 숨김 (헤더 영역만)
   스크롤 시 회색 바(.headerOnSet) 내 삼선 버튼은 유지
   ============================================================ */
@media (min-width: 768px) {
  #header .menuButton,
  .menuButtonCloser,
  .mobileLogout {
    display: none !important;
  }
  .gnb {
    display: block !important;
  }
}

/* ============================================================
   이용신청 절차 플로우 다이어그램
   ============================================================ */
/* info-desc-box: 기존 container section border6 클래스 사용 */

.flow-section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 30px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-border);
}
.flow-section-desc {
  font-size: 16px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.6;
}

/* 3-step flow */
.step-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 20px 0;
}
.step-flow-item {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.step-box {
  background: #fff;
  border: 2px solid var(--primary-border);
  border-radius: 8px;
  padding: 18px 14px 14px;
  text-align: center;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.step-box .step-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.step-box .step-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 6px;
  flex-shrink: 0;
}
.step-box .step-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  word-break: keep-all;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  flex-shrink: 0;
}
.step-arrow svg {
  display: block;
}

/* 승인정보 제공 박스 */
.approval-info-box {
  background: #E8F5E9;
  border: 2px solid #81C784;
  border-radius: 24px;
  padding: 16px 24px;
  text-align: center;
  margin: 24px auto;
  max-width: 70%;
  font-size: 16px;
  color: #2E7D32;
  font-weight: 600;
  line-height: 1.6;
}

.flow-down-arrow {
  text-align: center;
  font-size: 28px;
  color: #999;
  margin: 8px 0;
}

.flow-result-text {
  text-align: center;
  font-size: 16px;
  color: #333;
  margin: 0 0 28px;
  font-weight: 500;
}

/* 2열 정보 박스 */
.info-boxes-row {
  display: flex;
  gap: 20px;
  margin: 24px 0 30px;
}
.info-box-half {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.info-box-half .info-box-title {
  background: var(--primary-bg, #FAF5F0);
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px;
  text-align: center;
  border-bottom: 1px solid var(--primary-border);
}
.info-box-half ul {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
}
.info-box-half ul li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 16px;
  color: var(--primary);
  line-height: 1.6;
  display: block;
  width: 100%;
}
.info-box-half ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* 바로가기 버튼 */
.shortcut-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}
.shortcut-btn:hover {
  background: var(--primary-light);
}
.shortcut-btn::after {
  content: ' \2192';
}

/* 반응형: 모바일에서 플로우 세로 */
@media (max-width: 767px) {
  .step-flow {
    flex-direction: column;
    align-items: center;
  }
  .step-flow-item {
    flex-direction: column;
    align-items: center;
  }
  .step-box {
    width: 100%;
    max-width: 280px;
  }
  .step-arrow {
    padding: 4px 0;
  }
  .step-arrow svg {
    transform: rotate(90deg);
  }
  .info-boxes-row {
    flex-direction: column;
  }
}
