/* General body styling for a clean background and good font */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensures the form is centered vertically on the page */
    margin: 0;
    padding: 20px; /* Add some padding around the form */
    box-sizing: border-box; /* Include padding in the element's total width and height */
}

/* Styling for the main form container */
form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px; /* Limit the maximum width of the form */
}

/* Header styling */
h1 {
    text-align: center;
    color: #333333;
    margin-bottom: 30px;
    font-size: 2em;
}

/* Styling for labels and input groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    font-weight: bold;
}

/* Text input and application number input styling */
input[type="text"],
input[type="number"] {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Radio button and checkbox styling */
.radio-group,
.checkbox-group {
    margin-bottom: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #333333;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
    /* Optional: custom styling for radio/checkbox for better cross-browser consistency */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 3px; /* For checkbox */
    border-radius: 50%; /* For radio */
    outline: none;
    cursor: pointer;
    position: relative; /* For custom checkmark */
    display: inline-block; /* To align with text */
    vertical-align: middle; /* To align with text */
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    border-color: #007bff;
    background-color: #007bff;
}

/* Custom checkmark for checkboxes */
input[type="checkbox"]:checked::after {
    content: '\2713'; /* Unicode checkmark */
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Custom dot for radio buttons */
input[type="radio"]:checked::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Dropdown (select) styling */
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 1em;
    background-color: #ffffff;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none; /* For WebKit browsers */
    -moz-appearance: none; /* For Mozilla browsers */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M2%200L0%202h4L2%200z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
    box-sizing: border-box;
}

/* Textarea styling */
textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 1em;
    min-height: 80px; /* Minimum height for textarea */
    resize: vertical; /* Allow vertical resizing */
    box-sizing: border-box;
}


/* Submit button styling */
input[type="submit"] {
    display: block; /* Make the button a block element */
    width: 100%;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 30px; /* Add some space above the button */
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Responsive design adjustments (optional) */
@media (max-width: 768px) {
    form {
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }
}
