/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 20px; /* Space between header and form */
}

.logo {
    max-width: 150px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Space between logo and heading */
}

h1 {
    color: #333;
    font-size: 24px; /* Adjust font size as needed */
    margin: 0; /* Remove default margin */
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 10px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
}

/* Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding is included in width */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    border-color: #66afe9;
    outline: none; /* Remove default outline */
}

/* File Input Styles */
.custom-file-upload {
    display: block; /* Change to block to ensure it takes full width */
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9; /* Light background */
    width: 100%; /* Full width */
    text-align: center; /* Center text */
    margin: 5px 0 15px 0; /* Margin for spacing */
    box-sizing: border-box; /* Include padding and border in width */
}

input[type="file"] {
    display: none; /* Hide the default file input */
}

/* Focus Styles for File Input */
.custom-file-upload:hover {
    background-color: #e9e9e9; /* Darker background on hover */
}

.custom-file-upload:focus {
    border-color: #66afe9; /* Change border color on focus */
    outline: none; /* Remove default outline */
}

/* Button Styles */
input[type="submit"],
input[type="reset"],
button {
    background-color: #5cb85c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover {
    background-color: #4cae4c; /* Darker green on hover */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    textarea,
    select,
    input[type="file"] {
        font-size: 14px;
    }

    input[type="submit"],
    input[type="reset"],
    button {
        font-size: 14px;
    }
}