/*
 Theme Name: Grand Chaiyo
 Template: go
 Version: 1.4
 ...other header fields
 */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {

    .cform-wrapper,
    form {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
    }

    .cform-submit-wrapper {
        width: 30%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
    }

    .cform-input {
        width: 70%;
        display: flex;
        flex-direction: row;
    }

    #username {
        font-size: small;
        height: 40px;
        min-width: 100px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
        margin-right: 4px !important;
    }

    #password {
        font-size: small;
        height: 40px;
        min-width: 100px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
    }

    #submit {
        font-size: small;
        color: #fff;
        height: 40px;
        min-width: 100px;
        width: 100%;
        border-radius: 4px;
        background-color: #b26464 !important;
        padding: 0 !important;
        margin: 0px !important;
    }

    .cform-forgot-password {
        text-align: center;
        min-width: 100px;
        width: 100%;
        margin-top: 0.5rem;
    }

    /* สี link ลืมรหัสผ่าน */
    .cform-forgot-password a {
        font-size: small;
        color: black;
    }

    /* สี placeholder */
    ::placeholder {
        color: rgb(255, 255, 255);
        opacity: 1;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {

    .cform-wrapper,
    form {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cform-submit-wrapper {
        width: 30%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 !important;
    }

    .cform-input {
        width: 50%;
        display: flex;
        flex-direction: row;
    }

    #username {
        font-size: small;
        height: 40px;
        min-width: 100px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
        margin-right: 4px !important;
    }

    #password {
        font-size: small;
        height: 40px;
        min-width: 100px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
    }

    #submit {
        font-size: small;
        color: #fff;
        height: 40px;
        width: 60%;
        border-radius: 4px;
        background-color: #b26464 !important;
        padding: 0 !important;
        margin: 0px !important;
    }

    .cform-forgot-password {
        text-align: center;
        min-width: 100px;
        width: 100%;
        margin-top: 0.5rem;
    }

    /* สี link ลืมรหัสผ่าน */
    .cform-forgot-password a {
        font-size: small;
        color: black;
    }

    ::placeholder {
        color: rgb(255, 255, 255);
        opacity: 1;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {

    .cform-wrapper,
    form {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cform-submit-wrapper {
        width: 40%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .cform-input {
        width: 60%;
        display: flex;
        flex-direction: row;
    }

    #username {
        font-size: medium;
        height: 40px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
        margin-right: 4px !important;
    }

    #password {
        font-size: medium;
        height: 40px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
    }

    #submit {
        font-size: medium;
        color: #fff;
        height: 40px;
        width: 60%;
        border-radius: 4px;
        background-color: #121212 !important;
        padding: 0 !important;
        margin: 0px !important;
    }

    .cform-forgot-password {
        text-align: center;
        width: 40%;
        margin-left: 0.6rem;
    }

    /* สี link ลืมรหัสผ่าน */
    .cform-forgot-password a {
        color: black;
    }

    ::placeholder {
        color: rgb(255, 255, 255);
        opacity: 1;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

    .cform-wrapper,
    form {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cform-submit-wrapper {
        width: 40%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .cform-input {
        width: 60%;
        display: flex;
        flex-direction: row;
    }

    #username {
        font-size: medium;
        height: 40px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
        margin-right: 4px !important;
    }

    #password {
        font-size: medium;
        height: 40px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
    }

    #submit {
        font-size: medium;
        color: #fff;
        height: 40px;
        width: 60%;
        border-radius: 4px;
        background-color: #121212 !important;
        padding: 0 !important;
        margin: 0px !important;
    }

    .cform-forgot-password {
        text-align: center;
        width: 40%;
        margin-left: 0.6rem;
    }

    /* สี link ลืมรหัสผ่าน */
    .cform-forgot-password a {
        color: black;
    }

    ::placeholder {
        color: rgb(255, 255, 255);
        opacity: 1;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

    .cform-wrapper,
    form {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cform-submit-wrapper {
        width: 40%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }

    .cform-input {
        width: 60%;
        display: flex;
        flex-direction: row;
    }

    #username {
        font-size: medium;
        height: 40px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
        margin-right: 4px !important;
    }

    #password {
        font-size: medium;
        height: 40px;
        width: 45%;
        border-radius: 4px;
        padding: 0 !important;
        margin: 0px !important;
    }

    #submit {
        font-size: medium;
        color: #fff;
        height: 40px;
        width: 60%;
        border-radius: 4px;
        background-color: #121212 !important;
        padding: 0 !important;
        margin: 0px !important;
    }

    .cform-forgot-password {
        text-align: center;
        width: 40%;
        margin-left: 0.6rem;
    }

    /* สี link ลืมรหัสผ่าน */
    .cform-forgot-password a {
        color: black;
    }

    ::placeholder {
        color: rgb(255, 255, 255);
        opacity: 1;
    }
}