/* DF 계약서 v1.0.2 */
.dfc-wrap{--dfc-ink:#1d2127;--dfc-sub:#6b7280;--dfc-line:#e5e7eb;--dfc-bg:#f6f7f9;--dfc-accent:#e60012;--dfc-dark:#1f2329;
	max-width:880px;margin:0 auto;padding:10px 0 60px;color:var(--dfc-ink);font-size:16px;line-height:1.75;word-break:keep-all}
.dfc-wrap *{box-sizing:border-box}
.dfc-card{background:#fff;border:1px solid var(--dfc-line);border-radius:16px;padding:32px;margin:0 0 20px;box-shadow:0 6px 24px rgba(0,0,0,.05)}
.dfc-card h3{margin:0 0 8px;font-size:21px;font-weight:700;color:var(--dfc-ink)}
.dfc-card p{margin:0 0 6px;color:var(--dfc-sub)}
.dfc-muted{color:var(--dfc-sub)}
.dfc-empty{text-align:center;padding:48px 24px}

/* 버튼 · 배지 */
.dfc-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}
.dfc-btn{display:inline-flex;align-items:center;justify-content:center;height:46px;padding:0 22px;border-radius:10px;border:1px solid #cfd4db;background:#fff;color:var(--dfc-ink)!important;font-size:15px;font-weight:600;text-decoration:none!important;cursor:pointer;transition:.15s;line-height:1}
.dfc-btn:hover{border-color:var(--dfc-dark)}
.dfc-btn-primary{background:var(--dfc-dark);border-color:var(--dfc-dark);color:#fff!important}
.dfc-btn-primary:hover{background:#000}
.dfc-btn[disabled]{opacity:.45;cursor:not-allowed}
.dfc-badge{display:inline-block;padding:4px 12px;border-radius:30px;font-size:13px;font-weight:600;background:#eef0f3;color:#555;white-space:nowrap}
.dfc-badge-signed{background:#e3f5ea;color:#1a7f45}
.dfc-badge-ready{background:#fff4e0;color:#b26a00}

/* 알림 */
.dfc-notice{padding:14px 18px;border-radius:10px;background:#f1f3f6;margin:0 0 16px;font-size:15px}
.dfc-notice-ok{background:#e3f5ea;color:#145c33}
.dfc-notice-err{background:#fdecec;color:#a11}

/* 로그인 안내 */
.dfc-login{text-align:center;padding:44px 28px}
.dfc-lock{width:60px;height:60px;border-radius:50%;background:var(--dfc-dark);color:#fff;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}

/* 상단 도구 */
.dfc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;flex-wrap:wrap}
.dfc-toolbar-r{display:flex;align-items:center;gap:10px}
.dfc-toolbar .dfc-btn{height:40px;font-size:14px;padding:0 16px}
.dfc-back{color:var(--dfc-sub)!important;text-decoration:none!important;font-size:15px}

/* 계약서 문서 */
.dfc-doc{background:#fff;border:1px solid var(--dfc-line);border-radius:4px;padding:56px 60px;margin:0 0 24px;box-shadow:0 10px 40px rgba(0,0,0,.06);font-size:15px}
.dfc-head{text-align:center;border-bottom:2px solid var(--dfc-ink);padding-bottom:22px;margin-bottom:26px}
.dfc-brand{font-size:13px;letter-spacing:.2em;color:var(--dfc-accent);font-weight:700}
.dfc-title{font-size:30px!important;font-weight:800!important;margin:6px 0 6px!important;letter-spacing:-.02em;color:var(--dfc-ink)!important;line-height:1.3!important}
.dfc-no{font-size:13px;color:var(--dfc-sub)}
.dfc-lead{margin:0 0 18px}
.dfc-table{width:100%;border-collapse:collapse;margin:0 0 28px;font-size:14.5px}
.dfc-table th,.dfc-table td{border:1px solid var(--dfc-line);padding:10px 14px;text-align:left;vertical-align:middle}
.dfc-table th{background:var(--dfc-bg);font-weight:600;width:28%;color:#374151}
.dfc-sign thead th{text-align:center;width:auto}
.dfc-sign td{text-align:center;width:36%}
.dfc-sign-row td{height:110px}
.dfc-seal{width:78px;height:78px;object-fit:contain;display:inline-block}
.dfc-sign-img{max-width:200px;max-height:90px;display:inline-block}
.dfc-clauses h3{font-size:16.5px!important;font-weight:700!important;margin:26px 0 8px!important;color:var(--dfc-ink)!important}
.dfc-clauses p{margin:0 0 8px}
.dfc-clauses ol,.dfc-clauses ul{margin:0 0 8px;padding-left:22px}
.dfc-clauses li{margin:2px 0}
.dfc-clauses ul{list-style:disc}
.dfc-special{margin-top:30px;padding:6px 24px 16px;background:var(--dfc-bg);border-radius:8px}
.dfc-agree-line{text-align:center;margin:36px 0 14px;font-weight:600}

/* 서명 폼 */
.dfc-signform{border:2px solid var(--dfc-dark)}
.dfc-field{display:block;margin:18px 0}
.dfc-field>span{display:block;font-weight:600;margin-bottom:6px}
.dfc-field em{font-style:normal;font-weight:400;color:var(--dfc-sub);font-size:14px;margin-left:6px}
.dfc-field input[type=text]{width:100%;max-width:320px;height:46px;border:1px solid #cfd4db;border-radius:10px;padding:0 14px;font-size:16px}
.dfc-pad{position:relative;border:1px dashed #9aa3af;border-radius:12px;background:#fafbfc;height:200px;touch-action:none}
.dfc-pad canvas{width:100%;height:100%;display:block;border-radius:12px;cursor:crosshair}
.dfc-pad-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#c0c6cf;font-size:22px;pointer-events:none}
.dfc-pad.has-ink .dfc-pad-hint{display:none}
.dfc-clear{position:absolute;right:10px;top:10px;border:1px solid #cfd4db;background:#fff;border-radius:8px;padding:4px 12px;font-size:13px;cursor:pointer}
.dfc-check{display:flex;gap:10px;align-items:flex-start;margin:10px 0;font-size:15px;cursor:pointer}
.dfc-check input{margin-top:6px;width:18px;height:18px;flex:none}
.dfc-submit{width:100%;height:56px;font-size:17px;margin-top:16px}

/* 목록 */
.dfc-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.dfc-list-head h2{margin:0!important;font-size:26px!important}
.dfc-list{display:grid;gap:12px}
.dfc-item{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--dfc-line);border-radius:14px;padding:20px 24px;text-decoration:none!important;color:var(--dfc-ink)!important;transition:.15s}
.dfc-item:hover{border-color:var(--dfc-dark);transform:translateY(-1px)}
.dfc-item-no{font-size:13px;color:var(--dfc-sub)}
.dfc-item-title{font-size:18px;font-weight:700;margin:2px 0}
.dfc-item-meta{font-size:14px;color:var(--dfc-sub)}

/* 비회원 샘플 */
.dfc-teaser{position:relative;margin:0 0 20px;border-radius:16px;overflow:hidden;background:var(--dfc-bg);border:1px solid var(--dfc-line)}
.dfc-teaser-doc{background:#fff;margin:26px 26px 0;padding:36px 40px 20px;height:300px;overflow:hidden;filter:blur(3px);opacity:.75;box-shadow:0 10px 40px rgba(0,0,0,.08)}
.dfc-teaser-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:18px 26px 22px;background:var(--dfc-dark);color:#fff;font-size:14px}
.dfc-teaser-steps div{display:flex;align-items:center;gap:8px}
.dfc-teaser-steps b{width:24px;height:24px;border-radius:50%;background:var(--dfc-accent);display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex:none}

@media (max-width:767px){
	.dfc-card{padding:24px 18px}
	.dfc-doc{padding:28px 18px;font-size:14.5px}
	.dfc-title{font-size:24px!important}
	.dfc-table th{width:34%}
	.dfc-table th,.dfc-table td{padding:8px 10px}
	.dfc-special{padding:4px 14px 12px}
	.dfc-teaser-doc{margin:16px 16px 0;padding:24px 20px;height:240px}
	.dfc-teaser-steps{grid-template-columns:repeat(2,1fr)}
	.dfc-item{padding:16px 18px}
}

/* 인쇄 · PDF 저장: 계약서만 */
@media print{
	@page{size:A4;margin:14mm}
	body *{visibility:hidden!important}
	.dfc-doc,.dfc-doc *{visibility:visible!important}
	.dfc-doc{position:absolute;left:0;top:0;width:100%;border:0;box-shadow:none;padding:0;margin:0}
	.dfc-table th{background:#f3f4f6!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
	.dfc-special{background:#f6f7f9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
	.dfc-clauses h3{break-after:avoid}
	.dfc-sign,.dfc-agree-line{break-inside:avoid}
}

/* 상단 배너 (전체 폭) */
.dfc-has-hero{padding-top:0}
.dfc-hero{position:relative;width:100vw;margin-left:calc(50% - 50vw);background:#0e2a47;background:radial-gradient(800px 380px at 88% 0%,rgba(46,140,230,.42),transparent 60%),radial-gradient(600px 320px at 5% 100%,rgba(46,140,230,.22),transparent 60%),linear-gradient(160deg,#0b2139 0%,#0e2a47 55%,#123a63 100%);color:#fff;text-align:center;padding:56px 20px 64px;margin-bottom:40px}
.dfc-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:48px 48px;-webkit-mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%);mask-image:radial-gradient(ellipse at center,#000 30%,transparent 75%);pointer-events:none}
.dfc-hero-in{position:relative;max-width:880px;margin:0 auto}
.dfc-eyebrow{display:inline-block;font-size:13px;letter-spacing:.2em;color:#9fd0ff;font-weight:600;margin-bottom:12px}
.dfc-hero-title{font-size:40px!important;font-weight:700;line-height:1.25!important;letter-spacing:-.02em;margin:0 0 12px!important;color:#fff!important}
.dfc-hero-sub{font-size:16px;color:rgba(255,255,255,.72)!important;margin:0!important;line-height:1.7}
.dfc-list-head:has(>span:only-child){display:none}
@media (max-width:767px){
	.dfc-hero{padding:36px 16px 44px;margin-bottom:24px}
	.dfc-eyebrow{font-size:11.5px;margin-bottom:8px}
	.dfc-hero-title{font-size:28px!important;margin-bottom:8px!important}
	.dfc-hero-sub{font-size:14px}
	.dfc-body{padding:0 16px}
}
@media print{.dfc-hero{display:none!important}}

/* 비회원 휴대폰 뒷자리 확인 (v1.0.5) */
.dfc-verify .dfc-notice{max-width:420px;margin:14px auto 0}
.dfc-verify-form{display:flex;gap:10px;justify-content:center;align-items:stretch;max-width:420px;margin:22px auto 8px}
.dfc-verify-form .dfc-last4{width:150px;height:56px;border:1px solid #cfd4db;border-radius:10px;text-align:center;font-size:26px;font-weight:700;letter-spacing:.35em;padding:0 0 0 .35em;color:var(--dfc-ink);background:#fff;box-sizing:border-box}
.dfc-verify-form .dfc-last4:focus{outline:none;border-color:var(--dfc-dark);box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.dfc-verify-form .dfc-btn{height:56px;font-size:17px;padding:0 26px}
.dfc-verify-alt{margin-top:14px!important;font-size:14px}
.dfc-verify-alt a{color:var(--dfc-ink);text-decoration:underline}
@media (max-width:480px){.dfc-verify-form{flex-direction:column;align-items:center}.dfc-verify-form .dfc-last4,.dfc-verify-form .dfc-btn{width:100%;max-width:260px}}

/* v1.0.6 동의 체크 · 모바일 정리 */
.dfc-agree-line{display:block}
.dfc-agree-line:not(.dfc-agree-live)::before{content:"✓";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:8px;border-radius:4px;background:var(--dfc-dark);color:#fff;font-size:13px;line-height:1;vertical-align:-3px}
.dfc-agree-live{cursor:pointer;padding:14px 16px;border:2px solid var(--dfc-dark);border-radius:10px;background:#fff;max-width:420px;margin-left:auto!important;margin-right:auto!important}
.dfc-agree-live input{width:22px;height:22px;margin:0 8px 0 0;vertical-align:-5px;accent-color:var(--dfc-dark)}
.dfc-agree-live:has(input:checked){background:#f1f5f9}
.dfc-agree-note{font-size:14px;margin:0 0 10px!important}
.dfc-sign{table-layout:fixed}
.dfc-sign td{word-break:break-all}
.dfc-sign-img{max-width:100%;height:auto}
@media (max-width:767px){
	.dfc-body{padding:0}
	.dfc-doc{padding:22px 14px;font-size:13.5px;line-height:1.65;border-radius:0;box-shadow:none}
	.dfc-doc .dfc-title{font-size:21px!important}
	.dfc-head{padding-bottom:16px;margin-bottom:18px}
	.dfc-clauses h3{font-size:14.5px!important;margin:20px 0 6px!important}
	.dfc-clauses p,.dfc-clauses li{font-size:13.5px}
	.dfc-special{padding:4px 12px 10px}
	.dfc-table{font-size:12.5px;margin-bottom:20px}
	.dfc-table th,.dfc-table td{padding:7px 8px}
	.dfc-sign thead th:first-child,.dfc-sign tbody th{width:24%}
	.dfc-sign td{width:38%}
	.dfc-sign-row td{height:80px}
	.dfc-seal{width:56px;height:56px}
	.dfc-agree-line{margin:26px 0 12px;font-size:14px}
	.dfc-card{padding:22px 16px}
}
@media (max-width:767px){
	.dfc-doc{margin-left:-14px;margin-right:-14px}
	.dfc-sign th{word-break:break-all;font-size:12px}
}

/* v1.0.8 계약서 링크 다시 받기 */
.dfc-resend{margin-top:20px}
.dfc-resend .dfc-notice{margin:12px 0 0}
.dfc-resend-form{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.dfc-resend-form input[type=tel]{flex:1 1 220px;height:50px;border:1px solid #cfd4db;border-radius:10px;padding:0 16px;font-size:17px;color:var(--dfc-ink);background:#fff;box-sizing:border-box}
.dfc-resend-form input[type=tel]:focus{outline:none;border-color:var(--dfc-dark)}
.dfc-resend-form .dfc-btn{height:50px}
.dfc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
@media (max-width:480px){.dfc-resend-form .dfc-btn{width:100%}}

/* 1.0.9 — 확인·서명 화면에서는 모바일 하단 고정바를 숨김 (서명 버튼 가림 방지) */
.dfc-help{margin:14px 0 0;text-align:center;font-size:13.5px;color:#666}
.dfc-help a{color:inherit;font-weight:700;text-decoration:none;white-space:nowrap}
@media (max-width:1024px){
body.df-focus .dfd-qm-mobar,body:has(.dfc-signform) .dfd-qm-mobar,body:has(.dfc-verify) .dfd-qm-mobar,body.df-focus .dfcb-root,body:has(.dfc-signform) .dfcb-root{display:none!important}
body.df-focus,body:has(.dfc-signform),body:has(.dfc-verify){padding-bottom:0!important}
.dfc-signform{margin-bottom:calc(24px + env(safe-area-inset-bottom))}
}
