body {
    font-family: Arial, sans-serif;
    background-color: #808080; /* Gray background as per the image */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    overflow-y: auto;
}

.form-container {
    background-color: #808080;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-top: 5%;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #FFFFFF;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    color: #333;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    font-weight: normal;
    color: #FFFFFF;
}

button {
    background-color: #FFFFFF;
    color: #333;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #cccccc;
}

.back-button {
    margin-top: 55px;
    display: inline-block;
    margin-bottom: 15px;
    padding: 10px 20px;
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #adadad;
}

/* Mobile Device Styles */
@media (max-width: 768px) {
    body {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .form-container {
        width: 95%;
    }
}

/* Landscape mode on phone */
@media (max-height: 500px) {
    body {
        height: auto;
        margin: 0;
    }

    .form-container {
        width: 90%;
    }

    input[type="text"],
    input[type="tel"] {
        font-size: 14px;
    }
}
