/* General Body and Resets */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* --- NEW HEADER STYLES --- */
.main-header {
    background-color: #B7C9E2;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center; /* Horizontally center the content */
}

.header-content {
    width: 100%;
    max-width: 1200px; /* Adjust this to match your desired max content width */
    padding: 0 20px;
}

.main-header img {
    /* Set a MAXIMUM height for large screens */
    max-height: 150px; 
    
    /* Set a MAXIMUM width to prevent overflow on small screens */
    max-width: 100%;

    /* Let the browser handle the other dimension automatically */
    height: auto;
    width: auto;

    display: block;
}
/* --- END HEADER STYLES --- */


/* Main content area */
.main-body-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
    margin-top: 20px;
}
h1, h2, h3 {
    color: #0056b3;
}
input[type="email"],
input[type="text"],
input[type="file"],
input[type="datetime-local"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}
input[type="submit"]:hover {
    background-color: #0056b3;
}
.error {
    color: #d9534f;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.success {
    color: #3c763d;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.field-group {
    margin-bottom: 25px;
    border-left: 3px solid #007bff;
    padding-left: 15px;
}
.field-group h3 {
    margin-top: 0;
}
.field-group p.explanation {
    font-size: 0.9em;
    color: #666;
    margin-top: -10px;
}
.checkbox-group label {
    display: block;
    margin-bottom: 5px;
}
.view-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.view-table th, .view-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.view-table th {
    background-color: #f2f2f2;
}
.view-table tr:nth-child(even){background-color: #f9f9f9;}
.view-table tr:hover {background-color: #ddd;}
.view-submissions .container { 
    max-width: 1200px;
}