/* Mobile layout: on step 4 place Clear + Back in first row, Submit full width in second row */
@media (max-width: 768px) {
  .btn {
    text-align: center !important;
  }
  .form-step[data-step="4"] .step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "clear prev"
      "submit submit";
    gap: 12px;
  }
  .form-step[data-step="4"] .step-actions .btn--clear {
    grid-area: clear;
    width: 100%;
  }
  .form-step[data-step="4"] .step-actions .btn--prev {
    grid-area: prev;
    width: 100%;
  }
  .form-step[data-step="4"] .step-actions .btn--submit {
    grid-area: submit;
    width: 100%;
    text-align: center;
  }
}
/* body {
  background-color: #f5f5f5;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.main-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
} */
.configurator {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 750px;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}
.configurator__left {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  border-right: 2px solid #e9ecef;
  max-width: 800px;
}
.configurator__right {
  flex: 0 0 500px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.configurator__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
  @media (max-width: 768px) {
    .configurator__header {
      margin-bottom: 0;
    }
    .configurator__title {
      display: none;
    }
  }
.configurator__title {
  font-size: 40px;
  font-weight: 700;
  color: #333;
  margin: 0;
}
.configurator__form {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.car-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.car-preview .car-image {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-preview .car-image .car-base, .car-preview .car-image .car-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}
.car-preview .car-image .car-layer {
  z-index: 2;
}
.car-preview .car-image .car-photo {
  width: 100%;
}
.car-preview .car-image .placeholder-logo {
  font-size: 128px;
  font-weight: 900;
  color: #333;
  text-align: center;
}
.car-preview .car-image .placeholder-logo img {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 100%;
}
.car-preview .car-image .placeholder-logo img .car-photo {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: none;
  object-fit: contain;
}
.car-preview .car-image .car-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.15s ease;
  cursor: pointer;
}
.car-preview .car-image .car-hit:hover {
  opacity: 0.7;
}
.car-preview .car-image .car-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
  opacity: 0.2;
}
.car-preview .price-display {
  padding: 20px 0;
  border-top: 2px solid #e9ecef;
  margin-top: 10px;
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}
.car-preview .price-display--visible {
  display: flex;
}
@media (max-width: 768px) {
  .car-preview .price-display--visible {
    flex-direction: column;
  }
}
.car-preview .price-display .price-label {
  display: block;
  font-size: 18px;
  color: #666;
}
.car-preview .price-display .price-value {
  font-size: 29px;
  font-weight: 700;
  color: #333;
  margin-left: 10px;
}
@media (max-width: 768px) {
  .car-preview .price-display .price-value {
    font-size: 24px;
  }
}
.car-preview .left-summary {
  display: none;
  background: #fff;
  border-radius: 8px;
  height: 100%;
}
.step-indicator {
  font-size: 18px;
  color: #666;
}
@media (max-width: 768px) {
  .step-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9;
  }
}
.step-indicator .current-step {
  font-weight: 700;
  color: #333;
}
.form-step {
  display: none;
  height: 100%;
  flex-direction: column;
}
.form-step--active {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.form-field {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
}
.field-label {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 15px;
  font-family: "Barlow Condensed", sans-serif;
}
.field-label .required {
  color: #e74c3c;
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  /* własna strzałka zamiast natywnego trójkąta */
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  width: 18px;
  height: 18px;
  background: url('image/car-wrap-configurator/arrow.svg') no-repeat center center;
  background-size: 16px 16px;
  pointer-events: none;
}
.form-select {
  width: 100%;
  padding-right: 48px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background: white;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  /* próbuj zawijać tekst wybranej opcji; część przeglądarek może nadal trzymać jedną linię */
  white-space: normal;
  line-height: 1.3;
  min-height: 48px;
  height: auto;
}
.form-select:focus,
.form-select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #ddd; /* zachowaj neutralny kolor bez niebieskiej obwódki */
}
.form-input {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}
.form-input::placeholder {
  color: #999;
}
.form-input:focus {
  outline: none;
  border-color: #007cba;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  row-gap: 5px; column-gap: 20px;
}
.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
}
.checkbox-option input[type="checkbox"] {
  display: none;
}
.checkbox-option .checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  background: white;
}
.checkbox-option .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.checkbox-option--selected .checkbox-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.checkbox-option--selected .checkbox-custom::after {
  display: block;
}
.checkbox-option input:checked + .checkbox-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.checkbox-option input:checked + .checkbox-custom::after {
  display: block;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.radio-option input[type="radio"] {
  display: none;
}
.radio-option .radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  background: white;
}
.radio-option .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  display: none;
}
.radio-option--selected .radio-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.radio-option--selected .radio-custom::after {
  display: block;
}
.radio-option input:checked + .radio-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.radio-option input:checked + .radio-custom::after {
  display: block;
}
.checkbox-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  row-gap: 5px; column-gap: 20px;
}
.checkbox-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.checkbox-option input[type="checkbox"] {
  display: none;
}
.checkbox-option .checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  position: relative;
  background: white;
}
.checkbox-option .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.checkbox-option--selected .checkbox-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.checkbox-option--selected .checkbox-custom::after {
  display: block;
}
.checkbox-option input:checked + .checkbox-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.checkbox-option input:checked + .checkbox-custom::after {
  display: block;
}
.radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 5px;
  column-gap: 20px;
}
.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.radio-option input[type="radio"] {
  display: none;
}
.radio-option .radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  background: white;
}
.radio-option .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  display: none;
}
.radio-option--selected .radio-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.radio-option--selected .radio-custom::after {
  display: block;
}
.radio-option input:checked + .radio-custom {
  background: #c4a574;
  border-color: #c4a574;
}
.radio-option input:checked + .radio-custom::after {
  display: block;
}
.summary-section {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.summary-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 20px;
  font-size: 38px;
}
.select-display {
  display: none;
}
.summary-title--mobile {
  font-weight: 600;
  color: #333;
  min-height: 60px; /* miejsce na 2 linie */
  display: none;
  margin-top: 25px;
.select-wrapper .form-select {
  color: transparent;                 /* ukryj natywny tekst w zamkniętym selectcie */
  -webkit-text-fill-color: transparent; /* Safari/iOS */
  text-shadow: 0 0 0 transparent;     /* niektóre tryby high-contrast */
}
.select-wrapper .form-select option { color: #000; }

/* Warstwa prezentacyjna tekstu – pełna kontrola zawijania (do 2 linii) */
.select-wrapper .select-display {
  position: absolute;
  left: 14px;
  right: 48px; /* nie nachodź na strzałkę */
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1.3;
  color: #000;
  pointer-events: none; /* klik dalej trafia w select */
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* maksymalnie 2 linie */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.select-wrapper .select-display.is-placeholder { color: #999; }
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .summary-title--mobile {
    display: block;
  }
}
.summary-grid {
  background: #fff;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
}
.summary-row:last-child {
  border-bottom: none;
}
.summary-row.summary-total {
  border-top: 2px solid #c4a574;
  margin-top: 15px;
  padding-top: 15px;
  font-size: 18px;
}
.summary-label {
  color: #000;
  font-weight: 600;
  width: 50%;
  font-family: "Barlow Condensed", sans-serif;
}
.summary-value {
  color: #000;
  width: 50%;
  font-size: 18px;
}
.summary-value.highlight {
  color: #c4a574;
  font-weight: 500;
}
.summary-note {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
  margin-top: auto;
}
.contact-section {
  margin-bottom: 10px;
}
.contact-section .form-field {
  margin-bottom: 0px;
}
.contact-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
  font-family: "Barlow Condensed", sans-serif;
}
.contact-fields {
  display: grid;
  gap: 15px;
}
.privacy-notice {
  margin-top: 25px;
}
.checkbox-privacy {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  text-align: justify;
}
.checkbox-privacy input[type="checkbox"] {
  display: none;
}
.checkbox-privacy .checkbox-custom-privacy {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 3px;
  margin-right: 10px;
  margin-top: 2px;
  position: relative;
  background: white;
  flex-shrink: 0;
}
.checkbox-privacy .checkbox-custom-privacy::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}
.checkbox-privacy input:checked + .checkbox-custom-privacy {
  background: #c4a574;
  border-color: #c4a574;
}
.checkbox-privacy input:checked + .checkbox-custom-privacy::after {
  display: block;
}
.step-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: auto;
}

.form-navigation {
  margin-top: auto;
  text-align: right;
}
@media (max-width: 768px) {
  .form-navigation {
    margin-top: 20px;
  }
}
.btn {
  padding: 16px 20px;
  border: none;
  font-size: 16px;
  font-weight: 500;
  min-width: 113px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.btn .btn-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  pointer-events: none;
  margin-top: -2px;
}
.btn .btn-icon--right { margin-left: 8px; }
.btn .btn-icon--left  { margin-right: 8px; transform: rotate(180deg); }
.btn--next, .btn--submit {
  text-align: left;
}
.btn--next span, .btn--submit span {
  position: absolute;
  right: 15px;
}
.btn--prev {
  text-align: right;
}
.btn--prev span {
  position: absolute;
  left: 15px;
}
.btn--brown {
  background: #c4a574;
  color: white;
}
.btn--brown:hover {
  background: #b8956a;
}
.btn--gray {
  background: #9ca3af;
  color: white;
}
.btn--gray:hover {
  background: #6b7280;
}
.btn--black {
  background: #374151;
  color: white;
}
.btn--black:hover {
  background: #1f2937;
}
/* Baner sukcesu po wysłaniu maila */
.success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0f9f1;
  border: 1px solid #c7e9c9;
  color: #14532d;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.success-banner__text {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.success-banner .btn {
  min-width: 120px;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1200px) {
  .configurator {
    flex-direction: column;
    height: auto;
  }
  .configurator__left {
    flex: none;
    height: 400px;
    max-width: unset;
  }
  .configurator__left--last-step {
    height: unset;
  }
  .configurator__right {
    flex: none;
  }
  .car-preview .car-image .placeholder-logo {
    font-size: 64px;
  }
}
@media (max-width: 768px) {
  .configurator {
    margin: 10px;
  }
  .configurator__left, .configurator__right {
    padding: 20px;
  }
  .checkbox-row {
    flex-direction: column;
  }
  .step-actions {
    flex-direction: column;
    margin-top: 20px;
  }
}

/* Mobile layout for step 3: Clear + Back in first row, Next full width in second row */
@media (max-width: 768px) {
  .form-step[data-step="3"] .step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "clear prev"
      "next next";
    gap: 12px;
  }
  .form-step[data-step="3"] .step-actions .btn--clear { grid-area: clear; width: 100%; }
  .form-step[data-step="3"] .step-actions .btn--prev  { grid-area: prev;  width: 100%; }
  .form-step[data-step="3"] .step-actions .btn--next  { grid-area: next;  width: 100%; }
}
