/* ============================================
   근영방수 설문 시스템 - 공통 스타일
   ============================================ */

:root {
    /* 색상 */
    --survey-primary: #0047AB;
    --survey-primary-dark: #003580;
    --survey-primary-light: #1a5fc9;
    --survey-purple: #6B46C1;
    --survey-green: #059669;
    
    --survey-yellow: #FFD100;
    --survey-yellow-dark: #e6bc00;
    
    --survey-white: #FFFFFF;
    --survey-light-gray: #F8F8F8;
    --survey-gray-50: #F8F8F8;
    --survey-gray-100: #F0F0F0;
    --survey-gray-200: #E5E5E5;
    --survey-gray-300: #D4D4D4;
    --survey-gray-400: #A3A3A3;
    --survey-gray-500: #737373;
    --survey-gray-600: #666666;
    --survey-gray-700: #404040;
    --survey-black: #1a1a1a;
    
    --survey-success: #059669;
    --survey-success-light: #D1FAE5;
    --survey-error: #DC2626;
    --survey-warning: #F59E0B;
    
    --survey-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --survey-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --survey-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --survey-radius-sm: 4px;
    --survey-radius-md: 8px;
    --survey-radius-lg: 12px;
    --survey-radius-xl: 16px;
    
    --survey-font-display: 'Gmarket Sans', sans-serif;
    --survey-font-body: 'Pretendard', -apple-system, sans-serif;
    
    --survey-max-width-mobile: 100%;
    --survey-max-width-tablet: 700px;
    --survey-max-width-desktop: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.survey-page {
    font-family: var(--survey-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--survey-black);
    background: var(--survey-light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.survey-main-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--survey-light-gray);
}

.survey-container {
    flex: 1;
    max-width: var(--survey-max-width-mobile);
    margin: 0 auto;
    width: 100%;
    background: var(--survey-white);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .survey-container {
        max-width: var(--survey-max-width-tablet);
        margin: 2rem auto;
        min-height: calc(100vh - 4rem);
        border-radius: var(--survey-radius-lg);
    }
}

@media (min-width: 1024px) {
    .survey-container {
        max-width: var(--survey-max-width-desktop);
        margin: 3rem auto;
        min-height: calc(100vh - 6rem);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--survey-font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--survey-black);
}

button {
    font-family: var(--survey-font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

button:focus-visible {
    outline: 3px solid var(--survey-primary);
    outline-offset: 3px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

input,
textarea,
select {
    font-family: var(--survey-font-body);
    font-size: 16px;
    border: 2px solid var(--survey-gray-300);
    border-radius: var(--survey-radius-md);
    padding: 1rem 1.25rem;
    transition: all 0.3s;
    width: 100%;
    background: var(--survey-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--survey-primary);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--survey-gray-400);
}

.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--survey-primary);
    color: var(--survey-white);
    padding: 1rem 2rem;
    z-index: 1000;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-nav:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }