/* ------ Medium and xs devices (tablets, 1440px and 1240px) -----*/
@media (max-width: 1240px) and (max-width: 1440px) {
  html {
    font-size: 50%;
  }
}

/* ------ Medium and xs devices (tablets, 1239.99px and 1040px) -----*/
@media (max-width: 1040px) and (max-width: 1239.99px) {
  html {
    font-size: 45%;
  }
}

/* ------ Medium and xs devices (tablets, 1039.99px and 992px) -----*/
@media (max-width: 992px) and (max-width: 1039.99px) {
  html {
    font-size: 42%;
  }
}

/* ------ Medium and xs devices (tablets, 991px and down) -----*/
@media (max-width: 991px) {
  .owl-prev {
    right: 1rem;
  }

  .title_34 {
    font-size: 2.8rem;
  }

  .owl-next {
    left: 1rem;
  }
  #kontaktai {
  margin-bottom: 0px;
  }
  
  html {
    font-size: 50%;
  }

  .container-fluid {
    max-width: 720px;
  }

  .hero-block-title {
    text-align: center;
    margin: 0 auto;
  }

  .info .cta {
    justify-content: center;
  }

  .block-title p {
    width: auto;
  }

  .block-title {
    padding-left: 0;
    padding-right: 0;
    margin-top: 5rem;
    max-width: 100%;
  }
  .block-title-v1 {
    margin-top: 0rem;
}
  .automachine_slider {
    padding-left: 4rem;
    padding-right: 4rem;
    margin: 2rem auto;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .option-entry {
    margin-bottom: 1rem;
  }

  .option-description {
    padding-left: 2rem;
  }

  .option-list {
    padding: 1.5rem;
  }

  .automachine_slider .owl-nav {
    width: calc(100% - 8rem);
  }


  /* ============== Contact area ================ */
  .gallery_slider {
    width: 100%;
  }

  .contact_left {
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
  }

  .contact_right {
    padding: 0;
    margin-top: -6rem;
  }

  .automachine_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
  }

  .offer-form-wrapper {
    padding: 8rem 0 8rem 0;
  }

  .tc-form__desc {
    margin: 0;
  }


  .contact_left img {
    margin-top: -5rem;
  }

  .tc-form-submit-wrapper {
    margin: 0 auto;
  }
}

/* ------ Medium and xs devices (tablets, 767px and down) -----*/
@media (max-width: 767px) {
  html {
    font-size: 50%;
  }

  .steps-slider .owl-item {
    padding-right: 0px;
    padding-left: 0px;
  }

  .steps-slider .owl-nav {
    display: flex;
  }


  .option-selection-divider {
    margin-bottom: 10px;
    padding-top: 1rem !important;
    margin-right: 0;
    margin-left: 0;
    padding-bottom: 1rem !important;
  }

  .desktop-hero {
    display:none;
  }
  .mobile-hero {
    display:block;
    filter: brightness(0.6);
  }

  .sb-content {
    min-height: 181px;
  }

  .sb-content.hibridas {
    min-height: 390px;
  }

  .container-fluid {
    max-width: 540px;
    padding: 0 2rem;
  }

  .container {
    padding: 0 2rem;
  }

  .offer-form-wrapper .container > .row {
    padding: 0;
  }

  .hero-block-title {
    padding: 0;
  }

  .cta {
    flex-direction: column;
  }

  .tradein-info-submit {
    margin-top: 0rem;
  }

  .left.red-option-selection-divider,
  .right.red-option-selection-divider {
        text-align: center;
        height: 100%;
        padding-top: 30px;
        padding-bottom: 30px;
  }

  .or.red-option-selection-divider {
    top: 50%;
  }

  .left.red-option-selection-divider > div,
  .right.red-option-selection-divider > div {
    margin: 0 auto;
  }

  .left.red-option-selection-divider > div button,
  .right.red-option-selection-divider > div button {
    float: none !important;
    margin-top: 0.2rem;
  }

  .large-text.red-option-selection-divider {
    font-size: 24px;
  }

  .left.red-option-selection-divider,
.right.red-option-selection-divider {
  padding: 2rem 2rem;
}


  .block-title p {
    font-size: 1.5rem;
    padding-top: 0.5rem;
  }

  .simple-text-block-content {
    margin-bottom: 3.5rem;
  }

  .block-title h1,
  .block-title h2 {
    font-size: 2.8rem;
    width: 100%;
    overflow: visible;
    line-height: 1.2;
    padding-bottom: 1rem;
    height: auto;
    text-align: left;
  }

  .block-title-v2 .simple-text-block-content {
    margin: 0;
  }

  .automachine_slider {
    padding-left: 3rem;
    padding-right: 3rem;
    margin: 2rem auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .option-list {
    width: 100%;
    padding: 1rem 0;
  }

  .option-selection-divider {
    padding: 0rem 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .gallery_area h2 {
    margin-bottom: 2rem;
  }

  .gallery_image {
    height: 30rem;
  }

  .offer-form-wrapper {
    padding: 3rem 0 10rem 0;
  }

  .tc-form-submit-wrapper input {
    width: 100%;
  }

  .tc-form-submit-wrapper {
    width: 100%;
  }

  .contact_left img {
    margin-top: -3rem;
  }

  .contact_right {
    margin-top: -4rem;
  }

  .has-border:not(:last-child) {
    padding-bottom: 4rem;
    margin-bottom: 4rem;
  }

  .footer-nav ul {
    gap: 4rem;
  }

  .footer-nav ul li {
    margin: 0;
  }

  .footer-nav ul li a {
    font-size: 1.6rem;
  }

  .blury_content {
    font-size: 2rem;
    padding: 16rem 6rem;
  }

  .wpcf7-form-control {
    height: 4rem;
  }

  .info h1 {
    font-size: 5rem;
  }

  .info .cta {
    margin-top: 2rem;
  }

  .automachine_slider .owl-nav {
    width: calc(100% - 6rem);
  }

  .owl-nav button {
    width: 3rem;
    height: 3rem;
  }

  .simple-text-block-content {
    text-align: center;
  }

  .textarea_input {
    height: 10rem;
  }

  .automachine_grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Show cars-lock message above the grid on mobile */
  .cars-lock-message {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto 2.4rem;
    width: 100%;
    pointer-events: none;
    font-size: 18px;
  }

  .cars-blurred .cars-lock-message {
    display: block;
  }

}

/*----- xs devices (landscape phones, 575px and down) -----*/
@media (max-width: 575px) {
  html {
    font-size: 2.32vw;
  }

  .container {
    padding: 0 2rem;
    max-width: 100%;
  }

  .gallery_image {
    height: 25rem;
  }
}

@media (max-width: 991.98px) {
  .steps-section {
    padding: 5rem 0;
  }
}

@media (max-width: 767.98px) {
  .steps-section {
    padding: 4rem 0;
  }

  .steps-card {
    padding: 2.4rem 2rem;
  }
}