/* General styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Wrapper to ensure the page fills the screen */
#wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
#header {
    padding: 5px 10px;
    background-color: #dcdcdc;
    text-align: center;
}

#header img {
    width: 240px;
    height: auto;
    mix-blend-mode: darken;
    display: block;
    margin: 0 auto;
}

#content {
    margin-left: 250px; /* Moves content to the right of the sidebar */
    padding: 20px;
    background: white;
    font-size: 24px; /* Makes text more readable */
    color: black; /* Ensures text is visible */
    min-height: calc(100vh - 100px); /* Prevents content from getting cut off */
}

/* Sidebar styling */
#sidebar {
    float: left;
    width: 230px;
    padding: 10px;
    background: red;
    height: 100vh; /* Full-height sidebar */
    position: fixed; /* Keeps sidebar in place */
    top: 0;
    left: 0;
    overflow-y: auto;
}

#sidebar ul {
    padding: 0;
    margin: 0;
}

#sidebar ul li {
    list-style: none;
    margin: 10px 0;
}

#sidebar a {
    text-decoration: none;
    color: wheat;
    font-size: 18px;
    font-weight: bold;
    display: block;
    padding: 5px;
}

/* Ensure all labels have a uniform font size and weight */
label {
    font-size: 14px; /* Adjust as needed */
    font-weight: normal; /* Ensures consistency */
}

/* Main content container */
.container {
    margin-left: 250px; /* Creates space for the fixed sidebar */
    padding: 20px;
}

/* Heading styles */
h2 {
    margin: 0 0 1em;
}

/* Form Styling - Improved */
form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column; /* Labels appear above inputs */
    margin-bottom: 15px; /* Adds spacing between form fields */
}

h3 {
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group.row {
    margin-bottom: 12px;
    padding: 8px 5px;
    border-radius: 3px;
}

.form-group.row:nth-child(even) {
    background-color: #f0f0f0;
}

.form-group label, .control-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px; /* Adds space below labels */
}

.form-group input, .form-group textarea {
    width: 100%; /* Inputs take full width */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Add an indent container for radio buttons */
.radio-group {
    margin-left: 20px; /* Align with the S in Sanitation */
}

/* Make sure Yes and No are properly spaced */
.radio-inline {
    margin-right: 30px;
}

/* Fix for radio buttons - ONLY change these classes */
.radio-inline {
    display: inline-block;
    margin-right: 20px;
    padding-left: 25px; /* Space for the radio button */
    position: relative;
}

.radio-inline input[type="radio"] {
    position: absolute;
    left: 0;
    top: 2px;
}

.custom-radio {
    display: inline-block;
    margin-right: 20px;
    padding-left: 25px;
    position: relative;
}

.custom-radio input[type="radio"] {
    position: absolute;
    left: 0;
    top: 2px;
}

/* Add spacing between question groups */
.question-group {
    margin-bottom: 25px; /* Increased spacing between questions */
}

/* Button styling */
button, .btn-primary {
    padding: 10px 15px;
    background: blue;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

button:hover, .btn-primary:hover {
    background-color: #0056b3;
}

/* Footer styling */
#footer {
    clear: both;
    padding: 10px;
    background: #cc9;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

#footer p {
    margin: 0;
    bottom: 0;
}