/* ===== 모달 공통 ===== */
.modal-dim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 4vh 0;
}
.modal-dim.active {
    display: flex;
}

.modal {
    display: none;
    width: 100%;
}
.modal.active {
    display: block;
}

.modal-card {
    position: relative;
    width: min(92vw, 520px);
    margin: auto;
}
.modal-card .modal-bg {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== 오버레이 요소 공통 ===== */
.ov {
    position: absolute;
    box-sizing: border-box;
}

/* 입력칸: 라벨/콜론이 보이도록 기본 투명. 라벨 오른쪽 영역에 올림 */
.ov-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: clamp(13px, 3.6vw, 19px);
    font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: #222;
    padding: 0;
}
/* 휴대전화: 이미지에 박힌 플레이스홀더를 덮기 위해 흰 배경 사용 */
.ov-input.opaque {
    background: #fff;
}
.ov-input::placeholder {
    color: #b5b5b5;
}
textarea.ov-input {
    resize: none;
    line-height: 1.3;
}

/* 동의 체크박스 영역 */
.ov-check {
    cursor: pointer;
}
.ov-check img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.ov-check.checked img {
    display: block;
}

/* 닫기(X) / 확인 등 단순 클릭 영역 */
.ov-hit {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

/* 제출/확인 버튼: 비활성(흑백)·활성(컬러) 두 이미지를 교체 */
.ov-imgbtn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    line-height: 0;
}
.ov-imgbtn img {
    width: 100%;
    height: 100%;
    display: block;
}
.ov-imgbtn.disabled {
    cursor: not-allowed;
}

/* ===== 업로드 / 미리보기 (뮤즈 인증) ===== */
.ov-upload {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}
.file-input-hidden {
    display: none;
}
.ov-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    overflow: hidden;
}
.ov-preview .thumb {
    position: relative;
    width: 18%;
    aspect-ratio: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
}
.ov-preview .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ov-preview .thumb .remove {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
