/* FORMS */

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

form {
    margin-top: 30px;
}

form label {
    color: #FFF;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

form .btn-group label.btn {
    margin-bottom: 0px;
}

form .form-group .btn-group label.btn {
    margin-bottom: 0px;
}

form .form-group {
    margin-bottom: 40px;
}

form .form-group .sub-group input {
    margin-bottom: 0;
}

form .increase-button,
form .decrease-button {
    width: 100%;
    height: 120px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    cursor: pointer;
}

form .increase-button {
    background-image: url(../../static/icons/icon-arrow-increase.svg);
}

form .decrease-button {
    background-image: url(../../static/icons/icon-arrow-decrease.svg);
}

form .incrementer + input {
    margin-bottom: 0;
}

form select.btn {
    border: none;
    outline: none;
    padding-left: 20px;
    padding-right: 70px;
    -webkit-appearance: none;
    background-image: url(../../static/icons/icon-arrow-down-white.svg);
    background-position: calc(100% - 20px) 50%;
    background-repeat: no-repeat;
    background-size: 30px;
    letter-spacing: -0.05rem;
}

form input,
form textarea {
    height: 80px;
    line-height: 80px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.2em;
    background-color: #2B3133;
    box-shadow: 0px 1px 0px 0px rgba(64, 73, 77, 0.392), inset 0px 1px 3px 2px rgba(0,0,0,0.1);
    border: none;
    outline: none;
    border-radius: 5px;
    color: #FFF;
    font-weight: 700;
    width: 100%;
    display: block;
    margin-bottom: 30px;
    text-align: left;
    letter-spacing: -0.05rem;
}

form input:focus,
form textarea:focus {
    background-color: #272c2e;
}

form input.center {
    text-align: center;
}

form textarea {
    min-height: 200px;
    padding: 20px;
    line-height: 36px;
}

form input[type="text"] {
    box-shadow: 0px 1px 0px 0px rgba(64, 73, 77, 0.392), inset 0px 1px 3px 2px rgba(0,0,0,0.1);
    font-size: 1.2em;
}

.input-control-wrapper form input[type="number"] {
    font-size: 1.4em;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

form input[type="date"] {
    -webkit-appearance: none;
}

form input[type="submit"] {
    box-shadow: none;
    background-color: #F38230;
    text-align: center;
    border-radius: 80px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    letter-spacing: -0.05rem;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

form input[type="submit"]:focus,
form input[type="submit"]:hover {
    background-color: #FF9933;
}

form input.search.has-filter {
    width: calc(100% - 100px);
    margin-right: 20px;
    float: left;
}

form .btn.icon.filter {
    background-image: url(../icons/icon-filter.svg);
    float: left;
    margin: 0;
}

form input[type="radio"],
form input[type="checkbox"] {
    visibility: hidden;
    height: 0;
    width: 0;
    position: absolute;
}

form input[type="radio"] + label,
form input[type="checkbox"] + label {
    color: #8A9499;
}

form input[type="radio"] + label.btn:hover,
form input[type="checkbox"] + label.btn:hover{
    background-color: #566066;
}

form input[type="radio"]:checked + label,
form input[type="radio"]:checked + label:hover,
form input[type="checkbox"]:checked + label,
form input[type="checkbox"]:checked + label:hover {
    background-color: #2C9DB0;
    color: #FFF;
}

form input[type="checkbox"] + label {
    text-align: left;
    background-position: calc(100% - 30px) 50%;
    background-repeat: no-repeat;
    background-size: 25px;
}

form input[type="checkbox"]:checked + label {
    background-image: url(../icons/icon-checkmark.svg);
}

form input.round {
    border-radius: 80px;
    padding-left: 40px;
}

form input.icon {
    padding-left: 100px;
    background-position: 40px 50%;
    background-repeat: no-repeat;
    background-size: 35px;
}

form input.search {
    background-image: url(../icons/icon-search.svg);
}

form input.has-icon {
    padding-right: 80px;
}

form input.valid,
form input.invalid {
    background-position: calc(100% - 27px) 50%;
    background-repeat: no-repeat;
    background-size: 25px;
}

form input.valid {
    background-image: url(../icons/icon-valid.svg);
}

form input.invalid {
    background-image: url(../icons/icon-invalid.svg);
}

form .password-wrapper {
    position: relative;
}

form .show-hide-password {
    height: 80px;
    width: 80px;
    position: absolute;
    right: 0;
    z-index: 99;
    top: 0;
    background-image: url(../icons/icon-eye.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 30px;
    opacity: 0.6;
    cursor: pointer;
}

form .show-hide-password.showing {
    opacity: 1;
}

::-webkit-input-placeholder {
    color: #4B5459;
}

:-moz-placeholder { /* Firefox 18- */
   color: #4B5459;  
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #4B5459;  
}

:-ms-input-placeholder {  
   color: #4B5459;  
}

form.first {
    margin-top: 0;
}

form.first input.search {
    margin-bottom: 30px;
}

.form-group .sub-group .btn {
    margin: 0;
}

.form-group.two .sub-group {
    width: calc((100% / 2) - 10px);
    float: left;
}

.form-group.two .sub-group.left {
    margin-right: 10px;
}

.form-group.two .sub-group.right {
    margin-left: 10px;
}

.form-group.three .sub-group {
    width: calc((100% / 3) - 20px);
    float: left;
}

.form-group.three .sub-group.middle {
    margin-left: 30px;
    margin-right: 30px;
    padding-top: 26px;
}

.form-group.five .sub-group {
    width: calc((100% / 5) - 16px);
    float: left;
    margin-right: 20px;
}

.form-group.five .sub-group:last-child {
    margin-right: 0;
}

.no-results-suggestion p {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    font-size: 1.2em;
}

.no-results-text {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
    font-size: 2.4em;
    font-weight: 700;
}

/* PAGE SPECIFIC FORMS */

.create-meal-page .calorie-count {
    font-weight: 400;
    color: #8A9499;
    font-size: 1rem;
    float: right;
}

.food {
    text-align: center;
    padding: 2px 20px;
    background-color: #2f3538;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.food .added .empty-label {
    padding-top: 20px;
    padding-bottom: 40px;
    font-size: 1.2em;
}

.food .added .btn {
    text-align: left;
    background-color: #E6E6E6;
    margin-bottom: 20px;
    color: #202526;
    position: relative;
}

.food .added .btn.validate-ingredient {
    text-align: left;
    background-color: #F2444D;
    margin-bottom: 20px;
    color: #202526;
    position: relative;
}

.food .added .food-name {
    width: calc(100% - 40px);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
}

.food .added .btn .remove {
    background-image: url(../icons/icon-close-dark.svg);
    background-size: 20px;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    height: 80px;
    width: 80px;
    cursor: pointer;
}

.log-weight-page form .left,
.log-weight-page form .right {
    width: 47%;
    float: left;
}

.log-weight-page form .middle {
    width: 6%;
    text-align: center;
    float: left;
    font-weight: 900;
    color: #FFF;
    font-size: 2em;
    position: relative;
    top: 160px;
}

.food-servings-page form .left,
.food-servings-page form .right {
    width: calc(50% - 5px);
    float: left;
}

.food-servings-page form .left {
    margin-right: 5px;
}

.food-servings-page form .right {
    margin-left: 5px;
    padding-top: 100px;
}

.ingredients-page .data-overview {
    margin-bottom: 40px;
}

.ingredients-page .instructions {
    font-size: 1rem;
    color: #8A9499;
    text-align: center;
}

.edit-macro-profile-page form input[type="submit"].btn {
    border-radius: 5px;
    background-color: #4B5459;
}

.edit-macro-profile-page form input[type="submit"]:focus.btn,
.edit-macro-profile-page form input[type="submit"]:hover.btn {
    background-color: #606C73;
}

.dashboard-page form input[type="submit"].btn {
    background-color: #4B5459;
}

.dashboard-page form input[type="submit"].blue {
    background-color: #2C9DB0;
}

.dashboard-page form input[type="submit"]:focus.btn,
.dashboard-page form input[type="submit"]:hover.btn {
    background-color: #606C73;
}

form input[type="submit"].boxy {
    border-radius: 5px;
    background-color: #4B5459;
}

form input[type="submit"]:focus.boxy,
form input[type="submit"]:hover.boxy {
    background-color: #606C73;
}

/* INLINE ERROR STYLES */


.account-page .field-wrapper.contains-error .error-message {
    display: block;
}

.account-page .field-wrapper.contains-error input {
    border-left: 10px solid #F2444D;
}

.account-page .field-wrapper .error-message {
    display: none;
    color: #F2444D;
    font-size: 0.9rem;
    line-height: 1.2rem;
    font-weight: 700;
    margin-top: -20px;
    margin-bottom: 30px;
}

.account-page .form-group .sub-group .field-wrapper .error-message {
    margin-top: 10px;
}

.account-page.login-page .field-wrapper .error-message,
.account-page.create-account-page .field-wrapper .error-message {
    margin-top: -10px;
    font-size: 1rem;
    line-height: 1.3rem;
}