/* KS-15 설문 스타일시트 */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

#wrap {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* 헤더 */
#header {
    background-color: #2c3e50;
    padding: 20px;
    text-align: center;
    color: white;
}

#logo a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

#logo span {
    display: block;
    font-size: 16px;
    font-weight: normal;
    margin-top: 5px;
}

.floatright {
    float: right;
    font-size: 14px;
}

.fontjp {
    font-family: 'Noto Sans JP', sans-serif;
}

/* 컨테이너 */
#container {
    padding: 20px;
}

.content {
    margin-bottom: 30px;
}

/* 메인 페이지 */
.simple_ks_wrap {
    text-align: center;
    padding: 40px 20px;
}

.simple_box {
    margin-bottom: 40px;
}

#ks_main_tit {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
}

.para_box1, .para_box2 {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
}

.font_blue {
    color: #3498db;
    font-weight: bold;
}

.simple_copy {
    color: #666;
    font-size: 12px;
    margin-top: 30px;
}

.simple_btn_box {
    margin-top: 40px;
    text-align: center;
}

.simple_sub_top {
    margin-bottom: 30px;
}

.simple_sub_top img {
    max-width: 200px;
    margin-bottom: 10px;
}

.simple_sub_top span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.survey-start {
    display: inline-block;
    margin: 20px auto;
    padding: 25px 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    text-align: center;
    min-width: 200px;
}

.survey-start:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.survey-start i {
    margin-right: 12px;
    font-size: 22px;
}

/* 네비게이션 */
.navigation_box {
    background: linear-gradient(135deg, #ecf0f1 0%, #d5dbdb 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #bdc3c7;
}

.navigation_box ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.navigation_box li {
    margin: 10px;
    text-align: center;
}

.step {
    padding: 15px 20px;
    border-radius: 8px;
    background-color: #bdc3c7;
    color: #fff;
    min-width: 150px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.step.current {
    background-color: #2980b9;
    border: 2px solid #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.step:not(.current):not(.completed) {
    opacity: 0.7;
}

.step:not(.current):not(.completed):hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.step.completed {
    background-color: #27ae60;
    border: 2px solid #2ecc71;
    box-shadow: 0 3px 8px rgba(46, 204, 113, 0.2);
    position: relative;
}

.step.completed i {
    position: relative;
}

.step.completed i::after {
    content: '✓';
    position: absolute;
    background-color: #2ecc71;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    top: -5px;
    right: -5px;
    font-weight: bold;
    border: 2px solid white;
}

.step i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.sub_steptit {
    display: block;
    font-size: 12px;
    font-weight: normal;
}

.step_tit {
    display: block;
    font-size: 14px;
    font-weight: bold;
}

.xi-angle-right {
    color: #7f8c8d;
    font-size: 20px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.xi-angle-right:hover {
    color: #34495e;
    opacity: 1;
}

.clear {
    clear: both;
}

/* 폼 스타일 */
.slide {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.slide.currentView {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.second_box {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.second_box > div:first-child {
    min-width: 120px;
    font-weight: bold;
    margin-right: 20px;
    margin-bottom: 10px;
}

.second_box > div:last-child {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.second_box i {
    margin-right: 8px;
    color: #3498db;
}

.second_box select, .second_box input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

.second_box input[type="radio"] {
    margin-right: 5px;
    margin-left: 15px;
}

.label_line {
    display: inline-block;
    padding: 8px 15px;
    background-color: #ecf0f1;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.label_line:hover {
    background-color: #bdc3c7;
}

input[type="radio"]:checked + .label_line {
    background-color: #3498db;
    color: white;
}

/* 설문 스타일 */
.question_icon_tit {
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    font-size: 18px;
    margin: 30px 0 20px;
    border-radius: 8px;
}

.question_icon_tit i {
    margin-right: 10px;
}

.question_box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.question_choice {
    font-size: 16px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.question_select_wrap {
    max-width: 800px;
    margin: 0 auto;
}

.question_select {
    margin-bottom: 25px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.question_tit {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2c3e50;
}

.select1, .select2 {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.select1 li, .select2 li {
    flex: 1;
    min-width: 120px;
}

.select1 label, .select2 label {
    display: block;
    padding: 12px 15px;
    background-color: #ecf0f1;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.select1 label:hover, .select2 label:hover {
    background-color: #bdc3c7;
}

.select1 input[type="radio"]:checked + label,
.select2 input[type="radio"]:checked + label {
    background-color: #3498db;
    color: white;
    border-color: #2980b9;
}

.select1 input[type="radio"], .select2 input[type="radio"] {
    display: none;
}

/* 하단 버튼 */
.bottom_btn_wrap {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.first_page, .next, .prev {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.first_page {
    background-color: #95a5a6;
    color: white;
}

.first_page:hover {
    background-color: #7f8c8d;
    color: white;
    text-decoration: none;
}

.next {
    background-color: #27ae60;
    color: white;
}

.next:hover {
    background-color: #219a52;
    color: white;
    text-decoration: none;
}

.prev {
    background-color: #e74c3c;
    color: white;
}

.prev:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

/* 결과 페이지 */
.result_box_wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.pr_result_tit {
    text-align: center;
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.4;
}

.pr_result_tit span {
    color: #e74c3c;
    font-weight: bold;
}

.pointer_bar {
    height: 3px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12);
    margin: 20px 0 40px;
}

.result_btn {
    text-align: center;
    margin: 30px 0;
}

.result_main, .result_pro {
    display: inline-block;
    padding: 12px 25px;
    margin: 0 10px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.result_main:hover, .result_pro:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

.result_pro {
    background-color: #27ae60;
}

.result_pro:hover {
    background-color: #219a52;
}

.pr_result_box {
    background-color: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.pr_result_box h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pr_result_box h3 i {
    margin-right: 10px;
    font-size: 22px;
    color: #3498db;
}

.result_para {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.print_btn {
    text-align: center;
    margin: 20px 0;
}

.print_btn button {
    background-color: #34495e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.print_btn button:hover {
    background-color: #2c3e50;
}

.print_btn i {
    margin-right: 8px;
}

/* 푸터 */
.footer_logo {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.footer_logo img {
    max-width: 200px;
    opacity: 0.7;
}

/* 반응형 */
@media (max-width: 768px) {
    #wrap {
        margin: 0;
    }
    
    #container {
        padding: 10px;
    }
    
    #ks_main_tit {
        font-size: 24px;
    }
    
    .navigation_box ul {
        flex-direction: column;
    }
    
    .step {
        margin: 5px 0;
        min-width: 200px;
    }
    
    .xi-angle-right {
        transform: rotate(90deg);
    }
    
    .second_box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .second_box > div:first-child {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .select1, .select2 {
        flex-direction: column;
    }
    
    .select1 li, .select2 li {
        min-width: auto;
    }
    
    .bottom_btn_wrap {
        flex-direction: column;
    }
    
    .first_page, .next, .prev {
        display: block;
        margin: 5px 0;
    }
}

/* 로딩 스피너 */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 에러 메시지 */
.error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
}

/* 숨김 */
.hidden {
    display: none !important;
}

/* 환자 정보 표시 스타일 */
.patient-info-section {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.patient-info-section h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.patient-info-section h3 i {
    color: #3498db;
    font-size: 20px;
}

.patient-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.patient-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.patient-detail-item .label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.patient-detail-item .value {
    color: #2c3e50;
    font-weight: 500;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

/* 반응형 - 환자 정보 */
@media (max-width: 768px) {
    .patient-details {
        gap: 8px;
    }
    
    .patient-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .patient-detail-item .label {
        min-width: auto;
        font-size: 14px;
    }
    
    .patient-detail-item .value {
        width: 100%;
        text-align: left;
    }
}

/* 인쇄 버튼 스타일 - 다른 버튼들과 동일하게 */
.result_print {
    background-color: #aaa !important;
    color: white !important;
    padding: 12px 25px !important;
    text-decoration: none !important;
    border-radius: 5px !important;
    display: inline-block !important;
    margin: 0 10px !important;
    transition: background-color 0.3s !important;
}

.result_print:hover {
    background-color: #999 !important;
    color: white !important;
}

/* 인쇄 스타일 */
@media print {
    /* 인쇄 시 헤더, 네비게이션, 버튼 숨기기 */
    #header,
    .navigation_box,
    .result_btn {
        display: none !important;
    }
}
