@charset "utf-8";
/* ============================================================
   이지디자인 게시판 글쓰기 폼 — 리디자인 스타일
   · 모든 규칙을 .ezb 아래로 스코프하여 기존 style.css(목록/읽기)와 충돌 없음
   ============================================================ */

.ezb{
  --navy:#17306A; --navy-d:#11244F; --ink:#15243F; --ink-2:#10203D;
  --body:#5A6577; --muted:#8794AB; --line:#E4E9F2; --in-line:#D7DEEA;
  --soft:#F8FAFD; --blue-1:#EDF1F8; --req:#E0524B;
  max-width:1180px; margin:0 auto; padding:8px 16px 64px;
  font-family:'Noto Sans KR','맑은 고딕',sans-serif; color:var(--ink);
  -webkit-font-smoothing:antialiased; box-sizing:border-box;
}
.ezb *,.ezb *::before,.ezb *::after{box-sizing:border-box}
.ezb a{text-decoration:none}

/* ---- 상단 타이틀 ---- */
.ezb-crumb{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:16px}
.ezb-crumb .sep{color:#C2CAD9}
.ezb-crumb .cur{color:var(--navy)}
.ezb-lead{margin-bottom:24px}
.ezb-lead h2{margin:0;font-size:27px;font-weight:900;color:var(--ink);letter-spacing:-.6px}
.ezb-lead p{margin:7px 0 0;font-size:14.5px;color:var(--muted)}

/* ---- form layout ---- */
.ezb-form{display:flex;flex-direction:column;gap:18px;margin:0}

/* ---- 옵션 바 ---- */
.ezb-optbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;
  border:1.5px dashed #C9D3E4;border-radius:14px;padding:14px 20px;background:var(--soft)}
.ezb-optbar-t{font-size:13px;font-weight:700;color:var(--muted)}
.ezb-optbar label{font-size:14px;font-weight:600;color:#3A4A68;cursor:pointer;
  display:inline-flex;align-items:center;gap:7px;margin:0}
.ezb-optbar input[type=checkbox]{width:17px;height:17px;accent-color:var(--navy);cursor:pointer;margin:0}

/* ---- 카드 ---- */
.ezb-card{background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:30px 32px;box-shadow:0 1px 2px rgba(16,32,61,.04)}

/* ---- 섹션 헤더 ---- */
.ezb-head{display:flex;align-items:center;gap:13px;margin-bottom:24px}
.ezb-num{flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;letter-spacing:.5px}
.ezb-num svg{stroke:#fff}
.ezb-title{font-size:19px;font-weight:800;color:var(--ink);letter-spacing:-.3px;line-height:1.2}
.ezb-desc{font-size:13.5px;color:var(--muted);margin-top:2px}

/* ---- 필드 스택 / 그리드 ---- */
.ezb-stack{display:flex;flex-direction:column;gap:18px}
.ezb-grid{display:grid;gap:16px}
.ezb-grid-pair{grid-template-columns:1fr 1fr;gap:18px 24px}
@media (max-width:760px){.ezb-grid-pair{grid-template-columns:1fr}}
.ezb-field{min-width:0}

/* ---- 라벨 ---- */
.ezb-label{display:block;font-size:14px;font-weight:700;color:var(--ink);margin-bottom:9px}
.ezb-label .ezb-hint{font-weight:500;color:#A6B0C2;font-size:13px}
.ezb-req{color:var(--req);margin-left:3px}

/* ---- 입력 공통 ---- */
.ezb-input,.ezb-select,.ezb textarea,.ezb .wr_content textarea{
  width:100%;height:52px;box-sizing:border-box;padding:0 16px;
  border:1.5px solid var(--in-line);border-radius:10px;font-size:15px;color:var(--ink);
  background:#fff;outline:none;font-family:inherit;transition:border-color .15s,box-shadow .15s}
.ezb-input:focus,.ezb-select:focus,.ezb textarea:focus,.ezb .wr_content textarea:focus{
  border-color:var(--navy);box-shadow:0 0 0 4px rgba(23,48,106,.10)}
.ezb textarea,.ezb .wr_content textarea{height:auto;min-height:220px;padding:14px 16px;line-height:1.7;resize:vertical}
.ezb ::placeholder{color:#A6B0C2}

/* ---- 셀렉트(커스텀 화살표) ---- */
.ezb-select{padding-right:40px;cursor:pointer;-webkit-appearance:none;appearance:none;
  background-color:#fff;background-repeat:no-repeat;background-position:right 14px center;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317306A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")}
.ezb-select-sm{flex:0 0 92px;padding-right:30px;background-position:right 11px center}
.ezb-select-md{flex:0 0 150px}

/* ---- 인라인 행(연락처/이메일) ---- */
.ezb-inline{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ezb-inline .ezb-input{flex:1;min-width:120px}
.ezb-input-c{text-align:center;letter-spacing:1px}
.ezb-inline .ezb-input-c{flex:1;min-width:60px}
.ezb-dash{color:#B6C0D2;font-weight:700}
.ezb-at{color:#7C8AA3;font-weight:700}

/* ---- 첨부파일 ---- */
.ezb-file-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:12px 14px;border:1.5px dashed #C9D3E4;border-radius:12px;background:var(--soft)}
.ezb-file-row + .ezb-file-row{margin-top:11px}
.ezb-file-row:hover{border-color:var(--navy)}
.ezb-file-input{flex:1 1 260px;min-width:200px;font-size:14px;color:var(--body)}
.ezb-file-input::file-selector-button{margin-right:12px;padding:11px 16px;border:1.5px solid var(--navy);
  border-radius:9px;background:#fff;color:var(--navy);font-weight:700;font-size:14px;cursor:pointer;font-family:inherit}
.ezb-file-input::file-selector-button:hover{background:#F2F6FC}
.ezb-file-desc{flex:1 1 200px;min-width:160px;height:44px;margin:0}
.ezb-file-del{flex-basis:100%;display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#7d7d7d}
.ezb-file-del input{accent-color:var(--navy)}

/* ---- 개인정보 처리방침 ---- */
.ezb .private{max-height:230px;overflow-y:auto;margin:0;padding:20px 22px;background:#F8FAFC;
  border:1px solid #E6ECF5;border-radius:12px;font-size:13px;line-height:1.85;color:var(--body)}
.ezb-agree{display:flex;align-items:center;gap:12px;margin-top:16px;padding:16px 18px;
  background:#F4F7FC;border:1.5px solid #DCE4F0;border-radius:12px;cursor:pointer}
.ezb-agree:hover{border-color:var(--navy)}
.ezb-agree input{width:20px;height:20px;accent-color:var(--navy);cursor:pointer;flex-shrink:0;margin:0}
.ezb-agree span{font-size:14.5px;font-weight:700;color:var(--ink)}
.ezb-agree em{color:var(--req);font-style:normal}

/* ---- 자동등록방지(캡챠) ---- */
.ezb-cap-label{font-size:14px;font-weight:700;color:var(--ink);margin-bottom:14px}
.ezb-captcha{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.ezb-captcha img{border-radius:10px;vertical-align:middle}
.ezb-captcha input[type=text]{height:52px;padding:0 16px;border:1.5px solid var(--in-line);
  border-radius:10px;font-size:15px;min-width:180px;flex:1;outline:none}
.ezb-captcha input[type=text]:focus{border-color:var(--navy);box-shadow:0 0 0 4px rgba(23,48,106,.10)}

/* ---- 버튼 ---- */
.ezb-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:6px;flex-wrap:wrap}
.ezb-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;height:54px;padding:0 32px;
  border-radius:11px;font-size:16px;font-weight:800;cursor:pointer;border:1.5px solid transparent;
  transition:transform .1s,box-shadow .15s,background .15s}
.ezb-btn-ghost{border-color:#D2DAE6;background:#fff;color:#3A4A68;font-weight:700}
.ezb-btn-ghost:hover{background:#F4F7FC;border-color:#B8C2D4}
.ezb-btn-primary{min-width:190px;background:var(--navy);color:#fff;box-shadow:0 8px 22px rgba(23,48,106,.24)}
.ezb-btn-primary:hover{box-shadow:0 12px 28px rgba(23,48,106,.34);transform:translateY(-1px)}

/* ---- 글자수 ---- */
.ezb #char_count_desc{font-size:13px;color:var(--muted);margin:0 0 8px}
.ezb #char_count_wrap{text-align:right;font-size:12.5px;color:#9AA6BC;margin-top:8px}
.ezb #char_count{font-weight:700;color:var(--navy)}

/* ---- 반응형 ---- */
@media (max-width:640px){
  .ezb{padding:8px 12px 56px}
  .ezb-card{padding:24px 20px}
  .ezb-lead h2{font-size:23px}
  .ezb-actions{flex-direction:column-reverse}
  .ezb-actions .ezb-btn{width:100%}
}
