/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #dedede;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    text-align: center;
    z-index: 1000; /* Ensure header stays above other content */
}

header h1 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

/* Adjust form margin to account for fixed header */
form {
    margin-top: 80px; /* Ensure form starts below the header */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 80px auto 20px auto; /* Center form and add margin */
}

/* Style for labels */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #333;
}

/* Style for inputs and selects */
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px; /* Consistent margin */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Ensure textareas are hidden by default */
textarea {
    display: none;
    resize: vertical;
}

input[type="radio"] {
    margin-right: 10px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #333;
}

/* Submit button */
input[type="submit"] {
    background-color: #07b469;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-bottom: 10px;
}

input[type="submit"]:hover {
    background-color: #007527;
}

/* Secondary button style */
.secondary-button {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.secondary-button:hover {
    background-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 10px;
    }

    header h1 {
        font-size: 20px;
    }

    form {
        margin-top: 100px; /* Adjust form margin for smaller screens */
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 5px;
    }

    header h1 {
        font-size: 18px;
    }

    form {
        margin-top: 120px; /* Adjust form margin for very small screens */
    }
}
