/* General styling for the test area */
.mindgrow-test-wrapper {
    background-color: #f4f4f5;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Styling for the boxes (both form and test) */
#pre-test-form-container,
#disc-test-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    padding: 40px;
}

/* Styling for the start form */
#pre-test-form-container h2 { text-align: center; color: #333; margin-top: 0; }
#pre-test-form-container p { text-align: center; color: #666; margin-bottom: 30px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row { margin-bottom: 15px; display: flex; flex-direction: column; }
.form-row label { margin-bottom: 5px; font-weight: bold; color: #444; }
.form-row input[type="text"], .form-row input[type="email"] { padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
.form-row-checkbox { display: flex; align-items: center; margin-top: 20px; }
.form-row-checkbox input { margin-right: 10px; transform: scale(1.2); }
#start-test-btn { width: 100%; padding: 15px; font-size: 18px; color: #fff; background-color: #007bff; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; margin-top: 20px; }
#start-test-btn:disabled { background-color: #ccc; cursor: not-allowed; }


/* --- Styling for the DISC test itself --- */
#disc-test-container { padding: 0; }
.test-header { padding: 20px 20px 10px; }
.progress-container { width: 100%; background-color: #e0e0e0; border-radius: 5px; margin-bottom: 5px; }
.progress-bar { width: 0%; height: 10px; background-color: #007bff; border-radius: 5px; transition: width .4s ease-in-out; }
.page-counter { text-align: right; font-size: 14px; color: #888; }
.question-list { list-style: none; padding: 0; margin: 0; }
.question-list-item { background-color: #fff; padding: 20px; border-bottom: 1px solid #eee; }
.question-list-item:last-child { border-bottom: none; }
.question-statement { font-size: 20px; font-weight: 700; color: #333; margin: 0 0 20px; text-align: center; }
.likert-scale-container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: nowrap; }
.likert-label { position: relative; display: flex; flex-direction: column; align-items: center; cursor: pointer; font-size: 14px; color: #555; padding: 8px 5px; transition: all .2s ease-in-out; flex: 1; text-align: center; }
.likert-label input[type=radio] { opacity: 0; position: absolute; }
.likert-label::before { content: ''; display: block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #ccc; margin-bottom: 8px; transition: all .2s ease-in-out; }
.likert-value-5::before { border-color: #a5d6a7; } .likert-value-4::before { border-color: #c8e6c9; } .likert-value-3::before { border-color: #e0e0e0; } .likert-value-2::before { border-color: #bbdefb; } .likert-value-1::before { border-color: #90caf9; }
.likert-value-5:has(input:checked)::before { background-color: #2e7d32; border-color: #2e7d32; } .likert-value-4:has(input:checked)::before { background-color: #66bb6a; border-color: #66bb6a; } .likert-value-3:has(input:checked)::before { background-color: #888888; border-color: #888888; } .likert-value-2:has(input:checked)::before { background-color: #42a5f5; border-color: #42a5f5; } .likert-value-1:has(input:checked)::before { background-color: #1565c0; border-color: #1565c0; }
.likert-label:has(input[type=radio]:checked) { font-weight: bold; }
.likert-value-5:has(input[type=radio]:checked) { color: #2e7d32; } .likert-value-4:has(input[type=radio]:checked) { color: #66bb6a; } .likert-value-3:has(input[type=radio]:checked) { color: #888888; } .likert-value-2:has(input[type=radio]:checked) { color: #42a5f5; } .likert-value-1:has(input[type=radio]:checked) { color: #1565c0; }
.test-footer { text-align: center; margin-top: 10px; padding: 0 20px 20px; }
#next-page-btn { padding: 12px 35px; font-size: 18px; background-color: #007bff; color: #fff; border: none; border-radius: 5px; cursor: pointer; transition: background-color .3s; }
#next-page-btn:disabled { background-color: #ccc; cursor: not-allowed; }

/* --- Responsive Justeringer --- */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-grid .form-row {
        margin-bottom: 15px;
    }
    .mindgrow-test-wrapper,
    #pre-test-form-container,
    #disc-test-container {
        padding: 20px;
    }
    /* ÆNDRING: Reglen, der fik knapperne til at ombryde, er fjernet. */
    /* I stedet justerer vi afstanden for at de bedre kan være der. */
    .likert-scale-container {
        gap: 5px;
    }
    .likert-label {
        font-size: 12px;
        padding: 8px 2px;
    }
}