
.vin-decode-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card styling */
.vin-decode-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 1.75rem 2rem;
  max-width: 380px;
  width: 100%;
}

/* Form */
.vin-decode-form {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Toggle Switch */
.vin-decode-toggle {
  width: 100%;
  display: flex;
  background: rgba(0, 179, 222, 0.15);
  border-radius: 50px;
  position: relative;
  margin-bottom: 1.25rem;
  padding: 4px;
}

.vin-decode-toggle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  background: white;
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: 1;
}

.vin-decode-toggle-option {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #212529;
  cursor: pointer;
  z-index: 2;
  position: relative;
  transition: color 0.3s;
}

.vin-decode-toggle-option.active {
  font-weight: 600;
}

/* Error Message */
.vin-decode-error {
  background-color: #fee;
  color: #ed0a0a;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Form Fields */
.vin-decode-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.4rem;
}

.vin-decode-field {
  margin-bottom: 1.25rem;
  position: relative;
}

.vin-decode-field-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  align-items: flex-end;
}

.vin-decode-field-plate {
  flex: 2;
}

.vin-decode-field-state {
  flex: 1;
}

.vin-decode-field-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.vin-decode-field-half {
  flex: 1;
  margin-bottom: 0;
}

.vin-decode-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  font-size: 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.vin-decode-input::placeholder {
  color: #9ca3af;
}

.vin-decode-input:focus {
  border-color: #00b3de;
  box-shadow: 0 0 0 3px rgba(0, 179, 222, 0.1);
}

.vin-decode-input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Dropdown */
.vin-decode-dropdown {
  position: relative;
  width: 100%;
}

.vin-decode-dropdown-button {
  width: 100% !important;
  padding: 0.7rem 0.875rem !important;
  font-size: 0.95rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  background: white !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  text-align: left !important;
  color: #212529 !important;
}

.vin-decode-dropdown-button:hover {
  border-color: #00b3de !important;
  background: white !important;
}

.vin-decode-dropdown-button:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.vin-decode-dropdown-arrow {
  font-size: 0.75rem;
  color: #666;
}

.vin-decode-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vin-decode-dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.vin-decode-dropdown-item:hover {
  background-color: #f3f4f6;
}

/* Submit Button */
.vin-decode-submit {
  width: 100% !important;
  background-color: #00b3de !important;
  color: white !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.8rem 1.25rem !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
  margin-top: 0.75rem !important;
}

.vin-decode-submit:hover:not(:disabled) {
  opacity: 0.9 !important;
  background-color: #00b3de !important;
}

.vin-decode-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  background-color: #00b3de !important;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .vin-decode-container {
    padding: 0 1rem;
  }

  .vin-decode-card {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .vin-decode-field-row {
    flex-direction: column;
    gap: 0;
  }

  .vin-decode-field-half {
    margin-bottom: 1.25rem;
  }

  .vin-decode-field-group {
    flex-direction: column;
    gap: 0;
  }

  .vin-decode-field-plate,
  .vin-decode-field-state {
    flex: 1;
    width: 100%;
    margin-bottom: 1.25rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .vin-decode-container {
    padding: 0 0.75rem;
  }

  .vin-decode-card {
    padding: 1.25rem 1rem;
  }

  .vin-decode-toggle-option {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }

  .vin-decode-input,
  .vin-decode-dropdown-button {
    font-size: 0.875rem !important;
  }

  .vin-decode-submit {
    font-size: 0.875rem !important;
  }
}
