@import url("./pretendard.css");

/* ==========================================================
   보험금 청구 가이드 — 공통 스타일
   회사 변경 시 :root 색상 변수만 수정하세요.
   ========================================================== */

/* ---------- 디자인 토큰 ---------- */
:root{
  --ink:#1b2620; --muted:#5c6f64; --faint:#8fa89b;
  --surface:#ffffff; --surface-2:#f2faf6; --line:#e3efe8;
  --warm-bg:#f1faf5; --sun:#bfe6d0;
  --accent:#00854a; --accent-2:#006b3a; --accent-soft:#eaf7f0;
  --accent-shadow:transparent; /* DB손해보험: 플랫 버튼(그림자 없음). 그림자 사용 시 rgba(0,107,58,.28) */
  --note-line:#cdeadd; --note-ink:#1a5236; --note-strong:#123c27;
  --ok:#2f9e57; --warn:#1b7a4c;
  --font-body:"Pretendard",sans-serif;
  --font-head:"Pretendard",sans-serif;
}

/* ---------- 기본 ---------- */
*{box-sizing:border-box}
body{
  margin:0; background:var(--surface); color:var(--ink);
  font-family:var(--font-body); line-height:1.6; -webkit-font-smoothing:antialiased;
  display:flex; justify-content:center;
}
h1,h2,h3{font-family:var(--font-head);margin:0;text-wrap:balance}
a{color:inherit;text-decoration:none}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

.app{width:100%;max-width:480px;min-height:100vh;background:var(--surface);display:flex;flex-direction:column}
main{flex:1;padding:18px 20px 8px}

/* ---------- 헤더 ---------- */
header.bar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:11px;
  padding:14px 18px;background:var(--surface);border-bottom:1px solid var(--line)}
.logo{width:32px;height:32px;border-radius:9px;flex:0 0 auto;display:grid;place-items:center;
  color:#fff;background:linear-gradient(150deg,var(--accent),var(--accent-2))}
.brandtext{display:flex;flex-direction:column;line-height:1.15}
.brandtext b{font-family:var(--font-head);font-weight:800;font-size:15px}
.brandtext small{font-size:10px;color:var(--faint);font-weight:500}

/* 이미지 위에 겹치는 투명 헤더 (대문) */
header.bar--overlay{position:absolute;left:0;right:0;z-index:3;padding:16px 20px;background:none;border-bottom:none}
.bar--overlay .logo{width:34px;height:34px;color:var(--accent);background:rgba(255,255,255,.9);
  box-shadow:0 4px 14px rgba(27,38,32,.18)}
.bar--overlay .brandtext b{font-size:16px;letter-spacing:-.2px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.3)}

/* ---------- 진행 단계 ---------- */
.steps-nav{display:flex;gap:6px;padding:14px 18px 2px}
.steps-nav .st{flex:1;text-align:center;font-size:10.5px;font-weight:700;color:var(--faint)}
.steps-nav .track{height:4px;border-radius:3px;background:var(--line);margin-bottom:6px}
.steps-nav .done,.steps-nav .active{color:var(--accent-2)}
.steps-nav .done .track{background:var(--accent-soft)}
.steps-nav .active .track{background:var(--accent)}

/* ---------- 페이지 제목 ---------- */
.eyebrow{font-family:var(--font-head);font-weight:700;font-size:12px;letter-spacing:1.4px;
  color:var(--accent-2);display:flex;align-items:center;gap:8px;margin-bottom:9px}
.eyebrow::before{content:"";width:22px;height:2px;background:var(--accent);border-radius:2px}
h1.title{font-size:24px;font-weight:800;letter-spacing:-.4px;margin-bottom:6px}
.lead{color:var(--muted);font-size:14px;margin:0 0 20px}

/* ---------- 공통 컴포넌트 ---------- */
/* 아이콘 박스 — 크기는 사용처에서 덮어씀 */
.ic{flex:0 0 auto;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
  background:var(--accent-soft);color:var(--accent-2)}

.tag{font-size:10px;font-weight:700;padding:1px 6px;border-radius:5px}
.tag.opt{color:var(--warn);border:1px solid var(--warn)}
.tag.who{color:var(--accent-2);background:var(--accent-soft)}
.tag-plain{font-size:11px;font-weight:700;color:var(--warn)}

.note{margin:18px 0 0;display:flex;gap:10px;align-items:flex-start;padding:13px 15px;
  background:var(--accent-soft);border:1px solid var(--note-line);border-radius:12px;
  font-size:12.5px;color:var(--note-ink)}
.note b{color:var(--note-strong)}
.note .i{flex:0 0 auto;font-weight:800;color:var(--accent-2)}

.btn-primary{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;border:none;cursor:pointer;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));color:#fff;
  font-family:var(--font-head);font-weight:800;font-size:16px;padding:16px;border-radius:14px;
  box-shadow:0 12px 26px var(--accent-shadow);transition:transform .12s,filter .12s}
.btn-primary:hover{filter:brightness(1.04)}
.btn-primary:active{transform:translateY(1px)}
.btn-primary.btn-lg{gap:10px;font-size:17px;padding:18px;border-radius:16px;box-shadow:0 14px 30px var(--accent-shadow)}
.btn-primary.btn-lg:hover{filter:brightness(1.05)}

.foot{background:var(--surface);padding:12px 20px calc(20px + env(safe-area-inset-bottom))}

/* ==========================================================
   대문 (index.php)
   ========================================================== */
.page-landing{background:var(--warm-bg);line-height:normal}
.page-landing .app{position:relative;overflow:hidden;box-shadow:0 0 40px rgba(27,38,32,.08)}
.page-landing :focus-visible{outline-offset:3px}

.hero-media{position:relative;height:56vh;min-height:340px;max-height:460px;overflow:hidden;
  /* 사진이 없거나 로드 실패 시 보이는 그라데이션 */
  background:
    radial-gradient(80% 60% at 72% 22%,var(--sun),transparent 62%),
    linear-gradient(158deg,#c1e7d2 0%,#2aa06a 52%,#007a43 100%)}
.hero-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 12%;display:block}
.hero-media .scrim{position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(8,30,20,.28) 0%,transparent 26%,transparent 44%,rgba(8,30,20,.62) 100%)}
.hero-copy{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:0 24px 26px;color:#fff}
.hero-copy .eyebrow{gap:9px;margin-bottom:12px;color:#d9f0e4}
.hero-copy .eyebrow::before{width:24px;background:#b3e0c6}
.hero-copy h1{font-size:34px;font-weight:900;line-height:1.26;letter-spacing:-.8px;text-shadow:0 2px 14px rgba(0,0,0,.28)}
.hero-copy .sub{margin:14px 0 0;max-width:20em;font-size:14.5px;line-height:1.65;
  color:rgba(255,255,255,.9);text-shadow:0 1px 8px rgba(0,0,0,.25)}

.landing-foot{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;justify-content:center;
  padding:22px 22px calc(24px + env(safe-area-inset-bottom))}

@media (max-height:680px){
  .hero-media{height:50vh}
  .hero-copy h1{font-size:30px}
}

/* ==========================================================
   STEP 1 · 청구 절차 (sub1.php)
   ========================================================== */
.flow{display:flex;flex-direction:column}
.flow + .note{margin-top:8px}
.step{position:relative;display:flex;gap:14px;padding-bottom:20px}
.step:last-child{padding-bottom:4px}
.step::before{content:"";position:absolute;left:19px;top:42px;bottom:-2px;width:2px;background:var(--line)}
.step:last-child::before{display:none}
.step .num{position:relative;z-index:1;flex:0 0 auto;width:40px;height:40px;border-radius:50%;
  display:grid;place-items:center;background:var(--accent);color:#fff;
  font-family:var(--font-head);font-weight:800;font-size:15px;box-shadow:0 6px 14px var(--accent-shadow)}
.step.opt .num{background:var(--surface);color:var(--accent-2);border:2px solid var(--accent-soft);box-shadow:none}
.step .card{flex:1;display:flex;gap:12px;align-items:flex-start;padding:13px 15px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.step .ic{margin-top:1px}
.step h3{font-size:15px;font-weight:700;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.step p{margin:3px 0 0;font-size:12.5px;color:var(--muted)}

/* ==========================================================
   STEP 2 · 접수 방법 (sub2.php)
   ========================================================== */
.notice{margin-bottom:20px;padding:14px 16px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.notice ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.notice li{position:relative;padding-left:14px;font-size:12.5px;color:var(--muted)}
.notice li::before{content:"";position:absolute;left:0;top:9px;width:4px;height:4px;border-radius:50%;background:var(--accent)}
.notice b{color:var(--ink);font-weight:600}

.ch{margin-bottom:11px;padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.ch-head{display:flex;align-items:center;gap:11px;margin-bottom:11px}
.ch-head h3{font-size:15.5px;font-weight:800}
.ch-row{display:flex;gap:10px;padding:4px 0;font-size:13px}
.ch-row + .ch-row{border-top:1px dashed var(--line)}
.ch-row .k{flex:0 0 62px;color:var(--accent-2);font-weight:700}
.ch-row .v{flex:1;color:var(--muted)}
.ch-row b{color:var(--ink);font-weight:600}

/* ==========================================================
   STEP 3 · 필요 서류 (sub3.php)
   ========================================================== */
.acc{display:flex;flex-direction:column;gap:11px}
.acc details{overflow:hidden;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.acc details[open]{background:var(--surface)}
.acc summary{display:flex;align-items:center;gap:11px;padding:15px;list-style:none;cursor:pointer;
  font-weight:700;font-size:14.5px}
.acc summary::-webkit-details-marker{display:none}
.acc summary .ic{width:36px;height:36px}
.acc .chev{display:flex;margin-left:auto;color:var(--faint);transition:transform .2s}
.acc details[open] summary{border-bottom:1px solid var(--line)}
.acc details[open] .chev{transform:rotate(180deg)}

.doc-list{margin:0;padding:12px 15px 16px;list-style:none;display:flex;flex-direction:column;gap:9px}
.doc-list li{display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:var(--muted)}
.doc-list .chk{flex:0 0 auto;margin-top:2px;color:var(--ok)}
.doc-list b{color:var(--ink);font-weight:600}

/* ==========================================================
   STEP 4 · 유의사항 (sub4.php)
   ========================================================== */
.checklist{display:flex;flex-direction:column;gap:12px}
.check-item{display:flex;gap:13px;padding:14px 15px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.check-item .ic{width:34px;height:34px;border-radius:9px;margin-top:1px}
.check-item p{margin:0;font-size:13.5px;color:var(--muted)}
.check-item b{color:var(--ink);font-weight:700}

.callout{display:flex;gap:11px;align-items:center;margin-top:18px;padding:14px 15px;
  background:var(--accent-soft);border:1px solid var(--note-line);border-radius:12px}
.callout .ic{width:40px;height:40px;background:#fff;border:1px solid #aad9c2}
.callout .tx{font-size:12.5px;color:var(--note-ink)}
.callout .tx b{display:block;font-family:var(--font-head);font-size:15px;font-weight:800;color:var(--note-strong)}

/* ==========================================================
   고객센터 (sub5.php)
   ========================================================== */
.page-contact main{padding:22px 20px 26px}

.callbtn{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:10px;padding:18px;
  border-radius:16px;color:#fff;background:linear-gradient(180deg,var(--accent),var(--accent-2));
  box-shadow:0 12px 26px var(--accent-shadow)}
.callbtn .col{display:flex;flex-direction:column;line-height:1.2}
.callbtn .big{font-family:var(--font-head);font-weight:900;font-size:27px;letter-spacing:.5px}
.callbtn .sub{font-size:12px;font-weight:500;opacity:.9}

.sub-call{display:flex;gap:10px;margin-bottom:18px}
.sub-call a{flex:1;display:flex;align-items:center;gap:10px;padding:12px 13px;
  background:var(--surface-2);border:1px solid var(--line);border-radius:13px}
.sub-call .ic{width:36px;height:36px}
.sub-call .t{line-height:1.25}
.sub-call .t b{display:block;font-size:14px;font-weight:800}
.sub-call .t span{font-size:11px;color:var(--muted)}

.hours{margin-bottom:20px;padding:6px 16px;background:var(--surface-2);border:1px solid var(--line);border-radius:14px}
.hours .row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;font-size:13px;border-bottom:1px dashed var(--line)}
.hours .row:last-child{border-bottom:none}
.hours .row span{color:var(--muted)}
.hours .row b{font-weight:700}

.sec-t{font-size:16px;font-weight:800;margin:0 0 6px}
.sec-note{margin:0 0 14px;font-size:12px;color:var(--muted)}
.sec-note .em{color:var(--accent-2)}

.inquiry-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.inquiry{padding:15px 13px;text-align:center;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.inquiry .ic{width:44px;height:44px;border-radius:12px;margin:0 auto 10px}
.inquiry b{display:block;font-size:13.5px;font-weight:700}
.inquiry .desc{display:block;margin-top:2px;font-size:11px;color:var(--muted)}

.contact-cta{margin-top:22px;padding:17px}

/* 구글 애드센스 */
.ads_wrap {display: flex; justify-content: center; margin: 15px;}
.ads_sm .adsbygoogle {display: inline-block; width: 300px !important; height: 50px !important;}
.ads_mid .adsbygoogle {display: inline-block; width: 336px !important; height: 98px !important;}
.ads_big .adsbygoogle {display: inline-block; width: 336px !important; height: 280px !important;}
