/* 공개 화면(홈) 전용 - 퍼블리셔 시안 onclick/index.html 의 style 요소 10~240행을 그대로 옮기고 안내창 규칙을 더한다. 바꾸면 head.jsp 의 버전 쿼리를 올린다 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

:root {
  color: #222;
  background: white;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app { min-height: 100vh; font-size: 14.5px; letter-spacing: -0.01em; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  height: 70px; background: rgba(255,255,255,.96); box-shadow: 0 1px rgba(0,0,0,.06);
  display: flex; align-items: center; position: relative; z-index: 5;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { background: none; border: 0; padding: 0; }
.logo img { width: 118px; height: 30px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 32px; }
nav button {
  border: 0; background: transparent; display: flex; gap: 6px; align-items: center;
  white-space: nowrap; font-weight: 500; color: #222;
}
nav img { width: 20px; height: 20px; object-fit: contain; }
nav .login, .primary {
  color: #fff; background: #03c75a; border: 1px solid #03c75a;
  border-radius: 8px; padding: 10px 24px; font-weight: 700;
}
.outline, .danger {
  color: #018236; background: #fff; border: 1px solid #92e8bc;
  border-radius: 8px; padding: 10px 24px; font-weight: 700;
}
.danger { color: #ce2c4f; border-color: #ef4267; }
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.chip {
  display: inline-block; color: #03c75a; background: #effbf5; border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 700;
}
.hero h1 { margin: 20px 0; font-size: 48px; line-height: 1.2; letter-spacing: -.05em; font-weight: 700; }
.hero p { color: #888; font-size: 17px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-visual { width: 100%; max-height: 400px; object-fit: contain; }
.features { padding: 72px 0; }
.shaded, .flow, .board-area, .form-area, .ticket-area { background: #f6f6f6; }
.centered { text-align: center; }
.eyebrow { color: #018236; font-size: 12px; font-weight: 700; letter-spacing: .2em; margin: 0 0 10px; }
.features h2, .flow h2, .ticket-area h1 { margin: 0; font-size: 30px; line-height: 1.5; letter-spacing: -.04em; }
.section-copy { margin: 8px 0 28px; color: #999; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; margin-bottom: 24px; }
.feature-grid article {
  min-height: 120px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 20px;
}
.feature-grid img { width: 24px; height: 24px; object-fit: contain; }
.feature-grid h3 { margin: 8px 0 4px; font-size: 18px; }
.feature-grid h3 span { margin-left: 10px; color: #03c75a; font-size: 10px; }
.feature-grid p { margin: 0; color: #777; font-size: 13px; }
.wide { width: 100%; }
.flow { padding: 72px 0; }
.flow img { width: 100%; margin-top: 24px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.contact { padding: 72px 0; }
.contact h2 { margin: 0 0 28px; font-size: 30px; }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-grid article {
  border: 1px solid #e5e5e5; border-radius: 10px; min-height: 178px; padding: 24px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.contact-grid img { width: 40px; height: 40px; margin-bottom: 18px; }
.contact-grid small { color: #aaa; margin-bottom: 8px; }
.contact-grid p { margin: 0; line-height: 1.5; }
footer { background: #222; color: #b0b0b0; padding: 40px 0; }
.footer-top { display: flex; justify-content: space-between; padding-bottom: 48px; gap: 24px; }
.footer-logo { color: #fff; font-size: 22px; }
footer p { margin: 8px 0 0; }
.footer-links { display: flex; gap: 56px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong, .legal strong { color: #fff; }
.footer-links button {
  border: 0; background: none; color: #b0b0b0; padding: 0; text-align: left;
}
/* 푸터 고객지원 칸 알림 보내기 - 위 규칙이 .primary 를 덮으므로 초록 버튼을 되살리고 연락처 카드처럼 글자 폭만 차지한다 */
.footer-links button.primary {
  color: #fff; background: #03c75a; border: 1px solid #03c75a; padding: 10px 24px;
  text-align: center; align-self: flex-start;
}
.legal { border-top: 1px solid #3a3a3a; padding-top: 24px; font-size: 12.5px; }
.legal div { display: flex; gap: 20px; margin-bottom: 12px; }
.service-intro { padding: 84px 0 52px; }
.service-intro small { color: #777; }
.service-intro h1 { font-size: 34px; letter-spacing: -.05em; margin: 24px 0 8px; }
.service-intro > div > p { color: #888; font-size: 17px; margin: 0 0 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.tabs button {
  border: 1px solid #e5e5e5; background: #fff; padding: 10px 22px;
  border-radius: 99px; font-weight: 700;
}
.tabs button.active { color: #fff; background: #03c75a; border-color: #03c75a; }
.board-area { padding: 48px 0 96px; }
.board-controls { display: flex; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.board-controls select, .board-meta select, .search {
  height: 45px; border: 1px solid #e5e5e5; background: #fff; border-radius: 8px;
}
.board-controls select { width: 140px; padding: 0 16px; }
.search { width: 300px; display: flex; align-items: center; padding: 0 14px; }
.search input { border: 0; outline: 0; width: 100%; }
.search img { width: 16px; height: 16px; }
.board-card { padding: 24px 40px 32px; background: #fff; border: 1px solid #e5e5e5; border-radius: 16px; }
.board-meta { height: 48px; display: flex; align-items: center; }
.board-meta strong { color: #018236; }
.board-meta select { margin-left: auto; padding: 0 14px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
th { background: #f5f5f5; border-top: 2px solid #222; height: 56px; font-weight: 700; }
th:nth-child(1) { width: 72px; }
th:nth-child(2) { width: 96px; }
th:nth-child(3) { width: 140px; }
th:nth-child(4) { width: 110px; }
th:nth-child(6) { width: 120px; }
th:nth-child(7) { width: 100px; }
td { height: 56px; text-align: center; border-bottom: 1px solid #e5e5e5; color: #555; cursor: pointer; }
td.subject { text-align: left; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subject img { width: 14px; height: 14px; display: inline; margin-left: 4px; vertical-align: -2px; }
.kind { border: 1px solid #ddd; padding: 3px 10px; border-radius: 99px; font-size: 12px; }
.status { border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.status.신청 { color: #ce2c4f; background: #fdf0f3; }
.status.승인 { color: #018236; background: #e8f9f0; }
.status.반려 { color: #888; background: #f1f1f1; }
.board-bottom { margin-top: 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pagination { grid-column: 2; display: flex; gap: 4px; }
.pagination button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #888; }
.pagination .current { color: #fff; background: #03c75a; }
.apply { grid-column: 3; justify-self: end; }
.board-note { text-align: center; color: #aaa; margin: 24px 0 0; }
.form-area { padding: 48px 0 72px; }
.form-card { background: #fff; border: 1px solid #ddd; border-radius: 16px; padding: 40px 48px; }
.form-title {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #ddd; padding-bottom: 20px; margin-bottom: 20px; gap: 12px;
}
.form-title h2 { font-size: 21px; margin: 0; }
em { color: #018236; font-style: normal; }
.field { display: grid; grid-template-columns: 170px 1fr; min-height: 64px; align-items: start; padding: 8px 0; }
.field > label { font-weight: 700; padding-top: 13px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  height: 48px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 0 16px; background: #fff; color: #333;
}
.field input:not(.full) { width: 360px; max-width: 100%; }
.field input.full { width: 100%; }
.field textarea { width: 100%; height: 280px; padding-top: 16px; resize: vertical; }
.field input:disabled, .field textarea:disabled, .field select:disabled {
  opacity: 1; background: #fff; -webkit-text-fill-color: #333; color: #333;
}
.segments { display: flex; gap: 10px; flex-wrap: wrap; }
.segments button {
  border: 1px solid #e5e5e5; border-radius: 99px; background: #fff; padding: 10px 22px; font-weight: 700;
}
.segments .selected { color: #018236; background: #effbf5; border-color: #b2efd0; }
.inline-inputs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline-inputs input, .inline-inputs select { width: 130px !important; }
.inline-inputs select { width: 110px !important; }
.inline-inputs.email input { width: 170px !important; }
.inline-inputs.email select { width: 150px !important; }
.inline-inputs i { color: #aaa; font-style: normal; }
.date { display: block; padding-top: 13px; }
.consent { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; flex-wrap: wrap; }
.consent input { width: 20px; height: 20px; accent-color: #03c75a; }
.consent button { border: 0; border-bottom: 1px solid #777; background: none; color: #777; padding: 0; }
.form-actions {
  display: flex; justify-content: center; gap: 12px; border-top: 1px solid #ddd;
  padding-top: 32px; margin-top: 8px; flex-wrap: wrap;
}
.answer {
  height: 160px; margin-top: 10px; border: 1px solid #e5e5e5; border-radius: 8px;
  background: #f5f5f5; padding: 18px; color: #555;
}
.ticket-area { padding: 96px 0; }
.ticket-card {
  background: #fff; border: 1px solid #e5e5e5; border-radius: 16px; padding: 64px 40px; text-align: center;
}
.ticket-card p { color: #777; margin: 16px 0 28px; }
.modal-backdrop {
  position: fixed; z-index: 20; inset: 0; background: rgba(0,0,0,.42);
  display: grid; place-items: center; padding: 24px;
}
.modal {
  width: min(560px, 100%); background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 28px 32px 32px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-head h2 { font-size: 21px; margin: 0; }
.modal-head button { background: none; border: 0; color: #888; font-size: 26px; line-height: 1; }
.modal > p { color: #555; }
.modal > input {
  width: 100%; height: 48px; border: 1px solid #03c75a; border-radius: 8px; padding: 0 16px; margin-top: 8px;
}
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.policy {
  background: #f5f5f5; border-radius: 8px; padding: 16px; line-height: 1.6;
  max-height: 330px; overflow: auto;
}
.policy p { margin: 0 0 10px; }
.policy strong { display: block; margin: 8px 0 3px; }
.agree { width: 100%; margin-top: 20px; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .shell { width: min(100% - 32px, 700px); }
  .site-header { height: auto; padding: 14px 0; }
  nav { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
  nav button:not(.login) { font-size: 0; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .feature-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .field { grid-template-columns: 130px 1fr; }
  .board-bottom { grid-template-columns: 1fr; }
  .pagination, .apply { grid-column: 1; justify-self: center; }
}
@media (max-width: 600px) {
  .logo img { width: 92px; height: auto; }
  .hero-actions, .footer-top, .footer-links { flex-direction: column; }
  .hero h1 { font-size: 32px; }
  .hero-actions button { width: 100%; }
  .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-intro { padding: 50px 0 36px; }
  .service-intro h1 { font-size: 28px; }
  .search { width: 55%; }
  .board-card, .form-card { padding: 20px 16px; }
  .field { display: block; padding: 10px 0; }
  .field > label { display: block; padding: 0 0 8px; }
  .field input:not(.full) { width: 100%; }
  .inline-inputs input, .inline-inputs select, .inline-inputs.email input, .inline-inputs.email select {
    min-width: 0; width: 100% !important;
  }
}

/* 준비 중 안내창 - 여백은 안쪽 .modal 이 갖고 dialog 자체는 0 이라 배경 클릭만 e.target === dialog 가 된다 */
.ready-dialog { width: min(560px, calc(100% - 48px)); padding: 0; border: 0; background: transparent; }
.ready-dialog::backdrop { background: rgba(0,0,0,.42); }

/* 상단 메뉴바 스크롤 고정(PPT 홈 주석 ①) - 흐름 안에 남는 sticky 라 본문 여백 보정이 필요 없다. z-index 5 는 시안 규칙 그대로 */
.site-header { position: sticky; top: 0; }

/* 답변 보기 - 시안 .answer 는 높이가 고정이라 긴 답변이 넘친다. 관리자 에디터 HTML 이 공개 화면 전역 table·td·em 규칙을 받지 않게 되돌린다 */
.answer { height: auto; min-height: 160px; overflow-wrap: anywhere; overflow-x: auto; }
.answer table { min-width: 0; table-layout: auto; }
.answer th, .answer td {
  width: auto; height: auto; cursor: auto; text-align: left; color: inherit;
  border: 1px solid #ddd; padding: 6px 10px;
}
.answer em { font-style: italic; color: inherit; }

/* 상담요청 알림 대화상자(시안 "알림 바로 보내기") - 공개 .modal·.field 모양을 쓴다. 표는 전역 table·td 규칙에 걸려 쓰지 않는다. 600px 이하 .field block 규칙은 그대로 받는다 */
.push-dialog { width: min(640px, calc(100% - 48px)); }
.push-dialog .modal { width: 100%; }
.push-dialog .field { grid-template-columns: 120px 1fr; min-height: 56px; }
.push-dialog .field textarea { height: 120px; }
.byte-count { margin: 6px 0 0; text-align: right; color: #999; font-size: 13px; }
.byte-count.over { color: #ce2c4f; }
.push-dialog .field input:not(.full) { width: 200px; }
.field-hint { color: #999; font-size: 13px; white-space: nowrap; }
.fixed-value { display: block; padding-top: 13px; }
/* 개인정보 동의 체크박스 - 위 input 폭 규칙(0,3,1)과 600px 이하 규칙보다 특이도가 높아(0,4,1) 순서와 무관하게 이긴다. 고지문은 줄바꿈한다 */
.push-dialog .field .consent input[type="checkbox"] { width: auto; }
.push-dialog .consent-note { margin: 6px 0 0; color: #999; font-size: 13px; white-space: normal; }
@media (max-width: 600px) {
  .push-dialog .field input:not(.full) { width: 100%; }
}

/* 신청서 개인정보 동의 체크박스 - .field input:not(.full)(0,2,1)의 360px·600px 이하 100% 폭을 받아 체크박스가 넓은 칸 가운데에 그려지던 것을 시안 20px 로 되돌린다(0,3,1). 대화상자는 위 (0,4,1) 규칙이 그대로 이긴다 */
.field .consent input[type="checkbox"] { width: 20px; }
