body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
input[type="file"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Important for consistent sizing */
}

input[type="file"] {
    padding: 3px; /* Specific adjustment for file input */
}

textarea {
    resize: vertical; /* Allow vertical resize, disable horizontal */
}

button[type="submit"] {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #4cae4c;
}

.message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: left;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error-message {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

.error-message ul {
    list-style-type: disc;
    margin-left: 20px;
}

.error-message a, .success-message a {
    color: #31708f;
    text-decoration: none;
    font-weight: bold;
}

.error-message a:hover, .success-message a:hover {
    text-decoration: underline;
}
