/* 회원가입 페이지 전용 스타일 (register.html) */

/* ── 페이지 레이아웃 ─────────────────────────────────────────── */
.register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.register-header {
    height: 60px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    background: rgba(0,0,0,0.1);
    color: white;
}

.back-btn {
    position: absolute; left: 16px;
    background: none; border: none;
    color: white; font-size: 24px; cursor: pointer;
}

/* ── 스텝 인디케이터 ─────────────────────────────────────────── */
.step-indicator { display: flex; justify-content: center; gap: 8px; padding: 20px 0; }
.step-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.3); transition: all 0.3s ease;
}
.step-dot.active    { background: white; transform: scale(1.2); }
.step-dot.completed { background: #4ade80; }

/* ── 폼 컨테이너 ─────────────────────────────────────────────── */
.register-container {
    flex: 1; background: white;
    border-radius: 24px 24px 0 0;
    padding: 30px 24px;
    margin: 10px 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
}

/* ── 스텝 전환 애니메이션 ────────────────────────────────────── */
.form-step        { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }

.step-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.step-desc  { font-size: 14px; color: #666; margin-bottom: 24px; }

/* ── 버튼 그룹 ───────────────────────────────────────────────── */
.btn-group { display: flex; gap: 12px; margin-top: 30px; }

.btn-prev {
    flex: 1; padding: 16px; border-radius: 12px;
    border: 1px solid #ddd; background: white;
    color: #666; font-weight: 600; font-size: 16px; cursor: pointer;
}
.btn-next, .btn-submit {
    flex: 2; padding: 16px; border-radius: 12px;
    border: none; background: #2563eb; color: white;
    font-weight: 600; font-size: 16px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}
.btn-next:disabled, .btn-submit:disabled {
    background: #9ca3af; cursor: not-allowed; box-shadow: none;
}

/* ── 본인인증 박스 ───────────────────────────────────────────── */
.verify-box {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 24px;
    text-align: center; margin-bottom: 20px;
}
.verified-info {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 12px; padding: 16px;
    margin-top: 16px; text-align: left;
}
.verified-badge {
    display: inline-block;
    background: #dcfce7; color: #166534;
    padding: 4px 8px; border-radius: 4px;
    font-size: 12px; font-weight: 600; margin-bottom: 8px;
}
.readonly-field { background-color: #f3f4f6; color: #6b7280; cursor: not-allowed; }

/* ── 약관 동의 ───────────────────────────────────────────────── */
.terms-buttons      { margin-bottom: 20px; text-align: right; }
.btn-all-agree {
    padding: 10px 16px; border: none;
    background: #e0f2fe; color: #0369a1;
    border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-all-agree:hover { background: #bae6fd; }

.terms-section {
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px 10px; margin-bottom: 20px;
}
.terms-item { font-size: 15px; margin-bottom: 10px; }
.terms-item:last-child { margin-bottom: 0; }
.terms-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 12px; background: white;
    border-radius: 8px; border: 1px solid #e2e8f0;
}
.checkbox-group { display: flex; align-items: center; gap: 8px; margin: 0; }
.checkbox-input { width: 18px; height: 18px; accent-color: #2563eb; }

.btn-view-terms {
    padding: 6px 12px;
    border: 1px solid #2563eb; background: white;
    color: #2563eb; border-radius: 6px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease;
}
.btn-view-terms:hover { background: #2563eb; color: white; }

/* ── 약관 모달 ───────────────────────────────────────────────── */
.terms-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-content {
    background: white; border-radius: 16px;
    width: 100%; max-width: 500px; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.modal-header {
    border-radius: 16px 16px 0 0;
    padding: 20px; border-bottom: 1px solid #e2e8f0;
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0; }
.modal-close {
    background: none; border: none; font-size: 24px;
    cursor: pointer; color: #64748b; padding: 0;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: #1e293b; }
.modal-body { padding: 20px; overflow-y: auto; max-height: calc(80vh - 80px); }

/* 약관 문서 섹션 (모달 내부) */
.modal-body .doc-section {
    margin-bottom: 20px; padding: 16px;
    background: #f8f9fa; border-radius: 8px;
    border: 0.5px solid #707070;
}
.modal-body .doc-section:last-child { margin-bottom: 0; }
.modal-body .doc-section h3 { color: #667eea; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.modal-body .doc-section h4 { color: #667eea; font-size: 14px; font-weight: 600; margin: 12px 0 8px; }
.modal-body .doc-section p,
.modal-body .doc-section li { font-size: 13px; line-height: 1.5; color: #333; }
.modal-body .doc-section ul { margin: 8px 0 8px 20px; }
.modal-body .doc-section li { margin-bottom: 4px; }
