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

body {
  font-family: "Arial", sans-serif;
  background: white;
  color: white;
  overflow-x: hidden;
}

.container {
  max-width: 550px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header {
  position: relative;
  height: 150px;
  overflow: visible;
  background-color: #292929;
}

.header .title-group {
  position: absolute;
  top: 35px;
  left: 50px;
}

.header h1 {
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 0.9;
  position: relative;
  z-index: 2;
}

.header h2 {
  font-size: 2.0rem;
  font-weight: bold;
  line-height: 0.9;
  position: relative;
  z-index: 2;
}

.tire-track-bg {
  position: absolute;
  top: 0;
  left: -5%;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  background-repeat: no-repeat;
  filter: brightness(10);
}

.tire-track-bg-reversed {
  position: absolute;
  top: 0;
  right: 20%;
  width: 25%;
  height: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  background-repeat: no-repeat;
  transform: scaleX(-1);
  filter: brightness(10);
  -webkit-transform: scaleX(-1);
}

.car-image {
  position: absolute;
  top: 0px;
  right: -25px;
  width: 280px;
  height: 210px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
}

.step {
  display: none;
  background: #ff4444;
  padding: 30px;
  border-radius: 0 0 20px 20px;
}

.step.active {
  display: block;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  width: 100%;
}

label {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: white;
}

select {
  padding: 20px 25px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: #333;
  appearance: none;
  background-image: url("../img/dropdown-arrow.png");
  background-repeat: no-repeat;
  background-position: right 25px center;
  background-size: 20px;
  cursor: pointer;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  padding: 20px 0px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  color: #333;
  appearance: none;
  cursor: pointer;
}

select:disabled {
  background-color: #f0f0f0;
  color: #999;
  cursor: not-allowed;
}

.tire-size-options {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
  align-items: flex-start;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-group input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: white;
}

.radio-group label {
  font-size: 1rem;
  margin: 0;
  cursor: pointer;
}

.custom-size-fields {
  margin-top: 20px;
}

.custom-size-fields.hidden {
  display: none;
}

.custom-size-fields label {
  color: white;
}

.custom-size-fields select {
  background-color: white;
  color: #333;
}

.custom-size-fields select:disabled {
  background-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.custom-size-fields select::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-btn,
.reserve-btn,
.submit-btn,
.back-btn {
  width: 100%;
  padding: 20px;
  background: #333;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 30px;
  transition: background 0.3s ease;
}

.search-btn:hover,
.reserve-btn:hover,
.submit-btn:hover,
.back-btn:hover {
  background: #222;
}

.back-btn {
  background: #666;
  margin-top: 15px;
}

.back-btn:hover {
  background: #555;
}

.results-header h2,
.contact-header h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.results-card {
  background: white;
  color: #333;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
}

.tire-sizes-header {
  margin-bottom: 20px;
}

.tire-sizes-label {
  color: #ff4444;
  font-size: 1rem;
  font-weight: bold;
}

.vehicle-info {
  color: #333;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 5px 0;
}

.vehicle-details {
  margin-bottom: 25px;
}

.detail-row {
  display: flex;
  margin-bottom: 8px;
}

.detail-row .label {
  font-weight: bold;
  min-width: 120px;
  color: #333;
}

.detail-row .value {
  color: #333;
}

.status-section {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.status-label {
  font-weight: bold;
  color: #333;
}

.status-value {
  font-weight: bold;
}

.status-value.in-stock {
  color: #28a745;
}

.status-value.out-of-stock {
  color: #dc3545;
}

.status-message {
  color: #666;
  line-height: 1.4;
  font-style: italic;
}

.consent-section {
  margin-top: 30px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 15px;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  transform: scale(1.3);
  accent-color: white;
}

.consent-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: white;
}

.links {
  text-align: center;
}

.link {
  color: white;
  text-decoration: underline;
  font-size: 0.9rem;
}

.separator {
  margin: 0 10px;
  color: white;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header {
    padding: 30px 20px 50px;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .car-image img {
    width: 200px;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .tire-size-options {
    margin-top: 15px;
  }

  .step {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 2rem;
  }

  .car-image {
    right: -10px;
  }

  .car-image img {
    width: 150px;
  }

  .results-card {
    padding: 20px;
  }

  select {
    padding: 18px 20px;
  }

  input[type="text"],
  input[type="tel"],
  input[type="email"] {
    padding: 18px 0px;
  }
}

