@charset "UTF-8";

.error-message {
    color: #d32f2f;
    font-size: 0.85em;
    margin-top: 4px;
    padding: 0 8px;
    display: none; /* 기본적으로 숨김 */
}
.is-invalid {
    border: 1px solid #d32f2f !important;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}
.is-valid {
    /*
    border: 1px solid #388e3c;
    box-shadow: 0 0 0 0.2rem rgba(56, 142, 60, 0.25);
    */
}
.survey-file-upload-wrapper {
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.survey-file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}
img.survey-thumbnail{
   max-height: 200px; 
}

.form-group .form-conts.block {
    display: block;
}

/* attach file download */
:root {
    /* 색상 변수 정의 */ 
    --attachfile-primary-color: #3f51b5; /* 다크 블루 계열 */
    --attachfile-secondary-color: #6c757d;
    --attachfile-background-color: #f8f9fa;
    --attachfile-card-background: #ffffff;
    --attachfile-border-color: #e9ecef;
}

/* 목록 컨테이너 스타일 */
.attachment-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

/* 각 파일 항목 스타일 */
.attachment-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 12px;
    border-bottom: 1px solid var(--attachfile-border-color);
}

/* 마지막 항목의 하단 테두리 제거 */
.attachment-list li:last-child {
    border-bottom: none;
}

/* 링크(파일 이름) 스타일 */
.file-name-link {
    text-decoration: none;
    color: #495057; /* 다크 텍스트 */
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 120px); /* 크기 정보를 위한 공간 확보 */
}

.file-name-link:hover {
    color: var(--attachfile-primary-color); /* 호버 시 강조 색상 */
}

/* 파일 크기 스타일 */
.file-size {
    font-size: 14px;
    color: var(--attachfile-secondary-color);
    font-weight: 400;
    flex-shrink: 0;
    margin-left: 10px;
}