* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.4rem;
    font-family: Helvetica, Arial, sans-serif;
    padding: 2rem 0;
    margin: 0;
}

form {
    margin: 0 auto;
}

.form__header {
    text-align: center;
    margin-bottom: 5rem;
}

.form__header .form-group {
    display: inline-block;
    margin: 0 1rem;
    width: calc(100% / 3 - 2.5rem);
}
.form-group label {
    display: inline-block;
    text-align: center;
    margin-bottom: .5rem;
    font-weight: 700;
}
.form-group input {
    width: 100%;
    padding: .5rem;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ececec;
    overflow: scroll;
    padding-right: 2rem;
    text-align: center;
}

li:not(:last-of-type) {
    position: relative;
    width: 100%;
    margin: 1rem 0;
    padding: 0 0 0 2rem;
}

li:not(:last-of-type) > a {
    position: absolute;
    top: 3rem;
    left: .5rem;
    color: white;
    text-decoration: none;
    font-size: 2rem;
}

.crops li:first-of-type > a {
    top: 3rem;
}

.crops li a {
    top: .25rem
}

ul label {
    width: auto;
    display: block;
    vertical-align: top;
    line-height: 2.5rem;
    font-weight: 700;
}
ul input,
ul textarea,
ul select,
.form-select select {
    padding: .5rem;
    max-width: 100%;
    width: 100%;
    min-height: 3rem;
}
ul textarea {
    width: 100%;
}

li > [id*=appbundle_submission_crops] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.crop__quantity {
    width: 10rem !important;
}

.crop__fields {
    flex: 0 0 70%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.crop__uploads {
    flex: 0 0 30%;
}

li > [id*=appbundle_submission_crops] .crop__fields > div {
    max-width: none;
}

.crop__fields > div {
    position: relative;
    flex: 1;
    margin: 0 .5rem;
    min-width: 12rem;
}

.crop__fields > div:nth-of-type(2) {
    min-width: 19rem;
}

.crop__fields > div:nth-of-type(4) {
    max-width: 10rem;
    min-width: 7rem;
}

.crop__fields > div:nth-of-type(6) {
    max-width: 15rem;
}

.crop__fields > div:nth-of-type(7) {
    max-width: 15rem;
}

.crop__fields > div:last-of-type {
    min-width: 15rem;
    padding-right: 2rem;
}

.cropFiles {
    padding-right: 0;
}

li:first-of-type input[type=file] + input {
    position: relative;
    margin-top: 3rem;
}
#appbundle_submission_crops_0_file {
    position: relative;
}
#appbundle_submission_crops_0_file:before {
    position: absolute;
    content: "Upload";
    font-weight: 700;
    left: 0;
    top: .4rem;
    width: 100%;
    text-align: center;
}
li:not(:first-of-type) label {
    display: none;
}

li:last-of-type {
    width: 100%;
    padding: 0;
}
li:last-of-type a {
    display: inline-block;
    background-color: #154094;
    color: white;
    padding: .5rem 1rem;
    text-decoration: none;
    border-radius: 3px;
    margin: 1.5rem 2.5rem;
}
li:last-of-type a:hover {
    background-color: #a91d21;
}

.js-add-crop-file a {
    top: .75rem !important;
    font-size: 1.4rem !important;
}

input, textarea {
    padding: .75rem 1rem;
    border: 1px solid #ececec;
    border-radius: 0;
    resize: none;
    font-size: 1.4rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border: 1px solid #ababab;
}

.has-error {
    border: 1px solid #db0000;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 3rem;
    border: 1px solid #ececec;
    border-radius: 0;
    background: #ffffff;
    width: 100%;
    position: relative;
}

.form-select {
    position: relative;
}

li > div > div:nth-of-type(4):after,
li > div > div:nth-of-type(5):after,
.form-select:after {
    position: absolute;
    content: "\25BC";
    width: 1rem;
    height: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 1rem;
}

.doubt-form li > div > div:nth-of-type(4):after,
.doubt-form li > div > div:nth-of-type(5):after,
.doubt-form .form-select:after {
    bottom: 1.5rem;
}


label.required {
    position: relative;
}
label.required:after {
    content: "*";
    color: red;
    margin-left: .5rem;
}

button {
    outline: none;
    padding: 1.2rem 2rem;
    display: inline-block;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.8rem;
    line-height: 1.5;
    border: none;
    background-color: #154094;
    color: white;
    width: auto;
    border-radius: 3px;

    margin-top: 5rem;
}

button:hover {
    cursor: pointer;
    background-color: #a91d21;
}

@media (max-width: 700px) {
    ul li {
        width: 100%;
    }
}
@media (max-width: 500px) {
    .form-group {
        width: 100%;
        margin: 0 0 1rem;
    }
    .form__header {
        margin-bottom: 2rem;
    }
}
@media (max-width: 360px) {
    li {
        padding: 1rem;
    }
    form {
        padding: 0 1rem;
    }
}

.tooltip {
    position: relative;
    display: inline-block;
    background-color: black;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    color: white;
    margin-left: .5rem;
    vertical-align: text-top;
    font-size: 1rem;
    line-height: 1.5;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 12rem;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: .5rem 0;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-top: .5rem;
    margin-left: -6rem;
}

.tooltip:hover .tooltiptext{
    visibility: visible;
}

.form-date .sr-only {
    display: none;
}

.form-date .dates {
    display: block;
    width: 100%;
}

.form-date .date-wrapper {
    position: relative;
    display: block;
    width: calc(100% / 3 - 1rem);
    float: right;
}
.form-date .date-wrapper:nth-child(2) {
    margin: 0 1.5rem;
}

.form-date .date-wrapper select {
    display: block;
    width: 100%;
    padding: .75rem;
    min-height: 3rem;
    position: relative;
}

.form-date .date-wrapper:after {
    position: absolute;
    content: "\25BC";
    width: 1rem;
    height: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    font-size: 1rem;
}

.doubt-form {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.doubt-form + button {
    margin: 0 1rem;
}

.doubt-form .form-group {
    margin-bottom: 2rem;
    width: calc(50% - 2.5rem);
    text-align: left;
}

.doubt-form label {
}

.doubt-form select,
.doubt-form input {
    height: 3.5rem;
}

.doubt-form textarea {
    width: 100%;
    height: 8rem;
    padding: .5rem;
}

#appbundle_doubtsubmission_file .control-label {
    display: none;
}
#appbundle_doubtsubmission_file .form-group {
    width: auto;
    min-width: 150px;
    margin: 0;
}
#appbundle_doubtsubmission_file input {
    border: 1px solid rgba(21,64,148,.5);
}

.body-doubt {
    padding: 3rem 0;
    background: #ececec;
}

html {
    background: #ffffff;
}

.js-add-crop-file .help-block {
    color: #db0000;
    font-size: 1rem;
}
