.assessment-container {
    padding-top: 80px;
}

.assessment-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Progress Bar */
.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 2rem 0 4rem;
}

.progress-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: #ddd;
    z-index: 0;
}

.progress {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
    z-index: 1;
    max-width: calc(100% - 15px); /* Prevent extending beyond the last step */
}

.step {
    width: 30px;
    height: 30px;
    background-color: white;
    border: 4px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: border-color var(--transition-speed);
}

.step.active {
    border-color: var(--primary-color);
}

/* Form Styles */
.question {
    display: none;
}

.question.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

/* Category Scores */
.category-scores {
    margin: 2rem 0;
}

.category-bar {
    margin: 1rem 0;
}

.category-bar label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.bar-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color);
    transition: width 1s ease-in-out;
}

/* Radio Group Styling */
.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    cursor: pointer;
}

/* Question Styling */
.question p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Results Section */
.results {
    text-align: center;
}

.score-circle {
    width: 150px;
    height: 150px;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.recommendations {
    text-align: left;
    margin-top: 2rem;
}

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

.recommendations li {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .assessment-content {
        padding: 1rem;
        margin: 1rem;
    }

    .progress-bar {
        margin: 1rem 0 2rem;
    }

    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
}

.assessment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.form-row:hover {
    background-color: #f5f5f5;
}

.question-text {
    flex: 1;
    padding-right: 20px;
    font-size: 16px;
    color: #333;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    justify-content: flex-end;
}

.radio-group input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    outline: none;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-group input[type="radio"]:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-group label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.radio-group input[type="radio"]:hover {
    border-color: #45a049;
}

.radio-group label:hover {
    color: #45a049;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .question-text {
        padding-right: 0;
        padding-bottom: 10px;
    }

    .radio-group {
        justify-content: center;
        width: 100%;
    }
}

/* Category headers */
.question h2 {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    margin: 0 0 20px 0;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Zebra striping for better readability */
.form-row:nth-child(even) {
    background-color: #f9f9f9;
}

.form-row:nth-child(even):hover {
    background-color: #f0f0f0;
}

/* Animation for radio buttons */
@keyframes radioCheck {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.radio-group input[type="radio"]:checked {
    animation: radioCheck 0.3s ease;
}

/* Recommendations styling */
#recommendations-list {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 20px;
}

#recommendations-list h4 {
    color: #4CAF50;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    font-size: 1.2em;
}

#recommendations-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

#recommendations-list li:before {
    content: "•";
    color: #4CAF50;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.assessment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.assessment-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.assessment-header p {
    font-size: 1.1rem;
    color: #34495e;
    margin: 0;
}

.progress-bar {
    margin-top: 2rem;
}
