

.tradein { 
    max-width: 800px;
    margin: 0 auto; 
    color: #171717;
    min-height: 35vh;
}

.tradein__form h2 {
    margin-top: 0;
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
}

.tradein__form__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 24px;
    width: 100%;
}

.tradein__form__info__item {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
}

.tradein__form__name {
    font-weight: 400;
    font-size: 13px;
    line-height: 13px;
    letter-spacing: -0.02em;
    
}

.tradein__form__mods__group__items__item__name div {
    text-align: center;
}

.tradein .tradein__form__info__item input {
    display: initial;
    width: 100%;
    font-size: 16px; 
}

.tradein__form__info__item.error input {
    border-color: #fba0b0;
}

/* selector start */

.tradein__form__base__selector {
    margin-top: 24px;
}

.tradein__form__base__selector .selector-display {
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 2px;
    -webkit-box-shadow: none;
            box-shadow: none;
    color: #383838;
    font-size: 16px;
    padding: 8px 13px 7px;
    width: 100%;
    height: 37px;
    outline: none;
    cursor: pointer;
}

/* .tradein__form__base__selector .selector-display::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 20px;
    bottom: 20px;
    display: inline-block;
    width: 8px;
    height: 4px;
    background-image: url('data:image/svg+xml,<svg width="8" height="4" viewBox="0 0 8 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 4L0 0H8L4 4Z" fill="%23222228" /></svg>');
} */

.tradein__form__base__selector .selector-list {
    border-radius: 8px;
    padding: 10px;
    background: white;
    border: 1px solid #eeeeee;
}

.tradein__form__base__selector .selector-list input {
    border-radius: 6px;
    border: 1px solid #eeeeee;
    color: black;
    background: white;
    outline: none;
    height: 28px;
}

.tradein__form__base__selector .selector-list .selector-unselect {
    margin-left: 30px;
    font-size: 13px;
}

.tradein__form__base__selector .selector-list ul {
    margin-bottom: 0;
    padding: 3px 0;
}

.tradein__form__base__selector .selector-list li {
    font-size: 13px;
    margin: 3px 0;
    padding: 0;
}

.tradein__form__base__selector .selector-list li::before {
    content: none;
}

.tradein__form__base__selector .selector-list li:not(.active):hover,
.tradein__form__base__selector .selector-list li.active {
    background-color: #eeeeee;
}

.tradein__form__base__selector .selector-list .selector-list-item_others {
    color: inherit;
}

.tradein__form__base__selector .selector-list .selector-list-item_rest {
    color: inherit;
}

.tradein__form button {
    background-color: var(--theme-base-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}
.tradein__form button:hover {
    background-color: #1A3D7E;
}

/* mods group start */

.tradein__form__mods__group {
    margin-top: 24px;
}
.tradein__form__mods__group h3 {
    margin-top: 0px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: black;
}
.tradein__form__mods__group__items {
    margin-top: 16px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
}

.tradein__form__mods__group__items__item__name  {
    display: inline-grid;
    place-items: center;
}

.tradein__form__mods__group__items__item label {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px; 
}

.tradein__form__mods__group__items__item__name__text__description {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;  
  }

.tradein__form__mods__group__items input {
    display: none;
}
.tradein__form__mods__group__items label {
    border-radius: 4px;
    padding: 18px 16px;
    min-height: 80px;
    border: 1px solid #C6C6C6;
    cursor: pointer;
    margin: 0;
    width: 100%;
    height: 100%;
}
.tradein__form__mods__group__items__item {
    width: 100%;
}
.tradein__form__mods__group__items input:checked + label {
    border: 2px solid #FD3A99;
    padding: 17px 15px;
}

.tradein__form__mods__group .tradein__form__mods__group__items {
    display: grid;
    grid-template: repeat(2, auto) / repeat(2, 1fr);  
}
.tradein__form__mods__group--state .tradein__form__mods__group__items {
    grid-template: repeat(2, auto) / repeat(2, 1fr);
}
.tradein__form__mods__group--rom .tradein__form__mods__group__items {
    grid-template: repeat(2, auto) / repeat(2, 1fr);
}
.tradein__form__mods__group--color .tradein__form__mods__group__items {
    grid-template: repeat(2, auto) / repeat(3, 1fr);
}
.tradein__form__mods__group--warranty .tradein__form__mods__group__items {
    grid-template: repeat(2, auto) / repeat(2, 1fr);
}
.tradein__form__mods__group--set .tradein__form__mods__group__items {
    grid-template: repeat(2, auto) / repeat(2, 1fr);
}
.tradein__form__mods__group--sim .tradein__form__mods__group__items {
    grid-template: repeat(2, auto) / repeat(3, 1fr);
}


.tradein .tradein__form__submit-btn {
    width: 100%;
    margin-top: 24px;
    min-height: 48px;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px; 
}

.tradein__form__checkbox {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-top: 24px; 
}

.tradein .tradein__form__checkbox input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.tradein__form__checkbox input:checked {
    accent-color: #FD3A99;
}

.tradein__form__checkbox label {
    margin: 0;
    margin-left: 12px;
    font-size: 13px;
    line-height: 16px;
    cursor: pointer;
}

.tradein__form__mods__group__items__item {
    position: relative;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

/* tradein__form__price start */

.tradein__form__price-outer-wrapper {
    min-height: 35vh;
}

.tradein__form__price-title {
    font-weight: 700;
    font-size: 36px;
    line-height: 40px;
    margin: 0;
}

.tradein__form__price__info {
    margin-top: 24px;
    border: 1px solid #C6C6C6;
    border-radius: 4px;
}
.tradein__form__price__top-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
    font-size: 13px;
    line-height: 24px; 
}
.tradein .tradein__form__price__subtitle {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px; 
}
.tradein__form__price__row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    gap: 16px;
    min-height: 32px;
    border-bottom: 1px solid #eae5e5;
}
.tradein__form__price__row__title {
    font-weight: 400;
}
.tradein__form__price__row__value {
    font-weight: 600;
}
.tradein__form__price__bottom-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 12px;
    padding: 20px 23px;
    background: #f4f4f8;
}
.tradein__form__price__cash,
.tradein__form__price__exchange {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    gap: 16px;
    min-height: 36px;
    padding-bottom: 12px;
    border-bottom: 1px solid #CCCCCC;
}
.tradein__form__price__bottom-wrapper p {
    font-weight: 700;
    font-size: 16px;
    line-height: 24px; 
    margin: 0;
}
.tradein__form__price__bottom-wrapper span {
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    margin: 0; 
}
.tradein .tradein__form__price__calculation {
    margin: 0;
    font-weight: 400;
    font-size: 13px;
    line-height: 20px; 
}

.tradein__form__total-price {
    margin-top: 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    border: 1px solid var(--input_border_color);
    gap: 59px;
    min-height: 253px;
    border: 1px solid #C6C6C6;
    border-radius: 4px;
    padding: 20px 23px 32px;
}

.tradein__form__total-price__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
    max-width: 478px;
    width: 100%;
}

.tradein__form__total-price__img {
    max-width: 174px;
    width: 100%;
    height: auto;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}
.tradein__form__total-price__info__cost-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 16px;
}
.tradein__form__total-price__info__cost {
    font-weight: 700;
    font-size: 24px;
}
.tradein__form__total-price__info__cost-benefit {
    border-radius: 4px;
    padding: 4px 8px;
    font-weight: 600;
    font-size: 12px;
    line-height: 20px; 
    text-align: center;
    color: #303030;
    background: #f4f4f8;
}
.tradein__form__total-price__info__text {
    margin: 0;
    margin-top: -3px;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
}
.tradein__form__total-price__info__calculation {
    margin: 0;
    font-size: 13px;
    line-height: 18px;  
}

.tradein .tradein__form__total-price__info__btn {
    margin: 0;
}
/* tradein__form__total-price end */

/* admin */
.tradein__form__mods__group__items__item__name__text__price {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #fff;
    color:var(--theme-base-color);
    padding: 2px;
    border-radius: 2px;
    border: 1px solid var(--theme-base-color);
    opacity: 0.8;
    font-size: 0.8em;
}

.tradein__form__projects {
    margin: 20px 0;
}
.tradein__form__projects__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    gap: 10px;
}
.tradein__form__projects__list__item {
    position: relative;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    cursor: pointer;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.tradein__form__projects__list__item--active {
    background-color: var(--theme-base-color);
    color: #fff;
}

@media screen and (max-width: 768px) {
    .tradein__form__info {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

    .tradein__form__base__selector .selector-list input {
       width: 100%;
    }

    .tradein__form__base__selector .selector-list .selector-unselect {
        margin-left: 0;
     }

     .tradein__form__mods__group--state .tradein__form__mods__group__items {
        grid-template: repeat(1, auto) / repeat(1, 1fr);
    }
    .tradein__form__mods__group--color .tradein__form__mods__group__items {
        grid-template: repeat(2, auto) / repeat(2, 1fr);
     }
     .tradein__form__mods__group--sim .tradein__form__mods__group__items {
        grid-template: repeat(2, auto) / repeat(2, 1fr);
    }


     .tradein__form__checkbox label {
        display: inline;
     }
     /* tradein__form__total-price start */

     .tradein__form__price-title {
        font-size: 20px;
        line-height: 20px; 
     }

     .tradein__form__price__cash,
    .tradein__form__price__exchange {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        gap: 12px;
    }

     .tradein__form__total-price {
        gap: 12px;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        padding: 20px 16px 32px;
     }

     .tradein__form__total-price__info {
        margin-top: 42px;
        gap: 12px;
     }

     .tradein__form__total-price__info__text {
        margin: 0;
     }

     .tradein__form__total-price__img {
        -ms-flex-item-align: center;
            align-self: center;
        max-width: 206px;
     }

     .tradein__form__total-price__info__cost-wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        gap: 12px;
     }


    


    

    .tradein__form__price__top-wrapper {
        gap: 8px;
    }

    /* tradein__form__total-price end */
  }

  /*start loader css	*/
.lds-roller {
	margin: auto;
	position: relative;
	width: 80px;
	height: 80px;
	grid-column: 1/3;
	justify-self: center;
	align-self: center;
	margin-bottom: 30px;
}
.lds-roller div {
	-webkit-animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	-webkit-transform-origin: 40px 40px;
	    -ms-transform-origin: 40px 40px;
	        transform-origin: 40px 40px;
}
.lds-roller div:after {
	content: " ";
	display: block;
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fd3a99;
	margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
	-webkit-animation-delay: -0.036s;
	        animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
	top: 63px;
	left: 63px;
}
.lds-roller div:nth-child(2) {
	-webkit-animation-delay: -0.072s;
	        animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
	top: 68px;
	left: 56px;
}
.lds-roller div:nth-child(3) {
	-webkit-animation-delay: -0.108s;
	        animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
	top: 71px;
	left: 48px;
}
.lds-roller div:nth-child(4) {
	-webkit-animation-delay: -0.144s;
	        animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
	top: 72px;
	left: 40px;
}
.lds-roller div:nth-child(5) {
	-webkit-animation-delay: -0.18s;
	        animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
	top: 71px;
	left: 32px;
}
.lds-roller div:nth-child(6) {
	-webkit-animation-delay: -0.216s;
	        animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
	top: 68px;
	left: 24px;
}
.lds-roller div:nth-child(7) {
	-webkit-animation-delay: -0.252s;
	        animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
	top: 63px;
	left: 17px;
}
.lds-roller div:nth-child(8) {
	-webkit-animation-delay: -0.288s;
	        animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
	top: 56px;
	left: 12px;
}
@-webkit-keyframes lds-roller {
	0% {
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
		        transform: rotate(360deg);
	}
}
@keyframes lds-roller {
	0% {
		-webkit-transform: rotate(0deg);
		        transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
		        transform: rotate(360deg);
	}
}
/*end loader css*/