/* ---------------- Google fonts ------------------ */
@font-face {
  font-family: "PorscheNextWLa";
  src: url("../fonts/PorscheNextWLa-bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PorscheNextWLa";
  src: url("../fonts/PorscheNextWLa-regular.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PorscheNextWLa";
  src: url("../fonts/PorscheNextWLa-regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Basic css ------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

:root {
  scroll-behavior: smooth;
  --white: #ffffff;
  --black: #000000;

  --white_img: brightness(0) saturate(100%) invert(99%) sepia(0%)
    saturate(7498%) hue-rotate(67deg) brightness(112%) contrast(100%);
  --black_img: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(16%);

  --primaryfont: "PorscheNextWLa";
}

img {
  width: 100%;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
strong,
i,
ol,
ul,
li,
form,
label,
footer,
header,
menu,
nav,
section {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

.owl-stage {
  display: flex;
}

a {
  text-decoration: none !important;
  transition: 200ms;
  color: inherit;
  display: inline-block;
}

.f-right {
  float: right;
}
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: none;
}

button {
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

/* body */
body {
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: 400;
  color: var(--black);
  font-family: var(--primaryfont);
  background: #fefefe;
}

.container {
  margin: 0 auto;
  width: 100%;
}

main {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.figure img,
.figure {
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  font-family: var(--primaryfont);
  color: var(--navyblue);
}

/* text-white */
.text-white {
  color: var(--white) !important;
}

/* image colros */
.white_img {
  -webkit-filter: brightness(0) saturate(100%) invert(99%) sepia(0%)
    saturate(7498%) hue-rotate(67deg) brightness(112%) contrast(100%);
  filter: brightness(0) saturate(100%) invert(99%) sepia(0%) saturate(7498%)
    hue-rotate(67deg) brightness(112%) contrast(100%);
}
.black_img {
  -webkit-filter: brightness(0) saturate(100%) invert(0%) sepia(0%)
    saturate(16%) hue-rotate(309deg) brightness(93%) contrast(107%);
  filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(16%)
    hue-rotate(309deg) brightness(93%) contrast(107%);
}

/* Font Weights */
.f_300 {
  font-weight: 300 !important;
}
.f_400 {
  font-weight: 400 !important;
}
.f_500 {
  font-weight: 500 !important;
}
.f_600 {
  font-weight: 600 !important;
}
.f_700 {
  font-weight: 700 !important;
}
.f_800 {
  font-weight: 800 !important;
}
.f_900 {
  font-weight: 900 !important;
}

/* titles */
.title_56 {
  font-size: 5.6rem;
  line-height: 1.35;
}

.title_34 {
  font-size: 42px;
  line-height: 1.35;
}

.title_24 {
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.35;
  color: #222222;
}

/* texts */
.text_xl {
  font-size: 2rem;
}
.text_lg {
  font-size: 1.8rem;
}
.text_md {
  font-size: 20px;
}
.text_sm {
  font-size: 1.4rem;
}
.text_xsm {
  font-size: 1.2rem;
}

/* ================ hero_area ================ */
.hero_area {
  height: 65vh;
  min-height: 65rem;
  position: relative;
}

.video {
  width: 100%;
  height: 100%;
  position: absolute;
  -o-object-fit: cover;
  object-fit: cover;
  left: 0;
  top: 0;
}

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

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

.button {
  padding: 0 1.6rem;
}

.button span {
  line-height: 5rem;
  display: inline-block;
}

.automachine_slide .button span {
  line-height: 2rem;
  height: 2rem;
  display: inline-block;
}
.button svg {
  margin-right: 0.5rem;
  height: 100%;
  display: inline-block;
  height: 1.3rem;
  stroke: #fff;
}

.button.white {
  border: 0.1rem solid #fff;
  color: #fff;
}

.button.white:hover {
  background: #fff;
  color: #000000;
}

.button.white:hover svg {
  stroke: #000000;
}

.info .cta {
  margin-top: 3rem;
  display: flex;
  gap: 1.2rem;
}

.info h1 {
  font-size: 6.2rem;
  font-weight: 700;
  line-height: 1.1;
}

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

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

.hero-block-title .hero-heading {
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.hero-block-title .hero-heading p {
  margin: 0 0 0.5em;
}

.hero-block-title .hero-heading p:last-child {
  margin-bottom: 0;
}

.logo {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  -webkit-filter: var(--white_img);
  filter: var(--white_img);
}


/* =============== Automachine area ============== */
.automachine_area {
  background-color: #eeeff2;
  padding: 4rem 0;
  margin-top: 6rem;
  position: relative;
}

.cars-lock-message {
  display: none;
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  padding: 2rem 2.4rem;
  border-radius: 1.6rem;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  pointer-events: none;
}

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

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

.automachine_slide {
  position: relative;
}

.automachine_box {
  background: #ffffff;
  border-radius: 0 0 2.4rem 2.4rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: scale(1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.automachine_box .gallery {
  height: 22rem;
  background: #f5f5f7;
}

.car-specs {
  padding-top: 1rem;
}

.automachine_box .sb-content {
  padding: 2.4rem 2.4rem 2rem;

}

.power-g {
  margin-bottom: 20px;
}

.automachine_box .sb-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  color: #000000;
}

.automachine_box .monthly-payment p {
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.automachine_box .monthly-payment .payment-label {
  font-weight: 700;
}

.automachine_box .special_offer_with_background {
  order: 1;
}

.automachine_box .monthly-payment {
  order: 2;
}

.automachine_box .option-list {
  padding: 1.6rem 0 0;
}

.automachine_box .option-entry {
  margin-bottom: 0.8rem;
}

.automachine_box .option-description {
  font-size: 1.4rem;
  padding-left: 1.6rem;
}

/* Blur/lock cards when trade-in form isn't complete */
.cars-blurred .automachine_box {
  filter: blur(6px);
  opacity: 0.55;
  pointer-events: none;
}

/* Sold-out car state */
.automachine_slide.is-sold .automachine_box {
  filter: grayscale(1) blur(6px);
  opacity: 0.45;
}

.automachine_slide.is-sold .automachine-actions,
.automachine_slide.is-sold .automachine-actions a,
.automachine_slide.is-sold .gallery-arrow {
  pointer-events: none;
}

.sold-out-badge {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  padding: 0.8rem 2rem;
  border-radius: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  pointer-events: none;
}

@media (hover: hover) {
  .automachine_box:hover {
    transform: scale(1.008);
    box-shadow: 0 0.8rem 4rem rgba(0, 0, 0, 0.16);
  }
}

.car-spec-value {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.car-spec-label {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.car-spec-note {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #555555;
}

.car-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.car-tag {
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  background: #f2f2f5;
  font-size: 1.2rem;
}

.automachine-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2.4rem 0.4rem;
}

.automachine_box .button.option-selection-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1rem 2.2rem;
  border-radius: 5px;
  border-width: 0.2rem;
  font-size: 1.3rem;
  text-align: center;
  margin: 0 1rem 0 0;
  white-space: nowrap;
}

.automachine_box .button.option-selection-divider + .button.option-selection-divider {
  margin-right: 0;
}

/* Primary button (left) - filled black, white text */
.automachine_box .button.option-selection-divider:first-of-type {
  background: #d5001c;
  color: #fff;
  border: 2px #d5001c solid;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(213, 0, 28, 0.3);
  width:50%
}

.automachine_box .button.option-selection-divider:first-of-type:hover {
  background: #b30018;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 0, 28, 0.4);
}

/* Secondary button (right) - white with black border/text */
.automachine_box .button.option-selection-divider:last-of-type {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  width:50%
}

.steps-icon {
  width: 7.4rem;
    height: 7.4rem;
    margin: 0 auto;
}

.automachine_box .button.option-selection-divider:last-of-type:hover {
  background: #f2f2f2;
  color: #000000;
  border-color: #000000;
}

/* Softer hover for primary "Pirkti" buttons */
.automachine_box .button.option-selection-divider.trade-in-action-btn:hover {
  background: #b30018;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 0, 28, 0.4);
}

/* Limit width when only 1 or 2 items are visible */
.automachine_slider.single-item,
.automachine_slider.double-item {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.automachine_slider.double-item {
  max-width: 66.666%;
}

@media (max-width: 1200px) {
  .automachine_slider.single-item {
    max-width: 45rem;
  }
  
  .automachine_slider.double-item {
    max-width: 60rem;
  }
}

@media (max-width: 992px) {
  .automachine_slider.single-item,
  .automachine_slider.double-item {
    max-width: calc(50% + 2rem);
  }
}

@media (max-width: 768px) {
  .automachine_slider.single-item,
  .automachine_slider.double-item {
    max-width: 100%;
  }
}

.sb-title {
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 2rem;
}

.sb-pointer {
  color: #5796fd;
  text-transform: uppercase;
  line-height: 4rem;
  padding-left: 3.3rem;
  position: relative;
  min-height: 4rem;
  font-size: 1.6rem;
  margin: 0.5rem 0;
}

.sb-pointer:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3rem;
  border-top: 0.4rem solid #000000;
  transition: 0.25s ease;
}

.automachine_box:hover .sb-pointer:before {
  width: 100%;
}

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

.monthly-payment {
  font-size: 1.2em;
  line-height: 1.5em;
}

.sb-content .monthly-payment {
  font-weight: 700;
  margin-bottom: 1rem;
}

.owl-prev {
  right: 7rem;
}

.owl-next {
  left: 7rem;
}

.error {
  color: #94001B;
}

.option-entry img {
  width: 3.8rem;
  height: 3.8rem;
  filter: brightness(0) saturate(100%);
}

.option-description {
  padding-left: 2.8rem;
  font-size: 1.6rem;
  line-height: 1.5em;
}

.option-entry {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
}

.option-list {
  padding: 3rem 0 3rem 3rem;
}

.option-selection-divider {
  padding: 1rem 1rem;
  background: transparent;
  border: 0.1rem solid black;
  color: black;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 20px;
  margin-left: 20px;
}

.button.option-selection-divider:hover {
  background: #000000;
  color: #fff;
}

.gallery {
  position: relative;
  height: 27rem;
  width: 100%;
}

.gal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  height: 22rem;
}

.gal-img.active {
  opacity: 1;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 5%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #000;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.15);
}

.gallery-arrow.gallery-arrow-prev {
  left: 0.8rem;
}

.gallery-arrow.gallery-arrow-next {
  right: 0.8rem;
}

@media (hover: hover) {
  .gallery-arrow:hover {
    background: #ffffff;
  }
}

/* ============= slider ============= */
.owl-nav button {
  background-color: #d1d1d1;
  position: relative;
  box-shadow: 0.4rem 0.4rem 1rem rgba(0, 0, 0, 0.08);
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: 0.25s ease;
}

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

/* Remove extra stage padding and show slight peek of next card via item width */
.steps-slider .owl-stage {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

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

@media (min-width: 768px) {
  .steps-slider .owl-item:last-child {
    padding-right: 0;
    padding-left: 0;
  }
}

.owl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  width: calc(100% - -1rem);
  top: 50%;
  transform: translate(-50%, -50%);
  left: 50%;
  height: 5rem;
  transition: 0.25s;
}

.owl-prev.disabled {
  opacity: 0;
}

.owl-nav button img {
  height: 1rem;
}

.owl-nav button span {
  height: 1.5rem;
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-family: monospace;
}

.owl-nav button:hover {
  background: #000000;
  color: #fff;
}

/* =============== Nav tabs =============== */
.left.red-option-selection-divider,
.right.red-option-selection-divider {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
  color: black;
  height: auto;
  padding-top: 30px;
  margin-top: 2rem;
  padding-bottom: 25px;
  margin-bottom: 2rem;
  transition: 0.25s ease;
}

.left.red-option-selection-divider {
  background-color: #ffffff;
  align-items: flex-start;
  text-align: left;
  border: 1px #000 solid;
}

.right.red-option-selection-divider {
  background-color: #796d7e;
  align-items: flex-end;
  text-align: right;
}

.tab-pane-2 .automachine_slider {
  background-color: #796d7e;
}

#red-right-offer-area {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.large-text.red-option-selection-divider {
  font-size: 2.8rem;
  font-weight: bold;
}

.block-title p {
  display: block;
  padding-top: 1rem;
  line-height: 1.5;
  font-size: 1.6rem;
  width: 70%;
  clear: both;
}

.button.red-option-selection-divider {
  margin-bottom: -2rem;
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  background: transparent;
  border: 0.1rem solid white;
  color: black;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  text-align: left;
}

.button.red-option-selection-divider .checkmark-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  min-width: 28px;
}

.button.red-option-selection-divider .checkmark-icon svg {
  width: 28px;
  height: 28px;
  color: currentColor;
  display: block;
}

.button.red-option-selection-divider .button-text {
  flex: 1;
  line-height: 1.5;
  font-size: 2rem;
  top: -13px;
  position: relative;
}

.nav_link.active .tab_wrap,
.tab_wrap:hover {
  transform: scale(1.05);
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.2);
}

.nav_tabs {
  position: relative;
}

.or.red-option-selection-divider {
  position: absolute;
  background: white;
  color: black;
  border-radius: 50%;
  padding: 1rem 1.5rem;
  font-weight: bold;
  transform: translate(-50%, -50%);
  top: 30%;
  left: 50%;
  z-index: 2;
  white-space: nowrap;
}

.block-title h1,
.block-title h2 {
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 5rem;
  height: 5rem;
  overflow: hidden;
  float: left;
  width: 100%;
}

.simple-text-block-content {
  clear: both;
  margin-bottom: 2rem;
}

#kontaktai {
  margin-bottom: 50px;
}

.blury_content {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 5rem);
  height: calc(100% + 5rem);
  z-index: 99;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  color: white;
  font-size: 2.6rem;
  font-weight: bold;
  text-shadow: 0 0.3rem 0.6rem rgba(0, 0, 0, 0.6);
  pointer-events: none;
  text-align: center;
  padding-top: 20rem;
  color: #ffffff;
  transform: translate(-50%, -50%);
}

/* =============== gallery_area ============== */
.gallery_area h2 {
  margin-bottom: 3rem;
}

.gallery_area {
  margin-bottom: 5rem;
}

.gallery_image {
  height: 54rem;
}

.gallery_slider {
  width: 115rem;
  margin: 0 auto;
}

.gallery_slider .owl-nav {
  width: 100%;
}

.owl-counter {
  font-size: 1.4rem;
  opacity: 0.6;
  width: 115rem;
  margin: 0 auto;
  margin-top: 1rem;
}

.gallery_image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/* ================ Contact section ================== */
.offer-form-wrapper {
  position: relative;
  background-color: #eeeff2;
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.3);
}

.tc-form__desc {
  margin-top: -5.5rem;
}

.offer-descrption p {
  font-size: 1.8rem;
}

p.offer-disclaimer {
  color: #666;
}

.tc-form .tc-form__lead,
.tc-form h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  line-height: 1.35em;
}

.contact_right h3 {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  line-height: 1.35em;
  font-weight: 500;
}

.block-form {
  max-width: 120rem;
    margin: 0 auto;
}

.wpcf7-form-control {
  width: 100%;
  padding: 1rem;
  font-size: 1.4rem;
  border: 0;
  height: 5rem;
  border: 0.1rem solid #ffffff;
}

.wpcf7-form-control:focus {
  border: 0.1rem solid #000000;
}

.wpcf7-form-control-wrap {
  width: 100%;
}

.field-wrapper .row {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

.offer-form-wrapper .container {
  position: relative;
}

.offer-form-wrapper .container > .row {
  --bs-gutter-x: 6.5rem;
  gap: 3rem 0;
}

.contact_right {
  padding: 5rem 5rem 5rem 0;
}

.tc-form__desc {
  border-radius: 1.6rem;
  border: 1px solid #9f9f9f;
  padding: 2rem;
}

span.wpcf7-list-item-label {
  color: #666;
}

.checkbox-wrapper label {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.checkbox-wrapper {
  padding: 3rem 0 3rem;
  cursor: pointer;
}

.tc-form-submit-wrapper input {
  color: #000;
  border: 0;
  font-size: 1em;
  padding: 1rem 3rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 0.3rem;
  width: 100%;
  white-space: break-spaces;
  border: 0.1rem solid #000;
  background-color: #f2f2f2;
  white-space: nowrap;
}

.tc-form-submit-wrapper {
  text-align: left;
  margin-top: 1rem;
  padding: 0 1.2rem;
  width: 50%;
  float: left;
}

.tc-form-submit-wrapper input:hover {
  background: #000;
  color: #fff;
}

.checkbox-wrapper input[type="checkbox"] {
  transform: translateY(0.25rem);
}

.textarea_input {
  height: 10rem;
  display: flex;
  padding-top: 1.5rem;
}

.contact_left {
  padding: 10rem 0 7rem 0;
}

/* ================== Footer area ================= */
footer {
  background: #eeeff2;
  padding: 6rem 0;
}

.has-border:not(:last-child) {
  padding-bottom: 6rem;
  margin-bottom: 6rem;
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.3);
  font-size: 1.6rem;
}

.footer-nav ul {
  display: flex;
  -webkit-box-lines: multiple;
  -moz-box-lines: multiple;
  flex-wrap: wrap;
}

.footer-nav ul li {
  line-height: 1.4;
  margin-right: 6rem;
}

.footer-nav ul li a {
  color: #000;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: underline !important;
}

.footer-nav ul li a:hover {
  text-decoration: none !important;
}

/* =============== Porsche Features Section ============== */
.porsche-features-section {
  position: relative;
  width: 100%;
  min-height: 50rem;
  margin: 7rem 0;
  overflow: hidden;
  max-width: 100%;
}

.features-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.features-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.features-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgb(0 0 0 / 90%) 0%, rgb(0 0 0 / 90%) 40%, rgb(0 0 0 / 25%) 70%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.features-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 50rem;
  padding: 4rem 0;
}

.steps-header {
  display: flex;
}

.form-card {
  border-radius: 0.6rem;
  border: 1px solid #d1d1d1;
  padding: 2rem;
}

.steps-section {
  padding: 7rem 0;
  padding-bottom: 0;
}

.steps-section-inner {
  max-width: 120rem;
  margin: 0 auto;
}

.steps-card {
  height: 100%;
  background-color: #ffffff;
  border-radius: 1.6rem;
  border: 1px solid #d1d1d1;
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.steps-icon {
  width: 5.4rem;
  height: 5.4rem;
  margin-bottom: 1.8rem;
}

.steps-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.steps-number {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #000000;
  margin-bottom: 0.8rem;
}

.steps-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000000;
}

.steps-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: #000000;
  margin: 0;
}

.features-text-content {
  flex: 0 0 60%;
  max-width: 60%;
  padding-left: 8rem;
  padding-right: 4rem;
}

.features-image-content {
  display: none;
}

.features-title {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 3rem;
  font-family: var(--primaryfont);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.feature-icon {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 1.5rem;
  margin-top: 0.2rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.6;
  color: #ffffff;
  font-family: var(--primaryfont);
  font-weight: 400;
}

@media (max-width: 992px) {
  .features-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
  }
  
  .features-text-content {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 4rem;
    padding-right: 4rem;
  }
  
  .features-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
  }
  
  .feature-text {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .porsche-features-section {
    min-height: 40rem;
    margin: 5rem 0;
  }
  
  .features-content-wrapper {
    padding: 3rem 0;
    min-height: 40rem;
  }
  
  .features-text-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .features-title {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
  }
  
  .feature-item {
    margin-bottom: 2rem;
  }
  
  .feature-text {
    font-size: 1.4rem;
  }
  
  .feature-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 1.2rem;
  }
}

/* =============== Porsche Category Filter ============== */
.porsche-category-filter {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 4rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.category-btn {
  position: relative;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--primaryfont);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-btn .category-border-left,
.category-btn .category-border-right {
  position: absolute;
  top: 0;
  width: 0.2rem;
  height: 100%;
  background: #B12B28;
  transition: all 0.3s ease;
  opacity: 0;
}

.category-btn .category-border-left {
  left: 0;
}

.category-btn .category-border-right {
  right: 0;
}

.category-btn .category-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  width: 100%;
  height: 4.5rem;
}

.category-btn .category-text img {
  width: 100%;
  max-width: 100%;
  height: 4.5rem;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Text-only button (Visi modeliai) */
.category-btn[data-category="all"] .category-text {
  white-space: nowrap;
  font-size: 1.4rem;
}

.category-btn:hover .category-border-left,
.category-btn:hover .category-border-right,
.category-btn.active .category-border-left,
.category-btn.active .category-border-right {
  opacity: 1;
}

.category-btn:hover .category-text,
.category-btn.active .category-text {
  color: #B12B28;
  font-weight: 700;
}

.category-btn:hover .category-text img,
.category-btn.active .category-text img {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(27%) sepia(99%) saturate(1397%) hue-rotate(337deg) brightness(74%) contrast(99%);
}

.category-btn:not(.active) .category-text img {
  transition: opacity 0.3s ease;
}

.category-btn.active {
  position: relative;
}

.category-btn.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.2rem;
  background: #B12B28;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.category-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.2rem;
  background: #B12B28;
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

.category-btn:not(.active)::before,
.category-btn:not(.active)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 0.2rem;
  background: #B12B28;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-btn:not(.active)::before {
  top: 0;
}

.category-btn:not(.active)::after {
  bottom: 0;
}

.category-btn:hover:not(.active)::before,
.category-btn:hover:not(.active)::after {
  transform: scaleX(1);
}

/* Hide carousel items by default when filtering */
.automachine_slider .automachine_slide.hidden {
  display: none !important;
  visibility: hidden;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* =============== PDF Viewer Popup ============== */
.pdf-viewer-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  display: none;
  overflow: hidden;
}

.pdf-viewer-popup.active {
  display: flex;
  flex-direction: column;
}

.pdf-popup-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.pdf-back-btn,
.pdf-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-family: var(--primaryfont);
  transition: opacity 0.3s ease;
  padding: 0.5rem 1rem;
}

.pdf-back-btn:hover,
.pdf-close-btn:hover {
  opacity: 0.7;
}

.pdf-back-btn svg,
.pdf-close-btn svg {
  width: 2.4rem;
  height: 2.4rem;
}

.pdf-popup-content {
  flex: 1;
  width: 100%;
  height: calc(100% - 80px);
  padding: 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-popup-content iframe {
  width: 100%;
  height: 100%;
  max-width: 140rem;
  background: #ffffff;
  border: none;
}

@media (max-width: 992px) {
  .pdf-popup-header {
    padding: 1.5rem 2rem;
  }
  
  .pdf-popup-content {
    padding: 1rem;
    height: calc(100% - 70px);
  }
}

@media (max-width: 768px) {
  .pdf-popup-header {
    padding: 1rem 1.5rem;
  }
  
  .pdf-popup-content {
    padding: 0.5rem;
    height: calc(100% - 60px);
  }
}

/* =============== Car Gallery Popup ============== */
.car-gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  display: none;
  overflow-y: auto;
}

.car-gallery-popup.active {
  display: block;
}

.gallery-popup-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
}

.gallery-back-btn,
.gallery-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-family: var(--primaryfont);
  transition: opacity 0.3s ease;
  padding: 0.5rem 1rem;
}

.gallery-back-btn:hover,
.gallery-close-btn:hover {
  opacity: 0.7;
}

.gallery-back-btn svg,
.gallery-close-btn svg {
  width: 2.4rem;
  height: 2.4rem;
}

.gallery-popup-content {
  padding: 4rem;
  max-width: 140rem;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  grid-auto-rows: minmax(200px, auto);
}

.gallery-grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #1a1a1a;
  transition: transform 0.3s ease;
  min-height: 200px;
}

.gallery-grid-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.gallery-grid-item.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 246px;
}

.gallery-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Make image wrapper clickable */


.car-gallery-trigger:hover {
  opacity: 0.9;
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-grid-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .gallery-popup-header {
    padding: 1.5rem 2rem;
  }
  
  .gallery-popup-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .gallery-grid-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .gallery-popup-header {
    padding: 1rem 1.5rem;
  }
  
  .gallery-popup-content {
    padding: 1.5rem;
  }
}

@media (max-width: 1000px) {
  .porsche-category-filter {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
  }
  
  .category-btn {
    padding: 0.8rem 1rem;
    font-size: 1.4rem;
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: 0;
    max-width: calc(33.333% - 0.67rem);
    box-sizing: border-box;
  }
  
  .category-btn .category-text img {
    height: 3.5rem;
  }
  .category-btn .category-text {
    height: 3.5rem;
  }
}

/* Trade-in modal */
.tradein-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.tradein-modal {
  background: #111;
  color: #fff;
  max-width: 960px;
  width: 100%;
  padding: 3rem;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.tradein-modal h3 {
  margin-bottom: 2rem;
  font-size: 2.4rem;
}

.tradein-modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
}

/* Porsche marketing consent (pop-up forms) */
.porsche-consent-detail-overlay {
  z-index: 10050;
}

.tradein-modal--consent-detail {
  max-width: 720px;
}

.porsche-consent-detail-body h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}

.porsche-consent-detail-text {
  line-height: 1.55;
}

.porsche-consent-detail-text p {
  margin-bottom: 1.2rem;
}

.porsche-consent-detail-text a {
  color: #c9a227;
  text-decoration: underline;
}

.tradein-field-full-width {
  grid-column: 1 / -1;
}

.tradein-consent-block {
  margin-top: 0.5rem;
}

.tradein-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tradein-consent-checkbox {
  width: auto !important;
  min-width: 1.8rem;
  height: 1.8rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
  cursor: pointer;
}

.tradein-consent-primary-text {
  display: block;
  font-size: 1.3rem;
  line-height: 1.45;
  cursor: pointer;
  font-weight: 400;
}

.consent-intro-text {
  display: block;
}

.consent-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-top: 0.75rem;
}

.consent-actions-row .consent-info-icon {
  margin-left: 0;
}

.consent-more-link {
  display: inline;
  background: none;
  border: none;
  color: #c9a227;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-left: 0;
}

.consent-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  font-size: 1.2rem;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 1;
  cursor: pointer;
}

.consent-info-icon:hover,
.consent-more-link:hover {
  color: #fff;
}

.tradein-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.tradein-grid-contact {
  margin-top: 1rem;
}

/* Tel. / el. paštas / miestas — three columns on wider viewports */
.tradein-grid .tradein-field-row-triple {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2rem;
}

@media (min-width: 769px) {
  .tradein-grid .tradein-field-row-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tradein-field label {
  display: block;
  margin-bottom: 0.4rem;
}

.tradein-field input,
.tradein-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 4px;
  border: 1px solid #444;
  background: #1a1a1a;
  color: #fff;
  font-size: 1.4rem;
}

.tradein-field input[readonly] {
  background: #222;
}

.block-title-v1 {
  margin-top: 2rem;
}


.tradein-submit {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.tradein-submit .button.white {
  align-self: flex-end;
  padding: 1.2rem 3.2rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.tradein-note {
  font-size: 1.2rem;
  opacity: 0.8;
}

.tradein-message {
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.tradein-message.success {
  color: #6ccf6c;
}

.tradein-message.error {
  color: #ff8080;
}

@media (max-width: 768px) {
  .tradein-modal {
    max-width: 95%;
    padding: 2rem;
  }

  .tradein-grid {
    grid-template-columns: 1fr;
  }

  .tradein-submit {
    flex-direction: column;
    align-items: flex-start;
  }

  .tradein-submit .button.white {
    align-self: flex-start;
    width: 100%;
    text-align: center;
  }
}

/* Trade-in Info Form - Modern Light Design */
.tradein-info-form {
  padding: 0;
}

.tradein-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.tradein-info-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.tradein-info-field-full-width {
  grid-column: 1 / -1;
  width: 100%;
}

.tradein-info-field {
  position: relative;
}

.tradein-info-field label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.01em;
}

.tradein-info-field input,
.tradein-info-field select {
  width: 100%;
  padding: 1rem 1.4rem;
  border: 1px solid rgb(0 0 0 / 56%);
  background: rgba(255, 255, 255, 0.1);
  color: #000000;
  font-size: 1.4rem;
  font-weight: 400;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tradein-info-field select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
  background-size: 12px;
  padding-right: 3.5rem;
}

.tradein-info-field input:hover,
.tradein-info-field select:hover {
  outline: none;
  border-color: #d5001c;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(213, 0, 28, 0.15);
}

.tradein-info-field input:focus,
.tradein-info-field select:focus {
  outline: none;
  border-color: #d5001c;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(213, 0, 28, 0.15);
}

.tradein-info-field input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.tradein-info-submit {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.block-title-v2 {
  padding-left: 0;
  padding-bottom: 2rem;
}

.tradein-info-submit-btn {
  padding: 0rem 2rem;
  font-size: 1.3rem;
  font-size: 1.3rem;
  font-weight: 600;
  background: #d5001c;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(213, 0, 28, 0.3);
}

.tradein-info-submit-btn:hover {
  background: #b30018;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(213, 0, 28, 0.4);
}

.tradein-info-submit-btn:active {
  transform: translateY(0);
}

.tradein-info-extra-btn {
  margin-top: 0.8rem;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1.3rem;
  text-decoration: underline;
  cursor: pointer;
}

.tradein-info-extra-btn:hover {
  text-decoration: none;
}

@media (max-width: 768px) {

  .tradein-info-grid {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .tradein-info-grid-three {
    grid-template-columns: 1fr;
  }
  
  .tradein-info-field label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .tradein-info-field input,
  .tradein-info-field select {
    padding: 0.9rem 1.2rem;
    font-size: 1.3rem;
  }
  
  .tradein-info-submit-btn {
    width: 100%;
    padding: 0rem 1.8rem;
    font-size: 1.2rem;
  }
}