/* 설문 페이지 전체 스타일 - 대기업 디자인 회사 수준 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #2a2a2a;
    line-height: 1.6;
    min-height: 100vh;
}

.survey-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 헤더 섹션 - 프리미엄 디자인 */
.survey-header {
    background: #2a2a2a;
    padding: 80px 50px;
    border-radius: 0;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.survey-header h1 {
    font-size: 3.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 35px;
    font-family: 'Inter Tight', sans-serif;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    text-align: left;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    padding: 35px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.intro-text p {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 400;
    position: relative;
    padding-left: 25px;
    opacity: 0.95;
}

.intro-text p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.3rem;
    top: -2px;
}

/* 질문 카드 - 프리미엄 디자인 */
.question-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #d1d5db;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2a2a2a 0%, #444444 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.question-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.question-card:hover::before {
    opacity: 1;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 35px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

/* 라디오 버튼 옵션 - 모던 디자인 */
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border: 1px solid #666666;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.radio-option:hover {
    border-color: #2a2a2a;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.2);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 3px solid #777777;
    border-radius: 50%;
    margin-right: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: #ffffff;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2a2a2a;
    background: #2a2a2a;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option input[type="radio"]:checked ~ * {
    color: #2a2a2a;
    font-weight: 600;
}

.radio-option span:not(.radio-custom) {
    font-size: 1.1rem;
    color: #444444;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* 체크박스 옵션 - 모던 디자인 */
.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border: 1px solid #666666;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.checkbox-option:hover {
    border-color: #2a2a2a;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(42, 42, 42, 0.2);
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 3px solid #777777;
    border-radius: 4px;
    margin-right: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: #ffffff;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #2a2a2a;
    background: #2a2a2a;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-option input[type="checkbox"]:checked ~ * {
    color: #2a2a2a;
    font-weight: 600;
}

.checkbox-option span:not(.checkbox-custom) {
    font-size: 1.1rem;
    color: #444444;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* 매트릭스 테이블 - 프리미엄 디자인 */
.matrix-question {
    overflow-x: auto;
    margin-top: 20px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.matrix-table th {
    color: #ffffff;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 120px;
}

.matrix-table th:nth-child(1) {
    background: #666666;
}

.matrix-table th:nth-child(2) {
    background: #2a2a2a;
}

.matrix-table th:nth-child(3) {
    background: #444444;
}

.matrix-table th:nth-child(4) {
    background: #555555;
}

.matrix-table th:first-child {
    text-align: left;
    min-width: 300px;
    white-space: normal;
    line-height: 1.3;
}

.matrix-table td {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
    vertical-align: top;
}

.matrix-table td:first-child {
    text-align: left;
    line-height: 1.3;
    padding-right: 30px;
}

.matrix-table tr:hover td {
    background-color: #f8f9fa;
}

.matrix-table input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #2c3e50;
}

/* 텍스트 입력 필드 - 모던 디자인 */
.text-input {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid #cccccc;
    border-radius: 0;
    font-size: 1.1rem;
    color: #2a2a2a;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
    font-family: inherit;
}

.text-input:focus {
    outline: none;
    border-color: #2a2a2a;
    box-shadow: 0 0 0 4px rgba(42, 42, 42, 0.1);
    transform: translateY(-1px);
}

.text-input::placeholder {
    color: #999999;
    font-style: italic;
}

.example-text {
    font-size: 0.95rem;
    color: #666666;
    font-style: italic;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* 기타 입력 필드 */
.other-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #999999;
    border-radius: 0;
    font-size: 1rem;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.other-input:focus {
    outline: none;
    border-color: #2a2a2a;
    box-shadow: 0 0 0 2px rgba(42, 42, 42, 0.1);
}

.other-input:disabled {
    background-color: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
}

/* 제출 버튼 - 프리미엄 디자인 */
.submit-button {
    background: #2a2a2a;
    color: #ffffff;
    border: none;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(42, 42, 42, 0.3);
    position: relative;
    overflow: hidden;
    margin: 0;
    display: block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter Tight', sans-serif;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(31, 41, 55, 0.4);
}

/* 제출 섹션 */
.submit-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

/* 홈페이지 버튼 */
.home-button {
    background: #ffffff;
    color: #444444;
    border: 2px solid #777777;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter Tight', sans-serif;
    text-decoration: none;
}

.home-button:hover {
    background: #f8f8f8;
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 85, 85, 0.2);
    text-decoration: none;
    color: #444444;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:active {
    transform: translateY(-1px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .survey-container {
        padding: 20px 15px;
    }
    
    .survey-header {
        padding: 40px 30px;
        margin-bottom: 30px;
    }
    
    .survey-header h1 {
        font-size: 2.2rem;
    }
    
    .question-card {
        padding: 30px 25px;
        margin-bottom: 20px;
    }
    
    .question-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 15px 20px;
    }
    
    .submit-button {
        padding: 18px 40px;
        font-size: 1.1rem;
    }
    
    .matrix-table th,
    .matrix-table td {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .survey-header h1 {
        font-size: 1.8rem;
    }
    
    .question-card {
        padding: 25px 20px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px 15px;
    }
    
    .radio-custom,
    .checkbox-custom {
        width: 20px;
        height: 20px;
        margin-right: 15px;
    }
    
    .text-input {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* 애니메이션 효과 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card {
    animation: fadeInUp 0.6s ease-out;
}

.question-card:nth-child(even) {
    animation-delay: 0.1s;
}

.question-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #2c3e50;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #34495e;
}