/* 身分證上傳區塊的樣式 */

.upload-box {
  border: 2px dashed #bbb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: #225EDC;
  background-color: #eaf1ff;
}

.upload-box p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.upload-box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  color: #225EDC;
}

.image-preview {
  margin-top: 15px;
  text-align: center;
height: auto;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
display: block;
height: auto; 
}

.error-message {
  color: #d9534f;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}