.tire-size-form-container {
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
}

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

.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;
}

.form-title {
  position: absolute;
  top: 50px;
  left: 50px;
  color: white;
  font-size: 48px;
  font-weight: bold;
  line-height: 0.9;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.tire-form-content {
  padding: 35px;
  position: relative;
  z-index: 1;
}

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

.form-group {
  flex: 1;
}

.form-group.full-width {
  flex: 2;
}

.form-group label {
  display: block;
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.form-select {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  background: white;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("../img/dropdown-arrow.png");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

.radio-group {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.radio-group input[type="radio"] {
  margin-right: 12px;
  transform: scale(1.3);
  accent-color: white;
}

.radio-group label {
  color: white;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  margin-bottom: 0;
}

.model-tire-row {
  align-items: flex-end;
}

.model-tire-row .form-group {
  flex: 1;
}

.model-tire-row .tire-size-options {
  flex: 1;
}

.custom-sizes .form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.custom-sizes .form-select:not(:disabled) {
  opacity: 1;
}

.search-button {
  width: 100%;
  background: #292929;
  color: white;
  border: none !important;
  border-radius: 10px !important;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-button:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.search-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-button:disabled,
.search-button.disabled {
  background: #666 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.search-button:disabled:hover,
.search-button.disabled:hover {
  background: #666 !important;
  transform: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile responsiveness */
@media (max-width: 1280px) {
  .form-title {
    font-size: 36px;
    left: 30px;
    top: 40px;
  }

  .car-image {
    width: 260px;
    height: 195px;
    right: -25px;
    top: 10px;
  }

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

  .model-tire-row {
    flex-direction: column;
    align-items: stretch;
  }

  .model-tire-row .tire-size-options {
    margin-left: 0;
    margin-top: 20px;
  }

  .tire-form-content {
    padding: 30px;
  }

  .tire-size-options {
    gap: 12px;
  }

  .search-button {
    padding: 18px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .form-title {
    font-size: 28px;
    left: 20px;
    top: 30px;
  }

  .car-image {
    width: 260px;
    height: 195px;
    right: -25px;
    top: 10px;
  }

  .tire-form-content {
    padding: 25px;
  }

  .form-select {
    padding: 12px;
    font-size: 14px;
  }

  .form-group label {
    font-size: 14px;
  }

  .radio-group label {
    font-size: 14px;
  }
}

/* Results Screen Styles */
.results-section {
  padding: 35px;
  background: #FF4444;
  color: white;
}

.results-title {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0 0 25px 0;
  color: white;
}

.results-card {
  background: white;
  color: #333;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tire-sizes-title {
  font-size: 18px;
  color: #FF4444;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 0 5px 0;
}

.vehicle-title {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin: 0 0 25px 0;
  letter-spacing: 1px;
}

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

.detail-row {
  display: flex;
  margin-bottom: 12px;
  font-size: 16px;
}

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

.detail-value {
  color: #333;
  font-weight: 500;
}

.status-section {
  border-top: 2px solid #f0f0f0;
  padding-top: 20px;
}

.status-badge {
  margin-bottom: 15px;
}

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

.status-value {
  color: #28a745;
  font-weight: bold;
  font-size: 16px;
}

.status-description {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin: 0;
  font-style: italic;
}

.reserve-button {
  width: 100%;
  background: #292929;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reserve-button:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.reserve-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.back-to-search {
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.back-to-search:hover {
  background: white;
  color: #FF4444;
  transform: translateY(-1px);
}

.back-to-search:active {
  transform: translateY(0);
}

/* Mobile responsiveness for results */
@media (max-width: 1280px) {
  .results-section {
    padding: 30px;
  }
  
  .results-title {
    font-size: 24px;
  }
  
  .vehicle-title {
    font-size: 28px;
  }
  
  .results-card {
    padding: 25px;
  }
  
  .reserve-button {
    padding: 18px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .results-section {
    padding: 25px;
  }
  
  .results-title {
    font-size: 20px;
  }
  
  .vehicle-title {
    font-size: 24px;
  }
  
  .results-card {
    padding: 20px;
  }
  
  .detail-row {
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  .detail-label {
    margin-bottom: 5px;
    min-width: auto;
  }
  
  .reserve-button {
    padding: 16px;
    font-size: 18px;
  }
  
  .back-to-search {
    padding: 10px 16px;
    font-size: 14px;
  }
}
