 /* Base styles for the screening tool */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top for longer content */
    min-height: 100vh;
}

/* Container for the Screener */
.screener-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 800px; /* Max width for readability */
    width: 100%;
}

/* Headings */
h1 {
    /* Tailwind classes handle font-size, color, etc. in HTML */
}
h2 {
    /* Tailwind classes handle font-size, color, border, etc. in HTML */
}
h3 {
    /* Tailwind classes handle font-size, color, etc. in HTML */
}

/* Paragraphs */
p {
    margin-bottom: 15px;
}

/* Buttons (for navigation) */
.btn {
    background-color: #3498db; /* Default blue for buttons */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.btn:hover {
    background-color: #2980b9; /* Darker blue on hover */
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Arial', sans-serif; /* Consistency */
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* Radio/Checkbox groups for better readability */
.radio-group label, .checkbox-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem; /* More space between options */
    margin-bottom: 0.5rem;
    font-weight: normal; /* Labels within groups don't need to be bold */
}
.radio-group input[type="radio"], .checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.1); /* Slightly larger radio/checkbox for easier clicking */
}

.form-group {
    margin-bottom: 20px;
}

/* Specific styling for observation sections */
.observation-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-color: #bfdbfe;
}
.observation-instructions {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    border-left: 4px solid #60a5fa;
    padding-left: 0.75rem;
}
.score-input {
    width: 80px;
    text-align: center;
}

/* Recommendation sections */
.recommendation-box {
    background-color: #e0f2fe;
    border-left: 5px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.recommendation-box h3 {
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

/* Signature Styling */
.signature {
    text-align: center;
    font-size: 0.8em;
    color: #555;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}


/* --- Print Styles for A4 Page Breaks --- */
@media print {
    body {
        background-color: #fff;
        padding: 0;
        margin: 0;
        color: #000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-size: 11pt;
    }

    .screener-container {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
        width: 100%;
        padding: 1cm;
        margin: 0;
    }

    h1 {
        font-size: 24pt;
        margin-bottom: 15mm;
        color: #000;
    }
    h2 {
        page-break-before: always;
        margin-top: 2cm;
        font-size: 18pt;
        border-bottom: 1pt solid #ccc;
        padding-bottom: 5mm;
        color: #000;
    }
    h3 {
        font-size: 14pt;
        margin-top: 1cm;
        margin-bottom: 5mm;
        color: #000;
    }

    p, ul, ol, div {
        widows: 3;
        orphans: 3;
        margin-bottom: 8mm;
    }

    .observation-section {
        background-color: #eef;
        border: 1px solid #ddd;
        padding: 10mm;
        margin-bottom: 10mm;
        border-color: #ccc;
    }
    .observation-instructions {
        color: #333;
        border-left-color: #a0c4ff;
    }

    .btn-navigation {
        display: none;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select {
        border: 1px dashed #bbb;
        padding: 2mm;
        background-color: #f9f9f9;
    }
    textarea {
        min-height: 50px;
    }
    .radio-group label, .checkbox-group label {
        margin-right: 1cm;
    }
    input[type="radio"], input[type="checkbox"] {
        border: 1px solid #777;
    }

    .recommendation-box {
        background-color: #f0f8ff;
        border-left: 4px solid #a0c4ff;
        padding: 8mm;
        margin-top: 1cm;
        margin-bottom: 1cm;
    }
    .signature {
        page-break-before: auto;
        margin-top: 1.5cm;
        text-align: center;
        font-size: 0.8em;
        color: #555;
    }
}