@charset "utf-8";
/* =========================================================
   인증 신청 : 신청 안내 (apply/guide.html) · 문의 접수 (apply/inquiry.html) — apply.css
   로드 순서: style.css → sub.css → apply.css
   서브비주얼·2차메뉴·라벨/제목·담당자 띠(.tg-contact)는 sub.css 공통
   ========================================================= */
.svi { display: block; flex: none; fill: none; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ap-head { text-align: center; }
.ap-head > p:last-child { margin-top: 20px; font-size: 17px; line-height: 1.85; color: var(--sub); }
.ap-head strong { color: var(--navy); font-weight: 700; }

/* ================= 신청 안내 ================= */
.ag { padding: 120px 0 130px; }
.ag-steps { position: relative; max-width: 1040px; margin: 64px auto 0; display: grid; gap: 16px; }
.ag-steps::before { content: ""; position: absolute; left: 63px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(#C9D6EA, #2454C6); }
.ag-step { position: relative; display: grid; grid-template-columns: 128px 1fr; gap: 28px; align-items: center; padding: 32px 40px 32px 0; border: 1px solid #DCE3EE; border-radius: 22px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.ag-step:hover { transform: translateY(-3px); border-color: #C9D6EA; box-shadow: 0 16px 36px rgba(16, 38, 76, .07); }
.ag-step__mark { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ag-step__no { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #8FA6D6; }
.ag-step__ico { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: #EEF3FC; box-shadow: 0 0 0 6px #fff; }
.ag-step__ico .svi { width: 46px; height: 46px; stroke-width: 2.7; }
.ag-step__title { font-size: 23px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.ag-step__body p { margin-top: 10px; font-size: 16px; line-height: 1.8; color: var(--body); }
.ag-step__body p + p { margin-top: 4px; }
.ag-down { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; background: linear-gradient(100deg, #00316B, #2454C6); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 10px 22px rgba(36, 84, 198, .2); transition: box-shadow .25s; }
.ag-down .ico { width: 18px; height: 18px; }
.ag-down:hover { box-shadow: 0 14px 28px rgba(36, 84, 198, .3); }
.ag-mail { margin-top: 18px; display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 14px; background: #F4F6FA; border: 1px solid #E3E9F3; transition: border-color .2s, background .2s; }
.ag-mail span { font-size: 14px; font-weight: 700; color: var(--sub); }
.ag-mail strong { font-size: 19px; font-weight: 800; color: #2454C6; }
.ag-mail .ico { width: 18px; height: 18px; color: var(--navy); }
.ag-mail:hover { border-color: #2454C6; background: #EEF3FC; }
.ag .tg-contact { max-width: 1040px; margin: 56px auto 0; }

/* ================= 문의 접수 ================= */
.iq { padding: 120px 0 140px; }
.iq-grid { margin-top: 64px; display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }

.iq-aside { position: sticky; top: calc(var(--header-h) + 100px); overflow: hidden; padding: 40px 32px; border-radius: 22px; color: #fff; background: linear-gradient(140deg, #021B3D 0%, #00316B 55%, #1D4FB8 100%); }
.iq-aside::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 340px; height: 340px; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, transparent 0 33px, rgba(255, 255, 255, .09) 33px 34px); -webkit-mask: radial-gradient(circle, #000 25%, transparent 70%); mask: radial-gradient(circle, #000 25%, transparent 70%); }
.iq-aside > * { position: relative; z-index: 1; }
.iq-aside__ico { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.iq-aside__ico .svi { width: 40px; height: 40px; stroke-width: 2.8; }
.iq-aside__title { display: block; margin-top: 22px; font-size: 21px; font-weight: 800; }
.iq-aside__list { margin-top: 18px; display: grid; gap: 12px; }
.iq-aside__list div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); }
.iq-aside__list dt { font-size: 13px; color: #9FB2D0; }
.iq-aside__list dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; word-break: break-all; }
.iq-aside__list a:hover { color: #9CC6FF; }

.iq-form { padding: 48px 48px 52px; border: 1px solid #DCE3EE; border-radius: 22px; background: #fff; box-shadow: 0 16px 36px rgba(16, 38, 76, .05); }
.iq-form__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 2px solid var(--navy); }
.iq-form__title { font-size: 22px; font-weight: 800; color: var(--ink); }
.iq-form__req { font-size: 14px; color: #D2492F; }

/* 맞춤 인증 추천 경유 시 결과 요약 */
.iq-rec { margin-top: 24px; padding: 20px 24px; border: 1px solid #CFDCF6; border-radius: 16px; background: #F5F8FF; }
.iq-rec__label { font-size: 13px; font-weight: 600; color: var(--sub); }
.iq-rec__result { margin-top: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.iq-rec__ans { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.iq-rec__ans li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-2); }
.iq-rec__ans b { display: inline-flex; align-items: center; justify-content: center; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--navy); font-size: 11px; font-weight: 800; color: #fff; }
.iq-fields { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.iq-field--full { grid-column: 1 / -1; }
.iq-field label { display: inline-flex; gap: 3px; font-size: 15px; font-weight: 700; color: var(--ink); }
.iq-field label em { font-style: normal; color: #D2492F; }
.iq-field input, .iq-field textarea { display: block; width: 100%; margin-top: 8px; border: 1px solid #D5DCE6; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.iq-field input { height: 54px; padding: 0 18px; }
.iq-field textarea { min-height: 260px; max-height: 520px; padding: 16px 18px; line-height: 1.7; resize: vertical; overflow-y: auto; }
.iq-field input::placeholder, .iq-field textarea::placeholder { color: #A3AEBF; }
.iq-field input:focus, .iq-field textarea:focus { outline: 0; border-color: #2454C6; box-shadow: 0 0 0 3px rgba(36, 84, 198, .14); }

.iq-agree { margin-top: 36px; }
.iq-agree__title { font-size: 17px; font-weight: 800; color: var(--ink); }
.iq-agree__box { margin-top: 12px; height: 160px; overflow-y: auto; padding: 22px 24px; border: 1px solid #DCE3EE; border-radius: 14px; background: #F8FAFC; font-size: 14px; line-height: 1.75; color: var(--body); }
.iq-agree__box:focus-visible { outline: 2px solid var(--point); outline-offset: 2px; }
.iq-agree__box > * { display: block; }
.iq-agree__h { font-size: 15px; font-weight: 800; color: var(--ink); }
.iq-agree__sub { margin-top: 16px; font-weight: 800; color: var(--navy); }
.iq-agree__box p { margin-top: 4px; }
.iq-agree__li { padding-left: 8px; }
.iq-check { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.iq-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.iq-check__box { position: relative; flex: none; width: 24px; height: 24px; border: 2px solid #C3CDDC; border-radius: 7px; background: #fff; transition: background .2s, border-color .2s; }
.iq-check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); opacity: 0; }
.iq-check input:checked + .iq-check__box { border-color: #2454C6; background: #2454C6; }
.iq-check input:checked + .iq-check__box::after { opacity: 1; }
.iq-check input:focus-visible + .iq-check__box { outline: 2px solid var(--point); outline-offset: 2px; }
.iq-check b { font-weight: 700; color: #2454C6; }

.iq-submit { margin-top: 40px; text-align: center; }
.iq-submit__btn.is-sending { opacity: .6; pointer-events: none; }
.iq-submit__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 280px; height: 60px; padding: 0 36px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #00316B, #2454C6); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 12px 26px rgba(36, 84, 198, .24); transition: opacity .25s, box-shadow .25s; }
.iq-submit__btn .ico { width: 18px; height: 18px; }
.iq-submit__btn:hover { box-shadow: 0 16px 32px rgba(36, 84, 198, .34); }
/* 모든 항목 입력 + 동의 전에는 비활성처럼 표시 (화면 확인용) */
.iq-form:invalid .iq-submit__btn { opacity: .38; box-shadow: none; }

/* 접수 완료 얼럿 */
.iq-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 16, 38, .55); }
.iq-modal:target, .iq-modal.is-open { display: flex; }
.iq-modal__box { width: 100%; max-width: 420px; padding: 44px 36px 32px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); animation: iqPop .3s var(--ease); }
.iq-modal__ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #EEF3FC; }
.iq-modal__ico .ico { width: 32px; height: 32px; stroke: url(#gStroke); stroke-width: 1.6; }
.iq-modal__label { margin-top: 18px; font-size: 14px; font-weight: 800; color: #2454C6; }
.iq-modal__msg { margin-top: 8px; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.iq-modal__btn { margin-top: 28px; display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 800; }
@keyframes iqPop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .ag, .iq { padding: 88px 0 96px; }
  .iq-grid { grid-template-columns: 1fr; gap: 20px; }
  .iq-aside { position: static; display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; align-items: center; padding: 28px; }
  .iq-aside__ico { grid-row: span 2; }
  .iq-aside__title { margin-top: 0; }
  .iq-aside__list { margin-top: 10px; grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px 32px; }
  .iq-aside__list div { padding-top: 0; border-top: 0; }
}

@media (max-width: 768px) {
  .ag, .iq { padding: 64px 0 72px; }
  .ap-head { text-align: left; }
  .ap-head > p:last-child { font-size: 15px; }
  .ag-steps { margin-top: 36px; gap: 12px; }
  .ag-steps::before { left: 41px; }
  .ag-step { grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 24px 20px 24px 0; border-radius: 18px; }
  .ag-step__ico { width: 56px; height: 56px; }
  .ag-step__ico .svi { width: 32px; height: 32px; stroke-width: 3; }
  .ag-step__no { font-size: 10px; }
  .ag-step__title { font-size: 19px; }
  .ag-step__body p { font-size: 14px; }
  .ag-down { height: 44px; padding: 0 18px; font-size: 14px; }
  .ag-mail { flex-wrap: wrap; gap: 4px 10px; padding: 12px 16px; }
  .ag-mail span { width: 100%; font-size: 12px; }
  .ag-mail strong { font-size: 16px; }
  .ag .tg-contact { margin-top: 32px; }

  .iq-grid { margin-top: 36px; }
  .iq-aside { grid-template-columns: 52px 1fr; column-gap: 14px; padding: 22px 20px; border-radius: 18px; }
  .iq-aside__ico { width: 52px; height: 52px; }
  .iq-aside__ico .svi { width: 30px; height: 30px; }
  .iq-aside__title { font-size: 17px; }
  .iq-aside__list { grid-template-columns: 1fr; }
  .iq-aside__list dt { display: none; }
  .iq-aside__list dd { font-size: 15px; }
  .iq-form { padding: 28px 20px 32px; border-radius: 18px; }
  .iq-form__title { font-size: 19px; }
  .iq-form__req { font-size: 13px; }
  .iq-fields { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  .iq-field label { font-size: 14px; }
  .iq-field input { height: 50px; font-size: 15px; }
  .iq-field textarea { min-height: 220px; font-size: 15px; }
  .iq-agree__box { height: 200px; padding: 16px 18px; font-size: 13px; }
  .iq-check { font-size: 14px; align-items: flex-start; }
  .iq-submit__btn { width: 100%; min-width: 0; height: 56px; font-size: 16px; }
  .iq-modal__box { padding: 36px 24px 24px; }
  .iq-modal__msg { font-size: 16px; }
}
