/* Survey New Design - Modern & Clean */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.survey-page {
    font-family: 'NanumSquare', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

/* 테마 변수 - 프로그램으로 테마 선택 가능하도록 CSS 변수 사용 */
:root {
    /* 기본 테마 */
    --theme-primary: #4A90E2;
    --theme-secondary: #50C878;
    --theme-gradient-start: #667eea;
    --theme-gradient-end: #764ba2;
    --theme-text-primary: #2C3E50;
    --theme-text-secondary: #7F8C8D;
    --theme-border: #E1E8ED;
    --theme-bg-light: #F8F9FA;
    --theme-bg-white: #FFFFFF;
    --theme-progress-bg: #E1E8ED;
    --theme-error: #E74C3C;
    --theme-success: #27AE60;
}

/* 테마 선택 예시 - 나중에 프로그램으로 추가 가능
.survey_view[data-theme="blue"] {
    --theme-primary: #4A90E2;
    --theme-gradient-start: #667eea;
    --theme-gradient-end: #764ba2;
}

.survey_view[data-theme="green"] {
    --theme-primary: #27AE60;
    --theme-gradient-start: #56ab2f;
    --theme-gradient-end: #a8e063;
}

.survey_view[data-theme="orange"] {
    --theme-primary: #E67E22;
    --theme-gradient-start: #f2994a;
    --theme-gradient-end: #f2c94c;
}
*/

/* 호환성을 위한 변수 매핑 */
:root {
    --primary-color: var(--theme-primary);
    --secondary-color: var(--theme-secondary);
    --text-primary: var(--theme-text-primary);
    --text-secondary: var(--theme-text-secondary);
    --border-color: var(--theme-border);
    --bg-light: var(--theme-bg-light);
    --bg-white: var(--theme-bg-white);
    --progress-bg: var(--theme-progress-bg);
    --error-color: var(--theme-error);
    --success-color: var(--theme-success);
    /* 메인 사이트와 호환을 위한 변수 */
    --primary-blue: #0066FF;
    --gray: #666666;
}

body {
    font-family: 'NanumSquare', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
}

#wrap {
    max-width: 900px;
    margin: 0 auto;
}

.survey_view {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Header Section */
.surveyview_logo {
    background: #FFFFFF;
    padding: 15px 20px;
    text-align: center;
}

.surveyview_logo a {
    display: inline-block;
}

.surveyview_logo img {
    max-width: 120px;
    max-height: 50px;
    height: auto;
    object-fit: contain;
}

/* Logo (기본 로고) */
.surveyview_logo .logo {
    display: inline-block;
}

.surveyview_logo .logo a {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    gap: 4px;
    justify-content: center;
}

.surveyview_logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.surveyview_logo .logo-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
}

/* Survey Title Section */
.survey_data {
    padding: 0;
}

.width850 {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 30px 30px 20px;
}

.survey_title {
    margin-bottom: 20px;
}

.survey_title .subject {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.survey_title .subject dt {
    display: none;
}

.survey_title .subject dd {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}

.survey_title .request {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.survey_title .request dt {
    display: none;
}

.survey_title .request dd {
    flex: 1;
}

/* Progress Bar */
#contents {
    position: relative;
}

.graph {
    background: var(--progress-bg);
    height: 16px;
    border-radius: 8px;
    margin: 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.graph .progress-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    transition: width 0.3s ease;
    min-width: 0;
}

.graph img {
    display: none;
}

.graph p {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    z-index: 1;
}

/* Survey Content */
.survey_content {
    padding: 0 30px 30px;
}

.question {
    margin-bottom: 40px;
}

.question h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-light);
    border-left: 4px solid var(--theme-primary);
    border-radius: 4px;
}

.question h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.question h6 span {
    color: var(--theme-primary);
    font-weight: 700;
}

/* Question Header Style (from report/index.php) */
.question-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.question-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    max-width: 50px;
    width: auto;
    height: 30px;
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.question-title {
    font-size: 16px;
    font-weight: 450;
    color: var(--text-primary);
}

.question img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

/* View Options */
.view {
    margin-bottom: 1px;
    position: relative;
}

.view dt {
    margin-bottom: 1px;
    position: relative;
    padding: 4px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.view dt:hover {
    background-color: var(--bg-light);
}

/* 라인 전체 클릭 가능하게 */
.view dt label {
    cursor: pointer;
    display: block;
    width: 100%;
    padding: 4px 0;
}

/* 커스텀 라디오 버튼 - 모든 경우 커버 */
.view dt input[type="radio"],
.view input[type="radio"],
.survey_content input[type="radio"],
table input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.view dt input[type="radio"] + label,
.view input[type="radio"] + label,
.survey_content input[type="radio"] + label,
table input[type="radio"] + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    line-height: 20px;
    min-height: 24px;
}

.view dt input[type="radio"] + label:before,
.view input[type="radio"] + label:before,
.survey_content input[type="radio"] + label:before,
table input[type="radio"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--theme-border);
    border-radius: 50%;
    background: var(--bg-white);
    transition: all 0.2s;
}

.view dt input[type="radio"]:checked + label:before,
.view input[type="radio"]:checked + label:before,
.survey_content input[type="radio"]:checked + label:before,
table input[type="radio"]:checked + label:before {
    border-color: var(--theme-primary);
    background: var(--bg-white);
}

.view dt input[type="radio"]:checked + label:after,
.view input[type="radio"]:checked + label:after,
.survey_content input[type="radio"]:checked + label:after,
table input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--theme-primary);
}

.view dt input[type="radio"]:focus + label:before,
.view input[type="radio"]:focus + label:before,
.survey_content input[type="radio"]:focus + label:before,
table input[type="radio"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 커스텀 체크박스 - 모든 경우 커버 */
.view dt input[type="checkbox"],
.view input[type="checkbox"],
.survey_content input[type="checkbox"],
table input[type="checkbox"],
.check1_5,
.check1_9_end {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* 설문 작성 페이지(data.php)의 체크박스는 보이도록 예외 처리 */
.container label input[type="checkbox"]:not(.check1_5):not(.check1_9_end),
.container p label input[type="checkbox"],
#item1_7 label input[type="checkbox"],
table.item_list label input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    margin-right: 5px;
    vertical-align: middle;
}

.view dt input[type="checkbox"] + label,
.view input[type="checkbox"] + label,
.survey_content input[type="checkbox"] + label,
table input[type="checkbox"] + label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    line-height: 20px;
    min-height: 24px;
}

.view dt input[type="checkbox"] + label:before,
.view input[type="checkbox"] + label:before,
.survey_content input[type="checkbox"] + label:before,
table input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--theme-border);
    border-radius: 4px;
    background: var(--bg-white);
    transition: all 0.2s;
}

.view dt input[type="checkbox"]:checked + label:before,
.view input[type="checkbox"]:checked + label:before,
.survey_content input[type="checkbox"]:checked + label:before,
table input[type="checkbox"]:checked + label:before {
    border-color: var(--theme-primary);
    background: var(--theme-primary);
}

.view dt input[type="checkbox"]:checked + label:after,
.view input[type="checkbox"]:checked + label:after,
.survey_content input[type="checkbox"]:checked + label:after,
table input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.view dt input[type="checkbox"]:focus + label:before,
.view input[type="checkbox"]:focus + label:before,
.survey_content input[type="checkbox"]:focus + label:before,
table input[type="checkbox"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* label 기본 스타일 제거 - 위에서 처리 */

.view dd {
    margin-left: 26px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.view dd.tl {
    margin-left: 0;
}

.view dd img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.view dd img:hover {
    opacity: 0.9;
}

/* 커스텀 Text Inputs */
.view dt input[type="text"],
.view dt input[type="number"],
.view dt textarea {
    padding: 10px 12px;
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    width: 100%;
    max-width: 500px;
    transition: all 0.2s;
    background: var(--bg-white);
}

.view dt input[type="text"]:focus,
.view dt input[type="number"]:focus,
.view dt textarea:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.view dt input[type="text"]:hover,
.view dt input[type="number"]:hover,
.view dt textarea:hover {
    border-color: var(--theme-primary);
}

/* 커스텀 Select - 모든 경우 커버 */
.view dt select,
.view select,
.survey_content select,
table select,
select.required {
    padding: 4px 32px 4px 12px;
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    width: 100%;
    max-width: 500px;
    transition: all 0.2s;
    background: var(--bg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.view dt select:focus,
.view select:focus,
.survey_content select:focus,
table select:focus,
select.required:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.view dt select:hover,
.view select:hover,
.survey_content select:hover,
table select:hover,
select.required:hover {
    border-color: var(--theme-primary);
}

.view dt select option,
.view select option,
.survey_content select option,
table select option,
select.required option {
    padding: 10px;
    background: var(--bg-white);
    color: var(--text-primary);
}

.view dt textarea {
    min-height: 100px;
    resize: vertical;
}

/* Tables */
.survey_content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.survey_content table td {
    padding: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 13px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    hyphens: auto;
}

.survey_content table td.tl {
    text-align: left;
}

.survey_content table td label {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
}

.survey_content table th {
    padding: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Buttons */
.btn_next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.btn-survey-prev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-survey-prev:hover {
    background: var(--bg-light);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.btn-survey-prev:active {
    transform: translateY(0);
}

.btn-survey-prev svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-survey-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bg-white);
    background: var(--theme-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-survey-next:hover {
    background: var(--theme-gradient-start);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-survey-next:active {
    transform: translateY(0);
}

.btn-survey-next svg {
    flex-shrink: 0;
}

.btn-reset,
a.btn-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.btn-reset:hover,
a.btn-reset:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: var(--bg-light);
}

.btn_zipcode {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.btn_zipcode img {
    max-width: 100px;
    height: auto;
}

/* Color Classes */
.colorbb {
    color: var(--theme-primary);
    font-weight: 600;
}

/* Notice Image */
.pdt10 img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    #wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
    }
    
    .survey_view {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
    
    .width850,
    .survey_content {
        padding: 20px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .survey_data {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .surveyview_logo {
        padding: 12px;
    }
    
    .survey_title .subject dd {
        font-size: 16px;
    }
    
    .question h6 {
        font-size: 15px;
    }
    
    .graph {
        margin: 0 15px 20px;
    }
    
    /* 척도 테이블 모바일 처리 (5점, 3점, 6점, 10점 등) */
    .scale5-table,
    .scale-table {
        display: none; /* 모바일에서 테이블 전체 숨기기 */
    }
    
    /* 복수선택 테이블 모바일 처리 */
    .multi-select-table,
    .multi-radio-table {
        display: none; /* 모바일에서 테이블 전체 숨기기 */
    }
    
    /* 모바일 복수선택 카드 컨테이너 */
    .multi-select-mobile-container {
        display: block;
        width: 100%;
    }
    
    .multi-select-mobile-item {
        margin-bottom: 20px;
        background: var(--bg-white);
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .multi-select-mobile-item:last-child {
        margin-bottom: 0;
    }
    
    .multi-select-mobile-label {
        padding: 15px;
        font-weight: 600;
        font-size: 15px;
        line-height: 1.5;
        color: var(--text-primary);
        border-bottom: 1px solid var(--theme-border);
        background: var(--bg-light);
    }
    
    .multi-select-mobile-options {
        padding: 10px 0;
    }
    
    .multi-select-option-label {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        margin: 0;
        cursor: pointer;
        transition: background-color 0.2s;
        border-bottom: 1px solid var(--theme-border);
    }
    
    .multi-select-option-label:last-child {
        border-bottom: none;
    }
    
    .multi-select-option-label:hover {
        background: var(--bg-light);
    }
    
    /* 모바일 카드 내부 input은 기본 스타일로 표시 (기존 CSS 오버라이드) */
    .multi-select-mobile-container .view input[type="checkbox"],
    .multi-select-mobile-container .survey_content input[type="checkbox"],
    .multi-select-mobile-container table input[type="checkbox"],
    .multi-select-mobile-container input[type="checkbox"],
    .multi-select-mobile-container .view input[type="radio"],
    .multi-select-mobile-container .survey_content input[type="radio"],
    .multi-select-mobile-container table input[type="radio"],
    .multi-select-mobile-container input[type="radio"] {
        margin: 0 12px 0 0 !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
        cursor: pointer !important;
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        clip: auto !important;
        -webkit-clip-path: none !important;
        clip-path: none !important;
    }
    
    .multi-select-mobile-container .view input[type="checkbox"],
    .multi-select-mobile-container .survey_content input[type="checkbox"],
    .multi-select-mobile-container table input[type="checkbox"],
    .multi-select-mobile-container input[type="checkbox"] {
        appearance: checkbox !important; /* 체크박스 기본 스타일 */
        -webkit-appearance: checkbox !important;
        -moz-appearance: checkbox !important;
    }
    
    .multi-select-mobile-container .view input[type="radio"],
    .multi-select-mobile-container .survey_content input[type="radio"],
    .multi-select-mobile-container table input[type="radio"],
    .multi-select-mobile-container input[type="radio"] {
        appearance: radio !important; /* 라디오 버튼 기본 스타일 */
        -webkit-appearance: radio !important;
        -moz-appearance: radio !important;
    }
    
    /* 모바일 카드 내부의 커스텀 label 스타일 제거 */
    .multi-select-mobile-container .view input[type="checkbox"] + label:before,
    .multi-select-mobile-container .view input[type="checkbox"] + label:after,
    .multi-select-mobile-container .survey_content input[type="checkbox"] + label:before,
    .multi-select-mobile-container .survey_content input[type="checkbox"] + label:after,
    .multi-select-mobile-container table input[type="checkbox"] + label:before,
    .multi-select-mobile-container table input[type="checkbox"] + label:after,
    .multi-select-mobile-container input[type="checkbox"] + label:before,
    .multi-select-mobile-container input[type="checkbox"] + label:after,
    .multi-select-mobile-container .view input[type="radio"] + label:before,
    .multi-select-mobile-container .view input[type="radio"] + label:after,
    .multi-select-mobile-container .survey_content input[type="radio"] + label:before,
    .multi-select-mobile-container .survey_content input[type="radio"] + label:after,
    .multi-select-mobile-container table input[type="radio"] + label:before,
    .multi-select-mobile-container table input[type="radio"] + label:after,
    .multi-select-mobile-container input[type="radio"] + label:before,
    .multi-select-mobile-container input[type="radio"] + label:after {
        display: none !important;
        content: none !important;
    }
    
    /* 모바일 카드 내부 label의 padding 조정 (input이 보이므로 커스텀 label 스타일 제거) */
    .multi-select-mobile-container .view input[type="checkbox"] + label,
    .multi-select-mobile-container .survey_content input[type="checkbox"] + label,
    .multi-select-mobile-container table input[type="checkbox"] + label,
    .multi-select-mobile-container input[type="checkbox"] + label,
    .multi-select-mobile-container .view input[type="radio"] + label,
    .multi-select-mobile-container .survey_content input[type="radio"] + label,
    .multi-select-mobile-container table input[type="radio"] + label,
    .multi-select-mobile-container input[type="radio"] + label {
        padding-left: 0 !important;
        position: static !important;
    }
    
    /* multi-select-option-label은 padding 유지 (카드 내부 여백을 위해) */
    .multi-select-option-label {
        padding: 12px 15px !important;
    }
    
    .multi-select-option-label .option-text {
        flex: 1;
        font-size: 14px;
        line-height: 1.5;
        color: var(--text-primary);
    }
    
    .scale5-mobile-container {
        display: block;
        width: 100%;
    }
    
    .scale5-mobile-item {
        margin-bottom: 20px;
        padding: 20px;
        background: var(--bg-white);
        border: 1px solid var(--theme-border);
        border-radius: 8px;
    }
    
    .scale5-mobile-item:last-child {
        margin-bottom: 0;
    }
    
    .scale5-mobile-label {
        display: block;
        margin-bottom: 12px;
        font-weight: 600;
        font-size: 15px;
        line-height: 1.5;
        color: var(--text-primary);
    }
    
    .scale5-mobile-select {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid var(--theme-border);
        border-radius: 8px;
        font-size: 15px;
        background: var(--bg-white);
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .scale5-mobile-select:focus {
        outline: none;
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
    
    /* 모바일: 다음으로 버튼 전체 너비, 하단 고정 */
    .btn_next {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0;
        margin: 0;
        border-top: none;
        background: transparent;
        z-index: 1000;
        flex-direction: row;
        gap: 0;
    }
    
    .btn-survey-prev {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 18px 16px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 0;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
        min-height: 60px;
    }
    
    .btn-survey-prev span {
        flex-shrink: 0;
    }
    
    .btn-survey-prev svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .btn-survey-next {
        flex: 1;
        display: flex;
        padding: 18px 16px;
        font-size: 16px;
        border-radius: 0;
        margin: 0;
        justify-content: center;
        align-items: center;
        gap: 8px;
        min-height: 60px;
    }
    
    .btn-survey-next span {
        flex-shrink: 0;
    }
    
    .btn-survey-next svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .btn-survey-next:hover,
    .btn-survey-prev:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* 버튼이 콘텐츠를 가리지 않도록 하단 여백 추가 */
    .survey_content {
        padding-bottom: 20px !important;
    }
    
    /* 노란색 경고 박스가 버튼에 가려지지 않도록 하단 마진 추가 */
    .survey-bottom-notice {
        margin-bottom: 80px !important;
    }
    
    /* attention_box 내부 이미지 모바일 반응형 처리 */
    .attention_box {
        padding: 15px !important;
    }
    
    .attention_box img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* 모바일에서는 column_check 로 만들어진 다단 테이블만 한 줄씩 보여주기 (단분리 효과 제거) */
    /* column-check-table 클래스가 있는 테이블만 대상으로 함 */
    .survey_content table.column-check-table tr,
    .survey_content table.column-check-table td {
        display: block;
        width: 100% !important;
    }
    
    /* 어의차이척도 테이블 모바일 반응형 처리 (한 줄 유지) */
    .semantic-diff-table {
        width: 100% !important;
        table-layout: auto !important;
    }
    
    .semantic-diff-table tr {
        display: table-row !important;
    }
    
    .semantic-diff-table td {
        display: table-cell !important;
        width: auto !important;
        padding: 10px 8px !important;
        vertical-align: middle !important;
    }
    
    .semantic-diff-table td:first-child,
    .semantic-diff-table td:last-child {
        width: 25% !important;
        min-width: 80px !important;
    }
    
    .semantic-diff-table td:nth-child(2) {
        width: 50% !important;
    }
    
    /* 어의차이척도 슬라이더 위쪽 마진 추가 */
    .semantic-diff-table div[id^="slider-range-max"] {
        margin-top: 8px;
    }
    
    /* 드롭다운 테이블(점수선택, 번호선택) 모바일 반응형 처리 (한 줄 유지) */
    .score-select-table,
    .number-select-table {
        width: 100% !important;
        table-layout: auto !important;
    }
    
    .score-select-table tr,
    .number-select-table tr {
        display: table-row !important;
    }
    
    .score-select-table td,
    .number-select-table td {
        display: table-cell !important;
        width: auto !important;
        padding: 10px 8px !important;
        vertical-align: middle !important;
    }
    
    .score-select-table th,
    .number-select-table th {
        display: table-cell !important;
        padding: 10px 8px !important;
    }
    
    /* 다수주관식 테이블 모바일 반응형 처리 (한 줄 유지) */
    .multi-text-table {
        width: 100% !important;
        table-layout: auto !important;
    }
    
    .multi-text-table tr {
        display: table-row !important;
    }
    
    .multi-text-table td {
        display: table-cell !important;
        width: auto !important;
        padding: 10px 8px !important;
        vertical-align: middle !important;
    }
    
    .multi-text-table td:first-child,
    .multi-text-table td:last-child {
        width: 25% !important;
        min-width: 80px !important;
    }
    
    .multi-text-table td:nth-child(2) {
        width: 50% !important;
    }
    
    /* 다수주관식 인풋박스 스타일 */
    .multi-text-input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        border: 2px solid var(--theme-border) !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
    
    .multi-text-input:focus {
        outline: none !important;
        border-color: var(--theme-primary) !important;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
    }
    
    /* 테이블 셀 텍스트 줄바꿈 처리 (긴 텍스트가 셀 밖으로 나가지 않도록) */
    .survey_content table[style*="table-layout:fixed"] td,
    .survey_content table[style*="table-layout:fixed"] th {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .survey_content table[style*="table-layout:fixed"] td label,
    .survey_content table[style*="table-layout:fixed"] th label {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        display: block !important;
        max-width: 100% !important;
    }
    
    /* 한줄입력, 장문입력 입력창 모바일 반응형 처리 (인라인 스타일 오버라이드) */
    .view dt input[type="text"][style*="width:700px"],
    .view dt textarea[style*="width:700px"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .view dt input[type="text"].text1_5,
    .view dt textarea.text1_5 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 기타질문 사용자설정입력 모바일 반응형 처리 */
    .view dd input[type="text"][style*="width:100px"],
    .view dd input[type="text"].txt,
    .view dd input[type="text"].width80 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 기타질문 기간입력, 날짜입력 모바일 반응형 처리 */
    .view td input[type="text"][style*="width:70px"],
    .view td input[type="text"].width80 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* PC/태블릿 프레임에서는 모바일 스타일 비활성화 */
.device-frame.device-pc .scale5-table,
.device-frame.device-pc .scale-table,
.device-frame.device-tablet .scale5-table,
.device-frame.device-tablet .scale-table {
    display: table !important; /* PC/태블릿 프레임에서 테이블 보이기 */
}

.device-frame.device-pc .scale5-mobile-container,
.device-frame.device-tablet .scale5-mobile-container {
    display: none !important; /* PC/태블릿 프레임에서 모바일 select 컨테이너 숨기기 */
}

.device-frame.device-pc .multi-select-table,
.device-frame.device-pc .multi-radio-table,
.device-frame.device-tablet .multi-select-table,
.device-frame.device-tablet .multi-radio-table {
    display: table !important; /* PC/태블릿 프레임에서 테이블 보이기 */
}

.device-frame.device-pc .multi-select-mobile-container,
.device-frame.device-tablet .multi-select-mobile-container {
    display: none !important; /* PC/태블릿 프레임에서 모바일 카드 컨테이너 숨기기 */
}

/* PC에서 척도 테이블 보이기, 모바일 select 숨기기 (일반 브라우저) */
@media (min-width: 769px) {
    .scale5-table,
    .scale-table {
        display: table !important; /* PC에서 테이블 보이기 */
    }
    
    .scale5-mobile-container {
        display: none !important; /* PC에서 모바일 select 컨테이너 숨기기 */
    }
    
    .multi-select-table,
    .multi-radio-table {
        display: table !important; /* PC에서 테이블 보이기 */
    }
    
    .multi-select-mobile-container {
        display: none !important; /* PC에서 모바일 카드 컨테이너 숨기기 */
    }
}

/* Error States */
.view dt input.error,
.view dt textarea.error,
.view dt select.error {
    border-color: var(--theme-error);
}

/* Survey Bottom Notice */
.survey-bottom-notice {
    margin: 20px 0;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.survey-bottom-notice:before {
    content: '⚠';
    font-size: 20px;
    flex-shrink: 0;
}

.survey-bottom-notice p {
    margin: 0;
    flex: 1;
}

/* Loading States */
.btn-survey-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* label1_7 스타일 - 순위 선택 라벨 */
.label1_7 {
    display: inline-block !important;
    border: 2px solid var(--theme-border) !important;
    width: 600px !important;
    min-height: 44px !important;
    height: auto !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    background: var(--bg-white) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.label1_7:hover {
    border-color: var(--theme-primary) !important;
    background: var(--bg-light) !important;
}

.question ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.question ul li .label1_7 {
    flex: 1;
    width: auto !important;
}

/* 테이블 내 라디오/체크박스 */
.survey_content table td {
    padding: 16px 12px !important;
}

.survey_content table td .view {
    margin-bottom: 0;
}

.survey_content table td .view dt {
    padding: 8px;
    margin-bottom: 0;
}



/*ㅇ*/
.survey_content table td {
    cursor: pointer;
}

.survey_content table td:hover {
    background-color: var(--bg-light);
}

/* 테이블 내 라벨이 없는 라디오/체크박스 (다문항용) */
.survey_content table td > input[type="radio"]:only-child,
.survey_content table td > input[type="checkbox"]:only-child {
    position: relative;
    opacity: 1;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

/* 라벨이 없는 경우 :before, :after 제거 */
.survey_content table td > input[type="radio"]:only-child::before,
.survey_content table td > input[type="checkbox"]:only-child::before,
.survey_content table td > input[type="radio"]:only-child::after,
.survey_content table td > input[type="checkbox"]:only-child::after {
    display: none;
}

/* 테이블 내 텍스트 입력 필드 - 가변형 스타일 */
.survey_content table td input[type="text"],
.survey_content table th input[type="text"] {
    width: 100%;
    max-width: 80%;
    min-width: 80px;
    padding: 4px 4px;
    margin-right: 5px;
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.2s;
    background: var(--bg-white);
    box-sizing: border-box;
}

.survey_content table td input[type="text"]:focus,
.survey_content table th input[type="text"]:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.survey_content table td input[type="text"]:hover,
.survey_content table th input[type="text"]:hover {
    border-color: var(--theme-primary);
}

/* 총누계 입력 필드 (읽기 전용) */
.survey_content table th input[type="text"][readonly],
.survey_content table th input[type="text"].sum_check {
    background: var(--bg-light) !important;
    color: var(--text-primary);
    font-weight: 600;
    cursor: default;
}

.survey_content table th input[type="text"][readonly]:hover,
.survey_content table th input[type="text"].sum_check:hover {
    border-color: var(--theme-border) !important;
}

/* 입력 필드가 있는 셀은 호버 효과 제거 */
.survey_content table td:has(input[type="text"]):hover,
.survey_content table th:has(input[type="text"]):hover {
    background-color: transparent;
}

/* 입력 필드 주변 텍스트 스타일 */
.survey_content table td {
    white-space: nowrap;
}

/* 입력 필드와 인라인 텍스트 간격 조정 */
.survey_content table td input[type="text"] + text,
.survey_content table td input[type="text"] ~ text {
    margin-left: 4px;
}

/* 이메일 입력 필드 - 한 줄로 배치 */
.survey_content ul.email {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.survey_content ul.email li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    float: none;
}

.survey_content ul.email li input[type="text"].txt {
    padding: 4px 4px;
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-white);
    min-width: 150px;
}

.survey_content ul.email li input[type="text"].txt:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.survey_content ul.email li input[type="text"].txt:hover {
    border-color: var(--theme-primary);
}

.survey_content ul.email li select {
    padding: 4px 32px 4px 12px;
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 140px;
}

.survey_content ul.email li select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.survey_content ul.email li select:hover {
    border-color: var(--theme-primary);
}

.survey_content ul.email li .mrl5 {
    margin-left: 0;
}

/* 전화번호 입력 필드 - 한 줄로 배치 */
.survey_content ul.phone {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.survey_content ul.phone li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    width: 100%;
    flex-wrap: nowrap;
}

.survey_content ul.phone li label {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: fit-content;
}

.survey_content ul.phone li select {
    padding: 4px 32px 4px 12px;
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C3E50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    width: 90px;
    min-width: 90px;
    text-align: center;
}

.survey_content ul.phone li select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.survey_content ul.phone li select:hover {
    border-color: var(--theme-primary);
}

.survey_content ul.phone li input[type="text"].txt {
    padding: 4px 12px;
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-white);
    width: 110px;
    min-width: 110px;
    text-align: center;
}

.survey_content ul.phone li input[type="text"].txt:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.survey_content ul.phone li input[type="text"].txt:hover {
    border-color: var(--theme-primary);
}

.survey_content ul.phone li .phone-dash {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 4px;
    flex-shrink: 0;
}

/* 주소 입력 필드 - 한 줄로 배치 */
.survey_content .address-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.survey_content .address-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: fit-content;
    flex-shrink: 0;
}

.survey_content .address-group .address-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
}

.survey_content .address-group .address-inputs input[type="text"].txt {
    padding: 4px 12px;
    border: 2px solid var(--theme-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-white);
}

.survey_content .address-group .address-inputs input[type="text"]#member_addr_zip {
    width: 120px;
    min-width: 120px;
    text-align: center;
}

.survey_content .address-group .address-inputs input[type="text"].addr-full {
    flex: 1;
    min-width: 200px;
}

.survey_content .address-group .address-inputs input[type="text"].txt:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.survey_content .address-group .address-inputs input[type="text"].txt:hover {
    border-color: var(--theme-primary);
}

.survey_content .address-group .address-inputs input[type="text"][readonly] {
    background: var(--bg-light);
    cursor: default;
}

.survey_content .address-group .address-inputs input[type="text"][readonly]:hover {
    border-color: var(--theme-border);
}

.survey_content .btn_zipcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-white);
    background: var(--theme-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.survey_content .btn_zipcode:hover {
    background: var(--theme-gradient-start);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.survey_content .btn_zipcode:active {
    transform: translateY(0);
}

.survey_content .btn_zipcode img {
    display: none;
}

/* 개인정보확인 섹션 - dl 요소 간 간격 추가 */
.personal_info .persomal_content > dl {
    margin-bottom: 30px;
    margin-top: 30px;
}

/* 개인정보확인 섹션 내 select 박스 넓이 조정 (2910-3127 범위) - 기본 max-width 500px의 반으로 줄임 */
.personal_info .persomal_content dl dd select,
.personal_info .persomal_content ul.marriage li select {
    max-width: 250px !important;
    width: 100%;
}

/* 가로 옵션 공통 스타일 */
.options-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;          /* 옵션 사이 여백 */
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
}

.options-horizontal li {
    flex: 0 0 auto;
}

.options-horizontal li label {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #d0d7e0;
    border-radius: 6px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    white-space: nowrap;
}

/* 호버 */
.options-horizontal li label:hover {
    background-color: #e3f2fd;
    border-color: #4a90e2;
}

/* 선택 시 (라디오 & 체크박스 공통) */
.options-horizontal input[type="radio"]:checked + label,
.options-horizontal input[type="checkbox"]:checked + label {
    background-color: #4a90e2;
    color: white;
    border-color: #4a90e2;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* 차량 옵션은 조금 더 좁게 배치하고 싶을 때 (선택) */
.car-options li label {
    padding: 7px 12px;
    font-size: 13.5px;
}

/* 모바일에서 세로로 변경 (선택사항) */
@media (max-width: 640px) {
    .options-horizontal {
        flex-direction: column;
        gap: 10px;
    }
    
    .options-horizontal li label {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================
   설문 시작 페이지 (index.php) 스타일
   ============================================ */

.survey_index_page {
    padding-bottom: 50px;
}

.survey_index_content {
    padding: 40px 30px;
}

.survey_index_header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--theme-border);
}

.survey_index_title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    line-height: 1.4;
    word-break: keep-all;
}

.survey_index_company {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.survey_index_company strong {
    color: var(--theme-primary);
    font-weight: 600;
}

.survey_index_intro {
    margin-bottom: 40px;
}

.intro_box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--theme-border);
}

.intro_title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    line-height: 1.5;
    text-align: center;
}

.intro_title .highlight {
    color: var(--theme-primary);
    display: block;
    margin-top: 8px;
}

.intro_notice {
    background: var(--bg-white);
    border-left: 4px solid var(--theme-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.intro_notice p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.intro_notice p:last-child {
    margin-bottom: 0;
}

.warning_box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.warning_icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.warning_text {
    flex: 1;
    font-size: 13px;
    color: #856404;
    line-height: 1.6;
    font-weight: 500;
}

.attention_box {
    background: var(--bg-white);
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

/* attention_box 내부 이미지 반응형 처리 */
.attention_box img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 혼합선택 인풋박스 스타일 (원래 디자인 유지) */
.view dd.etc-input {
    margin-top: 8px;
    padding-left: 0;
}

.view dd.etc-input input.data1_2,
.view dd.etc-input input.data1_4 {
    margin-left: 0;
    padding: 6px 10px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    font-size: 13px;
    background: #ffffff;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    display: inline-block;
    vertical-align: middle;
    height: 28px;
    line-height: 28px;
    box-sizing: border-box;
}

.view dd.etc-input input.data1_2:focus,
.view dd.etc-input input.data1_4:focus {
    outline: none;
    border-color: #4a90e2;
}

.view dd.etc-input input.data1_2:disabled,
.view dd.etc-input input.data1_4:disabled {
    background: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.7;
}

.survey_info_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.info_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.info_item:hover {
    border-color: var(--theme-primary);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.info_item.highlight {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: var(--theme-primary);
}

.info_icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
}

.info_item.highlight .info_icon {
    background: var(--theme-primary);
    color: var(--bg-white);
}

.info_label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
    flex-shrink: 0;
}

.info_value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: right;
}

.info_item.highlight .info_value {
    color: var(--theme-primary);
    font-size: 16px;
}

.survey_index_form {
    margin-top: 40px;
}

.password_input_wrapper {
    margin-bottom: 24px;
}

.password_input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 14px 18px;
    border: 2px solid var(--theme-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s;
    background: var(--bg-white);
}

.password_input:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.password_input:hover {
    border-color: var(--theme-primary);
}

.password_input::placeholder {
    color: var(--text-secondary);
}

.survey_action_buttons {
    text-align: center;
    padding-top: 20px;
}

.btn_start_survey {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    min-width: 200px;
}

.btn_start_survey:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn_start_survey:active {
    transform: translateY(0);
}

.btn_start_survey .btn_icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.btn_start_survey:hover .btn_icon {
    transform: translateX(4px);
}

.btn_start_survey .btn_text {
    letter-spacing: -0.3px;
}

/* ul.marriage 라디오 버튼 스타일 수정 */
.personal_info .persomal_content ul.marriage li input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    cursor: pointer;
}

.personal_info .persomal_content ul.marriage li label {
    position: relative;
    margin: 0;
    padding: 0 0 0 28px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    display: inline-block;
}

.personal_info .persomal_content ul.marriage li label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--theme-border);
    border-radius: 50%;
    background: var(--bg-white);
    transition: all 0.2s;
}

.personal_info .persomal_content ul.marriage li input[type="radio"]:checked + label:before {
    border-color: var(--theme-primary);
    background: var(--bg-white);
}

.personal_info .persomal_content ul.marriage li input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-primary);
}

.personal_info .persomal_content ul.marriage li input[type="radio"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* 설문 시작 페이지 반응형 */
@media (max-width: 768px) {
    #wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .survey_view {
        width: 100%;
        max-width: 100%;
    }
    
    .survey_index_content {
        padding: 20px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .survey_index_title {
        font-size: 22px;
    }
    
    .intro_box {
        padding: 20px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .intro_title {
        font-size: 18px;
    }
    
    .info_label {
        min-width: 70px;
        font-size: 13px;
    }
    
    .info_value {
        font-size: 14px;
    }
    
    .info_item.highlight .info_value {
        font-size: 15px;
    }
    
    .btn_start_survey {
        width: 100%;
        max-width: 300px;
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* 자동차 옵션 스타일 - 자동차 종류와 브랜드 */
ul.marriage li .colorg7 {
    display: block;
    margin-top: 8px;
    margin-bottom: 16px;
}

.car-options-group {
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
    clear: both;
    width: 100%;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--theme-border);
}

.car-options-group dt {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding: 0 0 12px 0;
    background: transparent;
    display: block;
    width: 100%;
    clear: both;
    border-bottom: 2px solid var(--theme-border);
}

.car-options-group dt:hover {
    background: transparent;
}

.car-options-group dd.car-options-list {
    display: inline-block;
    margin: 0 12px 12px 0;
    padding: 0;
    vertical-align: top;
}

.car-options-group .car-options-list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.car-options-group .car-options-list label {
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    display: inline-block;
    line-height: 20px;
    min-height: 24px;
    font-size: 14px;
    color: var(--text-primary);
}

.car-options-group .car-options-list label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--theme-border);
    border-radius: 4px;
    background: var(--bg-white);
    transition: all 0.2s;
}

.car-options-group .car-options-list input[type="checkbox"]:checked + label:before {
    border-color: var(--theme-primary);
    background: var(--theme-primary);
}

.car-options-group .car-options-list input[type="checkbox"]:checked + label:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.car-options-group .car-options-list input[type="checkbox"]:focus + label:before {
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.car-options-group .car-options-list input[type="checkbox"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.car-options-group .car-options-list input[type="checkbox"]:disabled + label:before {
    background: var(--bg-light);
    border-color: var(--theme-border);
    cursor: not-allowed;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .car-options-group .car-options-list {
        display: block;
        margin: 0 0 12px 0;
    }
}

/* 기타질문 인구통계 유형 - 입력 박스 크기 조정 */
.demographic-table input[type="text"],
.demographic-table input[type="number"] {
    width: auto !important;
    max-width: 200px !important;
    min-width: 60px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
}

.demographic-table select {
    width: auto !important;
    max-width: 300px !important;
    min-width: 80px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
}

.demographic-table .width30 {
    width: 100px !important;
    max-width: 50px !important;
}

.demographic-table .width50 {
    width: 120px !important;
    max-width: 70px !important;
}

/* 인구통계 테이블 인풋박스 인라인 스타일 강제 적용 */
.demographic-table input[type="text"][style*="width:80px"],
.demographic-table input[type="text"][style*="width:80px;"] {
    width: 80px !important;
    max-width: 80px !important;
    min-width: 80px !important;
}

/* ============================================
   디바이스 미리보기 (Preview Device Selector)
   ============================================ */

.device-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.device-preview-tabs {
    display: flex;
    background: #7686ff;
    padding: 0;
    margin: 0;
}

.device-tab {
    padding: 12px 24px;
    background: #444;
    color: #999;
    border: none;
    border-right: 1px solid #555;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.device-tab:hover {
    background: #555;
    color: #fff;
}

.device-tab.active {
    background: #fff;
    color: #333;
    font-weight: 600;
}

.device-preview-notice {
    padding: 8px 20px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.device-preview-wrapper {
    padding: 20px;
    background: #e0e0e0;
    min-height: calc(100vh - 100px);
    height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.device-preview-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.device-frame {
    background: #000;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.device-frame.device-pc {
    width: 100%;
    max-width: 1200px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    height: auto;
    min-height: 100%;
}

.device-frame.device-tablet {
    width: 768px;
    padding: 15px;
    height: auto;
    min-height: 100%;
}

.device-frame.device-mobile {
    width: 375px;
    padding: 8px;
}

.device-frame.device-mobile::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 0 auto 10px;
}

.device-content {
    background: #fff;
    border-radius: 10px;
    overflow: visible;
    width: 100%;
    height: auto;
    min-height: 100%;
}

.device-frame.device-pc .device-content {
    border-radius: 0;
}

.device-frame.device-tablet .device-content {
    border-radius: 8px;
}

.device-frame.device-mobile .device-content {
    border-radius: 25px;
    min-height: 600px;
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
    /* 스크롤바 숨기기 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.device-frame.device-mobile .device-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* 모바일 프레임 내부 스타일 조정 */
.device-frame.device-mobile #wrap {
    max-width: 100%;
    margin: 0;
}

.device-frame.device-mobile .survey_view {
    border-radius: 0;
    box-shadow: none;
}

.device-frame.device-mobile .survey_content {
    padding: 0 15px 20px;
}

.device-frame.device-mobile .width850 {
    padding: 20px 15px;
}

.device-frame.device-mobile .surveyview_logo {
    padding: 15px;
}

/* 태블릿 프레임 내부 스타일 */
.device-frame.device-tablet #wrap {
    max-width: 100%;
}

.device-frame.device-tablet .survey_content {
    padding: 0 20px 25px;
}

/* 모바일 프레임 내부에서 모바일 스타일 강제 적용 (브라우저 크기와 무관하게) */
.device-frame.device-mobile body {
    padding: 0 !important;
}

.device-frame.device-mobile #wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
}

.device-frame.device-mobile .survey_view {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

.device-frame.device-mobile .width850,
.device-frame.device-mobile .survey_content {
    padding: 20px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.device-frame.device-mobile .survey_data {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.device-frame.device-mobile .surveyview_logo {
    padding: 12px !important;
}

.device-frame.device-mobile .survey_title .subject dd {
    font-size: 16px !important;
}

.device-frame.device-mobile .question h6 {
    font-size: 15px !important;
}

.device-frame.device-mobile .graph {
    margin: 0 15px 20px !important;
}

/* 모바일 프레임 내부 척도 테이블 숨기기 */
.device-frame.device-mobile .scale5-table,
.device-frame.device-mobile .scale-table {
    display: none !important;
}

/* 모바일 프레임 내부 select 컨테이너 보이기 */
.device-frame.device-mobile .scale5-mobile-container {
    display: block !important;
    width: 100% !important;
}

/* 모바일 프레임 내부 복수선택 테이블 숨기기 */
.device-frame.device-mobile .multi-select-table,
.device-frame.device-mobile .multi-radio-table {
    display: none !important;
}

/* 모바일 프레임 내부 복수선택 카드 컨테이너 보이기 */
.device-frame.device-mobile .multi-select-mobile-container {
    display: block !important;
    width: 100% !important;
}

/* 모바일 프레임 내부 복수선택 카드의 input 요소 강제 표시 (기존 CSS 오버라이드) */
.device-frame.device-mobile .multi-select-mobile-container .view input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container table input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container .view input[type="radio"],
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="radio"],
.device-frame.device-mobile .multi-select-mobile-container table input[type="radio"],
.device-frame.device-mobile .multi-select-mobile-container input[type="radio"] {
    margin: 0 12px 0 0 !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
}

.device-frame.device-mobile .multi-select-mobile-container .view input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container table input[type="checkbox"],
.device-frame.device-mobile .multi-select-mobile-container input[type="checkbox"] {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
}

.device-frame.device-mobile .multi-select-mobile-container .view input[type="radio"],
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="radio"],
.device-frame.device-mobile .multi-select-mobile-container table input[type="radio"],
.device-frame.device-mobile .multi-select-mobile-container input[type="radio"] {
    appearance: radio !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
}

/* 모바일 프레임 내부 복수선택 카드의 커스텀 label 스타일 제거 */
.device-frame.device-mobile .multi-select-mobile-container .view input[type="checkbox"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container .view input[type="checkbox"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="checkbox"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="checkbox"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container table input[type="checkbox"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container table input[type="checkbox"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container input[type="checkbox"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container input[type="checkbox"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container .view input[type="radio"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container .view input[type="radio"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="radio"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="radio"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container table input[type="radio"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container table input[type="radio"] + label:after,
.device-frame.device-mobile .multi-select-mobile-container input[type="radio"] + label:before,
.device-frame.device-mobile .multi-select-mobile-container input[type="radio"] + label:after {
    display: none !important;
    content: none !important;
}

/* 모바일 프레임 내부 복수선택 카드 스타일 */
.device-frame.device-mobile .multi-select-mobile-item {
    margin-bottom: 20px !important;
    background: var(--bg-white) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.device-frame.device-mobile .multi-select-mobile-label {
    padding: 15px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--theme-border) !important;
    background: var(--bg-light) !important;
}

.device-frame.device-mobile .multi-select-mobile-options {
    padding: 10px 0 !important;
}

.device-frame.device-mobile .multi-select-option-label {
    display: flex !important;
    align-items: center !important;
    padding: 12px 15px !important;
    padding-left: 15px !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

/* 모바일 프레임 내부 label의 padding 오버라이드 */
.device-frame.device-mobile .multi-select-mobile-container .view input[type="checkbox"] + label,
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="checkbox"] + label,
.device-frame.device-mobile .multi-select-mobile-container table input[type="checkbox"] + label,
.device-frame.device-mobile .multi-select-mobile-container input[type="checkbox"] + label,
.device-frame.device-mobile .multi-select-mobile-container .view input[type="radio"] + label,
.device-frame.device-mobile .multi-select-mobile-container .survey_content input[type="radio"] + label,
.device-frame.device-mobile .multi-select-mobile-container table input[type="radio"] + label,
.device-frame.device-mobile .multi-select-mobile-container input[type="radio"] + label {
    padding-left: 0 !important;
    position: static !important;
}

.device-frame.device-mobile .multi-select-option-label:last-child {
    border-bottom: none !important;
}

.device-frame.device-mobile .multi-select-option-label:hover {
    background: var(--bg-light) !important;
}

.device-frame.device-mobile .multi-select-option-label .option-text {
    flex: 1 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
}

/* 모바일 프레임 내부 버튼 스타일 */
.device-frame.device-mobile .btn_next {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-top: none !important;
    background: transparent !important;
    z-index: 1000 !important;
    flex-direction: row !important;
    gap: 0 !important;
}

.device-frame.device-mobile .btn-survey-prev {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 18px 16px !important;
    font-size: 15px !important;
    border-radius: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
    min-height: 60px !important;
}

.device-frame.device-mobile .btn-survey-prev svg {
    width: 18px !important;
    height: 18px !important;
}

.device-frame.device-mobile .btn-survey-next {
    flex: 1 !important;
    display: flex !important;
    padding: 18px 16px !important;
    font-size: 16px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 60px !important;
}

.device-frame.device-mobile .btn-survey-next svg {
    width: 18px !important;
    height: 18px !important;
}

.device-frame.device-mobile .btn-survey-next:hover,
.device-frame.device-mobile .btn-survey-prev:hover {
    transform: none !important;
    box-shadow: none !important;
}

.device-frame.device-mobile .survey_content {
    padding-bottom: 80px !important;
}

.device-frame.device-mobile .survey-bottom-notice {
    margin-bottom: 80px !important;
}