@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5; /* A light, soft grey background */
    color: #333; /* Darker text for readability */
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('form.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

h2 {
    text-align: center;
    color: #4a4a4a;
    font-size: 2.5em;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    display: block;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    border-color: #5b9bd5; /* A clean blue focus highlight */
    outline: none;
    box-shadow: 0 0 5px rgba(91, 155, 213, 0.5);
}

select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="%23555"%3e%3cpath d="M6 9.5L1.5 5h9z"/%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #5b9bd5;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #4a8acb;
}

textarea {
    resize: vertical;
    min-height: 100px;
}