* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    display: none;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.page.active {
    display: flex;
    flex-direction: column;
}

/* 헤더 스타일 */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 1.5rem 3rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.header h2 {
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

/* 메인 콘텐츠 */
.main-content {
    flex: 1;
    background: transparent;
    padding: 2.5rem 1.5rem;
}

.info-section {
    margin-bottom: 2.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.info-title {
    font-size: 1.0625rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.warning-text {
    color: #ef4444;
    font-size: 0.9375rem;
    line-height: 1.6;
    font-weight: 500;
}

.question-section {
    margin: 3rem 0;
    text-align: center;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.question {
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* 버튼 그룹 */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-direction: column;
}

.btn {
    padding: 1.125rem 1.5rem;
    border: none;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    font-family: inherit;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-secondary {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(71, 85, 105, 0.15);
}

.btn-back {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.btn-back:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.15);
}

/* 푸터 */
.footer {
    background: white;
    padding: 2.5rem 1.5rem;
    font-size: 0.875rem;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.05);
}

.privacy-link {
    display: block;
    text-align: right;
    color: #3b82f6;
    text-decoration: none;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.privacy-link:active {
    color: #2563eb;
}

.footer-info p {
    margin-bottom: 0.625rem;
    line-height: 1.6;
    color: #64748b;
}

.phone-highlight {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.9375rem;
}

.copyright {
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

/* 콘텐츠 래퍼 (페이지 2, 3용) */
.content-wrapper {
    flex: 1;
    padding: 1.5rem;
    background: transparent;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 경고 섹션 */
.warning-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border-left: 4px solid #f59e0b;
}

.warning-item {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #1e293b;
}

.warning-item:last-child {
    margin-bottom: 0;
}

.warning-red {
    color: #ef4444;
    font-weight: 600;
}

/* 연락처 섹션 */
.contact-section {
    margin-bottom: 2rem;
}

.contact-group {
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-group:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.contact-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e7ff;
    letter-spacing: -0.01em;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 1rem 0;
    font-size: 0.9375rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s;
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.contact-list li:active {
    background-color: #f8fafc;
}

.contact-list li:last-child {
    border-bottom: none;
}

.phone-icon {
    font-size: 1.125rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.phone-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    margin-left: auto;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    background: #eff6ff;
    font-size: 0.9375rem;
}

.phone-link:active {
    background: #dbeafe;
    color: #2563eb;
    transform: scale(0.98);
}

/* 정보 공지 */
.info-notice {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 1.5rem 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.info-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.info-notice p {
    font-size: 1rem;
    color: #1e293b;
    line-height: 1.8;
    font-weight: 500;
    margin: 0;
}

.highlight-year {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.125rem;
    background: white;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
    display: inline-block;
    margin: 0 0.125rem;
    border: 1px solid #3b82f6;
}

/* 개인정보 섹션 */
.privacy-section {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.info-list {
    list-style: none;
    margin-bottom: 1.25rem;
}

.info-list li {
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: #334155;
    line-height: 1.7;
}

.highlight-blue {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1rem;
}

.warning-text-small {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.question-text {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
    margin-top: 1.25rem;
    letter-spacing: -0.01em;
}

/* 수수료 섹션 */
.fee-section {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
}

.fee-item {
    margin-bottom: 1.75rem;
}

.fee-item:last-child {
    margin-bottom: 0;
}

.fee-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.fee-item p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.875rem;
}

.highlight-red {
    color: #ef4444;
    font-weight: 600;
}

/* 동의 섹션 */
.consent-section {
    background: white;
    padding: 1.75rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border: 1px solid #e2e8f0;
}

.checkbox-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1.0625rem;
    color: #334155;
    user-select: none;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.2s;
    font-weight: 500;
}

.checkbox-label:active {
    background-color: #f8fafc;
    transform: scale(0.98);
}

.checkbox-label input[type="radio"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.address-text {
    text-align: center;
    font-size: 0.9375rem;
    color: #64748b;
    margin-top: 1.25rem;
    font-weight: 500;
}

/* 네비게이션 버튼 */
.nav-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-bottom: 1.5rem;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, #f8fafc 0%, rgba(248, 250, 252, 0.95) 80%, transparent 100%);
    padding-top: 1.5rem;
    margin-bottom: -1.5rem;
}

.nav-buttons .btn {
    flex: 1;
}

/* 반응형 디자인 */
@media (max-width: 375px) {
    .header {
        padding: 2.5rem 1.25rem 2rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header h2 {
        font-size: 1.1rem;
    }
    
    .main-content {
        padding: 1.5rem 1.25rem;
    }
    
    .content-wrapper {
        padding: 1.25rem;
    }
    
    .question {
        font-size: 1rem;
    }
}

/* 터치 최적화 */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
    }
    
    .phone-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* 다크모드 대응 (선택사항) */
@media (prefers-color-scheme: dark) {
    /* 필요시 다크모드 스타일 추가 */
}

