body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #0056b3;
}

.section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc;
}

.section:last-child {
    border-bottom: none;
}

.question-block {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.question-block p {
    margin-bottom: 10px;
}

.question-block input[type="text"],
.question-block input[type="number"] {
    width: calc(100% - 22px); /* Adjust width for padding and border */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* For radio buttons, adjust layout if needed */
.question-block input[type="radio"] {
    margin-right: 8px;
}

.question-block label {
    display: flex; /* Aligns radio button and text nicely */
    align-items: center;
    margin-bottom: 8px;
}

/* Buttons */
button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    display: block;
    width: fit-content; /* Adjust width to content */
    margin-left: auto;
    margin-right: auto;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

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

.question-progress {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

/* Results styles */
.results-container {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fdfdfd;
}

.result-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    background-color: #ffffff;
}

.correct {
    color: green;
    font-weight: bold;
}

.incorrect {
    color: red;
    font-weight: bold;
}

.explanation {
    font-style: italic;
    color: #555;
    margin-top: 5px;
}

#overallScore {
    text-align: center;
    margin-top: 20px;
    font-size: 1.5em;
    color: #0056b3;
}

#overallExpectations {
    text-align: center;
    font-size: 1.8em;
    margin-top: 10px;
}

/* Specific styles for info collection form */
#infoCollection label {
    font-weight: bold;
    margin-bottom: 5px;
}

#infoCollection input[type="text"],
#infoCollection input[type="email"] {
    width: calc(100% - 20px); /* Adjust width to fit */
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#startAssessmentBtn {
    background-color: #007bff; /* Blue button */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    display: block;
    width: 200px; /* Specific width */
    margin: 20px auto 10px auto; /* Center button */
}

/* Text centering as requested */
#assessmentIntro,
#securityCheckText {
    text-align: center;
}

#resultsHeading {
    text-align: center;
}

/* Timer styles */
.assessment-header {
    display: flex;
    justify-content: space-between; /* Pushes children to ends */
    align-items: center;
    margin-bottom: 20px;
}

.timer-wrapper {
    font-size: 1.2em;
    padding: 5px 10px;
    background-color: #f9f9f9; /* Consistent with question blocks */
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
#time {
    color: red;
    font-weight: bold;
}

/* New style for the actual question text content when displayed below the topic */
.question-text-content {
    margin-top: 5px;
    margin-bottom: 15px; /* Increased space after question text */
    font-weight: normal; /* Ensure it's not bold like the heading */
}

/* Styles for messages that appear on results page */
#detailedResults p, /* This p tag holds the "Your full detailed results..." message */
#emailStatus {
    text-align: center;
    margin-top: 10px; /* Adjust spacing */
}

/* Turnstile centering */
.turnstile-container {
    margin: 20px auto; /* Centers the div horizontally */
    width: fit-content; /* Allows content to define width, or set a specific width */
    text-align: center; /* Centers inline content within the container if it doesn't take full width */
}

/* Outline for passage */
.passage {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px; /* Space below the passage */
    background-color: #f0f8ff; /* Light blue background for emphasis */
}