.trade-in-banner-container {
    overflow: hidden;
    background-color: #40be41;
    margin-bottom: 1rem;
}

.trade-in-banner {
    max-width: 1370px;
    min-height: 420px;
    margin-right: auto;
    margin-left: auto;
    background-image: url(/assets/img/trade-in/banner_3.jpg);
    background-size: cover;
    background-position: center center;
}

.trade-in-banner-text {
    display: none;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    font-size: 2.8rem;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    padding-top: 0.6em;
}

.trade-in-header-1 {
    text-align: center;
}
.trade-in-header-1 h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 3.2rem;
    line-height: 1.2;
    color: #2d2c2c;
    margin: 0;
}

.trade-in-text,
.trade-in-num,
ol.trade-in-ol li::marker {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1.3;
    color: #2d2c2c;
}

.trade-in-text.center {
    text-align: center;
}

.trade-in-text.invalid {
    color: #ff0000;
}

.trade-in-num {
    color: #3fbe3f;
    font-weight: 400;
    display: inline-block;
    margin-right: 2rem;
}

ol.trade-in-ol {
    list-style-type: decimal;
    list-style-position: outside;
}

ol.trade-in-ol li::marker {
    color: #3fbe3f;
    font-weight: 400;
}

ol.trade-in-ol li {
    padding-left: 1rem;
}

.trade-in.container .row .h3 {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

.trade-in.container .row img {
    display: block;
    margin: 0 auto;
    width: 370px;
    height: 370px;
}

.trade-in-form-header {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.3;
    margin-top: 0.6rem;
    margin-bottom: 0.3rem;
}

.trade-in-form form {
    border-radius: 2.3rem;
    box-shadow: 0.2rem 0.3rem 0.6rem 0.4rem #ccc;
    padding: 0.5rem;
}

.trade-in-form input,
.trade-in-popup input {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
}

.trade-in-form input[type="button"],
.trade-in-form input[type="submit"],
.trade-in-popup input[type="buttom"] {
    max-width: 50%;
}

.trade-in-form input[type="text"] {
    background-color: #f2f2f2;
    border-radius: 1.1rem;
    border: solid 2px #ffffff00;
    box-sizing: border-box;
    width: 100%;
    outline: none;
    padding: 1rem 1.3rem;
}

.trade-in-form input[type="text"]:focus {
    border: solid 2px #3fbe3f;
    box-sizing: border-box;
}

.trade-in-form input[type="text"]:focus.invalid {
    border-color: #ff0000;
}
.trade-in-form input[type="text"].invalid {
    border-color: #dd0000;
}

.trade-in-form input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.trade-in-form label.checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.2rem;
}
.trade-in-form label.checkbox::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0.0625rem 0 0;
    background: #fff;
    border: 1px #e5e5e5 solid;
    border-radius: 3px;
    transition: all 0.3s ease-out 0s;
}
.trade-in-form label.checkbox::after {
    content: "";
    opacity: 0;
    position: absolute;
    top: 0.475rem;
    left: 0.25rem;
    height: 0.375rem;
    width: 0.75rem;
    border: 2px solid #fff;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
    -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.7071067811865483, M12=0.7071067811865467, M21=-0.7071067811865467, M22=0.7071067811865483, SizingMethod='auto expand')";
    transition: all 0.3s ease-out 0s;
}
.trade-in-form input[type="checkbox"]:checked + label.checkbox::before {
    border-color: #3fbf3f;
    background-color: #3fbf3f;
}
.trade-in-form input[type="checkbox"]:checked + label.checkbox::after {
    opacity: 1;
}
.trade-in-form input[type="checkbox"]:focus + label.checkbox::before {
    outline: 2px solid #3fbf3f;
    outline-offset: 2px;
}
.trade-in-form input[type="checkbox"]:disabled + label.checkbox {
    background-color: #e5e5e5;
}
.trade-in-form input[type="checkbox"]:disabled + label.checkbox::before {
    cursor: not-allowed;
}
.trade-in-form input[type="checkbox"]:hover + label.checkbox::before {
    border-color:  #3fbf3f;
}
.trade-in-form input[type="checkbox"].invalid + label.checkbox::before {
    outline: 2px solid #dd0000;
    outline-offset: 2px;
}
.trade-in-form input[type="checkbox"]:focus.invalid + label.checkbox::before {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

.trade-in-form label.error {
    font-size: 1.2rem;
    margin-top: .625rem;
    line-height: 1.6rem;
    display: none;
}
.trade-in-form label.error::before {
    left: .7rem;
    top: -.5rem;
    border-width: 0 8px 8px;
    display: none;
}
.trade-in-form input.invalid + label.error,
.trade-in-form input.invalid + label.error::before {
    display: inline-block;
}

.trade-in-form input[type="button"],
.trade-in-form input[type="submit"],
.trade-in-popup input[type="button"] {
    border-radius: 5rem;
    border-width: 0.2rem;
    border-color: #3fbe3f;
    font-weight: 400;
    padding: 0.625rem;
    cursor: pointer;
}

.trade-in-form input[type="button"] {
    color: #3fbe3f;
    border-style: dashed;
}

.trade-in-form input[type="submit"],
.trade-in-popup input[type="button"].ok {
    background-color: #3fbe3f;
    color: #fff;
    border-style: solid;
}

.trade-in-popup input[type="button"].wrong {
    background-color: #999999;
    border-color: #999999;
    color: #fff;
}

.file-list {
    margin-top: 20px;
    width: 100%;
}

.file-item {
    background-color: #f2f2f2;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.4rem;
}

.file-name {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
}

.file-remove {
    background: none;
    color: #999;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-remove:hover {
    color: #ff0000;
}

.hidden-file-input {
    display: none;
}

.trade-in-popup-wrapper {
    position: relative;
}

.trade-in-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none; /* active: flext; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.trade-in-popup.active {
    display: flex;
}

.trade-in-popup .container {
    background: #fff;
    border-radius: 2.3rem;
    box-shadow: 0.2rem 0.3rem 0.6rem 0.4rem #00000040;
    padding: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.trade-in-popup .popup-ok-img,
.trade-in-popup .popup-wrong-img {
    height: 6rem;
    background-size: 6rem;
    background-repeat: no-repeat;
    background-position: center center;
}

.trade-in-popup .popup-ok-img {
    background-image: url(/assets/img/trade-in/popup_ok.svg);
}

.trade-in-popup .popup-wrong-img {
    background-image: url(/assets/img/trade-in/popup_wrong.svg);
}

.trade-in.container .flex--column {
    margin-top: 2.2rem;
}

/* fix order in main.css */
.flex--start-x--md {
    justify-content: flex-start;
}

.flex--end-x--md {
    justify-content: flex-end;
}

.trade-in-pl-pr-50 {
    padding-left: 3.125rem;
    padding-right: 3.125rem;
}

@media screen and (max-width: 1200px) {
    .trade-in-banner {
        max-width: 1200px;
        min-height: 320px;
    }
    .trade-in-form input[type="button"],
    .trade-in-form input[type="submit"],
    .trade-in-form input[type="button"] {
        max-width: 68%;
    }
}

@media screen and (max-width: 991px) {
    .flex--center-x {
        justify-content: center;
    }
    .trade-in-form input[type="button"],
    .trade-in-form input[type="submit"],
    .trade-in-form input[type="button"] {
        max-width: 54%;
    }
}

@media screen and (max-width: 920px) {
    .trade-in-banner {
        min-height: 240px;
    }
    .trade-in-form input[type="button"],
    .trade-in-form input[type="submit"],
    .trade-in-form input[type="button"] {
        max-width: 60%;
    }
}

@media screen and (max-width: 768px) {
    .trade-in-banner {
        min-height: 220px;
    }
    .trade-in-form input[type="button"],
    .trade-in-form input[type="submit"],
    .trade-in-form input[type="button"] {
        max-width: 70%;
    }
}

@media screen and (max-width: 640px) {
    .trade-in-banner {
        min-height: 174px;
    }
    .trade-in-form input[type="button"],
    .trade-in-form input[type="submit"],
    .trade-in-form input[type="button"] {
        max-width: 80%;
    }
    .trade-in-pl-pr-50 {
        padding: 0 .9375rem !important;
    }
}

@media screen and (max-width: 500px) {
    .trade-in-banner-container {
        min-height: 120px;
    }
    .trade-in-banner {
        display: none;
    }
    .trade-in-banner-text {
        display: block;
    }
    .trade-in-header-1 {
        line-height: 1.8;
    }
    .trade-in-form input[type="button"],
    .trade-in-form input[type="submit"],
    .trade-in-form input[type="button"] {
        max-width: 100%;
    }
}
