/* Assessment Test Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Roboto Slab', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Top Black Bar */
.top-bar {
    height: 20px;
    background-color: #000;
}

/* Title Bar */
.title-bar {
    background-color: #f5f5f5;
    padding: 30px 40px;
    border-bottom: 2px solid #e0e0e0;
}

.main-title {
    font-family: 'Roboto Slab', serif;
    font-size: 26px;
    font-weight: 400;
    color: #333;
    text-align: center;
}

/* Step Header */
.step-header {
    background-color: #f9f9f9;
    padding: 20px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.step-title {
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #0d7c13;
    width: 6.67%;
    transition: width 0.3s ease;
}

.step-indicator {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* Content Area */
.content-area {
    padding: 40px;
    min-height: 500px;
}

/* Assessment Form */
.assessment-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Question Box */
.question-box {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #0d7c13;
    animation: slideIn 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-number {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.question-text {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Question Options */
.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: #0d7c13;
    background-color: #f0f8f5;
}

.option-label input[type="radio"] {
    margin-right: 12px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #0d7c13;
}

.option-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    flex: 1;
}

.option-label input[type="radio"]:checked + .option-text {
    color: #333;
    font-weight: 600;
}

.option-label input[type="radio"]:checked {
    accent-color: #0d7c13;
}

.option-label.selected {
    border-color: #0d7c13;
    background-color: #f0f8f5;
}

/* Results Container */
.results-container {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-content {
    max-width: 600px;
    margin: 0 auto;
}

.results-icon {
    font-size: 100px;
    margin-bottom: 20px;
    animation: popIn 0.6s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#resultsTitle {
    font-family: 'Roboto Slab', serif;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

#resultsMessage {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Score Box */
.score-box {
    background: linear-gradient(135deg, #f0f8f5 0%, #e8f5f0 100%);
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #0d7c13;
}

.score-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.score-display {
    font-family: 'Roboto Slab', serif;
    font-size: 64px;
    font-weight: 700;
    color: #0d7c13;
    line-height: 1;
    margin-bottom: 8px;
}

.score-detail {
    font-size: 14px;
    color: #666;
}

/* Feedback Box */
.feedback-box {
    background-color: #fff8f0;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #d67a3e;
    text-align: left;
}

.feedback-box h4 {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.feedback-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feedback-box li {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.feedback-box li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d67a3e;
    font-weight: 700;
}

/* Button Container */
.button-container {
    padding: 40px;
    text-align: center;
    background-color: #f5f5f5;
    border-top: 2px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.submit-button,
.retry-button,
.home-button {
    padding: 15px 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.submit-button {
    background-color: #0d7c13;
    color: white;
}

.submit-button:hover {
    background-color: #0a6710;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 124, 19, 0.3);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.retry-button {
    background-color: #0d7c13;
    color: white;
}

.retry-button:hover {
    background-color: #0a6710;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 124, 19, 0.3);
}

.home-button {
    background-color: #333;
    color: white;
}

.home-button:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-area {
        padding: 20px;
    }

    .question-box {
        padding: 15px;
    }

    .main-title {
        font-size: 20px;
    }

    .step-title {
        font-size: 20px;
    }

    #resultsTitle {
        font-size: 28px;
    }

    .score-display {
        font-size: 48px;
    }

    .button-container {
        padding: 20px;
        flex-direction: column;
    }

    .submit-button,
    .retry-button,
    .home-button {
        width: 100%;
    }

    .title-bar,
    .step-header {
        padding: 20px;
    }
}
