.form__wrapper {
  color:#ffffff;
}
.spinner {
  height:40px;
  text-align:center
}
.modal .hidenInput,.modal__options,.modal__wrapper {
  display:none
}
.modal {
  position: relative;
  width: 95vw;
  margin: 0 auto;
  /* box-shadow: 0px 10px 40px 0 rgb(0 0 0 / 35%); */
  display: flex;
  flex-direction: row;
  /* border-radius: 32px; */
  /* background-color: #ffffff; */
}
.modal__form_wrapper {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
}
@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}
.spinner-icon {
  /* first spinner styles */
  /*width: 100%;*/
  /*height: 100%;*/
  /*background: url(../images/spinner.svg) center no-repeat;*/
  /*background-size: 8%;*/
  display: inline-block;
  width: 48px;
  height: 48px;
  background: url('../images/logo-white.svg') center no-repeat;
  background-size: contain;
  filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(3000%) hue-rotate(355deg) brightness(102%) contrast(97%);
  animation: spin 2s linear infinite;
}
.modal__car-images_holder {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  position: relative;
}
.modal__car-images_holder img {
  max-width: 100%;
  max-height: calc(100% - 40px);
  border-radius: 4px;
}
.main-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y; /* Allow vertical scrolling but handle horizontal gestures */
  user-select: none; /* Prevent text selection during swipe */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.modal__info .main-image {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 16 / 9;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  color: #ff3720;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 10;
}
.gallery-arrow:hover {
  background-color: rgba(255, 55, 32, 0.7);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}
.gallery-arrow-left {
  left: 12px;
}
.gallery-arrow-right {
  right: 12px;
}
/* Mobile responsive styles for gallery arrows */
@media (max-width: 768px) {
  .gallery-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .gallery-arrow-left {
    left: 8px;
  }
  .gallery-arrow-right {
    right: 8px;
  }
}
.images__wrapper {
  display: flex;
  gap: 8px;
  height: 36px;
  padding: 4px;
  background-color: #ffffff;
  border-radius: 8px;
  position: absolute;
  bottom: 4px;
}
.images__wrapper img.mini-image {
  max-width: 100%;
  max-height: 100%;
}
.modal__form_wrapper .time__take {
  width: 16%;
  margin-top: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}
.date__return_modal,.date__take_modal {
  width:28%;
  margin-left:0
}
.take__wrapper, .return__wrapper {
  flex-grow: 1;
}
.modal__textarea {
  
}
.modal__info {
  width: 60%;
  display: none;
  flex-direction: column;
  padding: 0 0 24px 0;
}
.modal__info__left-padding {
  padding-left: 24px;
}
.modal__car-description {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.description__text {
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  padding: 0;
}
.description__stats {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100%;
  width: 100%;
  max-height: 80px;
}
.modal__hire {
  width: 40%;
  padding: 24px 0px 8px 32px;
  border-radius: 24px;
  display: none;
}
.modal .card__price_value {
  margin-top: 5px;
}
.modal .card__price_value_new {
  margin-top:0
}
.modal__spinner {
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal__success {
  width: 100%;
  height: 50vh;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0 32px;
  text-align: center;
}
.modal__background {
  position:fixed;
  z-index:999999999;
  top:0;
  display:none;
  width:100%;
  height:100%;
  transform:translateZ(0);
  background-color:rgba(33,33,33,.5)
}
.modal__options {
  padding:0 4px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.mini-image {
  display: none;
  cursor: pointer;
}
.mini-image-active {
  box-shadow: 0px 0px 0px 2px #ff0000;
}
.modal_contact__wrapper {
  margin-top: -12px;
  width: 100%;
}
.input__holder {
  font-size: 13px;
  color: #000;
  display: flex;
  justify-content: space-between;
}
.input__holder label:hover {
  box-shadow: inset 0px 0px 0px 2px #000000;
}
.input__holder input {
  display: none;
}
.input__holder label {
  font-size: 14px;
  line-height: 110%;
  color: #000;
  padding: 13px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: inset 0px 0px 0px 1px #e4e4e4;
}
.input__holder input[type="checkbox"]:checked + label {
  box-shadow: inset 0px 0px 0px 1px #000;
  background-color: #fafafa;
  background-image: url(../icons/check.svg);
}
.form__title_kasko {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0 4px;
  margin-left: 0px;
}
.modal__kasko-wrapper {
  width: 100%;
}
#kasko_price {
  text-transform: none;
  font-weight: 400;
  font-size: 11px;
  display: none;
  padding-right: 4px;
}
.kasko__holder {
  display: flex;
  gap: 0;
  border-radius: 16px;
  border: none !important;
  box-shadow: inset 0px 0px 0px 1px #e4e4e4;
  padding: 5px;
  overflow-x: auto;
}
.kasko__holder input {
  display: none;
}

.kasko__label-wrapper {
  position: relative;
  display: flex;
  z-index: 4;
  border-radius: 12px;
  flex-grow: 1;
  flex-shrink: 1;
  align-items: center;
}

.kasko__null-label  {
  flex-grow: 0;
  padding: 12px 5px !important;
  font-size: 24px !important;
  font-weight: 100;
  box-shadow: none !important;
  height: auto !important;
}
.kasko__label-wrapper:hover label.kasko__label {
  background-color: #f0f0f0;
  z-index: 4;
  box-shadow: 0 0 0 2px #f0f0f0 !important;
}
.kasko__label-wrapper:hover {
  z-index: 5;
}
.kasko__label-wrapper:not(:last-child)::after {
  /* content: ""; */
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #f0f0f0;
  z-index: 2;
}
.kasko__label {
  margin: 0 !important;
  padding: 12px 18px !important;
  display: flex;
  flex-direction: column;
  box-shadow: none !important;
  text-align: center;
  max-width: 160px;
  width: 25%;
}
.kasko__label:hover {
  background-color: #f1f1f1;
}
.kasko__holder input[type="radio"]:checked + label {
  background-color: #f1f1f1;
  box-shadow: 0 0 0 1px #000000 !important;
  z-index: 10;
}
.kasko__label span {
  width: 100%;
  font-size: 12px;
  padding: 2px 0;
}

.kasko__label-clear {
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow: none !important;
  opacity: 0;
  display: none;
  z-index: 10;
}
.kasko__holder input[type="radio"]:checked ~ .kasko__label-clear {
  display: block;
}
.modal__textarea {
  width: 100%;
  margin-left: 0;
  padding: 10px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  background-color: transparent;
}
.modal__background {
  position:fixed;
  z-index: 99998;
  top:0;
  display:none;
  width:100%;
  height:100%;
  transform:translateZ(0);
  background-color: rgb(0 0 0 / 75%);
}
.modal__wrapper {
  position:fixed;
  z-index: 99999;
  max-height: 95vh;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  -webkit-transform:translateX(-50%) translateY(-50%);
  -ms-transform:translateX(-50%) translateY(-50%);
  box-shadow: 0px 10px 40px 0 rgb(0 0 0 / 35%);
  border-radius: 32px;
  background-color: #ffffff;
  padding: 0px 6px 0px 0px;
  overflow: visible;
}
.modal__wrapper-scroll {
  overflow-y: auto;
  overflow-x: visible;
  padding: 16px 8px 16px 16px;
  scrollbar-width: thin;
}
.modal__more_wrapper {
  margin-top: 16px;
}
.modal_sprite:after {
  background-position: center;
  background-size: contain;
}
.modal_transmission:after {
  background-image: url(../icons/car/transmission.svg);
}
.modal_type:after {
  background-image: url(../icons/car/body.svg);
}
.modal_color:after {
  background-image: url(../icons/car/color.svg);
}
.modal_seat:after {
  background-image: url(../icons/car/seats.svg);
}
.modal_doors:after {
  background-image: url(../icons/car/doors.svg);
}
.modal_back:after {
  background-image: url(../icons/car/boot.svg);
}
.modal_volume:after {
  background-image: url(../icons/car/engine.svg);
}
.modal_waste:after {
  background-image: url(../icons/car/fuel.svg);
}
.modal_power:after {
  background-image: url(../icons/car/power.svg);
}
.modal_audio:after {
  background-image: url(../icons/car/audio.svg);
}
.modal__price {
  display: flex;
  gap: 4px;
  min-height: 56px;
  width: 100%;
  flex-wrap: wrap;
}
.modal__field_title {
  font-size:15px;
  width:100%;
  text-transform:uppercase;
  color:#000000;
  margin: 12px 0 5px 0;
}
.modal__price_total__wrapper {
  display: flex;
  padding: 4px 16px;
  background-color: #f4f4f4;
  border-radius: 8px;
  flex: 0 0 80px;
}
.modal__price_total__wrapper, .modal__price-daily__wrapper, .modal__price-delivery__wrapper, .modal__rent-days__wrapper {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 6px 12px;
  flex: 1 0 auto;
  justify-content: space-between;
  align-items: flex-start;
}
.modal__price-breakdown__wrapper {
  display: flex;
  flex: 1 0 auto;
  background-color: #f4f4f4;
  border-radius: 8px;
}
.modal__price_label {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  display: flex;
}
.modal__price_total, .modal__price_daily, .modal__price_delivery, .modal__rent-days, .modal__price_delivery_free {
  font-size: 16px;
  color:#000
}
.modal__price_daily, 
.modal__price_addons, 
.modal__rent-days,
.modal__price_delivery_free{
  font-weight: 400;
}
.modal__price_total {
  font-weight: 600;
  font-size: 20px;
}
.modal__rent-button {
  display: block;
  height: 56px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  border: none;
  border-radius: 12px;
  outline: 0;
  background-color: #ff3720;
  width: 100%;
}
.modal__rent-button:disabled {
  background-color: #ddd;
  color: #777;
}
.modal__rent-button:hover:enabled {
    background-color: #ff4e3a;
}
.modal__rent-button:hover:enabled {
    
}
.modal__title {
  font-size:32px;
  font-weight:700;
  margin-top: 24px;
}
.modal__title_active:after {
  position:absolute;
  -webkit-transform:rotateX(180deg);
  transform:rotateX(180deg)
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  -webkit-transition: all 250ms ease;
  transition: all 250ms ease;
  background: url(../images/cross.png) center no-repeat;
  z-index: 99;
}
.modal__close:hover {
  -webkit-transform:rotate(180deg);
  transform:rotate(180deg)
}
.modal__car-class {
  font-size:14px;
  margin-top:13px;
}
.modal__car-class,.modal__car-class_value {
  display:inline-block;
  text-align:left
}
.modal__period-choose {
  display:inline-block;
  width:130px;
  height:94px;
  margin:10px;
  padding-bottom:13px;
  -webkit-transition:all 150ms ease;
  transition:all 150ms ease;
  border-radius:3px;
  background-color:#f0f0f0
}
.modal_discount__percent {
  font-size:14px;
  line-height:16px;
  position:relative;
  display:inline-block;
  height:20px;
  margin-left:4px;
  padding:2px 5px;
  color:#fff;
  background-color:#f33
}
.modal_discount__percent::after {
  position:absolute;
  top:0;
  right:-12px;
  width:20px;
  height:20px;
  content:'';
  background:url(../images/ribbon.png) 6px 0 no-repeat
}
.modal__tooltip {
  position:absolute;
  z-index:1;
  top:81px;
  display:none;
  width:69px;
  padding:7px 10px;
  background-color:#fff;
  box-shadow:0 0 15px 0 rgba(0,0,0,.29)
}
.modal__tooltip:after {
  position:absolute;
  bottom:100%;
  left:50%;
  width:0;
  height:0;
  margin-left:-7px;
  content:' ';
  pointer-events:none;
  border:solid transparent;
  border-width:7px;
  border-color:rgba(255,255,255,0);
  border-bottom-color:#fff
}

.stats__line_value {
  font-size:14px;
  display:inline-block;
}
.modal .stats__line {
  font-size: 14px;
}
.stats__holder {
  height: 22px;
}
.value__holder {
}
:focus,input,input:active,textarea,textarea:active {
  outline:0
}
.form:hover {
  border:1px solid #000000
}

.form {
  color: #000;
  border: 1px solid #a8a8a8;
}

.form:focus, .form:hover {
  border: 1px solid #000;
}
/* Form Wrapper */
.headline .form__wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: end;
  align-items: flex-end;
  color: #ffffff;
  padding: 0 16px;
}

.form__wrapper_inner {
  background-color: #ffffffee;
  backdrop-filter: blur(10px);
  color: #000;
  width: 30vw;
  min-width: 300px;
  padding: 32px;
  border-radius: 24px;
}

/* Form Elements */
.form {
  height: 44px;
  cursor: pointer;
  color: #000;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  width: 100%;
}

input.form {
  padding:0 10px;
  text-align:left;
  border:1px solid #c8c8c8;
  border-radius:8px;
  background-color:transparent
}

.form:hover {
  border: 1px solid #000000;
}

.main-form__take, .main-form__return, .form__car_class {
padding-left: 14px;
font-size: 16px;
}

/* Form Groups */
.take-return__wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__submit_wrapper {
width: 100%;
}

.take-return__row {
  flex-grow: 1;
}

.form-input-wrapper {
  display: flex;
  gap: 8px;
}

.form__submit {
  width: 100%;
  height: 48px;
  margin: 20px 0;
  cursor: pointer;
  color: #fff;
  border: none;
  border-radius: 12px;
  outline: 0;
  background-color: #ff3720;
}
.form__submit:hover {
  background-color:#e8240d
}
.form__price {
  font-size:14px;
  width:94px;
  margin:0;
  color:#000;
}
.form__star {
  color:#ff3720
}
.price__value {
  font-size:30px;
  font-weight:700;
  margin-top:4px;
  margin-left:-3px
}
#mainForm {
  display: flex;
  flex-direction: column;
}
.price__holder {
  float:right;
  margin-top:4px;
  margin-right:7px;
  margin-left:0;
  padding-left:0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.form__title_car,.form__title_car_class,.form__title_price {
  margin-left:0
}
.form__submit_wrapper {
  padding:0;
  flex-grow: 1;
}
.form__submit {
  margin-bottom:0px;
}
label.error {
  font-size:12px;
  width:100%;
  height:0;
  text-align:center;
  color:red;
  background-color:transparent
}
.time__take .select2-selection__arrow, .time__return .select2-selection__arrow {
  display:none
}
.time__take .select2-selection__rendered, .time__return .select2-selection__rendered {
  text-align:center;
  padding: 0 10px !important;
}
.date__return input, .date__take input {
  font-size: 16px;
}

/* Form Titles */
.form__title {
  font-weight: 700;
  font-size: 14px;
  width: 100%;
  margin-bottom: 4px;
  margin-left: 4px;
}

/* Car Info Section */
.car-info__wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.car_class-info__holder,.car-info__holder {
  width:60%;
}

/* Included Features Section */
.included__wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.included__wrapper .in-cost__item {
  background-size: 32px !important;
  background-position: -7px center !important;
  margin: 0 !important;
  padding: 0 0 0 20px;
  font-size: 12px;
  text-align: left;
  width: 48%;
}

/* Submit Button */
.form__submit {
  width: 100%;
  height: 48px;
  margin: 20px 0;
  cursor: pointer;
  color: #fff;
  border: none;
  border-radius: 12px;
  outline: 0;
  background-color: #ff3720;
}

.form__submit:hover {
  background-color: #e8240d;
}

/* Included Features Icons */
.included__wrapper .in-cost__item_driver {
  background: url(../images/included/driver.svg) no-repeat;
}

.included__wrapper .in-cost__item_gps {
  background: url(../images/included/nav.svg) no-repeat;
}

.included__wrapper .in-cost__item_child {
  background: url(../images/included/seat.svg) no-repeat;
}

.included__wrapper .in-cost__item_hotel {
  background: url(../images/included/key.svg) no-repeat;
}

.included__wrapper .in-cost__item_meet {
  background: url(../images/included/air.svg) no-repeat;
}

.included__wrapper .in-cost__item_insurance {
  background: url(../images/included/shield.svg) no-repeat;
}

.included__wrapper .in-cost__item_millage {
  background: url(../images/included/infinity.svg) no-repeat;
}

.included__wrapper .in-cost__item_second_driver {
  background: url(../images/included/other_driver.svg) no-repeat;
}

.included__wrapper .in-cost__item_cross_border {
  background: url(../images/included/cross_border.svg) no-repeat;
}
.in-cost__item_title {
  width: 100% !important;
  padding: 0 0 8px 0 !important;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media only screen and (max-width: 768px) { 
  .modal {
    flex-direction: column;
    border-radius: 32px 32px 0 0;
    overflow: scroll;
    width: 100%;
    padding: 0;
    gap: 8px;
  }
  .modal__wrapper {
    bottom: 0;
    top: 60px;
    left: 0;
    right: 0;
    transform: none;
    -webkit-transform: none;
    -ms-transform: none;
    height: 95%;
    border-radius: 32px 32px 0 0;
    padding: 0;
    overflow: hidden;
  }
  .modal__info {
    display: flex;
    width: 100%;
    padding: 0 16px;
  }
  .modal__hire {
    display: flex;
    width: 100%;
    padding: 6px 16px 24px 16px;
  }
  .date__take,.date__return {
    width: 30%;
  }
  .modal__field_title {
    margin-top: 13px;
    margin-bottom: 4px;
  }
  .modal__info .main-image {
    border-radius: 16px;
    background-size: cover;
    aspect-ratio: 16 / 10;
  }
  .modal__close {
    background-color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    top: 12px;
    right: 16px;
    position: fixed;
  }
  .modal__info__left-padding {
    padding: 4px 0 4px 0;
  }
  .modal__title{
    font-size: 26px;
    line-height: 110%;
  }
  .modal__car-description {
  }
  .description__stats{
    max-height: 120px;
  }
  .input__holder label {
  background-position-x: calc(100% - 8px) !important;
  padding: 13px 10px;
  }
  .modal__form_wrapper .time__take, .modal__form_wrapper .time__return {
    width: 18%;
  }
  .time__take .select2-selection__rendered, .time__return .select2-selection__rendered {
    padding: 0 5px !important;
  }
  .modal__price_total, .modal__price_daily, .modal__price_addons, .modal__rent-days {
    font-size: 16px;
    width: 100%;
  }
  .modal__spinner, .modal__success {
    height: 60vh;
    width: 100vw;
    margin-top: 20vh;
  }
  .modal__totals-wrapper {
    margin-top: 20px;
    margin-bottom: 72px;
  }
  .kasko__holder {
    box-shadow: none;
    gap: 6px;
    padding-bottom: 12px;
  }
  .kasko__label {
    box-shadow: inset 0px 0px 0px 1px #e4e4e4 !important;
    min-width: 130px;
  }
  .modal__car-images_holder {
    margin-top: 16px;
  }
  .modal__price_label {
  }
  .modal__wrapper-scroll {
    padding: 0;
  }
  .modal__rent-button {
    z-index: 99;
    position: fixed;
    bottom: 8px;
    width: 95vw;
    left: 2.5vw;
  }
}

.input__holder_child_seat,
.input__holder_osago,
.input__holder_navigator{
  width: 30%;
  flex-direction: column;
  flex-grow: 1;
}

.modal__field_title.form__title.form__title_child_seat {
    width: 100%;
}

.input__holder_child_seat span.select2-selection.select2-selection--single {
    border-radius: 12px !important;
}

span.kasko__price-cell, span.kasko__small-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    flex-grow: 1;
    margin-right: 4px;
}

label.toggle_label {
    background-repeat: no-repeat;
    background-position-x: calc(100% - 14px);
    background-position-y: center;
    background-size: 12px;
}

.child-seat-dropdown li.select2-results__option {
    font-weight: 400;
    text-transform: none;
}

.modal__totals-wrapper {
    =: 1;
    width: 100%;
    display: flex;
    gap: 8px 12px;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 8px;
}

.take__wrapper_modal, .return__wrapper_modal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0 4px;
}

.addons__wrapper_modal {
    display: flex;
    gap: 8px;
}

.form__wrapper_modal {
    width: 100%;
}

span.info-popup__list-title {
    font-weight: 600;
}

span.info-popup__list__price {
    margin-left: 8px;
    font-weight: 600;
    font-size: 14px;
}



input.modal__contact-error {
    border-color: #ff0000;
}

.modal__correct {
    background-image: url(../icons/check.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    background-size: 12px;
}

.success-icon {
    background: url(../icons/check.svg) no-repeat center;
    width: 100px;
    height: 100px;
    background-size: 60%;
    filter: invert(54%) sepia(100%) saturate(1500%) hue-rotate(69deg);
    border: 5px solid;
    border-radius: 100px;
    margin-bottom: 54px;
}

.success-header {
    font-size: 32px;
    font-weight: 600;
}

.success-message {
    font-size: 20px;
}

.info-popup__placer {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.comment__wrapper_modal {
    flex-grow: 1;
}