/*--------Start modal----------*/
/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 0; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 35px 120px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  align-content: center;
}


/* The Close Button */

.close:before {
  content: '';
  margin-right: 10px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='12' viewBox='0 0 14 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.75596 0.41107C7.0814 0.736507 7.0814 1.26414 6.75596 1.58958L3.17855 5.16699H12.8334C13.2936 5.16699 13.6667 5.54009 13.6667 6.00033C13.6667 6.46056 13.2936 6.83366 12.8334 6.83366H3.17855L6.75596 10.4111C7.0814 10.7365 7.0814 11.2641 6.75596 11.5896C6.43053 11.915 5.90289 11.915 5.57745 11.5896L0.577452 6.58958C0.421171 6.4333 0.333374 6.22134 0.333374 6.00033C0.333374 5.77931 0.421171 5.56735 0.577452 5.41107L5.57745 0.41107C5.90289 0.085633 6.43053 0.085633 6.75596 0.41107Z' fill='%23171717'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: contain;
  width: 14px;
  height: 12px;
  transition: .2s;
}

.close:hover,
.close:focus {
  cursor: pointer;
}

.close:hover:before,
.close:focus:before {
  margin-right: 10px;
  transition: .2s;
  transform: translateX(-5px);
}

#dealer-request-mini .close:before, #widget-request-mini .close:before {
    content: none;
}
#dealer-request-mini .close, #widget-request-mini .close {
    position: absolute;
    top: 20px;
    font-size: 30px;
    line-height: 0px;
    z-index: 1;
    right: 10px;
}
#dealer-request-mini .modal-header-img {
    height: calc(100px + 60px);
    width: calc(100% + 60px);
    position: relative;
    top: 0;
    margin: -30px;
    border-radius: 10px 10px 0 0;
    background-image: url("http://jac.lc/storage/cascade-blocks/November2022/NNuoYMORk33zLuvourRY.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
#dealer-request-mini .modal-header-img.modal-header-noimg {
    height: 0;
    width: auto;
    background: none;
}

#dealer-request-mini .dealer-data {
    width: 100%;
}
#dealer-request-mini .test-drive-steps [data-step].active {
    margin-top: 0px;
}
#dealer-request-mini .test-drive-btns {
    margin-top: 0;
}
#widget-request-mini .modal-header-img {
  height: calc(100px + 60px);
  width: calc(100% + 60px);
  position: relative;
  top: 0;
  margin: -30px;
  border-radius: 10px 10px 0 0;
  background-image: url("https://jac-motors.kz/storage/settings/June2023/hKtGsOwOJqxXLd3qXCCw.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.modal-body {
  margin-top: 50px;
}

.modal-body h2 {
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #171717;
}

[data-modal="dealer-request"] form, [data-modal="service-request"] form, [data-modal="draw-form"] form {
  width: 480px;
}

.modal-content .dealer-data {
  margin-bottom: 60px;
}

.modal-content .dealer-data.mb-1 {
  margin-bottom: 15px;
}

.test-drive-steps {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin: 50px 0;
}

.test-drive-steps .progress-wrap {
  max-width: 100%;
  width: 530px;
  margin-bottom: 70px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
}

.test-drive-steps .progress-wrap::before {
  content: "";
  width: 100%;
  height: 3px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: -1;
  transition: 0.3s ease-in-out;
  background-color: #C7C7C7;
}

.test-drive-steps .progress {
  width: 0;
  height: 4px;

  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: -1;
  transition: 0.3s ease-in-out;
  background-color: #C53D3D;
}

.test-drive-steps .step {
  width: 40px;
  height: 40px;
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C7C7C7;
  background-color: #fff;
  border: 2px solid #C7C7C7;
  border-radius: 50%;
  transition: 0.3s ease-in-out;
}

.test-drive-steps .step p {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #C7C7C7;
  position: absolute;
  bottom: -30px;
  width: 130px;
  text-align: center;
}

.test-drive-steps .step.active {
  border-color: #C53D3D;
  background-color: #C53D3D;
  color: #fff;
}

.test-drive-steps .step.active.finished span {
  text-indent: -9999px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.2203 0.377493C15.5643 0.683258 15.5953 1.20999 15.2895 1.55397L6.40063 11.554C6.24249 11.7319 6.01582 11.8337 5.77779 11.8337C5.53975 11.8337 5.31309 11.7319 5.15495 11.554L0.710501 6.55397C0.404736 6.20999 0.43572 5.68326 0.779706 5.37749C1.12369 5.07173 1.65042 5.10271 1.95618 5.4467L5.77779 9.746L14.0438 0.446698C14.3496 0.102712 14.8763 0.0717283 15.2203 0.377493Z' fill='white'/%3E%3C/svg%3E%0A");
  background-size: contain;
  display: inline-block;
  width: 22px;
  height: 17px;
}

.test-drive-steps .step.active p {
  color: #737373;
}

.test-drive-steps .btn {
  margin: 10px 0;
  padding: 13px 70px;
  color: #fff;
  background: #C53D3D;
  border-radius: 4px;
  border: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  transition: .2s;
  outline: none;
}

.test-drive-steps .btn:hover {
  background: #DE5353;
}

.test-drive-steps .btn:active {
  background: #BC4343;
}

.test-drive-steps .btn:disabled {
  color: #fff;
  background-color: #D1D1D1;
  cursor: not-allowed;
  display: none;
}

.test-drive-steps [data-step] {
  display: none;
}

.test-drive-steps [data-step].active {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin-top: 100px;
}

.test-drive-btns {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin-top: 50px;
}

.test-drive-step {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin-top: 30px;
}

.modal-content h5 {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: #171717;
  text-align: center;
  width: 100%;
}

.modal-content .products {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 50px;
}

.modal-content .products .product {
  max-width: 280px;
}

.modal-content .products .product {
  display: none;
}

.modal-content .products .product .img {
  max-width: 280px;
}

.modal-content .products .product .img img {
  width: 100%;
}

.modal-content .products .product.active {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
}

.modal-content .product_title {
  text-align: center;
  margin-top: 30px;
}

.modal-content .products-btns {
  display: flex;
  width: 100%;
  max-width: 50%;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-content .products-btns a {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: #9F9F9F;
  padding: 10px 30px;
  border: 1px solid #9F9F9F;
  transition: .2s;
  border-radius: 42px;
  margin: 5px;
  text-decoration: none;
}

.modal-content .products-btns a.active, .modal-content .products-btns a:hover {
  color: #C53D3D;
  border-color: #C53D3D;
  transition: .2s;
}

.modal-content .ts-wrapper.single.required.invalid input::placeholder {
  color: transparent;
  width: 0;
}

.modal-content select[name="dealer"][data-lang="ru"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Дилерский центр *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="dealer"][data-lang="kz"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Дилерлік орталық *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="request_type"][data-lang="ru"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Тип заявки *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="request_type"][data-lang="kz"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Өтінім түрі *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="payment"][data-lang="ru"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Способ приобретения *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="payment"][data-lang="kz"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Сатып алу әдісі *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="model"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Модель *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}

.modal-content select[name="modelNo"] ~ .ts-wrapper.single .ts-control:after {
  content: 'Модель *';
  font-weight: 500;
  position: absolute;
  color: #9F9F9F;
  transition: .2s;
}


.modal-content select[name="city"][data-lang="ru"] ~ .ts-wrapper.single .ts-control:after,
.inline-content select[name="city"][data-lang="ru"] ~ .ts-wrapper.single .ts-control:after{
    content: 'Город *';
    font-weight: 500;
    position: absolute;
    color: #9F9F9F;
    transition: .2s;
}
.modal-content select[name="city"][data-lang="kz"] ~ .ts-wrapper.single .ts-control:after,
.inline-content select[name="city"][data-lang="kz"] ~ .ts-wrapper.single .ts-control:after{
    content: 'Қала *';
    font-weight: 500;
    position: absolute;
    color: #9F9F9F;
    transition: .2s;
}

.modal-content .ts-wrapper.single.required:not(.invalid) .ts-control:after {
  font-size: 12px;
  transition: .2s;
  transform: translateY(-20px);
}

.modal-content .ts-wrapper.single.required:not(.invalid) .ts-control {
  padding-top: 25px;
}

.modal-content .ts-control, .modal-content .ts-wrapper.single.input-active .ts-control {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding: 20px 15px 15px 15px;
  min-width: 485px;
  height: 60px;
  font-weight: 500;
  font-size: 16px;
  color: #171717;
}

.modal-content .ts-control > input, .modal-content .ts-dropdown, .modal-content .ts-control, .modal-content .ts-control input {
  font-weight: 500;
  font-size: 16px;
  color: #171717;
}

.modal-content .ts-dropdown .option, .modal-content .ts-dropdown .optgroup-header, .modal-content .ts-dropdown .no-results, .modal-content .ts-dropdown .create {
  padding: 8px;
}

.modal-content .ts-dropdown {
  margin-top: 0;
}

.test-drive-steps [data-step="3"].active {
  width: 450px;
  margin: 100px auto 0;
}

.modal-content .input-double-data {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.modal-content .personal-data .input-double-data .input-data {
  width: calc(50% - 10px);
  margin-bottom: 0;
}

.modal-content .personal-data {
  width: 100%;
}

.modal-content .personal-data .input-data {
  position: relative;
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.modal-content .personal-data .input-data p {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #737373;
  margin-top: 5px;
}

.modal-content .personal-data input::placeholder {
  text-indent: -9999px;
}

.modal-content .personal-data input:focus ~ .label,
.modal-content .personal-data input:not(:focus):not(:placeholder-shown) ~ .label {
  top: 7px;
  bottom: 9px;
  left: 15px;
  font-size: 12px;
  opacity: 1;
}

.modal-content .personal-data input {
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  color: #171717;
  background: #FFFFFF;
  border: 1px solid #C7C7C7;
  border-radius: 4px;
  padding: 24px 15px 15px;
}

.modal-content input[name="regNumber"], .modal-content input[name="vin"] {
  text-transform: uppercase;
}

.modal-content .personal-data .label {
  position: absolute;
  pointer-events: none;
  left: 20px;
  top: 18px;
  transition: 0.2s ease all;
  color: #737373;
}

.modal-content .send-btn {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 35px;
}

.modal-content .send-btn button {
  width: 100%;
}

.modal-content .send-btn p {
  width: 100%;
  font-weight: 300;
  margin: 10px 0;
}

.modal-body-thanks {
  display: none;
  flex-wrap: wrap;
  width: 100%;
  justify-content: center;
  margin: 100px 0 0;
}

.modal-body-thanks h3 {
  width: 100%;
  text-align: center;
  margin: 40px 0;
}

.modal-body-thanks p {
  margin-bottom: 40px;
  width: 100%;
  text-align: center;
}

.modal-body-thanks a {
  margin-top: 40px;
}

@media screen and (max-width: 1050px ) {
  .modal-content .products-btns {
    max-width: 100%;
  }
}

@media screen and (max-width: 760px ) {
  .test-drive-steps .progress-wrap {
    width: 85%;
  }

  .modal-content {
    padding: 35px;
  }

  .modal-body h2 {
    font-size: 26px;
  }

  .modal-content .personal-data .input-data {
    margin: 10px 0;
  }
}

@media screen and (max-width: 576px ) {
  .modal-content {
    padding: 20px;
  }

  .test-drive-steps .progress-wrap {
    width: 80%;
  }

  .modal-content .ts-control, .modal-content .ts-wrapper.single.input-active .ts-control {
    min-width: 80%;
    font-size: 13px;
  }

  .ajax-form {
    width: 100%;
  }

  .modal-content .ts-wrapper {
    width: 100%;
  }

  .test-drive-steps [data-step="3"].active {
    width: 100%;
  }
}

/*--------End modal----------*/
