body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.form-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 800px;
    max-height: 90vh; /* Ensure the form container does not exceed the viewport height */
    overflow-y: auto; /* Add vertical scrolling */
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 20px; /* Increased space between questions */
}

input, select, textarea {
    width: 50%; /* Reduced textfield width to half */
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

textarea {
    resize: vertical;
    height: 100px;
}

button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
     margin-bottom: 20px;
}

button:hover {
    background-color: #0056b3;
}

input[type="checkbox"], input[type="radio"] {
    width: auto;
}

fieldset {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

legend {
    font-weight: bold;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
    padding: 10px;
    border: 1px solid #ccc; /* Add a border around the grid */
    border-radius: 4px; /* Add border radius */
    margin-top: 10px;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.availability-grid select {
    margin-left: 10px; /* Reduced space between the day dropdown and its corresponding time */
}

.availability-grid div {
    padding: 10px;
    border: 1px solid #ccc; /* Add a border around the grid */
    border-radius: 4px; /* Add border radius */
    margin-top: 10px;
}

 header {
            text-align: center;
            padding: 20px;
        }
        img {
            display: block;
            margin: 0 auto;
        }
