/* ================================================ */
/* V2 회원가입 전용 스타일                         */
/* ================================================ */

/* ── 상단 스텝 바 ── */
.su-step-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.su-step-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
}

.su-logo img { height: 28px; opacity: 0.9; }

.su-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.su-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.35);
    transition: all 0.3s;
}

.su-step.active { color: #fff; }
.su-step.done   { color: #10b981; }

.su-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.su-step.active .su-step-num { background: #3b82f6; color: #fff; }
.su-step.done .su-step-num   { background: #10b981; color: #fff; }

.su-step-line {
    width: 32px;
    height: 2px;
    background: rgba(255,255,255,0.12);
    margin: 0 10px;
    transition: background 0.3s;
}

.su-step-line.done { background: #10b981; }

.su-back-link {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.su-back-link:hover { color: rgba(255,255,255,0.8); }

/* ── 컨테이너 (카드 중앙 배치) ── */
.su-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 72px 24px 56px;
}

/* ── 카드 공통 ── */
.su-card {
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
    padding: 36px 40px;
    width: 520px;
    max-width: 94vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.su-card-wide {
    width: 740px;
}

.su-card-done {
    width: 440px;
    text-align: center;
    padding: 48px 40px;
}

.su-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.su-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.su-card-header p {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* ── 전체 동의 ── */
.su-allcheck {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 16px;
}

.su-allcheck input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #3b82f6;
}

/* ── 약관 2열 그리드 ── */
.su-terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.su-terms-col {}

.su-terms-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.su-terms-label .req { color: #ef4444; font-weight: 600; }

.su-terms-fullview {
    float: right;
    font-size: 11.5px;
    font-weight: 500;
    color: #6d28d9;
    text-decoration: none;
    padding: 1px 8px;
    border-radius: 6px;
    transition: background .15s;
}
.su-terms-fullview:hover {
    background: #f5f3ff;
    text-decoration: underline;
}

.su-terms-box {
    width: 100%;
    height: 140px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11.5px;
    color: #555;
    line-height: 1.6;
    overflow-y: auto;
    background: #f8fafc;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.su-terms-box::-webkit-scrollbar { width: 4px; }
.su-terms-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.su-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #555;
    cursor: pointer;
}

.su-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.su-check .req { color: #ef4444; font-weight: 600; }

/* ── 선택 약관 한 줄 ── */
.su-optional-row {
    display: flex;
    gap: 24px;
    padding: 10px 0 6px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 10px;
}

/* ── 정보입력 2열 그리드 ── */
.su-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 6px;
}

.su-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.su-field input[type="text"],
.su-field input[type="email"],
.su-field input[type="password"] {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13.5px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.su-field input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.su-field input::placeholder { color: #aaa; }

.su-input-with-btn {
    display: flex;
    gap: 6px;
}

.su-input-with-btn input { flex: 1; }

.su-input-with-btn button {
    height: 42px;
    padding: 0 14px;
    background: #f1f5f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12.5px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.su-input-with-btn button:hover { background: #e2e8f0; }

.su-hint {
    font-size: 11.5px;
    min-height: 14px;
    margin-top: 2px;
}

.su-hint.error   { color: #ef4444; }
.su-hint.success { color: #10b981; }

/* ── 메시지 ── */
.su-msg {
    min-height: 18px;
    font-size: 13px;
    text-align: center;
    padding: 4px 0;
}

.su-msg.error   { color: #ef4444; }
.su-msg.success { color: #3b82f6; }

/* ── 버튼 ── */
.su-btn-primary {
    width: 100%;
    height: 46px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.su-btn-primary:hover { background: #2563eb; }
.su-btn-primary:active { background: #1d4ed8; }
.su-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }

/* ── 완료 화면 ── */
.su-done-icon {
    margin-bottom: 16px;
}

.su-card-done h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.su-card-done p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 24px;
}

.su-btn-done {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    box-sizing: border-box;
}

.su-btn-done:hover { background: #2563eb; }

/* ── 반응형 ── */
@media (max-width: 800px) {
    .su-card-wide { width: 96vw; }
    .su-terms-grid { grid-template-columns: 1fr; }
    .su-form-grid { grid-template-columns: 1fr; }
    .su-optional-row { flex-direction: column; gap: 8px; }
    .su-step-inner { padding: 10px 16px; }
    .su-back-link { display: none; }
    .su-card { padding: 28px 20px; }
}

@media (max-width: 600px) {
    .su-steps { gap: 0; }
    .su-step { font-size: 11px; }
    .su-step-line { width: 16px; margin: 0 4px; }
}
