@charset "utf-8";

/* iM라이프 상품 가입 사이트 - 공통 (2026-10-01) */
/* 폰트는 각 페이지 <head> 에서 <link> 로 먼저 불러옴 (@import 는 로딩이 한 단계 늦어져 글자 깜빡임 발생) */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    background: #fff;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
img { border: 0; vertical-align: top; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
table { border-collapse: collapse; width: 100%; }
legend, caption, .blind {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

:root {
    --green: #19a38f;
    --green-d: #148071;
    --mint: #4ab5b3;
    --beige: #f7f5ef;
    --mint-bg: #eff7f6;
    --green-bg: #f1f8f0;
    --line: #e2e2e2;
    --gray: #666;
    --hdr: 74px;   /* 헤더 높이 (반응형에서 재정의) */
}

.inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 헤더 */
.head__wrap { position: relative; z-index: 20; background: #fff; }
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header .inner { position: relative; display: flex; align-items: center; height: var(--hdr); }
.header .logo { display: flex; align-items: center; flex: none; }
.header .logo img { height: 26px; width: auto; display: block; }
.gnb { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 40px; }
.gnb > li > a { display: block; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; }
.gnb > li > a:hover, .gnb > li.on > a { color: var(--green); font-weight: 700; }
.head__tel { margin-left: auto; flex: none; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.head__tel .ico { display: flex; align-items: center; flex: none; }
.head__tel .ico img { width: 30px; height: auto; display: block; }
.head__tel .txt { font-size: 12px; color: #222222; line-height: 1.35; }
.head__tel .txt h2 { display: block; font-size: 17px; font-weight: 700; color: var(--green); letter-spacing: -0.3px; line-height: 1.25; }
.m__menu { display: none; }

/* 대분류 메뉴 - 헤더에 마우스 올리면 전체 펼침 */
.sub__nav { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); overflow: hidden; max-height: 0; transition: max-height .25s ease; }
.head__wrap:hover .sub__nav, .head__wrap.open .sub__nav { max-height: 300px; }
.sub__nav .inner { display: flex; gap: 40px; padding-top: 22px; padding-bottom: 26px; }
.sub__nav .col { flex: 1; }
.sub__nav .col > p { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.sub__nav .col a { display: block; font-size: 14px; color: var(--gray); padding: 3px 0; }
.sub__nav .col a:hover, .sub__nav .col a.on { color: var(--green); font-weight: 600; }

/* 공통 섹션 타이틀 */
.sec__tit { font-size: 24px; font-weight: 700; margin-bottom: 26px; }

/* 상담 폼 */
.cs__form { display: flex; gap: 48px; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 34px 40px; }
.cs__list { width: 300px; flex: none; }
.cs__list .lab { display: flex; justify-content: space-between; align-items: center; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; color: #888; cursor: pointer; user-select: none; }
.cs__list.open .lab { border-color: var(--green); color: #222; }
.cs__list.selected .lab { color: #222; font-weight: 600; }
.cs__list .lab::after { content: ""; flex: none; margin-left: 10px; border: 5px solid transparent; border-top: 7px solid #555; margin-top: 4px; transition: transform .2s; }
.cs__list.open .lab::after { border-top-color: var(--green); transform: rotate(180deg); margin-top: -3px; }
.cs__list ul { display: none; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 10px; }
.cs__list.open ul { display: block; }
.cs__list li label { display: block; font-size: 13.5px; color: #555; padding: 7px 8px; border-radius: 6px; cursor: pointer; }
.cs__list li label:hover { background: var(--mint-bg); }
.cs__list input[type="radio"] { display: none; }
.cs__list input[type="radio"]:checked + label { color: var(--green); font-weight: 700; background: var(--mint-bg); }
.cs__inputs { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 12px; border-left: 1px solid var(--line); padding-left: 48px; }
.cs__inputs .half { width: calc(50% - 6px); }
.cs__gender { display: flex; gap: 12px; width: 100%; }
.cs__gender input { display: none; }
.cs__gender label { flex: 1; text-align: center; padding: 13px 0; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; color: #888; cursor: pointer; }
.cs__gender input:checked + label { background: var(--green); border-color: var(--green); color: #fff; font-weight: 600; }
.cs__inputs input[type="text"], .cs__inputs input[type="tel"] { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.cs__inputs input::placeholder { color: #aaa; }
.cs__agree { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: #555; }
.cs__agree a { color: var(--green); text-decoration: underline; }
.cs__submit { width: 100%; padding: 15px 0; background: var(--green); color: #fff; font-size: 16px; font-weight: 600; border-radius: 6px; }
.cs__submit:hover { background: var(--green-d); }

/* 하단 상담 전화 */
.tel__wrap { padding: 54px 0; background: #fff; }
.tel__wrap .inner { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.tel__box { flex: 1; min-width: 320px; max-width: 480px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 30px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.tel__box:hover { border-color: var(--mint); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.tel__box .t1 { font-size: 15px; font-weight: 600; line-height: 1.6; }
.tel__box .t1 .c { color: #e2574c; }
.tel__box .num { font-size: 26px; font-weight: 700; color: var(--green); letter-spacing: -0.5px; margin-top: 4px; }
.tel__box img { width: 68px; height: auto; flex: none; }

/* 유의사항 탭 + 푸터 */
.notice { background: var(--green-bg); padding: 40px 0 46px; }
.notice__tab { display: flex; gap: 8px; margin-bottom: 22px; }
.notice__tab button { padding: 8px 18px; border: 1px solid var(--line); background: #fff; border-radius: 20px; font-size: 13px; color: #555; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.notice__tab button:hover { background: var(--green); border-color: var(--green); color: #fff; }
.notice__req h4, .notice__box h4 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.notice__req p, .notice__req li, .notice__box p, .notice__box li { font-size: 14px; color: #222222; line-height: 1.75; }
.notice__req .red, .notice__box .red { color: #e2574c; }
.notice__box { display: none; }
.notice__box.on { display: block; }
.footer__info { margin-top: 24px; font-size: 12px; color: #777; line-height: 1.8; }
.depositor { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; }
.depositor img { width: 90px; }
.depositor p { font-size: 12px; color: #555; }

/* 1101~1280 : 가로 메뉴를 유지하되 간격을 줄여 로고와의 여유 확보 */
@media screen and (max-width: 1280px) {
    .gnb { gap: 30px; }
}

/* 1100 이하 : 가로 메뉴가 로고와 겹치기 시작하는 지점(계산상 약 1042px) → 햄버거로 전환 */
@media screen and (max-width: 1100px) {
    :root { --hdr: 66px; }
    .gnb { display: none; }
    .head__tel { display: none; }
    .m__menu { display: block; width: 24px; height: 18px; position: relative; margin-left: auto; }
    .m__menu span { position: absolute; left: 0; width: 100%; height: 2px; background: #333; border-radius: 2px; transition: transform .2s, opacity .15s, top .2s; }
    .m__menu span:nth-child(1) { top: 0; }
    .m__menu span:nth-child(2) { top: 8px; }
    .m__menu span:nth-child(3) { top: 16px; }
    .head__wrap.open .m__menu span:nth-child(1) { top: 8px; transform: rotate(45deg); }
    .head__wrap.open .m__menu span:nth-child(2) { opacity: 0; }
    .head__wrap.open .m__menu span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

    /* 햄버거 누르면 상품 메뉴 전체가 펼쳐짐 */
    .sub__nav { box-shadow: 0 12px 24px rgba(0,0,0,.08); }
    .head__wrap:hover .sub__nav { max-height: 0; }
    .head__wrap.open .sub__nav { max-height: calc(100vh - var(--hdr)); overflow-y: auto; }
    .sub__nav .inner { flex-direction: column; gap: 0; padding-top: 4px; padding-bottom: 10px; }
    .sub__nav .col { flex: none; padding: 14px 0 12px; border-bottom: 1px solid #f1f1f1; }
    .sub__nav .col:last-child { border-bottom: 0; }
    .sub__nav .col > p { font-size: 15px; margin-bottom: 6px; }
    .sub__nav .col a { font-size: 14px; padding: 7px 0; }

    .cs__list { width: 260px; }
    .cs__inputs { padding-left: 32px; }
    .cs__form { gap: 32px; padding: 28px 30px; }
}

@media screen and (max-width: 767px) {
    body { font-size: 15px; }
    :root { --hdr: 62px; }
    .header .inner { gap: 10px; }
    .header .logo img { height: 20px; }
    .sec__tit { font-size: 20px; margin-bottom: 18px; }
    .cs__form { flex-direction: column; gap: 18px; padding: 22px 20px; }
    .cs__list { width: 100%; }
    .cs__inputs { border-left: 0; padding-left: 0; }
    .cs__inputs .half { width: 100%; }
    .tel__wrap .inner { gap: 28px; flex-direction: column; align-items: center; }
    .tel__box { width: 100%; max-width: 100%; min-width: 0; padding: 20px 22px; }
    .tel__box img { width: 56px; }
    .tel__box .num { font-size: 23px; }
}

/* 개인정보 동의 팝업 */
.privacy__modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; padding: 20px; }
.privacy__modal.active { display: flex; align-items: center; justify-content: center; }
.privacy__modal .box { position: relative; width: 100%; max-width: 560px; max-height: 80vh; overflow-y: auto; background: #fff; border-radius: 10px; padding: 30px 26px; }
.privacy__modal h3 { font-size: 17px; margin-bottom: 14px; }
.privacy__modal p { font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 10px; }
.privacy__modal p b { color: #222; }
.privacy__close, .modal__close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: background .2s; }
.privacy__close:hover, .modal__close:hover { background: #f1f1f1; }
.privacy__close img, .modal__close img { width: 16px; height: 16px; display: block; }

/* 공용 팝업 (가입 시 유의사항 / 예금자보호안내) */
.site__modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100; padding: 20px; }
.site__modal.active { display: flex; align-items: center; justify-content: center; }
.site__modal .box { position: relative; width: 100%; max-width: 760px; max-height: 84vh; overflow-y: auto; background: #fff; border-radius: 10px; padding: 30px 30px 34px; }
.site__modal h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; padding-right: 30px; }

/* 알아두실 사항 */
.pd__guide h4 { font-size: 15px; font-weight: 700; margin: 26px 0 8px; }
.pd__guide h4:first-child { margin-top: 0; }
.pd__guide p { font-size: 13.5px; color: #555; line-height: 1.85; margin-bottom: 6px; }
.pd__guide .red { color: #e2574c; }
.pd__guide .dep { display: flex; gap: 18px; align-items: flex-start; margin-top: 10px; }
.pd__guide .dep img { width: 72px; height: auto; flex: none; }

@media screen and (max-width: 767px) {
    .site__modal .box { padding: 24px 20px 28px; max-height: 88vh; }
    .site__modal h3 { font-size: 16px; }
}
