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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.progress-bar {
    background: rgba(255,255,255,0.2);
    height: 8px;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}


/* Research Group Logo - Main App */
.app-logo-container {
    position: absolute;
    right: 20px;
    top: 70px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

.app-logo-container:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-50%) scale(1.05);
}

.app-research-logo {
    height: 70px; /* Adjust this to your preferred size */
    width: auto;
    display: block;
}

/* Responsive adjustments for main app logo */
@media (max-width: 768px) {
    .app-logo-container {
        right: 15px;
        padding: 6px;
    }
    
    .app-research-logo {
        height: 30px;
    }
    
    /* On mobile, might need to adjust step-nav padding to make room */
    .step-nav {
        padding: 15px 60px 15px 20px;
    }
}

.preview-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.preview-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1em;
}

.preview-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-images.single {
    justify-content: center;
}

.preview-item {
    text-align: center;
    flex: 1;
    max-width: 250px;
}

.preview-item.centered {
    flex: 0 0 auto;
}

.preview-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9em;
}

.preview-item img {
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
}

/* Responsive design */
@media (max-width: 600px) {
    .preview-images {
        flex-direction: column;
        align-items: center;
    }
    
    .preview-item {
        max-width: 200px;
    }
}

/* Success message with preview layout */
.success-with-preview {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.success-message-content {
    flex: 1;
    min-width: 0; /* Allows flex item to shrink below its content size */
}

.preview-container {
    flex: 0 0 auto;
    min-width: 280px; /* Ensure preview has enough space */
}

.preview-section {
    margin-top: 0; /* Remove top margin since it's now side-by-side */
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
    .success-with-preview {
        flex-direction: column;
        gap: 15px;
    }
    
    .preview-container {
        min-width: 0;
        width: 100%;
    }
    
    .preview-section {
        margin-top: 15px; /* Add back top margin for mobile stacking */
    }
}

/* Ensure preview images work well in the new layout */
.preview-images {
    display: flex;
    gap: 15px; /* Reduced gap for tighter layout */
    justify-content: center;
    flex-wrap: wrap;
}

.preview-item {
    text-align: center;
    flex: 1;
    max-width: 200px; /* Slightly smaller for side layout */
}