/* New Style Flex Form */

/* Common styles */
.form-group .margin-right-5 {
    margin-right: 5%;
}

.form-group .form-input-row {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.form-input-row .form-row-half {
    flex-basis: 55%;
}

.form-group > input::placeholder {
    font-weight: 400;
}

.form-button {
    border: none;
    background: #3eb448;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    display:inline-block;
    text-align: center;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    padding:0px 40px;
    line-height: 45px;
}

.form-button:hover {
    background: #3ad347;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.button-margin {
    margin-left: 55%;
}

.captcha-common {
    align-items: center !important;
}

/* Flex Row Styles */

#flex-form .form-group {
    color: #898989;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 19px;
}

.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
}

.flex-row > label {
    font-weight: 600;
    flex-basis: 40%;
    margin-right: 5%;
    text-align: right;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    padding-right: 0px !important;
}

.flex-row > input, .flex-row .form-row-half > input {
    height: 50px;
    border-radius: 5px;
    box-shadow: inset 0 0px 3px rgba(0, 0, 0, 0.08);
    color: black;
    margin: 0px;
    font-size: 13px;
    padding: 5px 5px 5px 15px;
    flex: 1;
}

.flex-row > input[type='text'] {
    padding: 10px;
}

.flex-row .form-error {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-basis: 100%;
}

.flex-row .form-checkbox {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    font-weight: 600;
}

.flex-row .form-checkbox label > input[type='checkbox'] {
    margin: 4px 5px 0px 0px;
}

.flex-row .form-checkbox > label {
    font-size: 14px;
    color: #898989;
    font-weight: 600;
    text-transform: uppercase;
}

.flex-row > select {
    flex: 1;
    height: 45px;
    border-radius: 5px;
    box-shadow: inset 0 0px 3px rgba(0, 0, 0, 0.08);
    color: #777;
    margin: 0px;
    width: 100%;
    line-height: 4em;
    font-size: 14px;
}

/* End Row Style */

/* Column Style - Not completed , need to improve more */

.flex-column {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    flex-wrap: wrap;
}


.flex-column > label {
    font-weight: 600;
    flex-basis: 40%;
    text-transform: uppercase;
    padding: 0px 10px;
}

.flex-column > input, .form-row-half > input {
    height: 50px;
    border-radius: 5px;
    box-shadow: inset 0 0px 3px rgba(0, 0, 0, 0.08);
    color: black;
    margin-left: 10px;
    font-size: 13px;
    padding: 5px 5px 5px 15px;
    flex: 1;
}

.flex-column > input[type='text'] {
    padding: 10px 10px;
}

.flex-column .form-error {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-basis: 100%;
    margin-left: 10px;
}

/* End Column Style */

@media only screen and (max-width: 1199px) {
    /* Common Styles */
    #flex-form .form-group {
        font-size: 12px;
    }

    .button-margin {
        margin: 0 auto;
    }

    /* Flex Row */
    .form-group > input::placeholder {
        font-size: 13px;
    }

    .flex-row .form-checkbox > label {
        font-size: 12px;
        margin-bottom: 0px;
    }

    .flex-row > label {
        flex-basis: 40%;
    }

    .flex-column > label {
        flex-basis: 40%;
    }
}

@media only screen and (max-width: 420px) {
    /* Common Styles */
    .flex-column-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .flex-column-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .captcha-mobile {
        align-items: center !important;
    }

    .captcha-label {
        margin: 0 auto !important;
    }

    #recaptcha-div {
        margin: 0 auto !important;
    }
}