/* ===== 문의·신청 페이지 (style.css의 색·글꼴·버튼을 그대로 사용) ===== */
.apply-page [hidden] { display: none !important; }
.ap-lead { margin-top: 18px; max-width: 540px; color: var(--muted); font-size: 1.02rem; }
.ap-body { padding: 8px 0 112px; }

.ap-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.ap-tabs button { min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .95rem; transition: color .2s, border-color .2s, background .2s; }
.ap-tabs button:hover { color: var(--ink); border-color: var(--ink); }
.ap-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

.ap-form h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); }
.ap-intro { margin-top: 14px; color: var(--muted); }
.ap-intro strong { color: var(--ink); font-weight: 700; }
.ap-diag { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--accent); background: #f1f5ff; color: var(--ink); font-size: .94rem; line-height: 1.7; }

.ap-field { margin-top: 32px; }
.ap-field label, .ap-label { display: block; margin-bottom: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.ap-field label b, .ap-label b { margin-left: 6px; font-family: var(--sans); font-weight: 500; font-size: .74rem; color: var(--accent); letter-spacing: .04em; }
.ap-field label em { margin-left: 6px; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: .78rem; color: var(--muted); }
.ap-field select, .ap-field input, .ap-field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 1px solid #c5ccd9; border-radius: 8px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.6; transition: border-color .2s, box-shadow .2s;
}
.ap-field textarea { resize: vertical; min-height: 118px; }
.ap-field select:focus, .ap-field input:focus, .ap-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40, 91, 217, .14); }
.ap-field ::placeholder { color: #9aa3b5; }
.ap-custom .ap-label { margin-top: 20px; }
.ap-help { margin-top: 8px; font-size: .86rem; color: var(--muted); }

.ap-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pills button { min-height: 48px; padding: 0 20px; border: 1px solid #c5ccd9; border-radius: 999px; background: #fff; color: var(--text); font-size: .96rem; transition: border-color .2s, background .2s, color .2s; }
.ap-pills button:hover { border-color: var(--ink); }
.ap-pills button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

.ap-preview { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ink); }
.ap-preview pre { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); font-size: .96rem; line-height: 1.85; color: var(--ink); }
.ap-error { margin-top: 18px; color: #c0392b; font-size: .92rem; }
.ap-submit { margin-top: 24px; min-width: 280px; }
.ap-after { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.ap-note { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: #8b919c; }
.ap-direct { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.ap-direct a { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.ap-direct a:hover { color: var(--accent); border-color: var(--accent); }
.ap-field.invalid select, .ap-field.invalid .ap-pills { outline: 2px solid #e8a39b; outline-offset: 4px; border-radius: 8px; }

@media (max-width: 720px) {
  .ap-body { padding-bottom: 72px; }
  .ap-tabs button { flex: 1 1 auto; }
  .ap-submit { width: 100%; min-width: 0; }
  .ap-pills button { flex: 1 1 auto; }
}

.ap-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: .9rem; line-height: 1.7; color: var(--text); cursor: pointer; }
.ap-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); cursor: pointer; }
.ap-consent em { margin-left: 4px; font-style: normal; font-size: .74rem; font-weight: 500; color: var(--accent); }
.ap-consent b { color: var(--ink); font-weight: 700; }

.ap-price { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.ap-price strong { margin-left: 4px; font-family: var(--serif); font-size: 1.4rem; font-weight: 800; color: #1639b8; }

.ap-field.invalid input[type="text"] { border-color: #e8a39b; box-shadow: 0 0 0 3px rgba(232, 163, 155, .25); }
