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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* Header */
header {
    background-color: #5b92e5;
    color: white;
    padding: 30px 10px;
    margin-bottom: 30px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

/* Cards */
.card {
    background-color: rgb(200, 200, 200);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

.card h2 {
    color: #00629B;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 20px;
    color: #555;
}

/* Buttons */
button {
    background-color: #5b92e5;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #004d7a;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button.secondary {
    background-color: transparent;
    border: 1px solid #5b92e5;
    color: #5b92e5;
}

button.secondary:hover {
    background-color: #f0f7ff;
}

.buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Progress bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

.progress-step.active .progress-circle {
    background-color: #5b92e5;
}

.progress-step.completed .progress-circle {
    background-color: #4CAF50;
}

.progress-step span {
    font-size: 0.85rem;
    color: #666;
    max-width: 100px;
    text-align: center;
}

.progress-step.active span,
.progress-step.completed span {
    color: #00629B;
    font-weight: 500;
}

/* Step content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Options container */
.options-container {
    margin: 20px 0;
}

.category-section {
    margin-bottom: 25px;
}

.category-section h3 {
    color: #00629B;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

/* Checkbox styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.checkbox-item {
    margin-bottom: 8px;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* Results container */
.results-container {
    margin-top: 20px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Methodology cards */
.methodology-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.methodology-header {
    background-color: #f5f5f5;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.methodology-header h3 {
    margin: 0;
    color: #5b92e5;
    font-size: 1.1rem;
}

.methodology-details {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.methodology-details.active {
    padding: 20px;
    max-height: 1000px;
}

.methodology-details p {
    margin-bottom: 15px;
}

/* Criteria grid */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.criteria-item {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px;
}

.criteria-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.criteria-value {
    color: #00629B;
}

/* Show more button */
.show-more-btn {
    background-color: transparent;
    color: #5b92e5;
    border: 1px solid #5b92e5;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.show-more-btn:hover {
    background-color: #f0f7ff;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #777;
    cursor: pointer;
}

.close-btn:hover {
    color: #333;
}

/* Help button */
#help-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #5b92e5;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

#help-btn:hover {
    background-color: #004d7a;
}

/* Select all */

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.select-all-btn {
    background-color: #5d5d5d;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.select-all-btn:hover {
    background-color: #5486eb;
}

.select-all-btn.deselect {
    background-color: #ffebee;
    border-color: #f44336;
    color: #d32f2f;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #5b92e5;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    margin-left: 8px;
    font-size: 0.8rem;
    cursor: help;
}

.tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: normal;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .progress-bar {
        flex-wrap: wrap;
    }

    .progress-step {
        margin-bottom: 15px;
    }

    .checkbox-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .criteria-grid {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}