/* ===================================================================
   Real Review - Consent Modal CSS (전체)
   파일: /landing/bast/naver_m_20251125/modal/css/consent_modal.css
   목적: 개인정보 동의 모달 UI 전용 스타일
   =================================================================== */

/* 기본 리셋 (필요 최소한) */
.rr-modal,
.rr-modal * {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ===== 모달 오버레이 ===== */
.rr-modal {
    position: fixed;
    inset: 0;
    display: none;
    /* .show가 붙을 때 flex로 표시 */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    z-index: 9999;
}

.rr-modal.show {
    display: flex;
}

/* ===== 다이얼로그 ===== */
.rr-modal-dialog {
    position: relative;
    width: 320px;
    max-width: 92vw;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 20px 16px 18px;
    animation: rr-pop .18s ease-out;
}

@keyframes rr-pop {
    from {
        transform: translateY(6px);
        opacity: .85;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 닫기 버튼 */
.rr-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #222;
    padding: 6px;
    border-radius: 8px;
}

.rr-modal-close:hover {
    background: #f4f4f4;
}

/* 타이틀 */
.rr-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 28px 14px 0;
    /* 닫기 버튼 여백 고려 */
    color: #111;
}

/* ===== 폼 ===== */
#rrConsentForm {
    margin: 0;
}

/* 체크 영역 */
.rr-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    user-select: none;
}

/* “자세히보기” */
.rr-check .rr-more {
    margin-left: 4px;
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

.rr-check .rr-more:hover {
    text-decoration: underline;
}

/* 구분선 */
.rr-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 14px 0;
}

/* 입력 필드 그룹 */
.rr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.rr-field label {
    font-size: 12px;
    color: #666;
}

.rr-field input {
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.rr-field input:focus {
    border-color: #eee8ff;
    box-shadow: 0 0 0 3px #eee8ff;
}

/* 체크박스 */
.rr-check {
    margin: 10px 0 12px;
}

/* 제출 버튼 */
.rr-btn {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform .05s ease, opacity .2s ease, background .2s ease;
    background: #c9b7fb;
    color: #1f1f1f;
}

.rr-btn:hover {
    opacity: .95;
}

.rr-btn:active {
    transform: translateY(1px);
}

.rr-btn[disabled] {
    background: #ead3d3;
    color: #3a3a3a;
    cursor: not-allowed;
}

/* ===== 체크박스 커스텀: 체크 시 “분홍색” ===== */
.rr-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: -3px;
    background: #fff;
    transition: all .15s ease;
}

.rr-check input[type="checkbox"]:hover {
    border-color: #ead3d3;
}

/* 체크하면 분홍색 + 흰색 체크마크 */
.rr-check input[type="checkbox"]:checked {
    border-color: #c9b7fb;
    background-color: #c9b7fb;
}

.rr-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

/* ===== 반응형 ===== */
@media (min-width: 420px) {
    .rr-modal-dialog {
        width: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-modal-dialog {
        animation: none;
    }
}