@media screen and (min-width: 1200px) {

    .contact-us {
        border: 1px solid dimgray;
        width: 60%;
        margin: auto;
        max-width: 700px;
        padding: 4%;
        background-color: rgb(71, 88, 99);
        border-radius: 20px;
        margin-top: 40px;
    }

    .contact-us-title {
        color: rgb(255, 235, 205);
        margin-left: 50px;
        position: absolute;
        margin-top: -65px;
        margin-left: -15px;
        background-color: rgb(41, 51, 57);
        padding: 2px 5px;
        border-radius: 10px;
    }

    .contact-us h4 {
        color: rgb(255, 255, 255);
        margin-top: 0;
    }

    .contact-us-form {
        width: 90%;
        margin: auto;
    }

    .form-input {
        position: relative;
        margin: 30px 0;
    }

    .form-input input {
        width: 100%;
        height: 45px;
        padding: 0px 10px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        background-color: #fff;
        color: #333;
        transition: border-color 0.3s;
    }

    .form-input label {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #aaa;
        padding: 0 5px;
        transition: 0.2s ease all;
        pointer-events: none;
        border-radius: 5px;
    }

    .form-input input:focus + label,
    .form-input input:not(:placeholder-shown) + label {
        top: -10px;
        left: 10px;
        font-size: 13px;
        color: #FFD369;
    }

    .form-input input:focus {
        border-color: #FFD369;
        outline: none;
    }

    .submission {
        width: 100%;
    }

    .submitBtn {
        width: 100%;
        height: 45px;
        font-size: 16px;
        background-color: #FFD369;
        padding: 0px 10px;
        color: #333;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .submitBtn:hover {
        background-color: #e6b847;
}

}

@media screen and (min-width: 769px) and (max-width: 1199px) {

    .contact-us {
        border: 1px solid dimgray;
        width: 70%;
        margin: auto;
        max-width: 750px;
        padding: 3%;
        background-color: rgb(71, 88, 99);
        border-radius: 20px;
        margin-top: 35px;
    }

    .contact-us-title {
        color: rgb(255, 235, 205);
        position: absolute;
        margin-top: -50px;
        margin-left: -10px;
        background-color: rgb(41, 51, 57);
        padding: 3px 6px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .contact-us h4 {
        color: rgb(255, 255, 255);
        margin-top: 10px;
        margin-left: 5px;
        font-size: 1.1rem;
    }

    .contact-us-form {
        width: 90%;
        margin: auto;
    }

    .form-input {
        position: relative;
        margin: 25px 0;
    }

    .form-input input {
        width: 100%;
        height: 45px;
        padding: 0px 10px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        background-color: #fff;
        color: #333;
        transition: border-color 0.3s;
    }

    .form-input label {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #aaa;
        padding: 0 5px;
        transition: 0.2s ease all;
        pointer-events: none;
        border-radius: 5px;
        background-color: rgb(71, 88, 99); /* prevent text overlap */
    }

    .form-input input:focus + label,
    .form-input input:not(:placeholder-shown) + label {
        top: -10px;
        left: 10px;
        font-size: 13px;
        color: #FFD369;
    }

    .form-input input:focus {
        border-color: #FFD369;
        outline: none;
    }

    .submission {
        width: 100%;
    }

    .submitBtn {
        width: 100%;
        height: 45px;
        font-size: 16px;
        background-color: #FFD369;
        padding: 0px 10px;
        color: #333;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .submitBtn:hover {
        background-color: #e6b847;
    }
}

@media screen and (max-width: 768px) {

    .contact-us {
        border: 1px solid dimgray;
        width: 80%;
        margin: auto;
        padding: 2%;
        background-color: rgb(71, 88, 99);
        border-radius: 20px;
        margin-top: 30px;
    }

    .contact-us-title {
        color: rgb(255, 235, 205);
        margin-left: 10px;
        margin-top: -25px;
        position: absolute;
        background-color: rgb(41, 51, 57);
        padding: 2px 5px;
        border-radius: 10px;
    }

    .contact-us h4 {
        color: rgb(255, 255, 255);
        margin-top: 20px;
        margin-left: 5px;
    }

    .contact-us-form {
        width: 90%;
        margin: auto;
    }

    .form-input {
        position: relative;
        margin: 20px 0;
    }

    .form-input input {
        width: 100%;
        height: 40px;
        padding: 0 10px;
        font-size: 16px;
        border: 2px solid #ccc;
        border-radius: 8px;
        background-color: #fff;
        color: #333;
        transition: border-color 0.3s;
    }

    .form-input label {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 16px;
        color: #aaa;
        padding: 0 5px;
        transition: 0.2s ease all;
        pointer-events: none;
        border-radius: 5px;
    }

    .form-input input:focus + label,
    .form-input input:not(:placeholder-shown) + label {
        top: -10px;
        left: 10px;
        font-size: 13px;
        color: #FFD369;
    }

    .form-input input:focus {
        border-color: #FFD369;
        outline: none;
    }

    .submission {
        width: 100%;
        margin-bottom: 10px;
    }

    .submitBtn {
        width: 100%;
        height: 40px;
        font-size: 16px;
        background-color: #FFD369;
        padding: 0px 10px;
        columns: #333;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

}