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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding: 15px 20px;
}

.header-hero {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, rgba(255, 107, 33, 0.1), rgba(255, 165, 0, 0.1)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><defs><pattern id="cars" patternUnits="userSpaceOnUse" width="200" height="300"><g opacity="0.05"><ellipse cx="60" cy="150" rx="50" ry="15" fill="%23fff"/><path d="M30 140 Q35 130 50 130 Q70 130 80 140 Q75 145 60 145 Q40 145 30 140" fill="%23fff"/></g><g opacity="0.03"><ellipse cx="150" cy="150" rx="50" ry="15" fill="%23fff"/><path d="M120 140 Q125 130 140 130 Q160 130 170 140 Q165 145 150 145 Q130 145 120 140" fill="%23fff"/></g></pattern></defs><rect width="1200" height="300" fill="url(%23cars)"/></svg>');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 5px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  background: linear-gradient(135deg, #FF6B21, #FFA500, #FF6B21);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 0.85em;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  background: rgba(255, 107, 33, 0.15);
  border: 2px solid #FF6B21;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #FF6B21;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tab-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 107, 33, 0.25);
  box-shadow: 0 6px 20px rgba(255, 107, 33, 0.3);
}

.tab-btn.active {
  background: linear-gradient(135deg, #FF6B21 0%, #FFA500 100%);
  color: white;
  border-color: #FF6B21;
  box-shadow: 0 6px 25px rgba(255, 107, 33, 0.4);
}

.tab-content {
  display: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 240, 245, 0.98));
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-content.active {
  display: block;
  animation: slideIn 0.4s ease;
}

.tab-content h2 {
  color: #1a1a2e;
  margin-bottom: 20px;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: #1a1a2e;
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
  color: #333;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B21' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

input:focus, select:focus {
  outline: none;
  border-color: #FF6B21;
  box-shadow: 0 0 0 4px rgba(255, 107, 33, 0.1);
  background: #fffcf9;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Buttons */
.btn-submit {
  background: linear-gradient(135deg, #FF6B21 0%, #FFA500 100%);
  color: white;
  padding: 16px 34px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.05em;
  font-weight: 700;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(255, 107, 33, 0.3);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 107, 33, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Results */
.results {
  margin-top: 40px;
}

.result-section {
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 107, 33, 0.05), rgba(255, 165, 0, 0.05));
  border-radius: 12px;
  border-left: 5px solid #FF6B21;
  transition: all 0.3s ease;
}

.result-section:hover {
  box-shadow: 0 8px 20px rgba(255, 107, 33, 0.15);
  transform: translateX(5px);
}

.result-section h3 {
  color: #FF6B21;
  margin-bottom: 18px;
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-item {
  margin-bottom: 18px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border-left: 3px solid #FFA500;
}

.result-item strong {
  color: #1a1a2e;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.result-item p {
  color: #555;
  line-height: 1.7;
}

ul, ol {
  margin-left: 24px;
  line-height: 1.9;
  color: #555;
}

li {
  margin-bottom: 10px;
}

/* Loading & Status */
.loading {
  text-align: center;
  padding: 60px 40px;
  color: #FF6B21;
}

.spinner {
  border: 5px solid rgba(255, 107, 33, 0.1);
  border-top: 5px solid #FF6B21;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 107, 33, 0.05));
  color: #dc3545;
  padding: 18px;
  border-radius: 10px;
  border-left: 5px solid #dc3545;
  margin-top: 20px;
  font-weight: 500;
}

.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
  color: #28a745;
  padding: 18px;
  border-radius: 10px;
  border-left: 5px solid #28a745;
  margin-top: 20px;
  font-weight: 500;
}

/* Car Showcase */
.car-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.car-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.car-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #FF6B21, #FFA500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
  font-weight: bold;
}

.car-info {
  padding: 20px;
  flex-grow: 1;
}

.car-info h3 {
  color: #FF6B21;
  margin-bottom: 8px;
  font-size: 1.1em;
}

.car-info p {
  color: #666;
  font-size: 0.9em;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-direction: column;
  }

  .tab-btn {
    width: 100%;
  }

  .header-hero {
    height: 200px;
  }
}
