/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Global & Canvas Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #fcfcfc;
    color: #161616;
    line-height: 1.6;
    padding: 2.5rem 1rem;
    max-width: 760px;
    margin: 0 auto;
}

/* Headings & Intro */
h1 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #161616;
    margin-bottom: 0.75rem;
}

.lead {
    font-size: 1.1rem;
    color: #4a4a4a;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

p {
    color: #333333;
}

a {
    color: #0d6efd;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Questionnaire Section Layout */
#ipss-test {
    margin-top: 2rem;
    margin-bottom: 2.5rem;
}

/* Question Styling */
#ipss-test > p {
    font-weight: 600;
    font-size: 1.05rem;
    color: #161616;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Options Container (Card style for each question block) */
.options {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Individual Radio Option Styling */
.form-check {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.form-check:last-child {
    border-bottom: none;
}

.form-check:hover {
    background-color: #fafafa;
    border-radius: 6px;
}

.form-check-input {
    cursor: pointer;
    width: 1.15em;
    height: 1.15em;
    margin-top: 0;
    margin-right: 0.75rem;
    border-color: #d1d5db;
}

.form-check-input:checked {
    background-color: #161616;
    border-color: #161616;
}

.form-check-input:focus {
    border-color: #161616;
    box-shadow: 0 0 0 0.25rem rgba(22, 22, 22, 0.15);
}

.form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #2e2e2e;
    font-weight: 400;
    width: 100%;
}

/* Results Box */
.results {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.your-results {
    font-size: 1.25rem;
    font-weight: 700;
    color: #161616;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.your-results #points {
    color: #0d6efd;
    font-size: 1.5rem;
}

.results div strong {
    color: #161616;
}

mark {
    background-color: #fef08a;
    color: #713f12;
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

/* Footer Section */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
}

footer strong {
    color: #374151;
}