* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 배지 */
.badge {
    display: inline-block;
    background-color: #6c5ce7;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 메인 제목 */
.main-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 24px;
    line-height: 1.4;
}

.main-title .highlight {
    color: #0984e3;
}

/* 정보 박스 */
.info-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label {
    font-size: 14px;
    color: #636e72;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #2d3436;
    font-weight: 600;
}

.info-value.highlight-yellow {
    background-color: #fdcb6e;
    padding: 4px 12px;
    border-radius: 6px;
    color: #2d3436;
}

/* 문서 섹션 */
.document-section {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.document-icon {
    font-size: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3436;
}

/* 체크박스 */
.checkbox-wrapper {
    position: relative;
    cursor: pointer;
}

.document-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #636e72;
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s;
}

.document-checkbox:checked ~ .checkmark {
    background-color: #0984e3;
    border-color: #0984e3;
}

.document-checkbox:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.required-label {
    font-size: 12px;
    color: #636e72;
    margin-bottom: 16px;
}

/* 업로드 영역 */
.upload-area {
    border: 2px dashed #b2bec3;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #fafafa;
    margin-bottom: 12px;
}

.upload-area:hover {
    border-color: #0984e3;
    background-color: #f0f8ff;
}

.upload-area.dragover {
    border-color: #0984e3;
    background-color: #e3f2fd;
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 48px;
    color: #636e72;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 16px;
    color: #2d3436;
    font-weight: 500;
    margin-bottom: 8px;
}

.file-types {
    font-size: 12px;
    color: #636e72;
}

/* 파일 정보 */
.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.file-name {
    font-size: 14px;
    color: #2d3436;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file {
    background: none;
    border: none;
    font-size: 24px;
    color: #636e72;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: color 0.2s;
}

.remove-file:hover {
    color: #e74c3c;
}

/* 제출 버튼 */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #636e72;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:enabled {
    background-color: #0984e3;
}

.submit-btn:enabled:hover {
    background-color: #0770c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(9, 132, 227, 0.3);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    font-size: 16px;
    font-weight: 500;
}

/* 메시지 토스트 */
.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background-color: #2d3436;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
    max-width: 400px;
}

.message-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.message-toast.success {
    background-color: #00b894;
}

.message-toast.error {
    background-color: #e74c3c;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 24px;
    }
    
    .main-title {
        font-size: 22px;
    }
    
    .info-box {
        flex-direction: column;
        gap: 12px;
    }
    
    .document-section {
        padding: 20px;
    }
}
