/* ======================================
 *  회원가입 > 가입인증 공통 레이아웃
 * ====================================*/

/* 페이지 전체 */
.join-page {
    padding-bottom: 80px;
}

/* 상단 타이틀 영역 */
.join-page .sub-top {
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.join-page .sub-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.join-page .sub-desc {
    font-size: 13px;
    color: #6b7280;
}

/* 레이아웃 리셋: 기존 .sub width 고정 깨기 */
.join-page .sub.join-layout {
    width: 100%;
    max-width: none;
    float: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 실제 콘텐츠 박스 (가운데 하얀 패널) */
.join-page .join-layout .join-con-wrap {
    width: 100%;
    max-width: 1100px;      /* ← 여기서 최종 가로폭 조절 (원하면 1000~1200px) */
    margin: 24px auto 60px;
    padding: 32px 40px 38px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

/* ======================================
 *  가입 단계 (01 ~ 04)
 * ====================================*/
.join-steps {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}

.join-steps li {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 11px;
    color: #9ca3af;
}

.join-steps li .step-num {
    font-weight: 600;
    font-size: 12px;
}

.join-steps li .step-text {
    font-size: 11px;
}

.join-steps li.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* ======================================
 *  개인정보 안내 박스 (회색 박스)
 * ====================================*/
.join-summary {
    margin: 0 0 22px;
    padding: 12px 16px;
    background: #f4f6fb;
    border-radius: 12px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    text-align: left;
}

/* ======================================
 *  인증 선택 카드
 * ====================================*/
.certi-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.certi-card {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.12s ease,
        background-color 0.18s ease;
    text-align: left;
}

.certi-card:focus {
    outline: none;
}

.certi-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 26px rgba(15,23,42,0.08);
    transform: translateY(-1px);
    background-color: #f9fbff;
}

.certi-card .certi-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.certi-card--phone .certi-icon {
    background: #eff6ff;
}

.certi-card--ipin .certi-icon {
    background: #fef2f2;
}

.certi-card .certi-body {
    flex: 1;
}

.certi-card .certi-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.certi-card .certi-desc {
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

.certi-card .certi-note {
    font-size: 11px;
    color: #ef4444;
}

.certi-card .certi-arrow {
    font-size: 16px;
    color: #9ca3af;
    padding-left: 4px;
}

/* ======================================
 *  안내 문구 / 하단 버튼
 * ====================================*/
.join-info-box {
    margin-top: 0;
    margin-bottom: 22px;
    padding: 14px 16px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.join-warning {
    font-size: 12px;
    color: #b91c1c;
    margin-bottom: 6px;
}

.join-info-list {
    padding-left: 18px;
    margin: 0;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.6;
}

.join-info-list li + li {
    margin-top: 4px;
}

.join-bottom-btns {
    margin-top: 6px;
    display: flex;
    justify-content: center;
}

.join-bottom-btns .btn-secondary {
    min-width: 180px;
    height: 40px;
    border-radius: 999px;
    padding: 0 22px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
}

.join-bottom-btns .btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* ======================================
 *  모바일
 * ====================================*/
@media (max-width: 768px) {
    .join-page .join-layout .join-con-wrap {
        max-width: 100%;
        margin: 14px -4px 40px;
        padding: 22px 16px 26px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(15,23,42,0.06);
    }

    .join-steps {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}

/* 가입인증 페이지에서만 오른쪽 본문 폭 풀기 */
.sub-content.join-page {
    width: auto !important;      /* 기존 width:900px 같은 값 무시 */
    max-width: none !important;
}

/* 풀린 영역 안에서 카드 패널 가로 정리 */
.join-page .join-layout .join-con-wrap {
    width: 100%;
    max-width: 800px;           /* 필요하면 1000~1200px 사이로 조절 */
    margin: 24px auto 60px;      /* 오른쪽 영역 안에서 가운데 정렬 */
}

.join-bottom-btns .btn-secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.join-bottom-btns .btn-secondary {
    min-width: 200px;  /* 넓게 보이도록 */
    height: 46px;
    border-radius: 30px;   /* 999px → 적당한 값 */
}
