form {
    background-color: #f2f2f2;
    border-radius: 5px;
    margin: 20px auto;
    padding: 35px;
    width: 90%;
}

input {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    margin: 8px 0;
    padding: 12px 20px;
    width: 100%;

}

textarea {
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 150px;
    resize: vertical;
    width: 100%;
}

button {
    background-color: #2a6592;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin: 8px 0;
    padding: 14px 20px;
    width: 100%;
}

button:focus,
button:hover {
    filter: brightness(125%);
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    form {
        width: 90%;
    }

    /* CSS rules for extra small devices */
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    form {
        width: 70%;
    }

    /* CSS rules for small devices */
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    form {
        width: 50%;
    }

    /* CSS rules for medium devices */
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    form {
        width: 40%;
    }

    /* CSS rules for large devices */
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    form {
        width: 30%;
    }

    /* CSS rules for extra large devices */
}