/* Agree Page Specific Styles */

.agree-container-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.agree-container { background-color: #fff; width: 100%; max-width: 600px; padding: 50px 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* 단계 표시 */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 40px; }
.step { font-size: 14px; color: #ccc; font-weight: 600; }
.step.active { color: var(--primary-navy); }
.step-line { width: 30px; height: 1px; background-color: #eee; }

.agree-header { text-align: center; margin-bottom: 40px; }
.agree-header h2 { font-size: 26px; font-weight: 800; color: var(--primary-navy); margin-bottom: 10px; }
.agree-header p { color: var(--text-sub); font-size: 15px; }

/* 약관 체크박스 스타일 */
.check-all-box { background-color: #f9f9f9; padding: 25px; border-radius: 12px; margin-bottom: 30px; border: 1px solid #eee; }
.term-item { padding: 15px 10px; border-bottom: 1px solid #f5f5f5; }
.term-title-row { display: flex; justify-content: space-between; align-items: center; }
.agree-container label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-text { font-size: 15px; font-weight: 600; }
.sub-text { font-size: 13px; color: #888; margin-top: 8px; margin-left: 28px; }
.view-btn { font-size: 13px; color: #999; text-decoration: underline; background: none; border: none; cursor: pointer; }

/* 버튼 스타일 */
.next-btn {
    width: 100%; height: 55px; background-color: #eee; color: #aaa; border: none; border-radius: 8px;
    font-size: 17px; font-weight: 700; margin-top: 40px; cursor: not-allowed; transition: all 0.2s;
}
.next-btn.active { background-color: var(--primary-navy); color: #fff; cursor: pointer; }

/* ========================================= */
/* ✅ 모달창 관련 스타일 (화면 중앙 정렬) ✅ */
/* ========================================= */

.modal {
    display: none; /* 평소에는 숨김, JS에서 flex로 전환됨 */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은 배경 */
    
    /* 🔥 화면 한가운데 정렬을 위한 핵심 설정 🔥 */
    align-items: center; 
    justify-content: center; 
}

/* 실제 하얀색 약관 내용 박스 */
.modal-content {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    width: 90%; 
    max-width: 500px; /* 창이 너무 넓어지지 않게 고정 */
    max-height: 75vh; /* 화면 높이의 75%까지만 커지게 제한 */
    overflow-y: auto; /* 내용이 길어지면 내부에서 스크롤 생성 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-btn {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* ✅ 약관 본문 영역 */
.modal-body {
    line-height: 1.6;
    font-size: 14px;
    color: #555;
    /* 🔥 JS의 줄바꿈(\n)을 화면에 그대로 인식시켜주는 속성 🔥 */
    white-space: pre-line; 
    padding-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.confirm-btn {
    padding: 10px 30px;
    background-color: #4CAF50; /* 버튼 색상 (원하는 색으로 변경 가능) */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
}

.confirm-btn:hover {
    background-color: #45a049;
}

.close-btn { cursor: pointer; font-size: 24px; color: #999; }
