/* 우리한국학교 온라인 등록 신청 (/enroll) 전용 스타일
   홈페이지 공통 스타일(woori.css)과 겹치지 않도록 모든 규칙을 .wke / .wke-admin 아래에 둔다. */

.wke { padding: 32px 16px 64px; background: #f5f7fb; }
.wke-wrap { max-width: 880px; margin: 0 auto; }
.wke-title { font-size: 26px; font-weight: 700; color: #1e293b; margin: 0 0 6px; }
.wke-lead { color: #475569; margin: 0 0 24px; }

.wke-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 22px; margin: 0 0 16px; }
.wke-box legend { font-weight: 700; color: #1e293b; padding: 0 6px; font-size: 16px; }
.wke-box h3 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 12px; }
.wke-fixed { font-size: 16px; font-weight: 600; color: #1e3a8a; margin: 4px 0 0; }

.wke-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.wke-wide { grid-column: 1 / -1; }
.wke-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #334155; }
.wke-field > span { font-weight: 600; }
.wke input[type="text"], .wke input[type="tel"], .wke input[type="email"], .wke input[type="date"], .wke select,
.wke-admin input[type="text"], .wke-admin select {
    width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; font-size: 15px; background: #fff; color: #0f172a;
}
.wke input:focus, .wke select:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
.wke input:disabled { background: #f1f5f9; }

.wke-choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.wke-choice { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; background: #fff; }
.wke-choice:has(input:checked) { border-color: #1e3a8a; background: #eff6ff; color: #1e3a8a; font-weight: 600; }
.wke-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #334155; margin: 6px 0 12px; cursor: pointer; }
.wke-req { color: #dc2626; }
.wke-help { font-size: 13px; color: #64748b; margin: 8px 0 0; }

.wke-parent { border-top: 1px dashed #e2e8f0; padding-top: 14px; margin-top: 14px; }
.wke-parent:first-of-type { border-top: 0; padding-top: 0; margin-top: 8px; }
.wke-parent h3 { margin-bottom: 10px; }
.wke-address { border-top: 1px dashed #e2e8f0; padding-top: 14px; margin-top: 16px; }

.wke-companies { margin-top: 12px; background: #f8fafc; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #334155; line-height: 1.7; }
.wke-companies p { margin: 0 0 4px; }

.wke-total { border-color: #bfdbfe; background: #f8fbff; }
.wke-total table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wke-total th { text-align: left; font-weight: 500; color: #334155; padding: 6px 0; }
.wke-total td { text-align: right; padding: 6px 0; color: #0f172a; }
.wke-total tfoot th, .wke-total tfoot td { border-top: 1px solid #cbd5e1; font-weight: 700; font-size: 17px; padding-top: 10px; }
.wke-option { font-size: 13px; color: #1e3a8a; font-weight: 600; margin-left: 4px; }

.wke-actions { text-align: center; margin: 20px 0 0; }
.wke-btn { display: inline-block; background: #1e3a8a; color: #fff; border: 0; border-radius: 10px; padding: 13px 32px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.wke-btn:hover { background: #1e40af; }
.wke-btn:disabled { opacity: .6; cursor: wait; }
.wke-btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 8px; white-space: nowrap; }
.wke-btn-line { background: #fff; color: #1e3a8a; border: 1px solid #1e3a8a; }
.wke-btn-line:hover { background: #1e3a8a; color: #fff; }
.wke-btn-danger { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; }
.wke-btn-danger:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.wke-row-actions { display: flex; align-items: center; gap: 6px; }
.wke-link { color: #1e3a8a; text-decoration: underline; font-size: 14px; }

.wke-alert { border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; font-size: 15px; }
.wke-alert ul { margin: 6px 0 0 18px; padding: 0; list-style: disc; }
.wke-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.wke-alert-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.wke-alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.wke-message { font-size: 16px; color: #1e293b; margin: 0 0 12px; }

.wke-info { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 8px; background: #fff; }
.wke-info th { width: 34%; text-align: left; background: #f8fafc; color: #334155; font-weight: 600; padding: 9px 12px; border: 1px solid #e2e8f0; vertical-align: top; }
.wke-info td { padding: 9px 12px; border: 1px solid #e2e8f0; color: #0f172a; }

.wke-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wke [hidden] { display: none !important; }

@media (max-width: 640px) {
    .wke-grid { grid-template-columns: 1fr; }
    .wke-box { padding: 16px; }
    .wke-title { font-size: 22px; }
}

/* 관리자 화면 */
.wke-admin { margin: 0; background: #f5f7fb; font-family: system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif; color: #0f172a; }
.wke-admin-wrap { max-width: 1400px; margin: 0 auto; padding: 24px 16px 48px; }
.wke-admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.wke-admin-head h1 { font-size: 22px; margin: 0; }
.wke-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wke-filter select { width: auto; }
.wke-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 12px; }
.wke-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wke-table th { background: #f1f5f9; text-align: left; padding: 10px; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
.wke-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; white-space: nowrap; }
.wke-table td > div + div { margin-top: 4px; }
.wke-inline { display: flex; gap: 6px; align-items: center; }
.wke-inline select { width: auto; }
.wke-inline input[type="text"] { width: 180px; }
.wke-status { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; background: #e2e8f0; color: #334155; white-space: nowrap; }
.wke-status-paid { background: #dcfce7; color: #166534; }
.wke-status-processing { background: #dbeafe; color: #1e40af; }
.wke-status-waiting { background: #fef3c7; color: #92400e; }
.wke-status-failed { background: #fee2e2; color: #991b1b; }
.wke-status-pending_payment { background: #f1f5f9; color: #475569; }
