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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page {
    display: none;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 60px;
    margin: 30px 0;
}

.page.active {
    display: block;
}

.header {
    text-align: center;
    margin-bottom: 60px;
}

.header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.juror-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.form-section {
    max-width: 500px;
    margin: 50px auto 60px;
}

.input-group {
    margin-bottom: 35px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.instructions {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-bottom: 50px;
}

.instructions h3 {
    color: #333;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    padding: 12px 0;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.instructions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.videos-container {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.video-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.video-item:hover {
    border-color: #667eea;
}

.video-number {
    font-weight: bold;
    font-size: 1.2rem;
    color: #667eea;
    min-width: 40px;
}

.video-thumbnail {
    margin: 0 15px 0 10px;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    border-color: #667eea;
}

.video-link {
    flex: 1;
    margin: 0 20px;
}

.video-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.video-link a:hover {
    text-decoration: underline;
}

.rank-select {
    min-width: 80px;
}

.rank-select select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
}

.rank-select select:focus {
    outline: none;
    border-color: #667eea;
}

.progress-info {
    margin-top: 20px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    width: 0%;
}

#progress-text {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.scoring-instructions {
    margin: 30px 0;
    text-align: center;
}

.instructions-toggle {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.instructions-toggle:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.instructions-content {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px 30px;
    margin-top: 15px;
    text-align: left;
    animation: slideDown 0.3s ease;
}

.instructions-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.instructions-content li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #333;
    line-height: 1.5;
}

.instructions-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin: 20px 0;
}

.submission-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.submission-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #333;
}

.download-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}


.email-address {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin: 25px 0;
    display: inline-block;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.email-address:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.email-address:active {
    transform: translateY(0);
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.validation-error {
    border-color: #dc3545 !important;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .page {
        padding: 30px;
        margin: 15px 0;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .juror-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .video-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .video-link {
        margin: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}