/* ============================================
   자료 요청 관련 스타일
   - 검색 empty state / CTA 배너 / 관련 요청 섹션
   - 자료 요청 레이어 팝업
   ============================================ */

/* ---------- 검색 empty state ---------- */
.dreq-empty{display:flex;flex-direction:column;align-items:center;padding:32px 0 8px;gap:16px;text-align:center;}
.dreq-empty .dreq-empty-illust{width:160px;height:auto;object-fit:contain;}
.dreq-empty .dreq-empty-title{font-family:'Pretendard',sans-serif;font-weight:700;font-size:24px;line-height:1.5;color:#59452E;margin:0;}
.dreq-empty .dreq-empty-desc{font-family:'Pretendard',sans-serif;font-weight:400;font-size:15px;line-height:1.5;color:#8C7861;margin:0;}

/* ---------- 자료 요청 CTA 배너 ---------- */
.dreq-cta{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;padding:28px 36px;gap:24px;background:#F2F7FF;border:1px solid #BCD6FB;border-radius:16px;margin:20px 0;}
.dreq-cta .dreq-cta-illust{width:88px;height:auto;object-fit:contain;flex:none;}
.dreq-cta .dreq-cta-body{flex:1;display:flex;flex-direction:column;gap:6px;}
.dreq-cta .dreq-cta-hd{display:flex;align-items:center;gap:8px;}
.dreq-cta .dreq-cta-title{font-family:'Pretendard',sans-serif;font-weight:700;font-size:20px;line-height:1.5;color:#1E2533;margin:0;}
.dreq-cta .dreq-cta-desc{font-family:'Pretendard',sans-serif;font-weight:400;font-size:14px;line-height:1.5;color:#555;}
.dreq-badge-membership{display:inline-flex;align-items:center;gap:5px;padding:4px 12px 4px 10px;background:#2B2B2B;border-radius:999px;font-family:'Pretendard',sans-serif;font-weight:700;font-size:12px;color:#FFC933;}
.dreq-badge-crown{width:16px;height:13px;object-fit:contain;display:block;transform:translateY(-1px);}
.dreq-cta-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 28px;height:52px;background:#FF5FC8;border:0;border-radius:26px;color:#fff;font-family:'Pretendard',sans-serif;font-weight:700;font-size:16px;cursor:pointer;flex:none;}
.dreq-cta-btn:hover{background:#e94dbb;}
.dreq-cta-btn i{font-size:14px;}

/* ---------- 관련 요청 섹션 ---------- */
.dreq-related{margin-top:32px;font-family:'Pretendard',sans-serif;}
.dreq-related-hd{display:flex;align-items:center;gap:8px;padding:0 0 14px;}
.dreq-related-hd .dreq-related-title{font-weight:700;font-size:18px;line-height:1.5;color:#1E2533;}
.dreq-related-hd .dreq-related-count{font-weight:700;font-size:18px;line-height:1.5;color:#FF5FC8;}
.dreq-related-hd .dreq-related-line{flex:1;height:1px;background:transparent;}
.dreq-sort{display:flex;gap:6px;}
.dreq-sort-btn{box-sizing:border-box;padding:0 14px;height:34px;border:1px solid #D5D9E0;border-radius:17px;background:#fff;color:#555;font-family:inherit;font-weight:400;font-size:13px;cursor:pointer;line-height:1;}
.dreq-sort-btn.on{background:#EAF2FF;border-color:#4A90F7;color:#2F74E8;font-weight:700;}

.dreq-list{box-sizing:border-box;list-style:none;margin:0;padding:0;border:1px solid #E1E6EE;border-radius:12px;}
.dreq-item{display:flex;align-items:center;gap:20px;padding:20px 24px;border-top:1px solid #EEF0F4;}
.dreq-item:first-child{border-top:0;}
.dreq-item-body{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;}
.dreq-badges{display:flex;align-items:center;gap:8px;}
.dreq-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:12px;font-weight:700;font-size:12px;line-height:1.5;}
.dreq-badge-confirm{background:#E3F7EC;color:#1C9B5A;}
.dreq-badge-receive{background:#EEF1F5;color:#5B6475;}
.dreq-badge-mine{background:#EAF2FF;color:#2F74E8;}
.dreq-item-content{font-weight:500;font-size:15px;line-height:1.5;color:#222;word-break:break-word;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;cursor:pointer;}
.dreq-item-content.expanded{-webkit-line-clamp:unset;overflow:visible;text-overflow:clip;}
.dreq-item-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;}
.dreq-tag{display:inline-block;padding:2px 8px;background:#F3F4F6;border-radius:4px;font-weight:400;font-size:12px;line-height:1.5;color:#666;}
.dreq-item-info{font-weight:400;font-size:12px;line-height:1.5;color:#999;margin-left:6px;}

.dreq-del{display:inline-flex;align-items:center;gap:4px;background:#FFF1F0;border:0;padding:3px 10px;border-radius:12px;color:#E25556;font-family:inherit;font-size:12px;font-weight:700;line-height:1.5;cursor:pointer;}
.dreq-del i{font-size:10px;}
.dreq-del:hover{background:#FFE4E3;color:#C84849;}
.dreq-like{display:inline-flex;justify-content:center;align-items:center;gap:6px;padding:0 16px;height:40px;background:#fff;border:1px solid #FF8CC0;border-radius:20px;color:#FF5FC8;font-family:inherit;font-weight:700;font-size:13px;line-height:1;cursor:pointer;flex:none;}
.dreq-like i{font-size:14px;}
.dreq-like.on{background:#FF5FC8;border-color:#FF5FC8;color:#fff;}
.dreq-like-cnt{margin-left:6px;}

.dreq-more-wrap{display:flex;justify-content:center;padding:16px 0 0;}
.dreq-more-btn{display:inline-block;padding:0 24px;height:40px;line-height:38px;background:#fff;border:1px solid #D5D9E0;border-radius:8px;color:#555;font-family:inherit;font-weight:500;font-size:13px;cursor:pointer;white-space:nowrap;}
.dreq-more-btn i{margin-left:6px;}

.dreq-related-empty{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;padding:28px;gap:6px;background:#FAFBFC;border:1px dashed #C9CFD9;border-radius:12px;text-align:center;}
.dreq-related-empty .dreq-related-empty-title{font-weight:700;font-size:15px;line-height:1.5;color:#444;}
.dreq-related-empty .dreq-related-empty-desc{font-weight:400;font-size:13px;line-height:1.5;color:#888;}

/* ---------- 레이어 팝업 ---------- */
.dreq-dim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99999;}
.dreq-pop{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:685px;max-width:calc(100vw - 40px);max-height:90vh;background:#fff;border-radius:20px;box-shadow:0 12px 40px rgba(0,0,0,.2);z-index:100000;padding:0;box-sizing:border-box;font-family:'Pretendard',sans-serif;overflow:hidden;display:none;flex-direction:column;cursor:default;}
.dreq-pop button, .dreq-pop select{cursor:pointer;}
.dreq-pop button:disabled{cursor:not-allowed;}
.dreq-pop.on{display:flex;}

/* header */
.dreq-pop .dreq-hd{display:flex;align-items:center;padding:24px 28px 20px;gap:10px;flex:none;}
.dreq-pop .dreq-hd h3{margin:0;font-size:22px;font-weight:700;color:#1E2533;line-height:1.5;flex:1;}
.dreq-pop .dreq-hd .dreq-x{position:absolute;top:18px;right:20px;background:none;border:0;font-size:22px;line-height:1;cursor:pointer;color:#666;padding:6px;}

/* body (scrollable) */
.dreq-pop .dreq-body{display:flex;flex-direction:column;padding:0 28px 8px;gap:26px;flex:1 1 auto;overflow-y:auto;}

/* intro */
.dreq-pop .dreq-intro{background:#F2F7FF;border-radius:10px;padding:16px 18px;display:flex;flex-direction:column;gap:4px;}
.dreq-pop .dreq-intro strong{color:#2F74E8;font-weight:700;font-size:14px;line-height:1.5;}
.dreq-pop .dreq-intro span{color:#5B6475;font-weight:400;font-size:13px;line-height:1.5;}

/* field group */
.dreq-pop .dreq-fld{display:flex;flex-direction:column;gap:10px;}
.dreq-pop .dreq-lb{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:700;color:#222;line-height:1.5;margin:0;cursor:default;}
.dreq-pop .dreq-lb .req{color:#FF2E7E;font-weight:700;}
.dreq-pop .dreq-lb .hint{font-weight:400;color:#999;font-size:12px;}

/* textarea */
.dreq-pop .dreq-ta{width:100%;box-sizing:border-box;border:1px solid #4A90F7;border-radius:8px;padding:14px 16px 12px;font-size:15px;line-height:1.5;resize:none;height:150px;font-family:inherit;color:#222;outline:none;}
.dreq-pop .dreq-ta.err{border-color:#FF4D4F;}
.dreq-pop .dreq-lb .dreq-lb-err{color:#FF4D4F;font-weight:400;font-size:12px;margin-left:2px;}
.dreq-pop .dreq-err{color:#FF4D4F;font-size:12px;line-height:1.5;}
.dreq-pop .dreq-ta::placeholder{color:#A0A6B1;font-size:14px;}
.dreq-pop .dreq-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.dreq-pop .dreq-guide{color:#2F74E8;font-size:12px;line-height:1.5;}
.dreq-pop .dreq-cnt{color:#999;font-size:12px;line-height:1.5;margin-left:auto;}

/* pills */
.dreq-pop .dreq-pills{display:flex;flex-wrap:wrap;gap:8px;}
.dreq-pop .dreq-pill{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;padding:0 16px;height:36px;background:#fff;border:1px solid #D5D9E0;border-radius:18px;cursor:pointer;font-size:14px;font-weight:400;color:#555;font-family:inherit;line-height:1;}
/* 선택 시 굵기 변화로 인한 너비 변동 방지 (text-shadow로 굵기 시뮬레이션) */
.dreq-pop .dreq-pill.on{background:#EAF2FF;border-color:#4A90F7;color:#2F74E8;font-weight:400;text-shadow:0 0 .5px currentColor;}

/* period */
.dreq-pop .dreq-period{display:flex;gap:8px;align-items:center;}
.dreq-pop .dreq-period select{box-sizing:border-box;width:220px;height:44px;padding:0 14px;border:1px solid #D5D9E0;border-radius:8px;font-size:14px;color:#222;font-family:inherit;background:#fff;}
.dreq-pop .dreq-period .dreq-pill{height:44px;}

/* notice */
.dreq-pop .dreq-note{background:#F7F8FA;border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:1.6;color:#666;}

/* footer buttons */
.dreq-pop .dreq-btns{display:flex;gap:10px;padding:20px 28px 28px;flex:none;}
.dreq-pop .dreq-btns button{flex:1;height:54px;border:0;border-radius:8px;font-size:16px;font-weight:700;cursor:pointer;font-family:inherit;line-height:1.5;}
.dreq-pop .dreq-cancel{background:#fff;color:#555;border:1px solid #D5D9E0 !important;}
.dreq-pop .dreq-submit{background:#FF5FC8;color:#fff;}
.dreq-pop .dreq-submit:hover{background:#e94dbb;}
.dreq-pop .dreq-submit:disabled{background:#E5E7EB;color:#9CA3AF;cursor:not-allowed;}
.dreq-pop .dreq-submit:disabled:hover{background:#E5E7EB;}
