/* apply.css — 참가기업/잡페어 신청폼 전용 스타일. 홈페이지의 헤더/드로어
   nav·푸터를 쓰지 않는 독립 페이지라(로고만 있는 최소 헤더/푸터), 2025
   디자인 시스템 CSS 대부분(layout.css/interior.css 등)을 안 불러오고
   reset.css/typeface.css 위에 최소한만 직접 얹었습니다. */

.consent-panel, .consent-policy, .consent-dialog {
  color: #202124; font-size: 15px; line-height: 1.75;
}
.consent-panel { margin: 40px 0 24px; padding: 24px; border: 1px solid #cdd3da; border-radius: 12px; background: #f8fafc; }
.consent-panel h2, .consent-dialog h2 { font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.consent-panel p, .consent-dialog p { margin: 10px 0; }
.consent-panel a, .consent-policy a, .apply-footer a { text-decoration: underline; }
.consent-panel strong { font-weight: 700; }
.consent-item { padding: 18px 0; border-top: 1px solid #d4dae2; }
.consent-item summary { cursor: pointer; font-weight: 700; }
.consent-copy { white-space: pre-wrap; overflow-wrap: anywhere; margin: 16px 0; line-height: 1.85; }
.consent-item label { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0 6px; cursor: pointer; }
.consent-item input[type=checkbox] { display: inline-block; position: static; opacity: 1; appearance: auto; width: 20px; height: 20px; flex: 0 0 20px; margin-top: 3px; }
.consent-item small { display: block; color: #525c69; }
.consent-panel button, .consent-dialog button { padding: 10px 16px; border: 1px solid #8b95a2; border-radius: 6px; background: white; cursor: pointer; }
.consent-panel [role=status] { font-weight: 600; }
.apply-submit:disabled { opacity: .45; cursor: not-allowed; }
.consent-dialog { border: 0; border-radius: 14px; padding: 28px; width: min(560px, calc(100vw - 32px)); max-height: 85vh; overflow-y: auto; margin: auto; background: white; }
.consent-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.consent-dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.consent-dialog-actions button:first-child { background: #182b45; color: white; }
.consent-policy { max-width: 860px; padding: 40px 24px; margin: auto; }
.consent-policy h1 { font-size: 28px; font-weight: 700; }
.consent-policy h2 { margin-top: 40px; font-size: 24px; font-weight: 700; }
.consent-policy h3 { margin-top: 28px; font-size: 19px; font-weight: 700; }
@media(max-width: 480px) { .consent-panel { padding: 16px; } .consent-dialog { padding: 20px; } }

.apply-header {
  padding: 32px 24px 0;
  text-align: center;
}

.apply-header img {
  height: 28px;
}

.apply-footer {
  padding: 40px 24px 60px;
  text-align: center;
  color: #999;
  font-size: 12px;
}

.apply-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.apply-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.apply-sub {
  color: #666;
  font-size: 14px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.apply-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

.apply-field {
  margin-bottom: 22px;
}

.apply-field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.apply-field .hint {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.apply-field input[type="text"],
.apply-field input[type="email"],
.apply-field input[type="url"],
.apply-field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

/* reset.css(2025 디자인 시스템)가 input[type=file]{display:none} 을 전역
   적용해서(커스텀 라벨 버튼과 짝지어 쓰는 걸 전제로 한 리셋) 이 폼에
   추가한 파일 인풋들이 전부 안 보이는 문제가 있었다. 커스텀 버튼을 새로
   만드는 대신 네이티브 파일 인풋을 다시 보이게 override — 브라우저 기본
   "파일 선택" 버튼 + 선택한 파일명 표시를 그대로 활용한다. */
.apply-field input[type="file"] {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}

.apply-field textarea {
  min-height: 96px;
  resize: vertical;
}

.apply-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.apply-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fafafa;
}

.apply-item h3 {
  font-size: 15px;
  margin-bottom: 16px;
}

.apply-existing-images {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.apply-existing-images img,
.apply-existing-images video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #000;
}

.apply-submit {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.apply-submit:hover {
  background: #333;
}

.apply-success {
  background: #eefbf2;
  border: 1px solid #b9e6c9;
  color: #1a7a3f;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  font-size: 14px;
}

.apply-error {
  background: #fdeeee;
  border: 1px solid #f3b8b8;
  color: #b42323;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .apply-row {
    grid-template-columns: 1fr;
  }
}

/* --- 회사유형 다중 선택 체크박스 --- */

.apply-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.apply-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}

/* reset.css가 input[type=checkbox]{display:none} 을 전역 적용해서
   체크박스 자체가 안 보였다(클릭은 라벨 통해 되지만 선택 여부를 확인할
   방법이 없었음). 네이티브 체크박스를 다시 보이게 하고, 추가로 라벨
   전체에도 선택 상태를 표시해 눈에 잘 띄게 한다. */
.apply-checkbox input[type="checkbox"] {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
}

.apply-checkbox:has(input[type="checkbox"]:checked),
.apply-checkbox.is-checked {
  border-color: #111;
  background: #111;
  color: #fff;
}

#category_other {
  margin-top: 10px;
}

/* --- 기업관 모달 미리보기 --- */
/* companyPreviewModal (apply.templ)이 CompanyDetail과 같은 modal-panel/
   modal-dim 마크업을 쓰므로 실제 스타일은 exhibit.css/interior.css에서
   옵니다. 여기서는 열림/닫힘 토글용 최소 규칙만. */

.apply-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.apply-title-row h1 {
  margin-bottom: 0;
}

.apply-preview-btn {
  background: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.apply-preview-btn:hover {
  background: #111;
  color: #fff;
}

.preview-modal-root {
  display: none;
}

.preview-modal-root.is-open {
  display: block;
}

.apply-preview-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* --- SNS 홍보 (해시태그 칩 + 인스타그램 미리보기 카드) --- */

.apply-hashtag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.apply-hashtag-chip {
  display: inline-block;
  background: #f0f4ff;
  color: #3457d5;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* igPreviewModal(apply.templ) — 인스타그램 게시물처럼 보이는 목업 카드.
   companyPreviewModal(기업관 실제 모달 미리보기)과 달리 exhibit.css/
   interior.css에 기대지 않는 완전히 독립된 스타일입니다 — 잡페어 폼은 그
   CSS들을 아예 안 불러오기 때문. .modal-dim 대신 .ig-dim을 씁니다. */
.ig-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9991;
}

.ig-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  z-index: 9992;
}

.ig-card-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.ig-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #efefef;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}

.ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-username {
  font-size: 13px;
  font-weight: 700;
}

.ig-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
}

.ig-card-media .swiper,
.ig-card-media .swiper-wrapper,
.ig-card-media .swiper-slide {
  width: 100%;
  height: 100%;
}

.ig-card-media img,
.ig-card-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.ig-card-actions {
  display: flex;
  gap: 14px;
  padding: 10px 14px 4px;
  font-size: 20px;
}

.ig-card-caption {
  padding: 4px 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.ig-card-caption b {
  margin-right: 6px;
}

@media (max-width: 480px) {
  .ig-card {
    width: 92vw;
  }
}

/* --- PIN 확인 (apply.templ의 ApplyPinForm) --- */

.apply-pin-wrap {
  max-width: 360px;
  text-align: center;
}

.apply-pin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.apply-pin-input {
  width: 100%;
  text-align: center;
  font-size: 28px;
  letter-spacing: 0.4em;
  font-weight: 700;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 12px 16px 20px;
}
