/* 회사 소개서 요청 모달 (js/brochure.js) — 전 페이지 공통. Figma 프레임이 없는 화면이라
   푸터 문의 폼(S15)의 표현을 그대로 빌렸다: 밑줄 입력칸 + 접히는 라벨, #020202 버튼, 5px 모서리,
   강조색 #2b75ff. body 바로 아래(zoom·스테이지 바깥)에 붙으므로 값은 화면 실제 px이다. */
html.bm-lock { overflow: hidden; }

.bm {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: 'Pretendard Variable', sans-serif;
  color: #020202;
  -webkit-font-smoothing: antialiased;
}
.bm-dim {
  position: absolute; inset: 0;
  background: rgba(2, 2, 2, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .26s ease;
}
.bm-panel {
  position: relative;
  width: 520px; max-width: 100%; max-height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 56px 48px 40px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 2, 2, .35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .26s ease, transform .26s cubic-bezier(.22, 1, .36, 1);
}
.bm.is-in .bm-dim { opacity: 1; }
.bm.is-in .bm-panel { opacity: 1; transform: none; }

.bm-x {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  background: none; color: rgba(2, 2, 2, .4);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.bm-x:hover { color: #020202; background: rgba(2, 2, 2, .05); }

.bm-form, .bm-done { display: flex; flex-direction: column; }
.bm-form[hidden], .bm-done[hidden] { display: none; }

.bm-eyebrow {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 13px; line-height: 16px; letter-spacing: .02em;
  color: #2b75ff;
}
.bm-title {
  margin: 0;
  font-weight: 800; font-size: 32px; line-height: 42px; letter-spacing: -.4px;
  color: #020202;
  outline: none;
}
.bm-desc {
  margin: 12px 0 0;
  font-weight: 400; font-size: 16px; line-height: 24px;
  color: rgba(2, 2, 2, .5);
  word-break: keep-all;
}
.bm-desc b { font-weight: 600; color: #020202; word-break: break-all; }

/* ---- 입력칸: 푸터 문의 폼(.ft-field)과 같은 규칙 ---- */
.bm-fields { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.bm-label {
  display: flex; align-items: center; gap: 6px;
  height: 0; margin-bottom: 0; opacity: 0; overflow: hidden;
  font-weight: 500; font-size: 14px; line-height: 20px;
  color: rgba(2, 2, 2, .5);
  transition: height .22s ease, margin-bottom .22s ease, opacity .22s ease;
}
.bm-field.is-on .bm-label { height: 20px; margin-bottom: 8px; opacity: 1; }
.bm-label em { font-style: normal; font-size: 12px; color: rgba(2, 2, 2, .3); }
.bm-field.is-req .bm-label em { color: #2b75ff; }
.bm-input { position: relative; padding-bottom: 9px; }
.bm-input::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: #020202; opacity: .5;
  transition: height .18s ease, opacity .18s ease;
}
.bm-input:focus-within::after { height: 2px; opacity: 1; }
.bm-input input {
  display: block; width: 100%; height: 22px; padding: 0;
  border: 0; background: none; outline: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
  font-family: inherit;
  font-weight: 500; font-size: 16px; line-height: 22px;
  color: #020202;
}
.bm-input input::placeholder { font-weight: 400; color: rgba(2, 2, 2, .25); opacity: 1; }
/* 필수 칸은 비어 있을 때도 알아볼 수 있게 플레이스홀더 끝에 파란 점 */
.bm-field.is-req:not(.is-on) .bm-input::before {
  content: ''; position: absolute; right: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #2b75ff;
}
.bm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.bm-btn {
  margin-top: 40px;
  height: 52px; padding: 0 40px; border: 0; border-radius: 5px;
  background: #020202; color: #fff;
  font-family: inherit;
  font-weight: 500; font-size: 16px; line-height: 22px;
  cursor: pointer;
  transition: opacity .18s ease, background .18s ease;
}
.bm-btn:disabled { opacity: .1; cursor: default; }
.bm-btn:not(:disabled):hover { background: #2b75ff; }
.bm-btn:focus-visible, .bm-x:focus-visible { outline: 2px solid #2b75ff; outline-offset: 2px; }

.bm-notice {
  margin: 16px 0 0;
  font-weight: 400; font-size: 12px; line-height: 18px;
  color: rgba(2, 2, 2, .4);
  word-break: keep-all;
}

.bm-done-ic { margin-bottom: 28px; }
.bm-actions { display: flex; gap: 12px; margin-top: 40px; }
.bm-actions .bm-btn { flex: 1; margin-top: 0; padding: 0 16px; }
a.bm-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.bm-btn-ghost { background: rgba(2, 2, 2, .05); color: #020202; }
.bm-btn-ghost:not(:disabled):hover { background: rgba(2, 2, 2, .1); }

/* ---- 모바일(≤900px): 화면 아래에서 올라오는 시트 ---- */
@media (max-width: 900px) {
  .bm { align-items: flex-end; padding: 0; }
  .bm-panel {
    width: 100%; max-height: 92%;
    padding: 48px 24px calc(28px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    transform: translateY(40px);
  }
  .bm-x { top: 12px; right: 12px; }
  .bm-title { font-size: 26px; line-height: 34px; }
  .bm-desc { font-size: 15px; line-height: 22px; }
  .bm-fields { gap: 24px; margin-top: 32px; }
  .bm-btn, .bm-actions { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-dim, .bm-panel { transition: none; }
}
