/* ──────────────────────────────────────────────────────────────
   회원가입 / 회원상태 안내 페이지 — 마이페이지 톤과 일치하게 정돈
   주의: 사이트 기본 skin/member/basic/style.css 의 #fregister, #fregisterform
        ID 셀렉터가 polution하므로 일부 룰에 !important 사용.
   ────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────
   디자인 토큰 — 라이트 톤(기본). 다크 전환은 `.reg-wrap`에
   data-theme="dark" 또는 .theme-dark 클래스를 부여하면 됨.

   PHP 예시:
       <div class="reg-wrap" data-theme="dark"> ... </div>
       <div class="reg-wrap theme-dark"> ... </div>

   변경 시 영향 범위는 .reg-wrap 안으로 한정됨.
────────────────────────────────────────────────────────────── */
:root {
    /* 브랜드 */
    --reg-primary:        #2793FF;
    --reg-primary-d:      #1572d4;
    --reg-primary-soft:   #f0f7ff;
    --reg-primary-ring:   rgba(39,147,255,0.15);

    /* 표면(배경) */
    --reg-bg:             #f9fafb;   /* 안내 박스, 약관 박스 등 */
    --reg-bg-page:        #FFFFFF;   /* 페이지 wrapper */
    --reg-bg-soft:        #f9fafb;   /* 안내 박스 / 약관 박스 */
    --reg-card:           #FFFFFF;   /* 카드(섹션·모달 패널·회원유형 카드) */
    --reg-input-bg:       #FFFFFF;
    --reg-input-bg-soft:  #fafbfc;   /* file input dashed */
    --reg-table-th:       #f3f4f6;

    /* 라인 */
    --reg-border:         #e5e7eb;
    --reg-border-2:       #d1d5db;

    /* 텍스트 */
    --reg-text:           #1f2937;
    --reg-text-sub:       #6b7280;
    --reg-text-muted:     #9ca3af;
    --reg-text-on-primary:#FFFFFF;

    /* 상태 — pending(주황) */
    --reg-state-pending-bg:     #fffbeb;
    --reg-state-pending-border: #fcd34d;
    --reg-state-pending-icon-bg:#fde68a;
    --reg-state-pending-text:   #92400e;

    /* 상태 — rejected(빨강) */
    --reg-state-rejected-bg:     #fef2f2;
    --reg-state-rejected-border: #fca5a5;
    --reg-state-rejected-icon-bg:#fecaca;
    --reg-state-rejected-text:   #991b1b;

    /* 상태 — success(초록, auth_email 인증 완료) */
    --reg-state-success-bg:     #ecfdf5;
    --reg-state-success-border: #86efac;
    --reg-state-success-icon-bg:#bbf7d0;
    --reg-state-success-text:   #166534;

    /* 모달 */
    --reg-modal-backdrop:       rgba(0,0,0,0.5);
    --reg-modal-shadow:         0 20px 40px rgba(0,0,0,0.2);

    /* 형태 */
    --reg-radius:     12px;
    --reg-radius-sm:  8px;
    --reg-shadow:     0 1px 2px rgba(0,0,0,0.04);
}

/* ── 다크 톤 오버라이드 — .reg-wrap 범위 한정 ────────────────── */
.reg-wrap[data-theme="dark"],
.reg-wrap.theme-dark {
    /* 브랜드 — 다크 차분한 사파이어 블루 (라이트 #2793FF → 채도·명도 조정) */
    --reg-primary:        rgba(0, 255, 122, 0.85);
    --reg-primary-d:      rgba(0, 255, 122, 1);
    --reg-primary-soft:   rgba(0, 255, 122, 0.15);
    --reg-primary-ring:   rgba(0, 255, 122, 0.25);

    --reg-text-on-primary: #000000;

    /* 표면 (3-tier elevation) — 검정 베이스 + 들뜸 톤, mypage와 통일 */
    --reg-bg:             #1a1d23;        /* L2: 안내 박스 */
    --reg-bg-page:        transparent;    /* L0: 부모(검정) 노출 */
    --reg-bg-soft:        #1a1d23;        /* L2 */
    --reg-card:           #0c0c0c;        /* L1: 카드 */
    --reg-input-bg:       #1a1d23;        /* L2: 입력 */
    --reg-input-bg-soft:  #14161a;        /* L2-: file dashed 더 가라앉음 */
    --reg-table-th:       #1a1d23;

    /* 라인 — 카드 톤과 어울리는 어두운 회색 */
    --reg-border:         #2a2d33;
    --reg-border-2:       #3a3d44;

    /* 텍스트 */
    --reg-text:           #f1f5f9;
    --reg-text-sub:       #cbd5e1;
    --reg-text-muted:     #94a3b8;

    /* 상태 — 다크 차분 톤. 카드 베이스(#0c0c0c)에 색 시그널만 얇게 */
    --reg-state-pending-bg:     #0c0c0c;                 /* 카드와 동일 */
    --reg-state-pending-border: rgba(251,191,36,0.30);   /* 차분한 amber 보더 */
    --reg-state-pending-icon-bg:rgba(251,191,36,0.15);
    --reg-state-pending-text:   #fbbf24;                  /* amber-400 */

    --reg-state-rejected-bg:     #0c0c0c;
    --reg-state-rejected-border: rgba(248,113,113,0.30);
    --reg-state-rejected-icon-bg:rgba(248,113,113,0.15);
    --reg-state-rejected-text:   #f87171;                 /* red-400 */

    --reg-state-success-bg:     #0c0c0c;
    --reg-state-success-border: rgba(74,222,128,0.30);
    --reg-state-success-icon-bg:rgba(74,222,128,0.15);
    --reg-state-success-text:   #4ade80;                  /* green-400 */

    /* 모달 — 더 진한 backdrop, 다크 shadow */
    --reg-modal-backdrop:       rgba(0,0,0,0.7);
    --reg-modal-shadow:         0 20px 40px rgba(0,0,0,0.5);

    /* shadow도 약간 줄임 */
    --reg-shadow:               0 1px 2px rgba(0,0,0,0.3);
}

#wrapper .subVisual { display: none !important; }

/* ── 페이지 wrapper ──────────────────────────────────────────
   mp-wrap 과 동일 패턴: 1600px 풀폭 흰 배경 페이지 안에 좁은 콘텐츠.
*/
.reg-wrap {
    max-width: 1600px;
    min-height: 70vh;
    margin: 0 auto;
    background: var(--reg-bg-page);
    padding: 40px 60px 80px;
    box-sizing: border-box;
    color: var(--reg-text);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.reg-wrap *, .reg-wrap *::before, .reg-wrap *::after { box-sizing: border-box; }
.reg-wrap input, .reg-wrap select, .reg-wrap textarea, .reg-wrap button,
.reg-wrap h1, .reg-wrap h2, .reg-wrap h3, .reg-wrap h4, .reg-wrap h5, .reg-wrap h6,
.reg-wrap p, .reg-wrap label, .reg-wrap span, .reg-wrap div, .reg-wrap a, .reg-wrap pre {
    font-family: inherit;
}

/* 폼·콘텐츠는 가운데 모음 — form 자체는 width:100% 명시해야 max-width가 작동 */
.reg-wrap > form,
.reg-wrap > header,
.reg-wrap > section,
.reg-wrap > .reg-actions,
.reg-wrap > .reg-agree-all,
.reg-wrap > .reg-status,
.reg-wrap > .reg-note,
.reg-wrap > .reg-type-grid {
    display: block;
    width: 100%;
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
}
.reg-wrap > .reg-type-grid { display: grid; }
.reg-wrap-narrow > form,
.reg-wrap-narrow > header,
.reg-wrap-narrow > section,
.reg-wrap-narrow > .reg-actions,
.reg-wrap-narrow > .reg-status,
.reg-wrap-narrow > .reg-note {
    max-width: 920px;
}

/* 안내 페이지(reg-wrap-narrow)의 신청 정보 섹션 — 카드화로 시각적 균형 */
.reg-wrap-narrow > section.reg-section {
    background: var(--reg-card);
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius);
    padding: 28px 32px;
    margin-top: 24px;
    margin-bottom: 0;
}
.reg-wrap-narrow > section.reg-section .reg-section-title {
    border-bottom: 1px solid var(--reg-border);
    padding-bottom: 14px;
    margin-bottom: 18px;
    font-size: 18px;
}
/* 안내 박스·액션 영역도 같은 폭으로 균형 */
.reg-wrap-narrow > .reg-actions {
    justify-content: center;
}

/* ── 사이트 기본 #fregister / #fregisterform CSS 침범 제거 ── */
.reg-wrap #fregister, .reg-wrap #fregisterform { margin: 0 auto !important; }
.reg-wrap #fregister p,
.reg-wrap #fregisterform p,
.reg-wrap p {
    color: var(--reg-text-sub) !important;
    background: transparent !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 0 8px;
    font-size: inherit;
    font-weight: normal;
    border-radius: 0 !important;
    text-align: left !important;
}
.reg-wrap #fregister p:before,
.reg-wrap #fregisterform p:before { display: none !important; content: none !important; }

/* 사이트 기본 .selec_chk (커스텀 체크박스용 input 숨김 룰) 무효화 — 우리는 기본 체크박스를 그대로 노출 */
.reg-wrap .selec_chk,
.reg-wrap input[type="checkbox"].selec_chk,
.reg-wrap input[type="radio"].selec_chk {
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    opacity: 1 !important;
    z-index: auto !important;
    overflow: visible !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    top: auto !important;
    left: auto !important;
}

/* 사이트 기본 .required (input 우상단 별표 이미지) 제거 — 우리는 라벨에 명시적 * 표시 */
.reg-wrap input.required,
.reg-wrap textarea.required,
.reg-wrap select.required {
    background-image: none !important;
}

/* ── 헤더 ────────────────────────────────────────────────── */
.reg-head {
    display: block !important;     /* 사이트 기본 header flex 룰 무력화 */
    margin-bottom: 28px;
    padding: 12px 0 0;
    text-align: left;
}
.reg-head h1 {
    font-family: 'Paperlogy', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    font-size: 22px; 
    font-weight: 600;
    font-style: normal;
    margin: 0 0 8px !important;
    color: var(--reg-text) !important;
    background: transparent !important;
    line-height: normal !important;
    height: auto !important;
}
.reg-head h1 small {
    font-size: 14px; font-weight: 500;
    color: var(--reg-text-sub); margin-left: 6px;
}
.reg-head p {
    margin: 0 !important;
    color: var(--reg-text-sub) !important;
    font-size: 13px !important;
}

/* ── 섹션 (마이페이지 .mp-section 톤) — 카드형 X. 헤더 구분선만 ── */
.reg-section {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 36px;
    box-shadow: none;
}
.reg-section-title {
    font-family: 'Paperlogy', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    font-weight: 600;
    font-style: normal;
    line-height: normal !important;
    font-size: 20px;
    margin: 0 0 8px;
    padding-bottom: 16px;
    color: var(--reg-text);
    letter-spacing: -0.01em;
}
.reg-section-title small { font-size: 12px; font-weight: 500; color: var(--reg-text-sub); margin-left: 6px; }
.reg-required { color: var(--reg-primary); font-weight: 700; }

.reg-note {
    margin: 12px 0 0 !important;
    font-size: 12px !important;
    color: var(--reg-text-sub) !important;
    background: transparent !important;
    text-align: left !important;
    height: auto !important;
    line-height: 1.5 !important;
}
.reg-note a { color: var(--reg-primary); text-decoration: none; }
.reg-note a:hover { text-decoration: underline; }

/* ── 회원유형 카드 ─────────────────────────────────────── */
.reg-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.reg-type-card {
    display: block;
    border: 1.5px solid var(--reg-border);
    border-radius: var(--reg-radius);
    padding: 32px 24px;
    cursor: pointer;
    background: var(--reg-card);
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
    position: relative;
    text-align: center;
}
.reg-type-card:hover { border-color: var(--reg-border-2); transform: translateY(-1px); }
.reg-type-card.is-selected {
    border-color: var(--reg-primary);
    background: var(--reg-primary-soft);
    box-shadow: 0 0 0 1px var(--reg-primary) inset;
}
.reg-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.reg-type-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.reg-type-icon {
    width: 48px; height: 48px;
    color: var(--reg-text-sub);
    margin-bottom: 4px;
    transition: color 0.15s;
}
.reg-type-card.is-selected .reg-type-icon { color: var(--reg-primary); }
.reg-type-card.is-selected .reg-type-name { color: var(--reg-primary); }
.reg-type-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--reg-text);
    line-height: 1.3;
}
.reg-type-desc {
    font-size: 13px;
    color: var(--reg-text-sub);
    line-height: 1.5;
}

/* ── 약관 박스 ─────────────────────────────────────────── */
.reg-terms-box {
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    background: var(--reg-bg);
}
.reg-terms-box textarea {
    width: 100%;
    min-height: 140px;
    border: 0;
    background: transparent;
    resize: vertical;
    font-size: 13px;
    color: var(--reg-text);
    font-family: inherit;
    line-height: 1.6;
    padding: 0;
}
.reg-terms-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.reg-terms-table th, .reg-terms-table td { padding: 8px 10px; border: 1px solid var(--reg-border); text-align: left; vertical-align: top; }
.reg-terms-table th { background: var(--reg-table-th); color: var(--reg-text); font-weight: 600; width: 30%; }
.reg-terms-table caption {
    position: absolute; font-size: 0; line-height: 0; overflow: hidden;
    width: 1px; height: 1px; clip: rect(0,0,0,0);
}

/* ── 약관 동의 한 줄 (체크박스 + 라벨) — 사이트 .fregister_agree 침범 reset ── */
.reg-wrap .reg-agree-line,
.reg-wrap .reg-agree-line label {
    position: static !important;
    background: transparent !important;
    color: var(--reg-text) !important;
    height: auto !important;
}
.reg-agree-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--reg-text);
    cursor: pointer;
    padding: 8px 0;
}
.reg-agree-line input[type="checkbox"] {
    width: 16px; height: 16px;
    margin: 0;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: auto;
    position: static !important;
    border: 1px solid var(--reg-border-2);
}
.reg-agree-line span {
    background: transparent !important;
    color: var(--reg-text) !important;
}

.reg-agree-all {
    border-top: 1px solid var(--reg-border);
    padding-top: 14px;
    margin-bottom: 20px;
    margin-top: 8px;
}
.reg-agree-all label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--reg-text) !important;
    background: transparent !important;
}
.reg-agree-all input[type="checkbox"] {
    width: 18px; height: 18px;
    margin: 0;
    appearance: auto;
    -webkit-appearance: auto;
    position: static !important;
}

/* ── 폼 행 (라벨 왼쪽 · 단일 컬럼 · 행마다 구분선) ─────── */
.reg-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.reg-field {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--reg-border);
}
.reg-field:last-child { border-bottom: 0; }
.reg-grid > .reg-field:first-child { padding-top: 8px; }
.reg-grid > .reg-field:last-child { padding-bottom: 4px; }
.reg-field.reg-col-2 { /* legacy — 단일 컬럼이므로 no-op */ }
.reg-field > label {
    flex: 0 0 110px;
    color: var(--reg-text);
    background: transparent;
    display: flex;
    padding: 22px 0 22px 15px;
    align-items: center;
    flex-basis: 200px;
}
.reg-field > .reg-input,
.reg-field > .reg-textarea,
.reg-field > .reg-control {
    flex: 1 1 0;
    min-width: 0;
}
.reg-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.reg-control > .reg-input,
.reg-control > .reg-textarea {
    flex: 1 1 0;
    min-width: 0;
}
.reg-control-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
}
.reg-input, .reg-textarea {
    width: 100%;
    border: 1px solid var(--reg-border-2);
    border-radius: var(--reg-radius-sm);
    padding: 18px 20px;
    font-size: 14px;
    color: var(--reg-text);
    background: var(--reg-input-bg);
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.reg-input:focus, .reg-textarea:focus {
    outline: 0;
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px var(--reg-primary-ring);
}
.reg-textarea { min-height: 96px; resize: vertical; }

/* ── 파일 업로드 (커스텀 파일선택 버튼 + 파일명 표시) ──── */
.reg-file { gap: 10px; }
.reg-file > input[type="file"] {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.reg-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid var(--reg-border-2);
    border-radius: var(--reg-radius-sm);
    background: var(--reg-input-bg);
    color: var(--reg-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
}
.reg-file-btn:hover { border-color: var(--reg-primary); color: var(--reg-primary); }
.reg-file-name {
    font-size: 14px;
    color: var(--reg-text);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reg-file-name:empty::before {
    content: '선택된 파일 없음';
    color: var(--reg-text-muted);
}
.reg-file-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border: 0; background: transparent;
    color: var(--reg-text-muted);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.reg-file-clear[hidden] { display: none; }
.reg-file-meta {
    margin-left: auto;
    font-size: 12px;
    color: var(--reg-text-muted);
    white-space: nowrap;
}

.reg-hint {
    font-size: 12px;
    color: var(--reg-text-sub);
    margin: 0;
    background: transparent !important;
    flex: 0 0 100%;
    padding-left: 226px; /* label width + gap */
}
.reg-error {
    font-size: 12px;
    color: #dc2626;
    margin-left: auto;
    flex: 0 0 auto;
}

@media (max-width: 720px) {
    .reg-field { flex-direction: column; align-items: flex-start;}
    .reg-field > label { flex: 0 0 auto; padding: 0; }
    .reg-hint { padding-left: 0; padding-top:8px; }
    .reg-control-split { grid-template-columns: 1fr; }
}

/* ── 본인확인 행 ─────────────────────────────────────── */
.reg-cert-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--reg-bg);
    border-radius: var(--reg-radius-sm);
}
.reg-cert-done { color: var(--reg-text-sub); font-size: 13px; }

/* ── 동의 리스트 (선택 동의 항목) ────────────────────── */
.reg-consent-list { list-style: none; margin: 0; padding: 0; }
.reg-consent-list > li { padding: 6px 0; }
.reg-consent-list label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    color: var(--reg-text) !important;
    background: transparent !important;
    position: static !important;
}
.reg-consent-list input[type="checkbox"] {
    width: 16px; height: 16px; cursor: pointer;
    appearance: auto; -webkit-appearance: auto;
    position: static !important;
}
.reg-consent-sub { list-style: none; margin: 6px 0 0 26px; padding: 0; }
.reg-consent-sub > li { padding: 4px 0; }

/* ── 약관 동의 행 (체크박스 + 텍스트 + 전문보기 링크) ── */
.reg-consent-rows { list-style: none; margin: 0; padding: 0; }
.reg-consent-rows > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}
.reg-consent-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--reg-text) !important;
    background: transparent !important;
    flex: 1;
}
.reg-consent-row input[type="checkbox"],
.reg-consent-chk {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    position: static !important;
    margin: 0 !important;
    flex-shrink: 0;
    accent-color: var(--reg-primary);
}
.reg-consent-text { font-size: 14px; color: var(--reg-text); line-height: 1.5; }
.reg-consent-text strong { font-weight: 600; margin-right: 2px; color: var(--reg-text); }
.reg-consent-link {
    background: transparent;
    border: 0;
    padding: 4px 8px;
    color: var(--reg-primary);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.reg-consent-link:hover { color: var(--reg-primary-d); }

/* ── 안내 박스 (회색 톤) ────────────────────── */
.reg-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: var(--reg-bg);
    border: 1px solid var(--reg-border);
    border-radius: var(--reg-radius-sm);
}
.reg-info-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--reg-primary);
    color: var(--reg-text-on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.reg-info-body {
    font-size: 13px;
    color: var(--reg-text-sub);
    line-height: 1.6;
}
.reg-info-body strong {
    display: inline-block;
    margin-right: 8px;
    color: var(--reg-text);
    font-weight: 700;
}

/* ── 약관 모달 ─────────────────────────────── */
.reg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reg-modal[hidden] { display: none !important; }
.reg-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--reg-modal-backdrop);
    animation: regModalFade 0.15s ease-out;
}
.reg-modal-panel {
    position: relative;
    z-index: 1;
    background: var(--reg-card);
    border-radius: var(--reg-radius);
    max-width: 640px;
    width: calc(100% - 40px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--reg-modal-shadow);
    animation: regModalSlide 0.18s ease-out;
}
.reg-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--reg-border);
}
.reg-modal-head h3 {
    margin: 0 !important;
    font-size: 18px;
    font-weight: 700;
    color: var(--reg-text) !important;
    background: transparent !important;
    height: auto !important;
    line-height: 1.3 !important;
}
.reg-modal-close {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 32px; height: 32px;
    border-radius: 6px;
    color: var(--reg-text-sub);
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.reg-modal-close:hover { background: var(--reg-bg); color: var(--reg-text); }
.reg-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}
.reg-modal-body pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.7;
    color: var(--reg-text);
}
@keyframes regModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes regModalSlide {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 캡차 ──────────────────────────────────────────── */
.reg-captcha { padding: 8px 0; }
.reg-captcha img { vertical-align: middle; }

/* ── 액션 버튼 ──────────────────────────────────────── */
.reg-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    min-width: 140px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: var(--reg-radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--reg-card);
    color: var(--reg-text);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
    box-sizing: border-box;
}
.reg-btn-ghost {
    border-color: var(--reg-border-2);
    background: var(--reg-card);
    color: var(--reg-text);
}
.reg-btn-ghost:hover { background: var(--reg-bg); border-color: var(--reg-text-muted); color: var(--reg-text); }
.reg-btn-primary {
    background: var(--reg-primary);
    color: var(--reg-text-on-primary) !important;
    border-color: var(--reg-primary);
}
.reg-btn-primary:hover { background: var(--reg-primary-d); border-color: var(--reg-primary-d); color: var(--reg-text-on-primary) !important; }
.reg-btn-primary:disabled, .reg-btn-primary[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ── 상태 안내 카드 (member_status / auth_email) ──── */
.reg-status {
    border-radius: var(--reg-radius);
    padding: 32px 24px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid var(--reg-border);
    background: var(--reg-card);
}
.reg-status-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}
.reg-status h2 {
    margin: 0 0 8px !important;
    font-size: 18px !important; font-weight: 700 !important;
    background: transparent !important;
    height: auto !important; line-height: 1.4 !important;
}
.reg-status p {
    margin: 0 !important;
    color: var(--reg-text-sub) !important;
    font-size: 14px !important;
    background: transparent !important;
    height: auto !important; line-height: 1.6 !important;
}

.reg-status-pending { background: var(--reg-state-pending-bg); border-color: var(--reg-state-pending-border); }
.reg-status-pending .reg-status-icon { background: var(--reg-state-pending-icon-bg); color: var(--reg-state-pending-text); }
.reg-status-pending h2 { color: var(--reg-state-pending-text) !important; }

.reg-status-rejected { background: var(--reg-state-rejected-bg); border-color: var(--reg-state-rejected-border); }
.reg-status-rejected .reg-status-icon { background: var(--reg-state-rejected-icon-bg); color: var(--reg-state-rejected-text); }
.reg-status-rejected h2 { color: var(--reg-state-rejected-text) !important; }

.reg-status-empty { background: var(--reg-bg); border-color: var(--reg-border); }
.reg-status-empty .reg-status-icon { background: var(--reg-border); color: var(--reg-text-sub); }
.reg-status-empty h2 { color: var(--reg-text) !important; }

/* ── 신청 정보 dl ─────────────────────────────────── */
.reg-info-list { margin: 0; }
.reg-info-list dt {
    float: left; clear: left;
    width: 100px;
    color: var(--reg-text-sub);
    font-size: 13px;
    padding: 8px 0;
}
.reg-info-list dd {
    margin: 0 0 0 110px;
    padding: 8px 0;
    color: var(--reg-text);
    font-size: 14px;
    word-break: break-all;
}
.reg-info-list::after { content: ""; display: block; clear: both; }

.reg-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.reg-badge-pending  { background: var(--reg-state-pending-icon-bg); color: var(--reg-state-pending-text); }
.reg-badge-rejected { background: var(--reg-state-rejected-icon-bg); color: var(--reg-state-rejected-text); }
.reg-badge-empty    { background: var(--reg-border); color: var(--reg-text-sub); }

.reg-captcha input {
    color: #000000;
}

/* ── 모바일 ──────────────────────────────────────── */
@media (max-width: 900px) {
    .reg-wrap { padding: 20px 16px 40px; }
    .reg-section { padding: 18px 18px; }
    .reg-grid { grid-template-columns: 1fr; gap: 12px; }
    .reg-field.reg-col-2 { grid-column: span 1; }
    .reg-type-grid { grid-template-columns: 1fr; }
    .reg-actions { flex-direction: column-reverse; }
    .reg-btn { width: 100%; min-width: 0; }
    .reg-info-list dt { float: none; width: auto; padding: 8px 0 2px; }
    .reg-info-list dd { margin-left: 0; padding: 0 0 8px; border-bottom: 1px solid var(--reg-border); }
}
