/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #334155;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    min-height: 100vh;
}

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

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.logo {
    height: 60px;
    width: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Progress bar */
.progress-container {
    max-width: 400px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.progress-container.stuck {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: none;
    border-radius: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.progress-content {
    flex: 1;
    margin: 0 20px;
}

.progress-container.stuck .progress-content {
    margin: 0 15px;
}

.nav-arrows {
    display: none;
    gap: 10px;
}

.progress-container.stuck .nav-arrows {
    display: flex;
}

.nav-arrow {
    background: #fa198c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.nav-arrow:hover {
    background: #e60773;
    transform: scale(1.1);
}

.nav-arrow:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.progress-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Main content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Criterion sections */
.criterion-section {
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.criterion-section:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.criterion-section.completed {
    border-color: #fa198c;
    box-shadow: 0 8px 25px rgba(250, 25, 140, 0.15);
}

.criterion-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.criterion-header h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #fa198c, #e60773);
    border-radius: 2px;
    flex-shrink: 0;
}

.criterion-description {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Scoring grid */
.scoring-grid {
    margin-top: 25px;
}

.score-options {
    display: block;
}

.score-option {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    margin: 0 0 12px 0;
}

.score-option:last-child {
    margin-bottom: 0;
}

.score-option:hover {
    border-color: #fa198c;
    background-color: #fef7f5;
}

.score-option.selected {
    border-color: #fa198c;
    background-color: #fef7f5;
}

.score-option::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background-color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.score-option.selected::before {
    background-color: #fa198c;
    border-color: #fa198c;
}

.score-justification {
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.5;
    flex: 1;
}

/* Results section */
.results-section {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
}

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

.results-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.total-score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.score-number {
    font-size: 4rem;
    font-weight: 800;
    color: #1e293b;
}

.score-label {
    font-size: 1.5rem;
    color: #64748b;
}

.effectiveness-rating {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.effectiveness-rating.outstanding {
    background-color: #dcfce7;
    color: #166534;
}

.effectiveness-rating.excellent {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.effectiveness-rating.strong {
    background-color: #f0f9ff;
    color: #0369a1;
}

.effectiveness-rating.capable {
    background-color: #fef3c7;
    color: #d97706;
}

.effectiveness-rating.functional {
    background-color: #fed7aa;
    color: #ea580c;
}

.effectiveness-rating.needs-improvement {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Results breakdown */
.results-breakdown {
    margin-bottom: 40px;
}

.results-breakdown h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.breakdown-item.high-score {
    border-left-color: #10b981;
    background-color: #f0fdf4;
}

.breakdown-item.medium-score {
    border-left-color: #f59e0b;
    background-color: #fffbeb;
}

.breakdown-item.low-score {
    border-left-color: #ef4444;
    background-color: #fef2f2;
}

.breakdown-details {
    flex: 1;
}

.breakdown-name {
    font-weight: 600;
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

.breakdown-effectiveness {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

.breakdown-score {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
}

/* Results summary */
.results-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.strengths-section h3,
.improvements-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.strengths-section h3 {
    color: #059669;
}

.improvements-section h3 {
    color: #dc2626;
}

.strengths-section ul,
.improvements-section ul {
    list-style: none;
}

.strengths-section li,
.improvements-section li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 24px;
}

.strengths-section li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.improvements-section li:before {
    content: '!';
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

.strengths-section li:last-child,
.improvements-section li:last-child {
    border-bottom: none;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary {
    background: linear-gradient(135deg, #fa198c, #e60773);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e60773, #d1065a);
}

.btn-outline {
    background-color: transparent;
    color: #fa198c;
    border: 2px solid #fa198c;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #fa198c, #e60773);
    color: white;
}

.additional-links {
    text-align: center;
    margin-top: 20px;
}

.download-link {
    color: #fa198c;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.download-link:hover {
    border-bottom-color: #fa198c;
}

.criterion-description a {
    color: #fa198c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.criterion-description a:hover {
    border-bottom-color: #fa198c;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #fa198c;
}

.modal-content h3 {
    color: #fa198c;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 0;
}

.modal-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.methodology-link,
.expertise-link {
    color: #fa198c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.methodology-link:hover,
.expertise-link:hover {
    border-bottom-color: #fa198c;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .criterion-section {
        padding: 20px;
    }
    
    .score-option {
        padding: 14px 16px;
        margin-bottom: 20px !important;
    }
    
    .results-summary {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Footer styles */
.footer {
    text-align: center;
    margin-top: 60px;
    padding: 20px;
}

.footer p {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 400;
}